/* 独楽 koma — 縦組み・夜の写真主役（2026-11-03 作り直し）
   型どおりの装飾（中央揃え、英字ラベル＋見出し＋飾り罫、アイコン付きカード、格子柄、
   字間の空けすぎ）を使わない。左寄せ・余白・写真で見せる。
   方針の正本は docs/design-brief.md。大胆にするのはファーストビューのキャッチと「三つの札」だけ。
   極太の明朝（Zen Old Mincho Black）はロゴ・キャッチ・縦書きの引用に限り、見出しは明朝 W6、本文はゴシック。
   罫線は料金表だけに使い、区切りは余白と背景の濃淡でつける。
   夜の店の世界観を優先し、OSのライト/ダーク設定にかかわらず暗い配色で表示する。 */
:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --ink: #ece6da;
  --ink-2: #bdb4a5;
  --mute: #857d70;
  --line: #2d2925;
  --shu: #b44a34;          /* 朱。差し色はこれ一色だけ */
  --shu-hi: #c95a42;
  --err: #ef8d7a;
  --ok: #a9cfa4;
  --display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  /* 書体（11-06）: 和風に寄せるため、見出し・本文とも古い仮名の形を残す「しっぽり明朝 B1」。
     --brand はロゴ・札など日本語のまま見せる文字。中国語ページは下の html[lang^="zh"] で差し替える */
  --brand: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --heading: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --body: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --paper: #ece4d4;        /* 札の表 */
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --bar-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-feature-settings: "palt"; letter-spacing: 0.02em; line-height: 2;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1 { font-family: var(--display); font-weight: 900; }
h2, h3 { font-family: var(--heading); font-weight: 800; }
/* 中国語（簡体字）: 日本語の明朝には簡体字が無いので、宋体系にそろえる。ロゴと札の字は日本語のまま */
html[lang^="zh"] { --display: "Noto Serif SC", "Songti SC", serif; --heading: "Noto Serif SC", "Songti SC", serif; --body: "Noto Serif SC", "Songti SC", serif; }
/* 英語: 欧文は行間を詰め、字間は空けない */
html[lang="en"] body { line-height: 1.75; letter-spacing: 0; }
html[lang="en"] .sec p { font-size: 16px; line-height: 1.8; }
html[lang="en"] .hero-side { line-height: 1.7; }

/* 言語の切り替え */
.lang { display: flex; gap: 2px; font-size: 12px; white-space: nowrap; }
.lang a { padding: 6px 7px; color: var(--mute); text-decoration: none; }
.lang a:hover, .lang a[aria-current="page"] { color: var(--ink); }
.lang a[aria-current="page"] { border-bottom: 1px solid var(--shu); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* 写真: AI生成の艶を抑える（彩度を落とし、わずかにセピア、粒子を重ねる） */
.photo { position: relative; overflow: hidden; }
.photo img { filter: saturate(.72) contrast(1.06) brightness(.86) sepia(.12); }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cap { font-size: 12px; color: var(--mute); letter-spacing: 0.02em; }
figcaption.cap { margin-top: 10px; }

/* ボタンと文字リンク */
.btn { display: inline-flex; align-items: center; gap: 1em; min-height: 52px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--shu); color: #fff; font: inherit; font-size: 15px; letter-spacing: 0.06em; text-decoration: none; transition: background .2s; }
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover { background: var(--shu-hi); }
.btn:hover::after { transform: translateX(4px); }
.btn[disabled] { opacity: .5; cursor: wait; }
.txt { display: inline-flex; gap: 1em; font-size: 15px; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--shu); }
.txt::after { content: "→"; transition: transform .2s; }
.txt:hover::after { transform: translateX(4px); }

/* ---- ヘッダー ---- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(11,10,9,.92), rgba(11,10,9,.7)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.logo { font-family: var(--brand); font-weight: 900; font-size: 24px; text-decoration: none; letter-spacing: 0; margin-right: auto; white-space: nowrap; }
.logo small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--mute); margin-left: 12px; letter-spacing: 0.1em; }
#gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
#gnav a { font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 6px 0; white-space: nowrap; }
#gnav a:hover, #gnav a[aria-current="true"] { color: var(--ink); }
#gnav a[aria-current="true"] { border-bottom: 1px solid var(--shu); }
.bar-tel { font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.bar-cta { font-size: 13px; text-decoration: none; background: var(--shu); color: #fff; padding: 9px 16px; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.ref-badge { display: none; position: absolute; top: calc(var(--bar-h) + 8px); right: var(--pad); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); background: var(--bg); padding: 2px 12px; }
.ref-badge.on { display: block; }

/* ---- ファーストビュー ---- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: var(--pad) auto 1fr auto var(--pad); grid-template-rows: var(--bar-h) 1fr auto clamp(40px, 7vh, 72px); }
.hero-ph { position: absolute; inset: 0 0 0 16%; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.hero-ph::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.55) 20%, rgba(11,10,9,0) 48%),
              linear-gradient(0deg, rgba(11,10,9,.9) 0%, rgba(11,10,9,0) 42%); }
.hero-catch { position: relative; z-index: 2; grid-column: 2; grid-row: 2 / 4; align-self: start; margin: 48px 0 0;
  writing-mode: vertical-rl; font-size: clamp(44px, 5vw, 72px); line-height: 1.15; letter-spacing: -0.02em; }
.hero-catch { font-family: var(--display); font-weight: 900; }
.hero-catch span { display: block; }
/* 英語ページ: 縦書きのキャッチは日本語のまま飾りとして残し、英文の見出しを横に添える */
.hero-en { margin: 0 0 14px; font-family: var(--heading); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--ink); }
.hero-catch span + span { margin-top: 1.2em; }
.hero-side { position: relative; z-index: 2; grid-column: 3; grid-row: 3; align-self: end; max-width: 380px; margin-left: clamp(24px, 6vw, 96px);
  font-size: 15px; line-height: 2.1; color: #d9d1c3; }
.hero-side p { margin: 0; }
.hero-side .hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.hero-links { position: relative; z-index: 2; grid-column: 4; grid-row: 3; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-cap { position: absolute; z-index: 2; right: var(--pad); bottom: 12px; margin: 0; }

/* ---- セクション共通 ---- */
.sec { padding: clamp(88px, 12vw, 150px) var(--pad); }
/* 区切りは背景の濃淡で: 地 → 濃 → 地 … と交互に */
.asobi, #rooms, .reserve, .access { background: var(--bg-2); }
.sec h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6; letter-spacing: 0.02em; margin: 0 0 32px; }
.sec p { color: var(--ink-2); font-size: 15px; line-height: 2.2; margin: 0 0 1.4em; }

/* 文章と写真の二段組 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-text { max-width: 560px; }
.split-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split.rev .split-ph img { aspect-ratio: 5 / 4; }
/* 実際の個室の写真（店舗提供）。表の下に縦長2枚を並べる */
.rooms-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.rooms-ph figure { margin: 0; }
.rooms-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.rooms-ph .cap { grid-column: 1 / -1; margin: 0; }
.steps { list-style: none; margin: 36px 0 40px; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 2.6em 1fr; font-size: 16px; line-height: 1.8; }
.steps b { font-family: var(--heading); font-weight: 800; color: var(--shu); }
.steps small { display: block; font-size: 13px; color: var(--mute); margin-top: 4px; }

/* 独楽の愉しみ: 写真の下端に三枚の札を重ね、画面に入ったら一枚ずつめくる（app.js が .down を外す） */
.asobi h2 { max-width: 560px; }
.wide { margin: 16px 0 0; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; }
.fuda { list-style: none; margin: -140px 0 0; padding: 0; position: relative; z-index: 1; perspective: 1600px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(20px, 3vw, 44px); }
.card { aspect-ratio: 5 / 7; cursor: default; }
.card.down { cursor: pointer; }
.card-in { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.2, .75, .2, 1); }
.card.down .card-in { transform: rotateY(180deg); }
.card:nth-child(2) .card-in { transition-delay: .16s; }
.card:nth-child(3) .card-in { transition-delay: .32s; }
.card-face { position: absolute; inset: 0; border-radius: 8px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4); }
.card-front { background: var(--paper); color: #1d1814; padding: 36px 26px; display: flex; flex-direction: column; justify-content: center; }
.card-front h3 { font-size: 22px; line-height: 1.5; margin: 0 0 14px; }
.sec .card-front p { color: #4d453c; font-size: 14px; line-height: 2; margin: 0; }
.card-idx { position: absolute; top: 14px; left: 16px; font-family: var(--brand); font-weight: 900; font-size: 18px; line-height: 1; color: var(--shu); }
.card-idx-b { top: auto; left: auto; bottom: 14px; right: 16px; transform: rotate(180deg); }
.card-back { transform: rotateY(180deg); display: grid; place-items: center; background-color: var(--shu);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 1px, transparent 1px 11px),
                    repeating-linear-gradient(-45deg, rgba(0,0,0,.16) 0 1px, transparent 1px 11px);
  box-shadow: inset 0 0 0 10px var(--shu), inset 0 0 0 11px rgba(243,233,220,.55), 0 28px 60px rgba(0,0,0,.6); }
.card-back span { writing-mode: vertical-rl; font-family: var(--brand); font-weight: 900; font-size: 34px; letter-spacing: .1em;
  color: #f3e9dc; background: var(--shu); padding: 14px 8px; }
.fuda-cap { margin: 28px 0 0; text-align: right; }

/* 旧サイトの言葉（縦書きの引用） */
.quote { display: grid; grid-template-columns: auto minmax(0, 300px) minmax(0, 520px); gap: clamp(40px, 6vw, 96px); justify-content: center; align-items: start; }
.sec .quote-tate { font-family: var(--display); font-weight: 900; writing-mode: vertical-rl; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.4; letter-spacing: 0; color: var(--ink); margin: 0; }
.quote-ph img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.quote-text { padding-top: 8px; }

/* 表（料金・お部屋・アクセス）。罫線を引くのは料金表だけ */
.table { margin: 32px 0 28px; }
.table div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 10px 0; font-size: 15px; line-height: 1.9; }
.system .table { border-top: 1px solid var(--line); }
.system .table div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--ink-2); }
.table dd { margin: 0; }

/* 四 料金 */
.system-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.system .table { margin-top: 6px; }
.sec .price-main { margin: 8px 0 6px; color: var(--ink); font-size: 16px; }
.price-main strong { font-family: var(--heading); font-weight: 800; font-size: clamp(48px, 6vw, 72px); margin: 0 6px; letter-spacing: 0; font-feature-settings: "lnum"; }
.system .sub { font-size: 13px; color: var(--mute); }

/* 五 予約 */
.reserve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.reserve-head { position: sticky; top: calc(var(--bar-h) + 32px); max-width: 480px; }
.reserve .tel a { color: var(--ink); }
form { max-width: 620px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.req, .opt { font-size: 11px; margin-left: 10px; letter-spacing: 0.02em; }
.req { color: var(--shu-hi); }
.opt { color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 16px/1.6 var(--gothic); color: var(--ink);
  background: var(--bg); border: 1px solid #3b3631; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); }
.field input::placeholder, .field textarea::placeholder { color: #6e675d; }
input::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.field .err { font-size: 13px; color: var(--err); margin-top: 6px; }
.field .err:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check label { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.9; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 4px 0 0; accent-color: var(--shu); -webkit-appearance: auto; appearance: auto; }
.submit { margin-top: 32px; }
.status { margin-top: 18px; font-size: 14px; }
.status:empty { display: none; }
.status.ok { color: var(--ok); }
.status.ng { color: var(--err); }
.status.demo { color: var(--ink-2); border-left: 2px solid var(--shu); padding-left: 12px; }

/* よくある質問 */
.faq { max-width: 860px; display: grid; gap: 6px; }
.faq details { background: var(--bg-2); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 16px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 20px; color: var(--mute); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 24px; max-width: 720px; }

/* アクセス */
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.access .table { margin-top: 6px; }
.access .table div { grid-template-columns: 7em 1fr; }
.tel-big { display: inline-block; font-weight: 500; font-size: clamp(28px, 3vw, 38px); text-decoration: none; letter-spacing: 0; font-feature-settings: "lnum"; }

/* フッター */
.foot { padding: 64px var(--pad) 48px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.foot-logo { margin: 0; font-family: var(--brand); font-weight: 900; font-size: 22px; }
.foot-logo small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--mute); margin-left: 12px; }
.foot-small { margin: 0; font-size: 12px; color: var(--mute); order: 3; }
/* 店の基本情報（名刺の住所欄と同じ並び）。ロゴの下に全幅で置く */
.foot-info { order: 2; flex: 1 1 100%; margin: 0; font-style: normal; font-size: 13px; line-height: 1.9; color: var(--mute); }
.foot-info a { color: inherit; }

.dock { display: none; }

/* ---- タブレット・スマホ ---- */
@media (max-width: 1280px) {
  #gnav { position: fixed; inset: var(--bar-h) 0 auto; background: rgba(11,10,9,.97); border-bottom: 1px solid var(--line); display: none; }
  #gnav.open { display: block; }
  #gnav ul { flex-direction: column; gap: 0; padding: 4px var(--pad) 16px; }
  #gnav a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  #gnav a[aria-current="true"] { border-bottom-color: var(--line); color: var(--ink); }
  .menu-btn { display: inline-block; }
  .bar { gap: 14px; }
}
@media (max-width: 860px) {
  .split, .system-grid, .access-grid, .reserve { grid-template-columns: 1fr; }
  .split.rev .split-ph { order: 2; }
  .reserve-head { position: static; }
  .fuda { margin-top: -90px; gap: 16px; }
  .card-front { padding: 30px 20px; }
  .card-front h3 { font-size: 19px; }
  .sec .card-front p { font-size: 13px; line-height: 1.9; }
  /* 縦書きの引用と写真を横に並べ、文章はその下に */
  .quote { grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; gap: 32px 28px; }
  .quote-ph { max-width: 340px; justify-self: end; width: 100%; }
  .quote-text { grid-column: 1 / -1; padding-top: 0; }
  .wide img { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  :root { --bar-h: 60px; }
  .bar-tel, .bar-cta { display: none; }
  .logo { font-size: 22px; }
  .lang a { padding: 6px 5px; }
  /* スマホのファーストビュー: 写真を全面に敷き、縦書きのキャッチを左上、文字と導線は下に */
  .hero { grid-template-columns: var(--pad) 1fr var(--pad); grid-template-rows: var(--bar-h) 1fr auto auto 64px; min-height: 100svh; }
  .hero-ph { inset: 0; }
  .hero-ph img { object-position: 30% 30%; }
  .hero-ph::before { background: linear-gradient(90deg, rgba(11,10,9,.7) 0%, rgba(11,10,9,0) 45%),
                                 linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,.85) 38%, rgba(11,10,9,0) 62%); }
  .hero-catch { grid-column: 2; grid-row: 2; margin-top: 28px; font-size: 44px; }
  .hero-side { grid-column: 2; grid-row: 3; margin: 0 0 24px; max-width: none; font-size: 14px; }
  .hero-links { grid-column: 2; grid-row: 4; align-items: stretch; }
  .hero-links .btn { justify-content: center; }
  .hero-links .txt { align-self: flex-start; }
  .hero-cap { bottom: 16px; }
  .table div, .access .table div { grid-template-columns: 1fr; gap: 2px; }
  .table dt { font-size: 13px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 2.4em 1fr; }
  /* スマホ: 札は横に並べて指でめくる（横スクロールはこの列の中だけ） */
  .fuda { margin: -56px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 28px; grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: 76%; justify-content: start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fuda::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
  .card:nth-child(n) .card-in { transition-delay: 0s; }
  .card-front { padding: 32px 22px; }
  .card-front h3 { font-size: 21px; }
  .sec .card-front p { font-size: 14px; line-height: 2; }
  .fuda-cap { margin-top: 4px; }
  .dock { display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s; }
  .dock.on { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 56px; text-decoration: none; font-size: 14px; color: var(--ink); }
  .dock .dock-cta { background: var(--shu); color: #fff; }
  .foot { padding-bottom: 100px; }
}

/* 幅の狭いスマホ: ロゴ・言語切替・メニューを一列に収めるため、ロゴ横の「赤坂 料亭」を隠す */
@media (max-width: 420px) {
  .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
