/* HideOut(湯) のページだけに効く部品。土台は /assets/css/ho-base.css
   看板の縦書き、足もとの灯り、4 語の流れ、番号の手順、引用の線は湯の独自部品 */

/* 最初の画面: 看板と同じ縦書きを、足もとの灯りが照らす */
.yu-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hdr) + 12px) 24px 76px; isolation: isolate; background: linear-gradient(rgba(12, 10, 8, .55), rgba(12, 10, 8, .55) 60%, var(--bg)), url(/images/yu/approach.jpg) center / cover no-repeat, var(--bg); }
.yu-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 34% at 34% 100%, rgba(252, 159, 47, .62), rgba(107, 50, 8, .34) 55%, transparent 100%); animation: yu-light 1.8s ease-out both; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
@keyframes yu-light { from { opacity: 0; } to { opacity: 1; } }
.yu-hero__logo { width: min(46vw, 352px); }
.yu-hero__what { margin-top: 18px; font-size: 14px; line-height: 1.8; }
.yu-hero__open { margin-top: 14px; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.yu-hero__when { margin-top: 4px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent); }
.yu-hero .yu-cta { margin-top: 16px; }
.yu-hero .ho-btn { padding-inline: 18px; }
.yu-hero__sign { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: .7em; font-family: var(--serif); font-feature-settings: "vpal"; font-size: clamp(25px, 7.4vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: .14em; }
.yu-hero__sign p { writing-mode: vertical-rl; }
.yu-hero__sign p + p { margin-top: 2.4em; }
.yu-hero__cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--latin); font-style: italic; font-size: 13px; letter-spacing: .2em; line-height: 1; color: var(--muted); }
.yu-hero__cue::after { content: ""; display: block; width: 1px; height: 32px; margin: 6px auto 0; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: yu-cue 2.2s ease-in-out infinite; }
@keyframes yu-cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* 湯治の説明: 縦書きの見出しと本文 */
.yu-concept { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; max-width: 900px; margin-inline: auto; }
.yu-concept__title { font-family: var(--serif); font-size: clamp(27px, 3.4vw, 36px); font-weight: 600; line-height: 1.7; letter-spacing: .14em; white-space: nowrap; }
.yu-concept__body { padding-left: 56px; border-left: 1px solid var(--accent-dim); }
.yu-concept__body p, .yu-room__text p, .yu-intro p, .yu-info p { color: var(--muted); }
.yu-concept__body p + p, .yu-room__text p + p, .yu-intro p + p { margin-top: 14px; }
.yu-concept__body > p:not(.yu-lead), .yu-room__text > p:not(.yu-lead) { line-height: 2.1; }
.yu-lead, .yu-concept__body .yu-lead, .yu-room__text .yu-lead, .yu-intro .yu-lead { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.7; letter-spacing: .08em; color: var(--ink); }

/* 湯の部屋 */
.yu-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.yu-room__photo { position: relative; max-width: 560px; }
.yu-room__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 45% at 40% 100%, rgba(252, 159, 47, .26), transparent 100%); pointer-events: none; }
.yu-room__photo img { width: 100%; height: auto; }
/* 2 つめのブロックは写真を右に置き、左右を入れ替える（PC だけ。スマホはどちらも写真が上） */
.yu-room--rev { margin-top: 72px; }
@media (min-width: 769px) {
  .yu-room--rev .yu-room__photo { order: 2; justify-self: end; width: 100%; }
}

/* 湯治の内容: 4 語を縦書きで見せる */
.yu-intro { max-width: 800px; margin-bottom: 44px; }
.yu-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 52px; }
.yu-flow li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 22px; align-content: start; padding-block: 30px; border-top: 1px solid var(--line2); }
.yu-flow li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line2); }
.yu-flow__word { justify-self: center; width: fit-content; writing-mode: vertical-rl; font-family: var(--serif); font-feature-settings: "vpal"; font-size: 38px; font-weight: 500; line-height: 1.1; letter-spacing: .14em; }
.yu-flow__text { color: var(--muted); line-height: 2; }
.yu-flow__note { margin-top: 8px; font-size: 13px; color: var(--accent); }

/* コース: 3 枚とも同じ大きさで同じ行を並べ、含まれない施術は暗くして、受けられるコースの名前を添える。上位で増える行は色を変える */
.yu-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; }
.yu-course { position: relative; display: grid; grid-row: span 8; grid-template-rows: subgrid; min-width: 0; padding: 38px 28px 34px; background: linear-gradient(160deg, var(--panel), var(--panel2)); border: 1px solid var(--line); }
/* カードの上端にコースの色の帯を付け、3 枚の区切りとコースの格を見せる */
.yu-course::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--metal); }
.yu-course h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; }
.yu-course h3 .ho-metal { display: inline-block; }
.yu-course h3 small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--name); }
/* コース名の色: 銅、銀、金の順に上がる */
.yu-course--copper { --metal: linear-gradient(135deg, #f6c9a8 0%, #c9764a 40%, #f0b68e 60%, #a85c34 100%); --name: #dd9468; }
.yu-course--silver { --metal: linear-gradient(135deg, #f6f0e6 0%, #bfb4a3 36%, #f0e9dc 58%, #978c7b 100%); --name: #cbc1b1; }
.yu-course--gold { --metal: linear-gradient(135deg, #ffebc9 0%, #dda850 38%, #ffe5b6 58%, #ae802f 100%); --name: #e2b25c; }
.yu-course__text { margin-top: 16px; font-size: 14px; line-height: 2.05; color: var(--muted); }
.yu-steps { display: grid; grid-row: span 5; grid-template-rows: subgrid; margin-top: 20px; }
.yu-steps li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.75; color: var(--ink); }
.yu-steps li > span:first-child { font-family: var(--serif); font-weight: 600; color: var(--muted); }
.yu-steps li > span:last-child { word-break: keep-all; overflow-wrap: anywhere; }
.yu-nb { white-space: nowrap; }
.yu-steps__note { display: block; margin-top: 2px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.yu-steps .is-new, .yu-steps .is-new > span:first-child { color: var(--accent); }
.yu-steps .is-off, .yu-steps .is-off > span:first-child { color: rgba(239, 231, 218, .42); }
.yu-steps__from { white-space: nowrap; }
.yu-steps .is-off > span:last-child { position: relative; padding-left: 1.3em; }
.yu-steps .is-off > span:last-child::before { content: "×"; position: absolute; left: 0; }
.yu-course__price { margin-top: 8px; border-top: 1px solid var(--line2); }
.yu-course__price li { display: flex; align-items: baseline; justify-content: space-between; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.yu-course__price span + span { font-variant-numeric: lining-nums; font-family: var(--latin); font-size: 22px; color: var(--accent); }
/* 初回お試し価格にした理由（2026-11-24）。コース欄の見出しとカードの間に置き、どの幅でも中央寄せ */
.yu-course__why { max-width: 720px; margin: 0 auto 40px; font-size: 14px; line-height: 1.9; color: #fff; text-align: center; }
/* 「初回お試し価格」の語は、理由の文とカードの料金欄で太字にする */
.yu-course__why strong, .yu-course__price strong { font-weight: 700; }
.yu-course__why + .ho-note { margin-top: 12px; }

/* ご予約 */
.yu-reserve { overflow: hidden; background: radial-gradient(70% 40% at 50% 0, rgba(252, 159, 47, .14), transparent 100%), var(--bg); }
.yu-reserve .ho-wrap { max-width: 900px; }
.yu-reserve__big { font-family: var(--serif); font-size: clamp(22px, 6.4vw, 36px); font-weight: 600; line-height: 1.5; letter-spacing: .08em; text-align: center; white-space: nowrap; }
.yu-reserve__lead { max-width: 640px; margin: 16px auto 0; color: var(--muted); line-height: 2.05; }
.yu-when { max-width: 640px; margin: 32px auto 0; padding: 26px 28px; border: 1px solid var(--line2); line-height: 1.9; color: var(--muted); }
.yu-when__day { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--accent); }
.yu-when__day strong { margin-right: .3em; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .04em; }
.yu-when__prices { margin-top: 10px; }
.yu-when__prices > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; }
.yu-when__prices dd { font-variant-numeric: lining-nums; font-family: var(--latin); font-size: 19px; color: var(--accent); }
/* 狭い幅では「初回お試し価格」と金額を 2 行に分け、右に揃える。コース名と金額の途中では折り返さない */
.yu-when__prices dt { flex: none; }
.yu-when__prices dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: .7em; }
.yu-when__prices dd small { font-family: var(--serif); font-size: 13px; color: var(--muted); }
.yu-when__prices dd span { white-space: nowrap; }
.yu-reserve__cta { margin-top: 34px; text-align: center; }
.yu-sub { margin: 44px 0 10px; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; }
.yu-sub:first-of-type { margin-top: 0; }
.yu-sub--center, .yu-reserve .yu-sub:first-of-type { margin-top: 56px; text-align: center; }
.yu-sub__text { color: var(--muted); }
#menu .yu-sub + .ho-menu { border-top: 1px solid var(--line); }
/* そのほかのメニューの「詳細はこちら」は一覧の下に一つだけ置く */
.yu-menu__more { margin-top: 32px; text-align: center; }

/* 初めての方へ: スマホは縦、PC は横に番号を線でつなぐ */
.yu-first { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.yu-first li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 14px; text-align: center; }
.yu-first li:not(:last-child)::before { content: ""; position: absolute; top: 20px; left: calc(50% + 20px); right: calc(-50% - 4px); height: 1px; background: var(--line2); }
.yu-first__num { font-variant-numeric: lining-nums; display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border: 1px solid var(--accent); border-radius: 50%; font-family: var(--latin); font-size: 20px; line-height: 1; color: var(--accent); }
.yu-first__title { margin-bottom: 4px; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.6; }
.yu-first p:not(.yu-first__title) { font-size: 14px; color: var(--muted); }

/* スタッフ: PC は 4 人を横に、スマホは写真を左に置いた横長で縦に並べる。is-ghost は写真が届くまでの仮の枠 */
.yu-staff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.yu-staff__item { min-width: 0; }
.yu-staff__photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, var(--panel), var(--panel2)); border: 1px solid var(--line); }
.yu-staff__photo img { width: 100%; height: 100%; object-fit: cover; }
.yu-staff__photo span { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--faint); }
.yu-staff__body { margin-top: 18px; }
.yu-staff__role { font-family: var(--serif); font-size: 12.5px; letter-spacing: .1em; color: var(--accent); }
.yu-staff__name { margin-top: 2px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.yu-staff__name small { display: block; font-family: var(--latin); font-style: italic; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.yu-staff__comment { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.95; color: var(--muted); }
.is-ghost .yu-staff__photo { border: 1px dashed var(--line2); }
.is-ghost .yu-staff__body > * { color: var(--faint); }

/* Instagram */
.yu-insta .ho-wrap { max-width: 900px; }
.yu-insta__lead { margin-bottom: 28px; color: var(--muted); text-align: center; }
.yu-insta__more { margin-top: 30px; text-align: center; }
.yu-insta__more .ho-btn { max-width: 100%; }
/* 投稿が取れないとき（instagram.js が is-ig-unavailable を付ける）は、投稿の欄と「音声が流れます」の注意書きを隠す。
   見出し・一言・フォローのボタンは残し、Instagram への入口と 07 の番号の並びを保つ（2026-11-13） */
.yu-insta.is-ig-unavailable .yu-insta__note { display: none; }
.yu-insta.is-ig-unavailable .yu-insta__lead { margin-bottom: 0; }

/* 店舗情報 */
.yu-info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.yu-dl { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); border-top: 1px solid var(--line); }
.yu-dl dt, .yu-dl dd { padding-block: 14px; border-bottom: 1px solid var(--line); }
.yu-dl dt { font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.yu-dl dd a { text-decoration: underline; text-underline-offset: .25em; }
.yu-info__map { margin-top: 24px; }
.yu-info__cta { margin-top: 28px; }
/* 予約のボタンの下の Instagram。ボタンは投稿の欄（.yu-insta__more）と同じ作り（2026-11-20 主の指示） */
.yu-info__ig { margin-top: 28px; }  /* 地図と予約のボタンの間（.yu-info__cta）と同じ */
/* 店舗情報の 3 つのボタンは幅を揃える（地図・予約は .ho-btn--lg の 280px。Instagram もこの欄だけ同じ幅に。2026-11-20 主の指示） */
.yu-info__ig .ho-btn { min-width: min(280px, 100%); }
/* スマホの幅（このページの切り替えと同じ 768px まで）では、3 つを欄の左右の中央に寄せる。PC は左寄せ（2026-11-20 主の訂正） */
@media (max-width: 768px) {
  .yu-info__map, .yu-info__cta, .yu-info__ig { text-align: center; }
}
.yu-info__cal { display: flex; justify-content: center; }
.yu-info__cal #business-calendar { max-width: 400px; }

/* スマホの固定バーは予約だけにする。ボタンが見えている間は隠す */
.yu-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 8, 6, .95); border-top: 1px solid var(--line2); transform: translateY(105%); transition: transform .25s ease; }
.yu-bar.is-on { transform: none; }
.yu-bar__text { min-width: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.yu-bar__text span { display: block; font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--accent); }
.yu-bar .ho-btn { flex: none; block-size: 44px; padding-inline: 16px; font-size: 13px; letter-spacing: .08em; }

@media (min-width: 769px) {
  .yu-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: calc(var(--hdr) + 8px) max(24px, calc((100vw - 960px) / 2)) 64px; background: linear-gradient(rgba(12, 10, 8, .58), rgba(12, 10, 8, .58) 60%, var(--bg)), url(/images/yu/approach.jpg) center 42% / cover no-repeat, var(--bg); }
  .yu-hero__logo { width: min(300px, 34vh); }
  .yu-hero__what { font-size: 15px; }
  /* 縦書きは文字約 15 個ぶんの高さ。低い画面でも最初の画面に収める */
  .yu-hero__sign { justify-self: center; font-size: clamp(25px, calc((100vh - 200px) / 15), 42px); }
}
@media (max-width: 980px) {
  /* 縦に積むときも高さを揃える */
  /* 縦に積むと 3 枚の境目が見えにくいので、間を広く取る */
  .yu-courses { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; row-gap: 40px; }
  .yu-course { display: block; grid-row: auto; }
  .yu-steps { display: block; }
  .yu-info { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .yu-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  body { padding-bottom: 72px; }
  .yu-bar { display: flex; }
  .yu-concept { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .yu-concept__title { font-size: clamp(25px, 7.4vw, 32px); text-align: center; }
  .yu-concept__body { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--accent-dim); }
  .yu-room { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .yu-room--rev { margin-top: 56px; }
  .yu-staff { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .yu-staff__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
  .yu-staff__body { margin-top: 0; }
  .yu-flow { grid-template-columns: minmax(0, 1fr); }
  .yu-flow li:nth-last-child(2) { border-bottom: 0; }
  .yu-flow__word { font-size: 34px; }
  .yu-first { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-inline: 4px; }
  .yu-first li { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; }
  .yu-first li:not(:last-child)::before { top: 40px; bottom: -26px; left: 20px; right: auto; width: 1px; height: auto; }
}
@media (max-width: 374px) {
  .yu-hero .ho-btn { padding-inline: 12px; }
  /* 固定バーを 2 行に収める。「一日三名様まで」は予約の欄にも書いてあるので、ここでは省く */
  .yu-bar__text { font-size: 0; }
  .yu-bar__text span { word-break: keep-all; }
  .yu-flow li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
}

/* スマホの改行（2026-11-12）。文を文節の切れ目で折り返す。切れ目は HTML の <wbr>（z_yu-renewal/yu-wbr.py が BudouX の判定から入れる）。
   Safari は word-break: auto-phrase に未対応なので keep-all にして、Chrome と Safari で同じ所で切る。
   #yu（湯のトップ）だけに効かせる。/yu/menu/ は menu.css で同じことをしている */
#yu main { word-break: keep-all; overflow-wrap: anywhere; }
/* 開き括弧で始まる文節は折り返さない。Safari は keep-all のとき「 や（ の後ろで折り返してしまうため */
.yu-ob { white-space: nowrap; }
#yu main :is(p, li, dd, .ds) { text-wrap: pretty; }
#yu main :is(h2, h3, .yu-lead, .yu-first__title, .yu-reserve__big) { text-wrap: balance; }

/* Instagram の欄: 動画の投稿の印と、動画の本体が取れない投稿の拡大表示（instagram.js の data-video-link="instagram"。2026-11-20 主の指示） */
.t-yu .integration--Instagram .api-image { position: relative; }
.t-yu .integration--Instagram .api-image.is-video::after { content: ""; position: absolute; top: 10px; right: 10px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7)); pointer-events: none; }
.t-yu .media-play { position: relative; display: block; }
.t-yu .media-play .media-img { width: 100%; }
.t-yu .media-play__icon { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(0, 0, 0, .5); pointer-events: none; }
.t-yu .media-play__icon::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.t-yu .media-play__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
