/* ==========================================================
   SHOGUN VILLA 函館 — 予約導線リニューアル 提案デモ
   色は広告クリエイティブとロゴ（鉄紺・古金・煉瓦）に揃える
   ========================================================== */

:root {
  --ink: #141c28;          /* 鉄紺：ヘッダー・料金・予約シート */
  --ink-2: #1d2836;
  --ink-3: #2b3748;
  --fog: #edefec;          /* 函館の海霧：ページの地 */
  --paper: #f8f8f4;
  --sumi: #1a1d22;
  --muted: #5a626b;
  --line: #d2d5d0;
  --gold: #b08a4e;         /* 古金：予約ボタンだけに使う */
  --gold-deep: #7a5c2c;
  --gold-pale: #dcc9a3;
  --brick: #8c3a2a;        /* 煉瓦の蔵：公式予約の帯・確認中の印 */
  --on-ink: #eceae4;
  --on-ink-muted: #a9b0b9;

  --font-display: "Zen Antique", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --space-section: clamp(72px, 9vw, 136px);
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

:lang(zh-Hant) {
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
:lang(ko) {
  --font-display: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", serif;
  --font-body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--fog);
  color: var(--sumi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) { line-break: strict; overflow-wrap: anywhere; font-feature-settings: "palt" 1; }
:lang(ko) { word-break: keep-all; }
@supports (word-break: auto-phrase) {
  :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 共通 ---------- */
.section { padding: var(--space-section) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  font-weight: 500;
}
.eyebrow-light { color: var(--gold-pale); }
.h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
}
.h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-pale); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line-dark:hover { background: var(--ink); color: var(--on-ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--gold); }

.tbd {
  display: inline-block;
  padding: 0 0.7em;
  border: 1px dashed var(--brick);
  border-radius: 2px;
  color: var(--brick);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- 公式予約の帯 ---------- */
.ribbon {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  padding: 6px var(--gutter);
  background: var(--brick);
  color: #f4eee6;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
}
.ribbon p { margin: 0; }
.ribbon-demo { color: var(--gold-pale); }
.ribbon-demo::before { content: "／"; margin-right: 1.5em; color: #f4eee6; opacity: 0.5; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
}
.brand { display: flex; align-items: baseline; gap: 0.5em; text-decoration: none; white-space: nowrap; }
.brand-en { font-family: "Zen Antique", serif; font-size: 19px; letter-spacing: 0.2em; }
.brand-ja { font-family: "Zen Antique", serif; font-size: 15px; letter-spacing: 0.2em; color: var(--gold-pale); }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--on-ink-muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover { color: var(--on-ink); border-color: var(--gold); }
.lang { display: flex; border: 1px solid var(--ink-3); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: var(--on-ink-muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--ink-3); }
.lang-btn[aria-pressed="true"] { background: var(--ink-3); color: var(--on-ink); }
.header-cta { min-height: 42px; padding: 0.5em 1.2em; font-size: 14px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: min(86svh, 820px);
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}
/* 写真は襖が開くように右から差し込み、ゆっくり寄っていく */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); --slide-ms: 6000ms; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 60%;
  visibility: hidden;
}
.hero-img.is-prev { visibility: visible; z-index: 1; }
.hero-img.is-active { visibility: visible; z-index: 2; animation: fusuma-open 1.4s var(--ease) both, slow-zoom 9s linear both; }
.hero-img.is-first { animation: slow-zoom 9s linear both; }
@keyframes fusuma-open { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero.is-paused .hero-img { animation-play-state: paused; }

.hero-meter {
  position: absolute;
  top: 28px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--on-ink);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.hero-meter p { margin: 0; }
.hero-count { font-variant-numeric: tabular-nums; opacity: 0.8; }
.hero-caption { min-width: 5.5em; }
.hero-bars { display: flex; gap: 4px; width: 132px; }
.hero-bars span { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgba(236, 234, 228, 0.3); }
.hero-bars span::after { content: ""; position: absolute; inset: 0; background: var(--gold-pale); transform: scaleX(0); transform-origin: left; }
.hero-bars span.is-done::after { transform: scaleX(1); }
.hero-bars span.is-active::after { animation: bar-fill var(--slide-ms, 6000ms) linear forwards; }
.hero.is-paused .hero-bars span.is-active::after { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.hero-toggle {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(236, 234, 228, 0.45);
  border-radius: 50%;
  background: rgba(20, 28, 40, 0.35);
  color: var(--on-ink);
  font-size: 10px;
  cursor: pointer;
}
.hero-toggle:hover { background: rgba(20, 28, 40, 0.6); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(20, 28, 40, 0.78) 0%, rgba(20, 28, 40, 0.25) 38%, rgba(20, 28, 40, 0) 60%),
    linear-gradient(to top, rgba(20, 28, 40, 0.85) 0%, rgba(20, 28, 40, 0) 42%);
}
/* 横書きの見出しは左下に置くので、左側を暗くして読ませる */
html:not([lang="ja"]) .hero-shade {
  background:
    linear-gradient(to right, rgba(20, 28, 40, 0.8) 0%, rgba(20, 28, 40, 0.35) 40%, rgba(20, 28, 40, 0) 62%),
    linear-gradient(to top, rgba(20, 28, 40, 0.85) 0%, rgba(20, 28, 40, 0) 42%);
}
.hero-title {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--on-ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
/* 日本語だけ縦書き。昭和の家に合わせた一点の冒険 */
html[lang="ja"] .hero-title {
  top: clamp(40px, 7vh, 80px);
  right: var(--gutter);
  writing-mode: vertical-rl;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.7rem);
  line-height: 1.75;
  letter-spacing: 0.18em;
}
html:not([lang="ja"]) .hero-title {
  left: var(--gutter);
  bottom: 230px;
  max-width: 18ch;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem);
  line-height: 1.25;
}
.hero-lead {
  position: absolute;
  left: var(--gutter);
  bottom: 136px;
  max-width: 28em;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--on-ink);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.search {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -52px;
  z-index: 2;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: stretch;
  background: var(--paper);
  color: var(--sumi);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(20, 28, 40, 0.28);
}
.search-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search-field:hover { background: #fff; }
.search-label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.search-value { font-size: 16px; font-weight: 500; }
.search-value.is-empty { color: var(--muted); font-weight: 400; }
.search-submit { margin: 10px; padding-inline: 1.8em; }
.search-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 概要の帯 ---------- */
.facts { padding: 104px var(--gutter) 8px; }
.facts-list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-list > div { padding: 18px 8px; text-align: center; }
.facts-list > div + div { border-left: 1px solid var(--line); }
.facts-list dt { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.facts-list dd { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem); letter-spacing: 0.06em; }

/* ---------- この家について ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text p:not(.eyebrow) { color: #33383f; max-width: 34em; }
.about-photos { position: relative; margin: 0; padding-bottom: 56px; }
.about-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-sub {
  position: absolute;
  left: -8%;
  bottom: 0;
  width: 38%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--fog);
  border-radius: var(--radius);
}

/* ---------- 過ごす場所 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(170px, 17vw, 250px);
  gap: 10px;
}
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(20, 28, 40, 0.82), rgba(20, 28, 40, 0));
  color: var(--on-ink);
  font-size: 13px;
  line-height: 1.6;
}
.tile figcaption strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.1em; }
.tile-bedroom { grid-column: 1 / 8; grid-row: span 2; }
.tile-kura { grid-column: 8 / 13; }
.tile-dining { grid-column: 8 / 13; }
.tile-washitsu, .tile-sauna, .tile-bath { grid-column: span 4; }
.tile-bbq { grid-column: 1 / -1; }

.plan {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 72px);
  align-items: center;
}
.plan-figure { margin: 0; padding: 14px; background: #0d0d0d; border-radius: var(--radius); }
.plan-figure figcaption { margin-top: 8px; color: var(--on-ink-muted); font-size: 12px; text-align: right; }
.equip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14px; }
.equip li { position: relative; padding-left: 16px; }
.equip li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; background: var(--gold); }

/* ---------- 料金 ---------- */
.price { background: var(--ink); color: var(--on-ink); }
.price-inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.price-copy p:not(.eyebrow) { color: var(--on-ink-muted); max-width: 26em; }
/* グリッドの子は中身の最小幅に引っ張られないようにする（長い単語で横にはみ出さない） */
.about > *, .plan > *, .price-inner > *, .access > *, .calc-out > * { min-width: 0; }
.calc { padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); }
.calc-label { margin: 0 0 10px; font-size: 13px; color: var(--on-ink-muted); letter-spacing: 0.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px;
  min-height: 44px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-ink);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 18px; padding: 20px 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.calc-k { margin: 0; font-size: 13px; color: var(--on-ink-muted); }
.calc-v { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.calc-v-gold { color: var(--gold-pale); }
.calc-note { font-size: 13px; color: var(--on-ink-muted); line-height: 1.75; }

/* ---------- 予約の流れ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { position: relative; padding-top: 64px; }
.steps li p { color: #3a3f46; font-size: 15px; }
.step-no {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: var(--fog);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px; left: 56px; right: -12px;
  border-top: 1px solid var(--line);
}

/* ---------- ご滞在について ---------- */
.info { padding-top: 0; }
.info-list { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.info-list > div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.info-list dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- アクセス ---------- */
.access { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); }
.access-address { font-weight: 500; }
.routes { margin: 0 0 28px; padding: 0; list-style: none; }
.routes li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.near-list { list-style: none; margin: 0 0 20px; padding: 0; }
.near-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.near-time { color: var(--muted); white-space: nowrap; }
.near-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 22px;
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 44px 20px 0; color: #3a3f46; font-size: 15px; }
.faq-more { margin-top: 24px; font-size: 14px; color: var(--muted); }
.faq-more a { color: var(--gold-deep); font-weight: 700; }

/* ---------- 最後の誘い ---------- */
.final { position: relative; min-height: 520px; display: grid; align-items: center; color: var(--on-ink); isolation: isolate; }
.final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(20, 28, 40, 0.85), rgba(20, 28, 40, 0.2) 70%); }
.final-inner { max-width: 640px; padding: var(--space-section) var(--gutter); }
.final-title { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.4; letter-spacing: 0.08em; }
.final-inner p { margin-bottom: 28px; }

/* ---------- フッター ---------- */
.footer { display: flex; gap: 32px; align-items: center; padding: 48px var(--gutter) 120px; background: var(--paper); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-body p { margin: 0 0 4px; }
.footer-body .footer-links { display: flex; gap: 18px; margin-top: 10px; }
.footer-links a { color: var(--sumi); }
.footer-body .copy { margin-top: 12px; font-size: 12px; }

/* ---------- 追従バー ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 24px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(20, 28, 40, 0.35);
  transform: translate(-50%, 140%);
  transition: transform 0.45s var(--ease);
}
.dock.is-shown { transform: translate(-50%, 0); }
.dock[hidden] { display: none; }
.dock-price { margin: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.dock-k { font-size: 12px; color: var(--on-ink-muted); }
.dock-v { font-family: var(--font-display); font-size: 1.2rem; }
.dock .btn { min-height: 44px; border-radius: 999px; }

/* ---------- 予約シート ---------- */
.sheet {
  width: min(1100px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--sumi);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(10, 14, 20, 0.62); }
.sheet-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px 14px 28px;
  background: var(--ink);
  color: var(--on-ink);
}
.sheet-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.1em; white-space: nowrap; }
.sheet-steps { display: flex; gap: 6px; margin: 0 auto 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--on-ink-muted); }
.sheet-steps li { display: flex; align-items: center; gap: 6px; }
.sheet-steps li:not(:last-child)::after { content: ""; width: 22px; margin-left: 6px; border-top: 1px solid var(--ink-3); }
.sheet-steps .sn { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink-3); border-radius: 50%; font-size: 12px; }
.sheet-steps li.is-current { color: var(--on-ink); }
.sheet-steps li.is-current .sn { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.sheet-steps li.is-done .sn { border-color: var(--gold-pale); color: var(--gold-pale); }
.sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--on-ink); font-size: 26px; cursor: pointer; }
.sheet-close:hover { background: var(--ink-3); }

.sheet-body { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 340px; min-height: 0; overflow: auto; }
.sheet-body[hidden] { display: none; }
.cal-wrap { padding: 20px 28px 24px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cal-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.cal-arrow:disabled { opacity: 0.3; cursor: default; }
.cal-hint { flex: 1; margin: 0; text-align: center; font-size: 14px; font-weight: 500; color: var(--gold-deep); }
.cal-hint.is-error { color: var(--brick); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month h3 { margin: 4px 0 10px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.08em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { padding-bottom: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.cal-dow.sun { color: var(--brick); }
.cal-dow.sat { color: #2f5a8a; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 3px 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.day:hover:not(:disabled) { border-color: var(--gold); }
.day-price { margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day:disabled { cursor: not-allowed; background: transparent; color: #b4b8b4; }
.day:disabled .day-price { visibility: hidden; }
.day.is-full { background: repeating-linear-gradient(135deg, #eceeea 0 4px, #e3e6e1 4px 8px); color: #9ea39e; text-decoration: line-through; }
.day.is-range { background: var(--gold-pale); border-radius: 0; }
.day.is-start, .day.is-end { background: var(--ink); color: var(--on-ink); }
.day.is-start .day-price, .day.is-end .day-price, .day.is-range .day-price { color: inherit; }
.day.is-checkout-only { background: #fff; color: var(--sumi); text-decoration: none; }
.day-blank { min-height: 50px; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.lg { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 2px; }
.lg-open { background: #fff; }
.lg-full { margin-left: 12px; background: repeating-linear-gradient(135deg, #eceeea 0 3px, #dfe2dd 3px 6px); }

.summary { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--fog); border-left: 1px solid var(--line); }
.guests { display: grid; gap: 8px; }
.stepper { display: grid; grid-template-columns: 1fr 44px 44px 44px; align-items: center; }
.stepper-k { font-size: 15px; font-weight: 500; }
.stepper-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
.stepper-btn:disabled { opacity: 0.3; cursor: default; }
.stepper-v { text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.guests-note { margin: 0; font-size: 12px; color: var(--muted); }
.bill { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.bill-row dt { color: #3a3f46; }
.bill-row dd { margin: 0; font-variant-numeric: tabular-nums; }
.bill-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); align-items: baseline; font-weight: 700; font-size: 15px; }
.bill-total dd { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.bill-person dt, .bill-person dd { color: var(--gold-deep); font-weight: 700; }
.bill-empty { color: var(--muted); font-size: 14px; line-height: 1.7; }
.demo-note { margin: 0; font-size: 12px; color: var(--muted); }
.sheet-foot { display: none; }

.sheet-review { grid-template-columns: 1fr 1fr; }
.ledger { margin: 28px; padding: 24px 28px; background: #fff; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.ledger-k { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.ledger-dates { margin: 6px 0 4px; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); line-height: 1.5; letter-spacing: 0.04em; }
.ledger-meta { margin-bottom: 16px; color: var(--muted); }
.review-side { padding: 28px 32px 28px 8px; }
.review-side .h3 { margin-top: 18px; }
.review-side .h3:first-child { margin-top: 0; }
.review-side p { font-size: 14px; color: #3a3f46; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.review-side .review-ask { margin-top: 16px; font-size: 13px; }
.review-ask a { color: var(--gold-deep); font-weight: 700; }

/* ---------- 表示アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img.is-active, .hero-img.is-first { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .dock, .btn { transition: none; }
}

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 820px) {
  :root { --header-h: 58px; }
  .ribbon { flex-direction: column; gap: 0; font-size: 12px; }
  .ribbon-demo::before { display: none; }
  .site-header { gap: 8px; }
  .brand-en { font-size: 15px; letter-spacing: 0.12em; }
  .brand-ja { font-size: 13px; }
  .header-cta { display: none; }
  .lang-btn { padding: 4px 6px; font-size: 11px; }

  /* 写真の上に見出しを重ね、検索欄は写真の下に置く */
  .hero { display: grid; grid-template-rows: min(70svh, 560px) auto; min-height: 0; padding-bottom: 8px; }
  .hero-slides, .hero-shade, .hero-title, .hero-lead, .hero-meter { grid-area: 1 / 1; position: relative; inset: auto; }
  .hero-slides { height: 100%; z-index: 0; }
  .hero-meter { z-index: 2; align-self: start; justify-self: start; margin: 18px var(--gutter) 0; gap: 10px; font-size: 12px; }
  .hero-bars { width: 72px; }
  html[lang="ja"] .hero-caption { display: none; }
  .hero-shade { z-index: 1; }
  .hero-title, .hero-lead { z-index: 2; }
  html[lang="ja"] .hero-title { top: auto; right: auto; justify-self: end; align-self: start; margin: 28px var(--gutter) 0 0; font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  html:not([lang="ja"]) .hero-title { left: auto; bottom: auto; align-self: end; margin: 0 var(--gutter) 108px; }
  .hero-lead { left: auto; bottom: auto; align-self: end; margin: 0 var(--gutter) 20px; }
  .search { position: relative; left: auto; right: auto; bottom: auto; margin: 16px 12px 0; grid-template-columns: 1fr 1fr; }
  .search-field { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .search-field:nth-child(2) { border-right: 0; }
  .search-field:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .search-submit { grid-column: 1 / -1; margin: 12px; }
  .search-note { padding: 9px 16px; }
  .facts { padding-top: 40px; }

  .facts-list { grid-template-columns: repeat(3, 1fr); }
  .facts-list > div:nth-child(4) { border-left: 0; }
  .facts-list > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }

  .about, .plan, .access { grid-template-columns: 1fr; }
  .about-sub { left: auto; right: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .tile-bedroom, .tile-bbq, .tile-bath { grid-column: 1 / -1; grid-row: span 1; }
  .tile-kura, .tile-dining, .tile-washitsu, .tile-sauna { grid-column: span 1; }
  .equip { grid-template-columns: 1fr; }
  .price-inner { grid-template-columns: 1fr; }
  .calc-v { font-size: 1.6rem; }
  .dock-price { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.3; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .info-list { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }

  .dock {
    left: 0; right: 0; bottom: 0;
    justify-content: space-between;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 18px;
    border-radius: 0;
    transform: translateY(110%);
  }
  .dock.is-shown { transform: none; }
  .dock .btn { border-radius: var(--radius); }

  .sheet { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .sheet-head { flex-wrap: wrap; gap: 8px 12px; padding: 10px 8px 10px 16px; }
  .sheet-title { font-size: 1.1rem; }
  .sheet-steps { order: 3; width: 100%; font-size: 12px; }
  .sheet-close { margin-left: auto; }
  .sheet-body, .sheet-review { grid-template-columns: 1fr; }
  .cal-wrap { padding: 12px 12px 8px; }
  .cal-months { grid-template-columns: 1fr; }
  .summary { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--line); }
  .ledger { margin: 16px; padding: 18px; }
  .review-side { padding: 0 16px 24px; }
  .summary #toReview { display: none; }
  .sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20, 28, 40, 0.08);
  }
  .sheet-foot[hidden] { display: none; }
  .foot-total { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
  .foot-total strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--sumi); }
}
