/* =========================================================
   Luxury Aesthetic Dental — Single Page (Peraichi)
   ベージュ × ゴールド / 明朝 / 上品・高級感
   Design width 1920px, content 1440px
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* @color 背景（クリーム） */
  --c-bg: #faf6ee;
  --c-bg-rgb: 250, 246, 238;

  /* @color セクション背景（ベージュ） */
  --c-bg-alt: #f1e7d6;
  --c-bg-alt-rgb: 241, 231, 214;

  /* @color 見出し色（エスプレッソ） */
  --c-ink: #3b3228;
  --c-ink-rgb: 59, 50, 40;

  /* @color 本文テキスト（トープ） */
  --c-text: #5e554a;
  --c-text-rgb: 94, 85, 74;

  /* @color アクセント（アンティークゴールド） */
  --c-primary: #b08d54;
  --c-primary-rgb: 176, 141, 84;

  /* @color ゴールド（ハイライト） */
  --c-gold-hi: #d8bd86;
  /* @color ゴールド（シャドウ） */
  --c-gold-deep: #8d6f3e;

  /* @color ボーダー */
  --c-border: #e6dcc8;

  /* @color フッター背景 */
  --c-footer-bg: #2c261d;

  /* 派生・内部用（ユーザーには露出しない） */
  --c-bg-deep: rgba(var(--c-primary-rgb), 0.16);
  --c-line-on-dark: rgba(255, 255, 255, 0.12);
  --c-line-green: #06c755;   /* LINE ブランド色（固定） */

  /* derived */
  --c-ink-soft: rgba(var(--c-ink-rgb), 0.72);
  --c-ink-mute: rgba(var(--c-ink-rgb), 0.5);
  --c-text-muted: rgba(var(--c-text-rgb), 0.78);
  --c-text-mute: rgba(var(--c-text-rgb), 0.52);
  --c-primary-soft: rgba(var(--c-primary-rgb), 0.16);
  --c-primary-line: rgba(var(--c-primary-rgb), 0.42);
  --c-line: rgba(var(--c-ink-rgb), 0.12);

  /* metallic gold gradient (for thin rules & shimmer text) */
  --grad-gold: linear-gradient(100deg, var(--c-gold-deep) 0%, var(--c-primary) 30%, var(--c-gold-hi) 55%, var(--c-primary) 78%, var(--c-gold-deep) 100%);

  /* widths */
  --w-full: 1920px;
  --w-content: 1440px;
  --w-narrow: 1080px;
  --w-text: 820px;
  --pad-x: 240px;
  --pad-x-md: 64px;
  --pad-x-sm: 24px;

  /* spacing */
  --space-section: 160px;
  --space-section-md: 104px;
  --space-section-sm: 72px;

  /* type */
  --ff-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --ff-en: "Cormorant Garamond", "Shippori Mincho", serif;

  --h-header: 96px;
  --h-header-sm: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.04em;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease, color .3s ease; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0;
}
p { margin: 0; }

/* ---------- Containers ---------- */
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--pad-x-sm); }
.container-narrow { width: 100%; max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--pad-x-sm); }
.container-text { width: 100%; max-width: var(--w-text); margin: 0 auto; padding: 0 var(--pad-x-sm); }

/* ---------- Gold helpers ---------- */
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-rule { height: 1px; border: 0; background: var(--grad-gold); }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--c-primary);
}
.eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--grad-gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 40px; height: 1px;
  background: var(--grad-gold);
}

.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 72px; }
.section-head h2 {
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.section-head h2 .en {
  display: block;
  font-family: var(--ff-en);
  font-size: 0.42em;
  letter-spacing: 0.32em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 500;
}
.section-head .lead { color: var(--c-text-muted); max-width: var(--w-text); line-height: 2.1; font-size: 16px; }
.section-head.center { text-align: center; align-items: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 62px;
  padding: 0 40px;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  border-radius: 0;
  transition: background .35s ease, color .35s ease, border-color .35s ease, opacity .35s ease;
}
.btn:hover { background: transparent; color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--gold {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  position: relative; overflow: hidden;
}
.btn--gold::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-gold);
  opacity: 0; transition: opacity .4s ease;
}
.btn--gold span { position: relative; z-index: 1; }
.btn--gold:hover { color: #fff; }
.btn--gold:hover::before { opacity: 1; }
.btn--block { width: 100%; }
.btn--lg { height: 70px; padding: 0 48px; font-size: 17px; }
.btn .arrow { display: inline-block; width: 24px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--h-header);
  background: rgba(var(--c-bg-rgb), 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center;
  transition: height .4s ease, background .4s ease, border-color .4s ease;
}
.site-header.is-scrolled { height: 74px; background: rgba(var(--c-bg-rgb), 0.97); }
.header-inner {
  width: 100%; max-width: var(--w-full); margin: 0 auto;
  padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 16px; }
.site-logo .logo-mark {
  width: 46px; height: 46px; border: 1px solid var(--c-primary); border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; font-family: var(--ff-en);
  color: var(--c-primary); flex-shrink: 0; letter-spacing: 0.02em;
}
.site-logo .logo-en { display: block; font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.36em; color: var(--c-primary); text-transform: uppercase; }
.site-logo .logo-jp { display: block; font-family: var(--ff-serif); font-size: 19px; letter-spacing: 0.16em; color: var(--c-ink); margin-top: 2px; }

.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-tel { display: none; align-items: center; gap: 12px; color: var(--c-ink); }
.header-tel .num { font-family: var(--ff-en); font-size: 25px; letter-spacing: 0.04em; font-weight: 500; line-height: 1; white-space: nowrap; }
.header-tel .lbl { font-size: 10px; letter-spacing: 0.2em; color: var(--c-ink-mute); display: block; margin-bottom: 3px; }
.header-cta { display: none; }

.hamburger {
  width: 48px; height: 48px; border: 1px solid var(--c-primary-line); background: transparent;
  display: grid; place-items: center; padding: 0;
}
.hamburger span { display: block; width: 20px; height: 1px; background: var(--c-ink); position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--c-ink);
  transition: transform .3s ease, top .3s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.is-menu-open .hamburger span { background: transparent; }
.is-menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
.is-menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--c-bg);
  padding: calc(var(--h-header-sm) + 40px) 32px 64px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease; overflow-y: auto;
}
.is-menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  font-family: var(--ff-serif); font-size: 19px; letter-spacing: 0.12em;
  color: var(--c-ink); border-bottom: 1px solid var(--c-line);
}
.mobile-menu nav a .en { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.28em; color: var(--c-primary); text-transform: uppercase; }
.mobile-menu .mm-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* =========================================================
   Floating CTA / Side reserve
   ========================================================= */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--c-bg); border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}
.floating-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 64px; font-family: var(--ff-serif); font-size: 13px; letter-spacing: 0.1em; color: #fff; min-width: 0;
}
.floating-cta .fc-tel { background: var(--c-ink); }
.floating-cta .fc-line { background: var(--c-line-green); }
.floating-cta .fc-reserve { background: var(--c-primary); }
.floating-cta a .ico { font-size: 16px; }

.side-reserve {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 70;
  writing-mode: vertical-rl; text-orientation: mixed; background: var(--c-ink); color: #fff;
  padding: 30px 16px; font-family: var(--ff-serif); letter-spacing: 0.34em; font-size: 15px;
  display: none; transition: background .3s ease;
}
.side-reserve::before { content: ""; position: absolute; inset: 0; background: var(--grad-gold); opacity: 0; transition: opacity .4s ease; z-index: 0; }
.side-reserve span { position: relative; z-index: 1; }
.side-reserve:hover::before { opacity: 1; }
.side-reserve .ico { display: grid; place-items: center; margin: 0 auto 14px; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; writing-mode: horizontal-tb; position: relative; z-index: 1; }
.side-reserve .ico svg { width: 12px; height: 12px; display: block; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; padding-top: var(--h-header);
  background: var(--c-bg); overflow: hidden;
}
.hero-inner {
  position: relative; width: 100%; max-width: var(--w-full); margin: 0 auto;
  min-height: calc(100vh - var(--h-header));
  display: grid; grid-template-columns: 1fr; align-items: stretch;
}
.hero-text {
  padding: 56px var(--pad-x-sm) 72px;
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.4em;
  color: var(--c-primary); display: flex; align-items: center; gap: 16px; text-transform: uppercase;
}
.hero-eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--grad-gold); }
.hero-text h1 {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 76px);
  line-height: 1.45; letter-spacing: 0.1em; color: var(--c-ink);
}
.hero-text h1 em {
  font-style: normal;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 16px; line-height: 2.2; color: var(--c-text-muted); max-width: 540px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 4px; padding-top: 28px;
  border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-ink-soft); letter-spacing: 0.1em;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-serif); }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--c-primary); border-radius: 50%; transform: rotate(45deg); }

.hero-visual { position: relative; min-height: 52vh; overflow: hidden; }
.hero-visual .ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 52vh; aspect-ratio: auto; }
/* hero image reveal: gentle scale + fade (robust everywhere) */
.hero-ph.reveal { opacity: 0; transform: scale(1.05); transition: opacity 1.3s ease, transform 1.4s cubic-bezier(.16,.84,.44,1); }
.hero-ph.reveal.is-in { opacity: 1; transform: scale(1); }
.hero-vert {
  position: absolute; left: 36px; top: 50%; transform: translateY(-50%); z-index: 3;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--ff-serif); font-size: 15px; letter-spacing: 0.5em; color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4); display: none;
}

/* =========================================================
   Sections base
   ========================================================= */
.section { padding: var(--space-section-sm) 0; position: relative; }
.section.alt { background: var(--c-bg-alt); }
.section.dark { background: var(--c-footer-bg); color: rgba(255,255,255,0.82); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead { color: rgba(255,255,255,0.72); }
.section.dark .eyebrow { color: var(--c-gold-hi); }

/* decorative large EN watermark */
.bg-word {
  position: absolute; font-family: var(--ff-en); font-weight: 500;
  font-size: clamp(120px, 18vw, 320px); line-height: 1; letter-spacing: 0.02em;
  color: rgba(var(--c-primary-rgb), 0.06); pointer-events: none; user-select: none; z-index: 0;
  text-transform: uppercase;
}

/* =========================================================
   Placeholders
   ========================================================= */
.ph {
  width: 100%; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(141,111,62,0.05) 0 1px, transparent 1px 12px),
    linear-gradient(155deg, #efe6d3 0%, #e2d2b4 55%, #d3bf99 100%);
  display: grid; place-items: center;
  color: rgba(141,111,62,0.62); font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.36em;
  position: relative; overflow: hidden; text-transform: uppercase;
}
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,0.45); pointer-events: none; }
.ph .ph-ico { width: 30px; height: 30px; margin-bottom: 12px; opacity: 0.55; }
.ph .ph-lbl { position: relative; z-index: 1; }
.ph[data-ratio="16/9"] { aspect-ratio: 16/9; }
.ph[data-ratio="3/4"]  { aspect-ratio: 3/4; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1/1; }
.ph[data-ratio="3/2"]  { aspect-ratio: 3/2; }
.ph[data-ratio="5/7"]  { aspect-ratio: 5/7; }
.ph[data-ratio="4/5"]  { aspect-ratio: 4/5; }
.ph.ph--cool { background: repeating-linear-gradient(135deg, rgba(141,111,62,0.04) 0 1px, transparent 1px 12px), linear-gradient(155deg, #ece4d6 0%, #d8cbb2 100%); }
.ph.ph--deep { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px), linear-gradient(155deg, #4a4234 0%, #2e2820 100%); color: rgba(216,189,134,0.7); }
.ph.ph--soft { background: repeating-linear-gradient(135deg, rgba(141,111,62,0.03) 0 1px, transparent 1px 12px), linear-gradient(155deg, #f5efe2 0%, #e9ddc6 100%); }

/* ---------- Image set (CMS swaps .ph -> .editable-img) ---------- */
.editable-img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.editable-img[data-ratio="16/9"] { aspect-ratio: 16/9; }
.editable-img[data-ratio="3/4"]  { aspect-ratio: 3/4; }
.editable-img[data-ratio="1/1"]  { aspect-ratio: 1/1; }
.editable-img[data-ratio="3/2"]  { aspect-ratio: 3/2; }
.editable-img[data-ratio="5/7"]  { aspect-ratio: 5/7; }
.editable-img[data-ratio="4/5"]  { aspect-ratio: 4/5; }
/* section-specific parity with .ph */
.hero-visual .editable-img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 52vh; aspect-ratio: auto; object-fit: cover; }
.hero-ph.editable-img { transform: none; }
.case-ba .editable-img { aspect-ratio: 1/1; }
.gallery .g-item .editable-img { object-fit: cover; }
.access-map .editable-img { height: 100%; min-height: 320px; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.16,.84,.44,1); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Concept / Greeting (split)
   ========================================================= */
.split { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: center; }
.split .split-text { display: flex; flex-direction: column; gap: 26px; }
.split .split-text h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.65; letter-spacing: 0.1em; }
.split .split-text h2 em { font-style: normal; color: var(--c-primary); }
.split .split-text p { color: var(--c-text-muted); font-size: 16px; line-height: 2.3; }
.split .split-photo { position: relative; }
.split .split-photo .ph { aspect-ratio: 5/7; }
.split-photo .photo-cap {
  position: absolute; bottom: -22px; left: -22px; background: var(--c-bg);
  border: 1px solid var(--c-primary-line); padding: 18px 26px;
  font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.3em; color: var(--c-primary);
}
.sign { display: flex; align-items: flex-end; gap: 22px; margin-top: 12px; }
.sign .label { font-size: 12px; letter-spacing: 0.22em; color: var(--c-ink-mute); }
.sign .name { font-family: var(--ff-serif); font-size: 26px; letter-spacing: 0.16em; color: var(--c-ink); }
.sign .name small { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--c-text-mute); margin-top: 4px; font-family: var(--ff-sans); }

/* =========================================================
   Reasons / Features
   ========================================================= */
.reasons-grid { display: grid; gap: 1px; background: var(--c-border); grid-template-columns: 1fr; border: 1px solid var(--c-border); counter-reset: reason; }
.reason {
  background: var(--c-bg); padding: 48px 40px; display: flex; flex-direction: column; gap: 18px;
  counter-increment: reason;
}
.reason .r-num { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.3em; color: var(--c-primary); }
.reason .r-num::before { content: counter(reason, decimal-leading-zero); }
.reason .r-ico { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--c-primary-line); border-radius: 50%; margin-bottom: 4px; }
.reason .r-ico svg { width: 28px; height: 28px; stroke: var(--c-primary); fill: none; stroke-width: 1.2; }
.reason h3 { font-size: 22px; letter-spacing: 0.08em; line-height: 1.5; }
.reason p { font-size: 15px; line-height: 2.05; color: var(--c-text-muted); }

/* =========================================================
   Treatment menu list
   ========================================================= */
.menu-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--c-primary-line); counter-reset: menu; }
.menu-item {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 40px 0; border-bottom: 1px solid var(--c-line); position: relative;
  counter-increment: menu;
}
.menu-item .m-num { font-family: var(--ff-en); color: var(--c-primary); font-size: 14px; letter-spacing: 0.3em; }
.menu-item .m-num::before { content: counter(menu, decimal-leading-zero); }
.menu-item .m-name { font-family: var(--ff-serif); font-size: 26px; letter-spacing: 0.08em; color: var(--c-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; }
.menu-item .m-name .en { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.28em; color: var(--c-primary); text-transform: uppercase; }
.menu-item .m-desc { color: var(--c-text-muted); font-size: 15px; line-height: 2.05; max-width: 640px; }

/* =========================================================
   Cases / Testimonials
   ========================================================= */
.cards-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.case-card { background: var(--c-bg); border: 1px solid var(--c-border); overflow: hidden; }
.case-ba { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.case-ba .ph { aspect-ratio: 1/1; }
.case-ba .ba-tag { position: absolute; top: 14px; font-family: var(--ff-en); font-size: 10px; letter-spacing: 0.24em; background: rgba(var(--c-ink-rgb), 0.78); color: #fff; padding: 5px 12px; }
.case-ba .ba-before { left: 14px; }
.case-ba .ba-after { right: 14px; background: var(--c-primary); }
.case-card .case-body { padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 12px; }
.case-card .case-body .tag { font-size: 11px; letter-spacing: 0.18em; color: var(--c-primary); border: 1px solid var(--c-primary-line); padding: 4px 12px; align-self: flex-start; }
.case-card .case-body h3 { font-size: 19px; letter-spacing: 0.06em; line-height: 1.6; }
.case-card .case-body p { font-size: 14px; line-height: 2; color: var(--c-text-muted); }
.case-meta { margin-top: 6px; border-top: 1px solid var(--c-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.case-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.case-meta dt { font-size: 11px; letter-spacing: 0.12em; color: var(--c-primary); font-family: var(--ff-sans); }
.case-meta dd { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--c-text-muted); }
.med-note { margin-top: 28px; font-size: 12.5px; line-height: 2; color: var(--c-text-mute); }
.risk-note { margin-top: 40px; background: var(--c-bg); border: 1px solid var(--c-border); padding: 28px 32px; }
.risk-note h4 { font-family: var(--ff-serif); font-size: 16px; letter-spacing: 0.08em; color: var(--c-ink); margin-bottom: 14px; }
.risk-note ul { display: flex; flex-direction: column; gap: 8px; }
.risk-note li { font-size: 13px; line-height: 1.9; color: var(--c-text-muted); padding-left: 18px; position: relative; }
.risk-note li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: var(--c-primary); }

.voice-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.voice {
  background: var(--c-bg); border: 1px solid var(--c-border); padding: 40px 38px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.voice::before { content: "\201C"; font-family: var(--ff-en); font-size: 80px; line-height: 1; color: var(--c-primary-soft); position: absolute; top: 18px; right: 26px; }
.voice .v-stars { color: var(--c-primary); letter-spacing: 0.2em; font-size: 14px; }
.voice p { font-size: 15px; line-height: 2.1; color: var(--c-text); }
.voice .v-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line); }
.voice .v-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-bg-deep); border: 1px solid var(--c-primary-line); }
.voice .v-who { font-family: var(--ff-serif); font-size: 14px; color: var(--c-ink); letter-spacing: 0.08em; }
.voice .v-who small { display: block; font-family: var(--ff-sans); font-size: 12px; color: var(--c-text-mute); }

/* =========================================================
   Pricing table
   ========================================================= */
.price-block { display: flex; flex-direction: column; gap: 48px; }
.price-group h3 {
  font-size: 22px; letter-spacing: 0.1em; margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--c-primary-line);
}
.price-group h3 .en { font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.3em; color: var(--c-primary); text-transform: uppercase; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--c-line); }
.price-table th {
  text-align: left; font-family: var(--ff-serif); font-weight: 500; color: var(--c-ink);
  font-size: 17px; letter-spacing: 0.06em; padding: 24px 16px 24px 0; vertical-align: top; width: 38%;
}
.price-table th small { display: block; font-family: var(--ff-sans); font-size: 13px; color: var(--c-text-mute); font-weight: 400; margin-top: 6px; letter-spacing: 0.04em; line-height: 1.7; }
.price-table td { text-align: right; padding: 24px 0; vertical-align: top; }
.price-table td .yen { font-family: var(--ff-en); font-size: 26px; letter-spacing: 0.02em; color: var(--c-ink); }
.price-table td .yen small { font-family: var(--ff-sans); font-size: 13px; color: var(--c-text-mute); letter-spacing: 0.06em; }
.price-note { margin-top: 28px; font-size: 13px; color: var(--c-text-mute); line-height: 2; }

/* =========================================================
   Flow steps
   ========================================================= */
.flow { display: flex; flex-direction: column; gap: 0; position: relative; counter-reset: flow; }
.flow-step {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; padding: 0 0 56px; position: relative; counter-increment: flow;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step .fs-rail { display: flex; flex-direction: column; align-items: center; }
.flow-step .fs-num {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--c-primary);
  display: grid; place-items: center; font-family: var(--ff-en); font-size: 22px; color: var(--c-primary);
  background: var(--c-bg); flex-shrink: 0; position: relative; z-index: 1;
}
.flow-step .fs-num::before { content: counter(flow, decimal-leading-zero); }
.flow-step .fs-line { width: 1px; flex: 1; background: var(--c-primary-line); margin: 8px 0; }
.flow-step:last-child .fs-line { display: none; }
.flow-step .fs-body { padding-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.flow-step .fs-body .step-lbl { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.28em; color: var(--c-primary); text-transform: uppercase; }
.flow-step .fs-body h3 { font-size: 23px; letter-spacing: 0.08em; }
.flow-step .fs-body p { color: var(--c-text-muted); font-size: 15px; line-height: 2.1; max-width: 720px; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.gallery .g-item { position: relative; overflow: hidden; }
.gallery .g-item .ph { transition: none; }
.gallery .g-item .g-cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.24em; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45); text-transform: uppercase;
}
.gallery .g-wide { grid-column: span 2; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { border-top: 1px solid var(--c-primary-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  display: flex; align-items: center; gap: 22px; padding: 30px 0; cursor: pointer;
  font-family: var(--ff-serif); font-size: 19px; letter-spacing: 0.06em; color: var(--c-ink);
}
.faq-q .q-mark { font-family: var(--ff-en); font-size: 22px; color: var(--c-primary); flex-shrink: 0; line-height: 1; }
.faq-q .q-text { flex: 1; line-height: 1.6; }
.faq-q .q-toggle { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq-q .q-toggle::before, .faq-q .q-toggle::after { content: ""; position: absolute; background: var(--c-primary); transition: transform .35s ease, opacity .35s ease; }
.faq-q .q-toggle::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-q .q-toggle::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .q-toggle::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-a .a-inner {
  display: flex; gap: 22px; padding: 0 0 32px; color: var(--c-text-muted); font-size: 15px; line-height: 2.1;
}
.faq-a .a-mark { font-family: var(--ff-en); font-size: 22px; color: var(--c-ink-mute); flex-shrink: 0; line-height: 1.2; }

/* =========================================================
   News
   ========================================================= */
.news-list { display: flex; flex-direction: column; }
.news-list li {
  display: grid; grid-template-columns: 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--c-line);
}
.news-list li:first-child { border-top: 1px solid var(--c-line); }
.news-list .meta { display: flex; align-items: center; gap: 16px; }
.news-list .date { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.14em; color: var(--c-ink); }
.news-list .tag { font-size: 11px; letter-spacing: 0.14em; color: var(--c-primary); border: 1px solid var(--c-primary-line); padding: 3px 12px; }
.news-list .title { font-family: var(--ff-serif); font-size: 17px; color: var(--c-ink); letter-spacing: 0.05em; line-height: 1.7; }

/* =========================================================
   Hours / Access
   ========================================================= */
.access-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
.hours-card { background: var(--c-bg); border: 1px solid var(--c-border); padding: 44px 40px; }
.hours-card h3 { font-size: 20px; letter-spacing: 0.14em; margin-bottom: 26px; display: flex; align-items: baseline; gap: 14px; }
.hours-card h3 .en { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.3em; color: var(--c-primary); text-transform: uppercase; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table th, .hours-table td { text-align: center; padding: 16px 4px; border-bottom: 1px solid var(--c-line); font-weight: 400; letter-spacing: 0.04em; }
.hours-table thead th { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.2em; color: var(--c-primary); border-bottom-color: var(--c-primary-line); }
.hours-table tbody th { color: var(--c-ink); font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.14em; text-align: left; width: 26%; }
.hours-table tbody th .jp { display: block; font-family: var(--ff-sans); font-size: 11px; color: var(--c-ink-mute); margin-top: 3px; }
.hours-table .o { color: var(--c-primary); font-size: 17px; }
.hours-table .x { color: var(--c-ink-mute); }
.hours-card .note { margin-top: 20px; font-size: 13px; color: var(--c-text-muted); line-height: 1.95; }

.access-info dl { margin: 0 0 28px; }
.access-info dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.access-info dt { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.24em; color: var(--c-primary); text-transform: uppercase; }
.access-info dd { margin: 0; color: var(--c-text); line-height: 1.95; font-size: 15px; }
.access-map { width: 100%; height: auto; min-height: 320px; border: 1px solid var(--c-border); overflow: hidden; }
.access-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) sepia(0.12); }
/* 右カラム（住所情報＋マップ）を縦フレックスにし、マップは残りの高さだけを
   埋める。height:100% だとカラム全高（=左カラムに合わせた高さ）を取り、住所
   リストのぶんだけ下にはみ出して予約バナー／フッターと重なってしまうため。 */
.access-grid > div { display: flex; flex-direction: column; }
.access-grid .access-info { flex: 0 0 auto; }
.access-grid .access-map { flex: 1 1 auto; }

/* =========================================================
   Reserve banner
   ========================================================= */
.reserve-banner { background: var(--c-footer-bg); color: #fff; padding: var(--space-section-sm) 0; position: relative; overflow: hidden; }
.reserve-banner .bg-word { color: rgba(255,255,255,0.05); top: -30px; right: 0; }
.reserve-banner .rb-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.reserve-banner .eyebrow { color: var(--c-gold-hi); }
.reserve-banner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0.12em; line-height: 1.5; }
.reserve-banner p { color: rgba(255,255,255,0.74); max-width: 560px; line-height: 2.2; }
.reserve-banner .rb-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; align-items: stretch; }
.reserve-banner .rb-tel {
  font-family: var(--ff-en); font-size: 32px; letter-spacing: 0.04em; color: #fff;
  border: 1px solid rgba(255,255,255,0.34); padding: 16px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.reserve-banner .rb-tel .lbl { font-family: var(--ff-sans); font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); }
.btn--gold-on-dark { background: var(--grad-gold); border: 0; color: #fff; }
.btn--gold-on-dark:hover { opacity: 0.9; color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--c-footer-bg); color: rgba(255,255,255,0.72); padding: 72px 0 36px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--pad-x-sm); }
.footer-info { flex: 1 1 100%; }
.footer-col { flex: 1 1 140px; }
.footer-info .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-info .footer-logo .logo-mark { width: 46px; height: 46px; border: 1px solid var(--c-gold-hi); border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-en); color: var(--c-gold-hi); }
.footer-info .footer-logo .f-en { display: block; font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.32em; color: var(--c-gold-hi); text-transform: uppercase; }
.footer-info .footer-logo .f-jp { display: block; font-family: var(--ff-serif); font-size: 20px; letter-spacing: 0.16em; color: #fff; margin-top: 3px; white-space: nowrap; }
.footer-info .footer-addr { line-height: 2; font-style: normal; margin-bottom: 20px; }
.footer-info .footer-tel { font-family: var(--ff-en); font-size: 26px; letter-spacing: 0.04em; color: #fff; }
.footer-info .footer-tel .lbl { display: block; font-family: var(--ff-sans); font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.footer-col h4 { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.3em; color: var(--c-gold-hi); margin-bottom: 22px; text-transform: uppercase; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { color: rgba(255,255,255,0.82); font-size: 14px; letter-spacing: 0.06em; }
.footer-col a:hover { color: var(--c-gold-hi); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--w-content); margin-inline: auto; padding-left: var(--pad-x-sm); padding-right: var(--pad-x-sm);
}
.footer-bottom .copy { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.22em; color: rgba(255,255,255,0.5); }
.footer-bottom .sns { display: flex; gap: 12px; }
.footer-bottom .sns a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.22); border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.08em; }
.footer-bottom .sns a:hover { border-color: var(--c-gold-hi); color: var(--c-gold-hi); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 768px) {
  .container, .container-narrow, .container-text { padding: 0 var(--pad-x-md); }
  .section { padding: var(--space-section-md) 0; }
  .footer-top, .footer-bottom { padding-left: var(--pad-x-md); padding-right: var(--pad-x-md); }
  .footer-info { flex: 0 1 360px; }
  .footer-col { flex: 0 0 auto; min-width: 158px; }
  .footer-top > .footer-col:nth-child(2) { margin-left: auto; }

  .hero-inner { grid-template-columns: 1.05fr 1fr; }
  .hero-visual { min-height: calc(100vh - var(--h-header)); }
  .hero-visual .ph { min-height: calc(100vh - var(--h-header)); }
  .hero-visual .editable-img { min-height: calc(100vh - var(--h-header)); }
  .hero-vert { display: block; }

  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-item { grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.7fr); gap: 36px; align-items: baseline; }
  .menu-item .m-desc { align-self: center; }
  .news-list li { grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; }
  .access-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .g-wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .header-inner { padding: 0 64px; }
  .container, .container-narrow, .footer-top, .footer-bottom { padding: 0 96px; }
  .section { padding: var(--space-section) 0; }
  .header-nav { display: flex; align-items: center; gap: 34px; }
  .header-nav a { font-family: var(--ff-serif); font-size: 15px; letter-spacing: 0.12em; color: var(--c-ink); position: relative; padding: 6px 0; }
  .header-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--grad-gold); transition: width .35s ease; }
  .header-nav a:hover { opacity: 1; }
  .header-nav a:hover::after { width: 100%; }
  .header-nav a.is-active { color: var(--c-primary); }
  .header-nav a.is-active::after { width: 100%; }
  .header-tel { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .header-cta .btn { height: 52px; padding: 0 28px; font-size: 14px; }
  .hamburger { display: none; }
  .floating-cta { display: none; }
  .side-reserve { display: block; }
  body { padding-bottom: 0 !important; }

  .split { grid-template-columns: 1fr 1fr; gap: 96px; }
  .split.reverse .split-photo { order: 2; }
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-text { padding: 64px 96px; }
}

@media (min-width: 1440px) {
  /* Containers are already capped by max-width and centered with margin:auto.
     A fixed gutter is all that's needed here. Using viewport-based padding
     (e.g. (100vw - 1440px)/2) over-pads the box on wide/ultra-wide screens
     and collapses the inner content to near-zero width — which made the
     price table and other sections stack vertically. */
  .container, .container-narrow, .footer-top, .footer-bottom {
    padding-left: 96px;
    padding-right: 96px;
  }
}

/* mobile floating CTA spacing */
body { padding-bottom: 64px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* prevent decorative watermark / offset captions from causing horizontal scroll */
html { overflow-x: hidden; }

/* ---------- 〜767px Mobile fine-tuning ---------- */
@media (max-width: 767px) {
  .header-inner { padding: 0 20px; }
  .site-logo .logo-jp { font-size: 16px; }
  .site-logo .logo-mark { width: 40px; height: 40px; font-size: 17px; }

  /* hours table compaction */
  .hours-card { padding: 28px 18px; }
  .hours-table { font-size: 12px; }
  .hours-table th, .hours-table td { padding: 10px 1px; }
  .hours-table tbody th { width: 22%; font-size: 11px; }
  .hours-table tbody th .jp { font-size: 9px; white-space: nowrap; }
  .hours-table thead th { font-size: 10px; letter-spacing: 0.1em; }
  .hours-table .o { font-size: 14px; }

  /* reserve banner tel must not overflow */
  .reserve-banner .rb-tel { font-size: 26px; padding: 14px 22px; }
  .reserve-banner .rb-tel span { white-space: nowrap; }
  .reserve-banner .rb-actions { width: 100%; }
  .reserve-banner .rb-actions .btn { width: 100%; }

  /* pricing */
  .price-table th { font-size: 15px; width: 56%; padding-right: 10px; }
  .price-table td .yen { font-size: 22px; white-space: nowrap; }

  /* header tel (only visible >=1024, but guard) */
  .header-tel .num { white-space: nowrap; }

  /* concept caption inside bounds */
  .split-photo .photo-cap { left: 0; bottom: -16px; padding: 14px 20px; }

  /* watermark a touch smaller */
  .bg-word { font-size: clamp(84px, 30vw, 160px); }

  /* flow / reason paddings */
  .reason { padding: 36px 26px; }
  .menu-item .m-name { font-size: 22px; }

  /* gallery to single emphasis rows on very small screens stays 2-col; fine */
  .access-info dl > div { grid-template-columns: 92px 1fr; gap: 10px; }
}
/* TEC-1261-3: backdrop-filter-nav-fix */
.is-menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-menu-open .header-inner { position: relative; z-index: 91; }
/* TEC-1106-8: price-table-em */
.price-table th em { display: block; font-family: var(--ff-sans); font-size: 13px; color: var(--c-text-mute); font-weight: 400; margin-top: 6px; letter-spacing: 0.04em; line-height: 1.7; font-style: normal; }
.price-table td { font-family: var(--ff-en); font-size: 26px; letter-spacing: 0.02em; color: var(--c-ink); }
.price-table td em { font-family: var(--ff-sans); font-size: 13px; color: var(--c-text-mute); letter-spacing: 0.06em; font-style: normal; }
@media (max-width: 767px) { .price-table td { font-size: 22px; white-space: nowrap; } }
