/* 湯宿 松風庵 — 夜の墨色と行灯の色 */
:root {
  --ink: #0f0d0b;
  --ink2: #1a1713;
  --paper: #f3ece0;
  --paper2: #e8dfcf;
  --mute: #8f8679;
  --line: rgba(243, 236, 224, 0.16);
  --lamp: #e3a650;
  --maple: #b4502f;
  --mincho: "Zen Old Mincho", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.9 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mincho { font-family: var(--mincho); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { margin: 0 0 6px; font: 500 12px/1 var(--sans); letter-spacing: .32em; color: var(--lamp); }
.h2 { margin: 0; font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; line-height: 1.35; letter-spacing: .06em; }
.h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.pre { white-space: pre-line; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--lamp); color: var(--ink); font: 700 15px/1 var(--sans); letter-spacing: .1em; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #f0b866; }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(243, 236, 224, .08); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

/* 進みの線 */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--lamp); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* 上のバー */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 14px clamp(16px, 3vw, 36px);
  background: linear-gradient(rgba(15, 13, 11, .72), rgba(15, 13, 11, 0)); transition: background .3s; }
.bar.solid { background: rgba(15, 13, 11, .94); border-bottom: 1px solid var(--line); }
.bar__name { font-size: 18px; font-weight: 700; letter-spacing: .18em; text-decoration: none; white-space: nowrap; }
.bar__nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; letter-spacing: .1em; }
.bar__nav a { text-decoration: none; opacity: .86; }
.bar__nav a:hover { opacity: 1; color: var(--lamp); }
.bar__cta { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--lamp); color: var(--lamp); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.sound { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--paper); font: 500 13px/1 var(--sans); cursor: pointer; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; height: 4px; background: currentColor; }
.sound.on .bars i { animation: eq .9s infinite ease-in-out alternate; }
.sound.on .bars i:nth-child(2) { animation-delay: .3s; } .sound.on .bars i:nth-child(3) { animation-delay: .6s; }
@keyframes eq { to { height: 12px; } }

/* 映画 */
.film { position: relative; height: 640vh; }
.film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, .55)), linear-gradient(transparent 60%, rgba(0, 0, 0, .55)); }
/* 縦書き: 右から 宿の名 → キャッチ の順に並ぶ */
.hero { position: absolute; top: 50%; right: clamp(24px, 9vw, 140px); transform: translateY(-50%);
  writing-mode: vertical-rl; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero__name { margin: 0 0 0 .5em; font-size: clamp(40px, 6.4vw, 78px); font-weight: 900; letter-spacing: .3em; line-height: 1.1; white-space: nowrap; }
.hero__catch { margin: 0; padding-top: 4.5em; font-size: clamp(16px, 1.8vw, 21px); letter-spacing: .3em; white-space: nowrap; }
.hero__lead { position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(70px, 12vh, 120px); max-width: 26em; margin: 0; font-size: 15px; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; letter-spacing: .4em; opacity: .8; }
.scrollcue::after { content: ""; display: block; width: 1px; height: 36px; margin: 8px auto 0; background: var(--paper); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.chapter { position: absolute; left: clamp(20px, 7vw, 110px); bottom: clamp(80px, 16vh, 150px); max-width: 30em; pointer-events: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }
.chapter.is-right { left: auto; right: clamp(20px, 7vw, 110px); text-align: right; }
.chapter__no { margin: 0; font-size: 12px; letter-spacing: .4em; color: var(--lamp); opacity: 0; transition: opacity .6s; }
.chapter__label { margin: 4px 0 0; font-family: var(--mincho); font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: .2em; line-height: 1.2; }
.chapter__label .ch { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .7s, transform .7s, filter .7s; }
.chapter__line { margin: 10px 0 0; font-family: var(--mincho); font-size: clamp(16px, 1.7vw, 20px); letter-spacing: .14em; opacity: 0; transform: translateY(8px); transition: opacity .8s .35s, transform .8s .35s; }
.chapter.in .chapter__no, .chapter.in .chapter__line { opacity: 1; transform: none; }
.chapter.in .ch { opacity: 1; transform: none; filter: none; }
.chapter.out .ch, .chapter.out .chapter__line, .chapter.out .chapter__no { opacity: 0; transition-duration: .35s; transition-delay: 0s !important; }
.finale { position: absolute; inset: auto 0 clamp(80px, 16vh, 150px) 0; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; pointer-events: none; }
.finale.in { opacity: 1; transform: none; pointer-events: auto; }
.finale__line { margin: 0 0 22px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: .24em; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }

/* 共通の段 */
.sec { padding: clamp(80px, 12vw, 150px) 0 0; }
.sec__head { display: flex; flex-direction: column; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; }
.news li + li { border-top: 1px solid var(--line); }
.news button { display: grid; grid-template-columns: 7.5em 7.5em 1fr auto; gap: 16px; align-items: center; width: 100%; padding: 20px 4px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.news button:hover .news__title { color: var(--lamp); }
.news__date { color: var(--mute); font-size: 14px; letter-spacing: .06em; }
.news__tag { justify-self: start; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .1em; }
.news__tag--season { border-color: rgba(180, 80, 47, .7); color: #e08c6e; }
.news__title { font-family: var(--mincho); font-size: 17px; font-weight: 700; letter-spacing: .06em; transition: color .2s; }
.news__icons { color: var(--mute); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.news__empty { padding: 20px 4px; color: var(--mute); }

/* お部屋 */
.rooms { display: grid; gap: clamp(48px, 8vw, 96px); }
.room { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.room:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.room:nth-child(even) .room__img { order: 2; }
.room__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room__cap { margin: 0 0 8px; color: var(--lamp); font-size: 13px; letter-spacing: .14em; }
.room p { margin: 0; }

/* 温泉・お料理 */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.pair__item { margin: 0; }
.pair__item:nth-child(2) { margin-top: clamp(0px, 8vw, 96px); }
.pair__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.rich p { margin: 0 0 .8em; }
.rich img { border-radius: 4px; margin: 12px 0; }

/* 料金 */
.plan { margin-top: clamp(90px, 13vw, 160px); padding: clamp(60px, 9vw, 110px) 0; background: var(--paper); color: var(--ink); }
.plan .eyebrow { color: var(--maple); }
.plan__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; }
.plan__num { margin: 0; font-size: clamp(64px, 11vw, 132px); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.plan__num small { margin-left: 6px; font-size: .24em; letter-spacing: .1em; }
.plan__note { margin: 14px 0 22px; color: #5c554b; }
.plan__rows { display: flex; gap: 32px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(15, 13, 11, .18); }
.plan__rows dt { font-size: 12px; letter-spacing: .14em; color: #7a7266; }
.plan__rows dd { margin: 0; font-family: var(--mincho); font-size: 26px; font-weight: 700; }

/* アクセス */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.access__rows { margin: 0; }
.access__rows div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.access__rows dt { font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.access__rows dd { margin: 4px 0 0; }
.tel { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: .06em; }
.access__more { display: grid; gap: 20px; align-content: start; }
.movie { aspect-ratio: 16 / 9; }
.movie iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }
[hidden] { display: none !important; }

/* フッター */
.foot { padding: clamp(90px, 12vw, 140px) 0 48px; text-align: center; }
.foot__name { margin: 0 0 10px; font-size: 22px; letter-spacing: .3em; }
.foot__note { margin: 0; color: var(--mute); font-size: 13px; }

/* お知らせの中身 */
.sheet { width: min(720px, 100% - 32px); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--ink2); color: var(--paper); }
.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet__in { position: relative; padding: clamp(24px, 4vw, 40px); }
.sheet__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--paper); font-size: 26px; cursor: pointer; }
.sheet__meta { margin: 0 0 6px; color: var(--mute); font-size: 13px; }
.sheet__body img { width: 100%; border-radius: 4px; margin: 4px 0 18px; }
.sheet__body p { margin: 0 0 .8em; }
.sheet__body .btn, .sheet__body .movie { margin-top: 14px; }

/* スマホ */
@media (max-width: 860px) {
  .bar { gap: 10px; }
  .bar__nav { display: none; }
  .sound { margin-left: auto; }
  .bar__name { font-size: 16px; }
  .hero { top: 42%; right: 50%; transform: translate(50%, -50%); }
  .hero__lead { left: 16px; right: 16px; bottom: 96px; font-size: 14px; }
  .chapter, .chapter.is-right { left: 16px; right: 16px; text-align: left; bottom: 90px; }
  .news button { grid-template-columns: auto auto 1fr; gap: 6px 12px; }
  .news__title { grid-column: 1 / -1; }
  .news__icons { grid-column: 1 / -1; }
  .room, .room:nth-child(even) { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__img { order: 0; }
  .pair, .plan__in, .access { grid-template-columns: 1fr; }
  .pair__item:nth-child(2) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
