/* 雲間湯（業種別サンプル⑦・町の銭湯）。決まりは ../../DESIGN.md（色・字・部品・見せ場） */
/* jpfont:start */
@font-face{font-family:"Shippori Antique B1";src:url(../fonts/shippori-antique-b1-400.6b3b6bf1.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:"Zen Maru Gothic";src:url(../fonts/zen-maru-gothic-500.551390f8.woff2) format("woff2");font-style:normal;font-weight:500;font-display:swap;}
@font-face{font-family:"Zen Maru Gothic";src:url(../fonts/zen-maru-gothic-700.d13c706a.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap;}
/* jpfont:end */

:root {
  --sumi: #24221F;
  --yuge: #EDEDE8;
  --paper: #F5F4EF;
  --hinoki: #C49A66;
  --kuro: #3B2A1D;
  --asagi: #2E918F;
  --ai: #1F3550;
  --line: rgba(36, 34, 31, .16);
  --f-head: "Shippori Antique B1", "Hiragino Mincho ProN", serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --vh: 1vh;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--sumi);
  font-family: var(--f-body); font-weight: 500; line-height: 1.85; letter-spacing: .04em;
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.only-sp { display: none; }
@media (max-width: 760px) { .only-sp { display: inline; } .only-pc { display: none; } }

/* ---------- ページの頭：ロゴ（紙の丸い地）と「きょうの営業」の丸い帯 ---------- */
.hd {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 0;
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 4px 16px 4px 4px; border-radius: 999px; background: rgba(245, 244, 239, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.logo-yu {
  position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sumi); color: var(--yuge); font-family: var(--f-head); font-size: 21px; line-height: 1; padding-bottom: 3px;
}
/* ロゴの「ゆ」に乗せる・さわると、小さな湯気が立つ */
.logo-yu i {
  position: absolute; left: 50%; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: rgba(140, 150, 148, .75); filter: blur(3px); opacity: 0; pointer-events: none;
}
.logo.puff .logo-yu i { animation: puff 1.3s ease-out forwards; }
.logo.puff .logo-yu i:nth-child(2) { animation-delay: .14s; margin-left: -12px; }
.logo.puff .logo-yu i:nth-child(3) { animation-delay: .28s; margin-left: 2px; }
@keyframes puff {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-34px) scale(1.8); }
}
.logo-t { font-family: var(--f-head); font-size: 20px; letter-spacing: .14em; color: var(--sumi); }
/* ロゴは縮めない（2026-11-26：右の帯の字が長い日や 320px で、ロゴが押されて「雲間湯」が縦に詰まっていた）。帯は、狭いときに2行に折る */
.logo { flex: none; }
.logo-t { white-space: nowrap; }
.pill { min-width: 0; }
.pill {
  margin: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 14px; border-radius: 999px;
  background: rgba(36, 34, 31, .86); color: var(--yuge);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #8C8A84; flex: none; }
.pill-dot.on { background: #5FD0C8; animation: dot 2.4s ease-out infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 200, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(95, 208, 200, 0); } }
@media (max-width: 760px) {
  .logo { padding: 3px 12px 3px 3px; gap: 7px; }
  .logo-yu { width: 32px; height: 32px; font-size: 18px; }
  .logo-t { font-size: 16px; }
  .pill { font-size: 11px; padding: 7px 11px 7px 10px; gap: 6px; }
}
/* 狭いとき（320px など）は、帯の字を2行に折る（2026-11-26。上の .pill の nowrap より後ろに書く） */
@media (max-width: 380px) { .pill { white-space: normal; line-height: 1.35; } }

/* ---------- 見せ場 ---------- */
.hero { position: relative; height: calc(var(--vh) * 620); }
.stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; background: #CFCFCA; touch-action: pan-y; }
.still, #yu, #tsubu { position: absolute; inset: 0; width: 100%; height: 100%; }
.still { object-fit: cover; filter: blur(14px) brightness(1.12) saturate(.7); transform: scale(1.06); }
.gl-on .still { visibility: hidden; }
#yu { display: block; }
#tsubu { z-index: 4; pointer-events: none; }
.door { position: absolute; inset: 0; pointer-events: none; }
.panel { position: absolute; top: 0; bottom: 0; will-change: transform; }
.panel i { position: absolute; display: block; background-repeat: no-repeat; background-size: 100% 100%; }
.panel .shade { inset: 0; background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }

.cap, .hint, .tag, .scroll, .tsubu-txt { position: absolute; z-index: 5; pointer-events: none; will-change: opacity, transform; }
.cap1 { right: 9%; top: 15%; bottom: 12%; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 28px; }
.h1 {
  margin: 0; font-family: var(--f-head); font-weight: 400; color: var(--sumi);
  writing-mode: vertical-rl; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.7; letter-spacing: .14em;
}
.h1 span { display: block; white-space: nowrap; }
.h1 span:last-child { padding-top: 2.4em; }
.sub { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; line-height: 2; color: var(--sumi); }
.cap1 .sub { writing-mode: vertical-rl; align-self: flex-end; margin-bottom: 4px; }
.hint {
  left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  margin: 0; padding: 7px 16px; border-radius: 999px; background: rgba(245, 244, 239, .82);
  font-size: 13px; font-weight: 700; color: var(--sumi); white-space: nowrap; opacity: 0; transition: opacity .6s;
}
.hint.on { opacity: 1; }
.tag { left: 0; top: 0; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); opacity: 0; white-space: nowrap; }
.tag b { font-family: var(--f-head); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .2em; line-height: 1.2; }
.tag span { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.tag::after { content: ""; width: 1px; height: 34px; margin-top: 6px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 6px rgba(0, 0, 0, .35); }
.cap3 { left: 7%; top: 18%; opacity: 0; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.h2 { margin: 0 0 12px; font-family: var(--f-head); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.5; letter-spacing: .14em; }
.h2 span { display: block; }
.cap3 .sub { color: #fff; }
/* ④ 湯気の粒の字（大きな字は粒で描く。ここは読み上げ用と、下の小さな字） */
.tsubu-txt { left: 0; right: 0; top: 0; margin: 0; text-align: center; opacity: 0; color: #fff; }
.tsubu-txt b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tsubu-txt span { display: inline-block; font-size: clamp(14px, 1.3vw, 18px); font-weight: 700; letter-spacing: .3em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
/* ⑤ 下足札 */
.fuda-wrap {
  position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 72px);
  perspective: 1400px; opacity: 0; visibility: hidden; pointer-events: none;
}
.fuda { position: relative; width: clamp(100px, 8.8vw, 136px); aspect-ratio: 240 / 812; transform-style: preserve-3d; will-change: transform; }
.fuda-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: url(../img/fuda.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  display: flex; flex-direction: column; align-items: center; color: rgba(62, 38, 16, .86);
  text-shadow: 0 1px 0 rgba(255, 236, 205, .45), 0 -1px 0 rgba(0, 0, 0, .28);
}
.fuda-f span { margin-top: 30%; font-family: var(--f-head); font-size: clamp(20px, 1.9vw, 28px); writing-mode: vertical-rl; letter-spacing: .3em; }
.fuda-b { transform: rotateY(180deg); background-image: url(../img/fuda.webp); }
.fuda-b b { margin-top: 24%; font-family: var(--f-head); font-weight: 400; font-size: clamp(46px, 4.4vw, 66px); line-height: 1; }
.fuda-b span { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .3em; writing-mode: vertical-rl; }
.fuda-info { color: #fff; max-width: 420px; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.fuda-info p { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.fuda-info .fi-k { font-size: 12px; letter-spacing: .3em; color: #9FE0DA; }
.fuda-info .fi-open { font-family: var(--f-head); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .08em; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 22px; min-height: 44px;
  border-radius: 999px; background: var(--paper); color: var(--sumi); text-decoration: none; font-weight: 700; font-size: 14px; text-shadow: none;
}
.btn::after { content: "→"; color: var(--asagi); }
.fuda-wrap.live .btn { pointer-events: auto; }
.scroll {
  right: clamp(16px, 3vw, 36px); bottom: calc(26px + env(safe-area-inset-bottom));
  font-size: 11px; font-weight: 700; letter-spacing: .3em; writing-mode: vertical-rl; color: var(--sumi);
}
.scroll::after { content: ""; display: block; width: 1px; height: 46px; margin: 10px auto 0; background: currentColor; animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .cap1 { right: 6%; top: 13%; bottom: auto; gap: 16px; }
  .h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .cap1 .sub { display: none; }
  .hint { bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 12px; }
  .cap3 { left: 6%; right: 6%; top: 15%; }
  .scroll { display: none; }
  .fuda-wrap { flex-direction: column; gap: 22px; padding: 0 22px; text-align: center; }
  .fuda { width: 82px; }
  .fuda-f span { font-size: 17px; }
  .fuda-b b { font-size: 40px; }
  .fuda-info p { font-size: 13px; }
  .fuda-info .fi-open { font-size: 21px; margin-bottom: 8px; }
}

/* ---------- 見せ場の下：左に縦書きの見出し、右に中身 ---------- */
.sec {
  display: grid; grid-template-columns: 5.2em 1fr; gap: clamp(20px, 4vw, 64px);
  width: min(1120px, 100% - 32px); margin: 0 auto; padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
#today { border-top: 0; }
.vh2 {
  margin: 0; align-self: start; position: sticky; top: 96px;
  writing-mode: vertical-rl; font-family: var(--f-head); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: .22em; line-height: 1.3; white-space: nowrap;
}
.vh2::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-bottom: .6em; border-radius: 50%; background: var(--asagi); vertical-align: middle; }
.sec-body { min-width: 0; }
.lead { margin: 0 0 28px; font-size: clamp(15px, 1.4vw, 17px); }
.note { margin: 18px 0 0; font-size: 13px; color: rgba(36, 34, 31, .72); }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .sec { grid-template-columns: 2.2em 1fr; gap: 14px; padding: 72px 0; }
  .vh2 { font-size: 22px; top: 76px; }
}

/* きょうの雲間湯 */
.td-big { margin: 0; font-family: var(--f-head); font-size: clamp(32px, 4.6vw, 60px); line-height: 1.35; letter-spacing: .06em; }
.td-sub { margin: 14px 0 0; font-size: clamp(14px, 1.4vw, 17px); }
.td-yu { margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line); }
.td-k { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--asagi); letter-spacing: .2em; }
.td-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.td-list li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; background: #fff; }
.td-list .td-kawari { border-color: var(--asagi); color: var(--asagi); position: relative; }
.td-list .td-kawari:empty { display: none; }
.td-note { margin: 14px 0 0; font-size: 13px; color: rgba(36, 34, 31, .72); }

/* 料金 */
.price { width: 100%; border-collapse: collapse; }
.price th, .price td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price th { text-align: left; font-weight: 700; font-size: 15px; }
.price th small { display: block; font-size: 12px; font-weight: 500; color: rgba(36, 34, 31, .7); }
.price td { text-align: right; font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td small { font-size: 14px; margin-left: 3px; }
.price .pr-opt td { font-size: clamp(20px, 2.2vw, 26px); color: rgba(36, 34, 31, .82); }

/* お風呂 */
.baths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.bath img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.b-n { margin: 14px 0 4px; font-family: var(--f-head); font-size: 22px; letter-spacing: .1em; display: flex; align-items: baseline; gap: 10px; }
.b-n span { font-family: var(--f-body); font-size: 14px; font-weight: 700; color: var(--asagi); letter-spacing: .04em; }
.b-t { margin: 0; font-size: 14px; }
.b-month { display: block; color: var(--asagi); font-weight: 700; }
@media (max-width: 960px) { .baths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .baths { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .baths::-webkit-scrollbar { display: none; }
  .bath { flex: 0 0 72%; scroll-snap-align: start; }
}

/* はじめての銭湯 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 22px 16px 20px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.steps li::before { content: counter(st); position: absolute; top: 12px; right: 14px; font-weight: 700; font-size: 13px; color: var(--asagi); }
.steps svg { width: 56px; height: 56px; fill: none; stroke: var(--sumi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps p { margin: 0; font-size: 13px; }
.steps .st-h { margin: 12px 0 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 10px; } .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; } .steps svg { grid-row: span 2; } .steps .st-h { margin: 0; } }

/* 替わり湯のこよみ */
.koyomi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.koyomi button {
  width: 100%; min-height: 88px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
  padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--sumi);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.koyomi button:hover { border-color: var(--asagi); }
.koyomi .k-m { font-size: 12px; font-weight: 700; color: rgba(36, 34, 31, .65); }
.koyomi .k-y { font-family: var(--f-head); font-size: 16px; line-height: 1.3; }
.koyomi .now button { background: var(--asagi); border-color: var(--asagi); color: #fff; }
.koyomi .now .k-m { color: rgba(255, 255, 255, .85); }
.koyomi button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sumi); }
.koyomi .k-d { display: none; }
.k-detail { margin: 20px 0 0; min-height: 1.9em; font-size: 15px; font-weight: 700; }
@media (max-width: 760px) { .koyomi { grid-template-columns: repeat(3, 1fr); gap: 8px; } .koyomi button { min-height: 74px; padding: 10px; } .koyomi .k-y { font-size: 14px; } }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news time { font-weight: 700; color: var(--asagi); font-variant-numeric: tabular-nums; }
.news p { margin: 0; }
@media (max-width: 760px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* 行き方 */
.acc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-list { margin: 0; border-top: 1px solid var(--line); }
.info-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; color: var(--asagi); }
.info-list dd { margin: 0; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.map text { font-family: var(--f-body); font-size: 14px; font-weight: 700; fill: var(--sumi); }
.map .m-name { font-family: var(--f-head); font-size: 20px; font-weight: 400; }
.m-road { stroke: rgba(36, 34, 31, .18); stroke-width: 14; fill: none; }
.m-rail { stroke: var(--sumi); stroke-width: 6; fill: none; }
.m-rail-t { stroke: #fff; stroke-width: 3; stroke-dasharray: 14 12; fill: none; }
.m-st { fill: #fff; stroke: var(--sumi); stroke-width: 2.5; }
.m-river { stroke: rgba(46, 145, 143, .45); stroke-width: 22; fill: none; stroke-linecap: round; }
.m-shop { stroke: var(--sumi); stroke-width: 1.6; fill: none; }
.m-park { fill: rgba(36, 34, 31, .06); stroke: var(--sumi); stroke-width: 1.6; }
.m-walk { stroke: var(--asagi); stroke-width: 3.5; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.m-pin rect, .m-pin path:not(.m-steam) { fill: var(--sumi); }
.m-steam { fill: none; stroke: rgba(36, 34, 31, .45); stroke-width: 3; stroke-linecap: round; animation: steam 2.6s ease-in-out infinite; }
.m-steam.s2 { animation-delay: 1.3s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.map figcaption { margin-top: 10px; font-size: 12px; color: rgba(36, 34, 31, .7); }
@media (max-width: 860px) { .acc { grid-template-columns: 1fr; } }

/* ---------- フッター：藍ののれん（触ると揺れる） ---------- */
.ft { background: var(--sumi); color: var(--yuge); text-align: center; padding-bottom: calc(40px + env(safe-area-inset-bottom)); overflow-x: clip; }
/* ↑ のれんの竿（.noren::before、左右 -2%）が、スマホでは画面の外へ約 8px 出て横にずれていた。画面の端で切る（2026-11-15） */
.noren { position: relative; height: clamp(190px, 24vw, 320px); margin: 0 auto 36px; width: min(1120px, 100%); }
.noren::before { content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 14px; border-radius: 7px; background: linear-gradient(#B8895A, #8A6238); z-index: 2; }
.nr-s { position: absolute; top: 6px; bottom: 0; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.nr-s svg { pointer-events: none; }
.nr-s svg { position: absolute; top: 0; height: 100%; display: block; }
.ft-in { padding: 0 16px; }
.ft-name { margin: 0 0 12px; font-family: var(--f-head); font-size: 32px; letter-spacing: .3em; }
.ft-small { margin: 4px 0; font-size: 12px; letter-spacing: .08em; opacity: .8; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px; background: var(--sumi); color: var(--yuge); font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-dot.on, .scroll::after, .m-steam { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
