/* =========================================================
   スマホ専用（max-width: 767px のときだけ読み込む）
   方針：親指で届く・迷わず読める・軽い
   ========================================================= */

html.is-sp { -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; }
/* 背景の絵は、アドレスバーが縮んだ時の高さで固定（伸び縮みで引き伸ばされない） */
#gl { bottom: auto; height: 100vh; height: 100lvh; }

/* ---------- 軽さ：スマホでは、動く背景の上でのすりガラス・文字のぼかしをやめる（毎コマ計算し直すため重い） ---------- */
.lang { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 14, 50, .66); }
.about__lines [data-line], .about__lines [data-line].is-on { filter: none; }
.about__lines [data-line]:not(.is-on) { opacity: 0; }   /* 灯る前の文は見せない（消えていくKVの額に、うすい文字を重ねない） */
.is-split .ch, .is-in .is-split .ch, .is-in.is-split .ch, .is-in > .is-split .ch { filter: none; }
.hero__copy { filter: none; }

/* ---------- 触った手応え：押した瞬間に小さく沈む ---------- */
.route__list a { transition: background .5s var(--ease), transform .22s var(--ease); }
.venue__map { transition: background .4s, color .4s, box-shadow .4s, transform .22s var(--ease); }
.news__row { transition: transform .22s var(--ease); }
.sns svg { transition: transform .22s var(--ease), box-shadow .5s, background .5s; }
.lang button { transition: color .4s, transform .22s var(--ease); }
.route__list a:active, .news__row:active { transform: scale(.985); }
.venue__map:active, .sns:active svg, .lang button:active { transform: scale(.94); }
.dock__item { transition: background .35s var(--ease), transform .2s var(--ease); }
.dock__item:active { transform: scale(.96); }
html { scroll-padding-top: 110px; scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
html, body { overflow-x: clip; }   /* 何かが横にはみ出しても、画面全体が縮小表示にならないように */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- ヘッダー：本文と重ならないよう薄い幕を敷く ---------- */
.hd { padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
.hd::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: calc(104px + env(safe-area-inset-top)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 12, 44, .92) 0%, rgba(14, 12, 44, .7) 50%, rgba(14, 12, 44, 0) 100%);
  opacity: 0; transition: opacity .5s var(--ease), background .5s;
}
html.is-past-gate .hd::before { opacity: 1; }
/* 下へ読み進める間はヘッダーを隠し、上へ戻したら出す（見出しに乗せない） */
.hd { transition: transform .45s var(--ease); }
html.hd-hide .hd { transform: translateY(-110%); }
/* 紙の上では明るい幕へ。色を差し替えると一瞬で切り替わってちらつくので、2枚を重ねてゆっくり入れ替える */
.hd::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: calc(104px + env(safe-area-inset-top)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 245, 236, .97) 0%, rgba(251, 245, 236, .8) 50%, rgba(251, 245, 236, 0) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
html.is-past-gate.is-light .hd::after { opacity: 1; }
html.is-light .hd::before { opacity: 0; }
.hd__logo { width: 92px; }
.lang button, .lang__knob { width: 44px; height: 36px; }
.lang button { font-size: 12px; }
html[data-lang="en"] .lang__knob { transform: translateX(44px); }

/* 御湯印帳は下のナビにまとめる */
.goshuin { display: none !important; }

/* ---------- 下の3温泉ナビ（親指の位置） ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 19;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px;
  border-radius: 20px; background: linear-gradient(180deg, rgba(34, 28, 82, .95), rgba(22, 17, 58, .95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 36px rgba(6, 4, 24, .45);
  transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .7s var(--ease), visibility .7s;
}
html.is-past-gate .dock { transform: none; visibility: visible; }
.dock__item {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 8px 6px 9px;
  border-radius: 15px; text-decoration: none; color: var(--cream); transition: background .35s var(--ease);
}
.dock__item[aria-current="true"] { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 213, 126, .35); }
.dock__item:active { background: rgba(255, 255, 255, .16); }
.dock__seal {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); background: center / 64% no-repeat;
  transition: background-color .4s, box-shadow .4s;
}
.dock__item.is-stamped .dock__seal {
  background-color: var(--shu); background-image: url(../logo/mark_wh.png); box-shadow: 0 0 0 3px rgba(214, 59, 73, .22);
  animation: dockPon .65s var(--ease);
}
@keyframes dockPon { 0% { transform: scale(1.7) rotate(-14deg); opacity: 0; } 60% { transform: scale(.92) rotate(-4deg); opacity: 1; } 100% { transform: none; } }
/* 御湯印が3つそろったら、ナビに金の光がひとすじ走る */
html.goshuin-complete .dock { box-shadow: inset 0 0 0 1px rgba(255, 213, 126, .5), 0 14px 36px rgba(6, 4, 24, .45); transition: transform .7s var(--ease), visibility .7s, box-shadow 1s var(--ease); }
html.goshuin-complete .dock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, rgba(255, 213, 126, 0) 38%, rgba(255, 226, 160, .6) 50%, rgba(255, 213, 126, 0) 62%) no-repeat; background-size: 260% 100%;
  animation: dockShine 1.5s var(--ease) .15s both;
}
@keyframes dockShine { 0% { background-position: 130% 0; opacity: 1; } 99% { opacity: 1; } 100% { background-position: -70% 0; opacity: 0; } }
.dock__txt { display: grid; gap: 3px; min-width: 0; }
.dock__txt b { font-family: var(--f-disp); font-weight: 700; font-size: 13px; line-height: 1.1; letter-spacing: .05em; white-space: nowrap; }
html[data-lang="en"] .dock__txt b { font-family: var(--f-en); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; }
.dock__txt small { font-family: var(--f-en); font-size: 11.5px; line-height: 1; letter-spacing: .04em; color: var(--neon-g); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 入口と導入：スクロールを短く ---------- */
.gate { height: 100vh; height: calc(100 * var(--vh)); }
.hero { height: 8vh; height: calc(8 * var(--vh)); }
.about__stage { height: auto; }
.about__pin { position: relative; top: auto; height: auto; padding: 9vh 16px 6vh; }
.about__lines.ja { font-size: clamp(13px, 4.05vw, 15.5px); line-height: 1.92; letter-spacing: .18em; max-width: calc(100vw - 40px); }
.about__lines.ja [data-line] + [data-line] { margin-block-start: .75em; }
.about__pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(85% 60% at 50% 50%, rgba(14, 12, 44, .62), rgba(14, 12, 44, .2) 75%, rgba(14, 12, 44, 0)); }
.about__lines { position: relative; }
.kvfull__cap { font-size: 10px; letter-spacing: .2em; }
.opening { padding-bottom: calc(92px + env(safe-area-inset-bottom)); gap: 26px; }
.opening .hero__when { font-size: 14px; line-height: 1.8; letter-spacing: .1em; }
/* 下へ送れることを、細い光の線でそっと知らせる（キービジュアルとキャッチが出そろってから。送り始めたら消える） */
.spcue { display: block; position: absolute; z-index: 1; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); width: 1px; height: 24px; margin-left: -.5px; opacity: 0; transition: opacity .8s var(--ease); }
html.show-spcue .spcue { opacity: .9; }
.spcue i { display: block; width: 1px; height: 100%; background: linear-gradient(var(--cream), rgba(255, 247, 236, 0)); transform-origin: top; animation: hint 2.2s var(--ease-io) infinite; }
@media (max-height: 600px) { .spcue { display: none; } }

/* ---------- 3つの温泉街へ ---------- */
.route { padding-bottom: 9vh; }
.route__title { font-size: 27px; }
.route__lead { font-size: 14px; line-height: 1.95; text-wrap: balance; }
.route__list a { grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; padding: 18px 4px; }
.route__list a::after { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; }
.route__no { grid-row: 1 / span 2; font-size: 13px; }
.route__name { grid-column: 2; font-size: 22px; letter-spacing: .1em; }
.route__pref { display: none; }
.route__date { grid-column: 2; font-family: var(--f-en); font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .72); }
.route__date .ja i, .route__date .en i { font-style: normal; color: var(--neon-g); margin-right: .7em; letter-spacing: .14em; }

/* ---------- 開催地 ---------- */
.venue__gate { height: 54vh; height: calc(54 * var(--vh)); }
.venue__body, html[data-lang="en"] .venue__body { min-height: 0; gap: 24px; padding: 4vh 16px 5vh; }
.venue:last-child .venue__body { padding-bottom: 8vh; }
/* 温泉の暖簾と文字は重ねない：前の文字は布に合わせて薄く、次の温泉の文字はくぐり終えてから（main.jsが不透明度を決める） */
.route, .venue__body { transition: opacity .25s var(--ease); }
.venue__head, html[data-lang="en"] .venue__head { grid-template-columns: 1fr; justify-items: start; align-items: start; gap: 16px; }
.venue__no { grid-column: auto; }
.venue__name .ja { writing-mode: horizontal-tb; font-size: 46px; line-height: 1.32; letter-spacing: .06em; white-space: nowrap; }
.venue__name .ja small { display: block; margin: .55em 0 0; font-size: 14px; letter-spacing: .3em; }
.venue__name .ja.is-split .ch { transform: translateY(.3em); }
.venue__head.is-in .venue__name .ja.is-split .ch { transform: none; }   /* 出たあとは元の位置に（上の番号と重ならない） */
.venue__name .en { text-align: left; font-size: 40px; }
.venue__alt, html[data-lang="en"] .venue__alt { writing-mode: horizontal-tb; font-size: 11px; letter-spacing: .22em; }
.venue__info {
  position: relative; gap: 20px; padding: 24px 20px 24px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 16, 56, .8), rgba(30, 18, 60, .7));
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.venue__date { font-size: 13.5px; line-height: 1.4; letter-spacing: .03em; white-space: nowrap; }
.venue__date .ja b:first-child + br + b { margin-left: 0; }
.venue__date .ja b:first-child { font-size: 1.25em; letter-spacing: .1em; text-shadow: none; color: var(--neon-g); }
.venue__date b { font-size: 1.85em; margin: 0 .03em; }
html[data-lang="en"] .venue__date b { font-size: 1.7em; }
.venue__date em { display: table; margin: 8px 0 0; font-size: 13px; letter-spacing: .08em; }
.venue__place { grid-template-columns: 1fr; gap: 8px; }
.venue__place dt { justify-self: start; }
.venue__place dd { font-size: 16px; letter-spacing: .04em; }
.venue__desc { font-size: 14.5px; line-height: 1.95; }
html[data-lang="en"] .venue__desc { font-size: 16px; }
.venue__map { min-height: 48px; }

/* 温泉ステッカー：「道後温泉」を一列の縦書きで大きく。見出しの右に、ペタッと貼る */
.venue__head { position: relative; padding-right: 108px; min-height: 210px; align-content: center; }
.venue__name .en { white-space: normal; }
.venue__head .stk { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
/* iPhoneのSafariは縦書きの中身の幅を狭く見積もる（26px）ため、枠の幅をはっきり決める（はみ出して画面の端で切れない） */
.venue__head .stk { font-size: 31px; width: 1.86em; }
.venue__head .stk .seal { font-size: 31px; }
.venue__kv:not(.has-kv) { display: none; }
.venue__kv.has-kv { aspect-ratio: 4 / 3; }

/* ---------- 遊び：横にスワイプ ---------- */
.play__title { font-size: 27px; }
.play__list {
  display: flex; grid-template-columns: none; gap: 14px; margin: 34px calc(-1 * var(--gut)) 0; padding: 6px var(--gut) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.play__list::-webkit-scrollbar { display: none; }
.play__list > li { flex: 0 0 84%; scroll-snap-align: center; }
.play__list [data-reveal] { transition-delay: 0s !important; }
/* ドットは見た目は小さく、押せる範囲は28px */
.play__dots { display: flex; justify-content: center; gap: 0; margin-top: 8px; }
.play__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.play__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(42, 29, 61, .2); transition: width .35s var(--ease), background .35s; }
.play__dots button.is-on::before { width: 22px; background: var(--koubai); }
.card__text { font-size: 14.5px; }

/* ---------- お知らせ・SNS・フッター ---------- */
.news__lead, .follow__lead { font-size: 14px; text-wrap: balance; }
.sec-title { gap: 12px; }
.sec-title__ja { line-height: 1.5; }
.play__title { line-height: 1.55; }
.route__title { line-height: 1.5; }
.news__row { padding: 18px 4px; }
.ft { gap: 44px; }
.ft__org { flex-direction: column; align-items: center; gap: 34px; }
