/* こもれび整体院 LP スタイル
 * 外部フォント・外部画像なし。見出しだけ同梱の明朝サブセット（fonts/komorebi-mincho.woff2）を使い、
 * 本文は端末の日本語ゴシック。大胆にするのはファーストビューの「光の窓」1か所だけで、
 * ほかは影を使わず、余白と細い罫線で組む。
 */
@font-face {
  font-family: "Komorebi Mincho";
  src: url("../fonts/komorebi-mincho.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f6f3ed;
  --stone: #ece7dd;
  --surface: #fffdf9;
  --ink: #1f2622;
  --muted: #545b55;
  --line: #d8d1c4;
  --line-strong: #b8b0a1;
  --moss: #2e4a3b;
  --moss-deep: #1d3027;
  --moss-soft: #e3e8df;
  --clay: #8e4f33;
  --light: #f1e2c0;
  --danger: #b3261e;
  --focus: #1d3027;
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --serif: "Komorebi Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
.serif, h1, h2 { font-family: var(--serif); font-synthesis: none; }

a { color: var(--moss); text-underline-offset: 0.2em; }
:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--paper);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - var(--gutter) * 2); }
.nw { display: inline-block; }
.pc-only { display: none; }
.sp-only { display: inline; }
.defs-only { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* デモ表示の帯 */
.demo-bar {
  background: var(--moss-deep);
  color: #ede6d6;
  font-size: 0.75rem;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 237, 0.9);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.header-inner > * { min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.12em; }
.brand-en { font-family: var(--serif); font-size: 0.56rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 3px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-tel { display: none; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.3; text-align: right; }
.header-tel-num { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.06em; }
.header-tel-time { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }

/* ボタン */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  background: var(--moss);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--moss);
  border-radius: 3px;
  padding: 12px 28px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.btn-main { display: inline-flex; align-items: center; gap: 14px; }
.btn-arrow { position: relative; width: 22px; height: 1px; background: currentColor; transition: transform 0.3s ease; }
.btn-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 1px; background: currentColor; transform: rotate(35deg); transform-origin: right center; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; min-height: 64px; }
.btn-small { padding: 8px 20px; min-height: 40px; font-size: 0.86rem; white-space: nowrap; }
.btn-sub { font-size: 0.7rem; font-weight: 400; opacity: 0.86; letter-spacing: 0.06em; }
.btn-outline { background: transparent; color: var(--moss); }
.btn-outline:hover { background: var(--moss); color: #fff; }
.btn-ghost { background: transparent; color: var(--moss); border-color: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
.btn-ghost:hover { background: transparent; color: var(--moss-deep); border-color: transparent; }
.btn-light { background: var(--paper); color: var(--moss-deep); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--moss-deep); border-color: #fff; }

/* ファーストビュー */
.hero { position: relative; padding: 24px 0 0; }
.hero-inner { display: grid; gap: 36px; }
.hero-inner > * { min-width: 0; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 22px; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.hero-kicker span + span::before { content: ""; display: inline-block; width: 1px; height: 0.9em; background: var(--line-strong); margin: 0 12px; vertical-align: -0.1em; }
.hero h1 {
  font-size: clamp(1.95rem, 7.6vw, 3.5rem);
  line-height: 1.55;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}
.hero-lead { color: var(--muted); margin-bottom: 32px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); max-width: 520px; }
.hero-facts li { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-facts li + li { border-left: 1px solid var(--line); padding-left: clamp(12px, 3vw, 24px); }
.fact-num { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.1; color: var(--moss); letter-spacing: 0.02em; }
.fact-num small { font-size: 0.42em; margin-left: 3px; letter-spacing: 0.1em; color: var(--ink); }
.fact-label { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.5; }

.hero-visual { position: relative; margin: 0; }
.komorebi { display: block; width: 100%; height: auto; aspect-ratio: 640 / 800; max-height: 72vh; }
.komorebi-leaves { transform-box: view-box; transform-origin: 90% 0; animation: sway 11s ease-in-out infinite alternate; }
@keyframes sway {
  0% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(1.4deg) translate(-6px, 3px); }
  100% { transform: rotate(-0.8deg) translate(4px, -2px); }
}
.hero-caption {
  position: absolute;
  right: 20px;
  top: 24px;
  font-size: 0.86rem;
  line-height: 1.9;
  letter-spacing: 0.24em;
  color: #3b3a33;
  writing-mode: vertical-rl;
  height: auto;
  padding: 0;
}
.hero-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-info div { padding: 16px 12px 16px 0; }
.hero-info div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-info div:nth-child(n+3) { border-top: 1px solid var(--line); }
.hero-info dt { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--clay); font-weight: 600; }
.hero-info dd { margin: 2px 0 0; font-size: 0.88rem; line-height: 1.6; }
.hero-info small { display: block; font-size: 0.74rem; color: var(--muted); }

/* セクション共通 */
.section { padding: var(--section) 0; }
.section-stone, .section-tint { background: var(--stone); }
.section-head { margin-bottom: 48px; }
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  color: var(--clay);
  text-transform: uppercase;
}
.label-no { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); letter-spacing: 0.1em; }
.label-no::after { content: ""; width: 32px; height: 1px; background: var(--line-strong); }
.section h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.55;
  margin: 0 0 18px;
  letter-spacing: 0.08em;
}
.section-lead { color: var(--muted); max-width: 36em; }
.split { display: grid; gap: 0; }
.split > * { min-width: 0; }

/* お悩み */
.concerns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.concern { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.body-map { width: 52px; height: auto; }
.body-map .hot { fill: var(--clay); opacity: 0.32; }
.body-map .axis { stroke: var(--clay); stroke-width: 1; stroke-dasharray: 2 3; }
.concern h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: 0.06em; line-height: 1.6; }
.concern p { color: var(--muted); font-size: 0.95rem; }

/* 大切にしていること */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reason { padding: 32px 0; border-top: 1px solid var(--line-strong); }
.reason .reason-no { font-size: 2.6rem; line-height: 1; color: var(--clay); margin-bottom: 20px; }
.reason h3 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.65; letter-spacing: 0.08em; margin: 0 0 14px; }
.reason p { color: var(--muted); font-size: 0.95rem; }

/* 施術の流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.flow-step { position: relative; padding: 0 0 36px 40px; }
.flow-step::before { content: ""; position: absolute; left: 6px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--moss); }
.flow-step::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 4px; width: 1px; background: var(--line-strong); }
.flow-step:last-child { padding-bottom: 0; }
.flow-step:last-child::after { display: none; }
.flow-meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.flow-no { font-size: 1.4rem; color: var(--moss); line-height: 1.2; letter-spacing: 0.04em; }
.flow-time { font-size: 0.74rem; color: var(--clay); letter-spacing: 0.1em; border: 1px solid currentColor; padding: 0 8px; line-height: 1.7; }
.flow-step h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: 0.06em; }
.flow-step p { color: var(--muted); font-size: 0.94rem; }

/* メニュー */
.menu-grid { display: grid; gap: 40px; }
.menu-grid > * { min-width: 0; }
.menu-feature {
  background: var(--moss);
  color: #f4efe4;
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-tag { align-self: flex-start; font-size: 0.74rem; letter-spacing: 0.16em; border: 1px solid rgba(244, 239, 228, 0.6); padding: 2px 12px; }
.menu-feature h3 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.08em; margin: 4px 0 0; line-height: 1.5; }
.menu-feature-price { font-size: 1rem; }
.menu-feature .price { font-size: 3.2rem; line-height: 1.1; margin-right: 4px; color: #fff; letter-spacing: 0.02em; }
.menu-feature .menu-time { color: #d9d6c8; }
.menu-feature p { color: #e6e2d6; }
.menu-includes { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; }
.menu-includes li::before { content: ""; display: inline-block; width: 8px; height: 4px; border-left: 1px solid var(--light); border-bottom: 1px solid var(--light); transform: rotate(-45deg) translateY(-3px); margin-right: 8px; }
.menu-feature .btn { align-self: flex-start; margin-top: auto; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.menu-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.menu-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-row h3 { margin: 0; font-size: 1.05rem; letter-spacing: 0.06em; }
.menu-dots { flex: 1 1 24px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-5px); min-width: 24px; }
.menu-price { white-space: nowrap; }
.menu-price .price { font-size: 1.8rem; color: var(--moss); margin-right: 2px; line-height: 1.2; }
.menu-time { font-size: 0.82rem; color: var(--muted); margin-left: 4px; }
.menu-desc { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.menu-notes { padding-top: 20px; font-size: 0.84rem; color: var(--muted); }

/* お客様の声 */
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.voice { position: relative; padding: 40px 0 28px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 18px; }
.voice::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: -2px;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--clay);
  opacity: 0.55;
}
.voice blockquote { margin: 0; padding-top: 12px; }
.voice blockquote p { font-size: 1rem; line-height: 2; }
.voice-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--muted); margin-top: auto; }
.voice-tag { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--moss); background: var(--moss-soft); padding: 1px 10px; }

/* 院長 */
.greeting { display: grid; gap: 40px; align-items: center; }
.greeting > * { min-width: 0; }
.greeting-figure { margin: 0; max-width: 400px; width: 100%; justify-self: center; }
.greeting-figure svg { display: block; width: 100%; height: auto; }
.greeting-figure figcaption { margin-top: 12px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.12em; text-align: center; }
.greeting-catch { font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.9; letter-spacing: 0.08em; color: var(--moss); margin-bottom: 20px; }
.greeting-body > p:not(.label):not(.greeting-catch) { margin-bottom: 14px; }
.greeting-name { display: flex; align-items: baseline; gap: 12px; margin-top: 24px !important; }
.greeting-name span:first-child { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.14em; }
.greeting-name .serif { font-size: 1.5rem; letter-spacing: 0.16em; }
.greeting-kana { font-size: 0.74rem; color: var(--muted); }
.career { margin: 20px 0 0; border-top: 1px solid var(--line-strong); }
.career div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.career dt { color: var(--clay); letter-spacing: 0.06em; }
.career dd { margin: 0; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  padding: 22px 48px 22px 40px;
  list-style: none;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; position: absolute; left: 4px; top: 19px; font-family: var(--serif); font-weight: 400; color: var(--clay); font-size: 1.25rem; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--moss), var(--moss)) center / 14px 1px no-repeat,
    linear-gradient(var(--moss), var(--moss)) center / 1px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--moss); }
.faq-list details p { position: relative; padding: 0 16px 24px 40px; color: var(--muted); }
.faq-list details p::before { content: "A"; position: absolute; left: 4px; top: -4px; font-family: var(--serif); color: var(--moss); font-size: 1.25rem; }

/* アクセス */
.access-grid { display: grid; gap: 40px; align-items: start; }
.access-grid > * { min-width: 0; }
.map svg { display: block; width: 100%; height: auto; }
.shop-info { margin: 0; border-top: 1px solid var(--line-strong); }
.shop-info div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.shop-info dt { color: var(--clay); letter-spacing: 0.08em; font-size: 0.86rem; padding-top: 2px; }
.shop-info dd { margin: 0; overflow-wrap: anywhere; line-height: 1.8; }
.shop-info a { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.06em; }
.table-scroll { overflow-x: auto; margin-top: 28px; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.86rem; text-align: center; background: var(--surface); }
.hours caption { text-align: left; font-size: 0.86rem; color: var(--clay); letter-spacing: 0.1em; padding-bottom: 8px; }
.hours th, .hours td { border: 1px solid var(--line); padding: 10px 4px; font-weight: 400; }
.hours thead th { background: var(--moss); color: #fff; border-color: var(--moss); letter-spacing: 0.06em; }
.hours tbody th { white-space: nowrap; padding-inline: 10px; }
.hours .open { color: var(--moss); }
.hours .closed { color: var(--muted); }
.hours-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* 予約フォーム */
.section-reserve { background: var(--paper); }
.reserve-grid { display: grid; gap: 40px; }
.reserve-grid > * { min-width: 0; }
.reserve-tel { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.reserve-tel-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }
.reserve-tel-num { font-size: clamp(1.8rem, 6vw, 2.3rem); letter-spacing: 0.06em; line-height: 1.4; }
.reserve-tel-num a { color: var(--ink); text-decoration: none; }
.reserve-tel-num a:hover { color: var(--moss); }
.reserve-tel-time { font-size: 0.82rem; color: var(--muted); }
.reserve-points { list-style: none; margin: 20px 0 0; padding: 0; font-size: 0.88rem; color: var(--muted); }
.reserve-points li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.reserve-points li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 8px; height: 1px; background: var(--clay); }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 48px);
}
.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; gap: 0 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; letter-spacing: 0.06em; }
.req, .opt {
  display: inline-block;
  font-size: 0.66rem;
  padding: 0 7px;
  margin-left: 10px;
  vertical-align: 0.12em;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.req { background: var(--clay); color: #fff; }
.opt { border: 1px solid var(--line-strong); color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid #857d70;
  border-radius: 2px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:hover, .field textarea:hover { border-color: var(--moss); }
.field input::placeholder, .field textarea::placeholder { color: #6f685d; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; box-shadow: none; border-color: var(--focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: #fff8f6; }
.field input[readonly], .field textarea[readonly] { background: #f1eee8; }
.hint { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--danger); font-size: 0.86rem; margin: 4px 0 0; min-height: 1.4em; }
.contact-note { font-size: 0.82rem; color: var(--muted); margin: 16px 0 0; }
.noscript-note { background: #fff8e1; border: 1px solid var(--focus); padding: 10px 12px; margin-bottom: 16px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--moss); }
.form-status:empty { display: none; }
.confirm { margin-top: 20px; border: 1px solid var(--moss); padding: 24px; background: #f3f5f0; }
.confirm h3 { margin-top: 0; font-family: var(--serif); letter-spacing: 0.08em; }
.confirm dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; }
.confirm dt { font-weight: 600; }
.confirm dd { margin: 0; overflow-wrap: anywhere; }

/* フッター */
.site-footer { background: var(--moss-deep); color: #e9e4d8; padding: 56px 0 32px; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--moss-deep); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.footer-brand { font-size: 1.3rem; letter-spacing: 0.14em; margin: 0 0 10px; }
.site-footer p { font-size: 0.84rem; line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.84rem; }
.footer-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.74rem !important; color: #cfc9bb; }

/* スマホ固定CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 243, 237, 0.96);
  border-top: 1px solid var(--line);
  transition: transform 0.3s, opacity 0.3s;
}
.sticky-cta .btn { padding: 10px; min-height: 48px; font-size: 0.94rem; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
body { padding-bottom: 72px; }

/* スクロール表示 */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* スマホ */
@media (max-width: 767px) {
  .site-nav, .header-cta { display: none; }
  .header-inner { min-height: 60px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { margin-inline: calc(var(--gutter) * -1); }
  .komorebi { max-height: 420px; aspect-ratio: 4 / 3; }
  .confirm dl { grid-template-columns: 1fr; }
  .menu-row { flex-direction: column; gap: 2px; }
  .menu-dots { display: none; }
  .greeting-figure { max-width: 300px; }
  .form-actions .btn-lg { flex: 1 1 100%; }
  .form-actions .btn-ghost { margin-inline: auto; }
}

/* タブレット〜PC */
@media (min-width: 768px) {
  .pc-only { display: inline; }
  .sp-only { display: none; }
  .hero { padding-top: 48px; }
  .hero-info { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
  .hero-info div { padding: 20px 16px; border-left: 1px solid var(--line); }
  .hero-info div:first-child { border-left: none; padding-left: 0; }
  .hero-info div:nth-child(n+3) { border-top: none; }
  .concern { grid-template-columns: 64px 1fr; gap: 28px; padding: 32px 0; }
  .body-map { width: 64px; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow-step { padding: 40px 0 0; }
  .flow-step::before { left: 0; top: 0; }
  .flow-step::after { left: 18px; right: -20px; top: 4px; bottom: auto; width: auto; height: 1px; }
  .flow-step:last-child::after { display: none; }
  .voices { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .greeting { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav { display: none; }
  .hero h1 { font-size: 3rem; }
  .hero-visual { max-width: 560px; justify-self: end; width: 100%; }
  .komorebi { aspect-ratio: 5 / 4; }
}
@media (min-width: 1200px) {
  .header-tel { display: flex; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 56px; align-items: center; min-height: min(760px, calc(100vh - 100px)); }
  .hero-copy { padding: 48px 0 24px; }
  .hero-visual { align-self: stretch; margin-right: calc((100vw - min(var(--maxw), 100vw - var(--gutter) * 2)) / -2); }
  .komorebi { height: 100%; max-height: none; aspect-ratio: auto; min-height: 640px; }
  .hero h1 { font-size: clamp(2.2rem, 3.1vw, 2.7rem); letter-spacing: 0.06em; }
  .hero-caption { left: auto; right: 40px; top: 72px; bottom: auto; font-size: 0.92rem; }
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .split .section-head { position: sticky; top: 120px; margin-bottom: 0; }
  .section-head-wide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 80px; align-items: end; margin-bottom: 64px; }
  .section-head-wide .label { grid-column: 1 / -1; }
  .section-head-wide h2 { margin-bottom: 0; }
  .section-head-wide .section-lead { padding-bottom: 0.4em; }
  .menu-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .access-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
  .reserve-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 80px; align-items: start; }
  .reserve-intro { position: sticky; top: 120px; }
}
@media (min-width: 1280px) {
  .site-nav a { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 計測イベントの表示（?track=1 のときだけ） */
.track-panel {
  position: fixed;
  right: 12px;
  bottom: 88px;
  z-index: 70;
  width: min(340px, calc(100% - 24px));
  pointer-events: none;
  opacity: 0.94;
  background: rgba(21, 32, 27, 0.94);
  color: #e8f2ea;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.track-title { margin: 0 0 8px; font-weight: 700; font-family: inherit; color: #fff; }
.track-title span { margin-left: 8px; font-weight: 400; color: #a9c6b2; }
.track-list { list-style: none; margin: 0; padding: 0; max-height: 150px; overflow: hidden; }
.track-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.track-list time { color: #8fa898; }
.track-list b { color: #f3c77a; }
.track-list span { color: #cfe0d4; overflow-wrap: anywhere; }
@media (min-width: 768px) { .track-panel { bottom: 16px; } }

/* 制作メモ（case.html） */
body.case { padding-bottom: 0; }
.case-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.case-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 20px; letter-spacing: 0.08em; line-height: 1.5; }
.case-lead { font-size: 1.02rem; margin: 0 0 32px; }
.case-index { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.case-index a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.case-index a:hover { color: var(--moss); }
.case .section { padding: clamp(64px, 9vw, 112px) 0; }
.case .section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.case .section h3 { font-size: 1.1rem; margin: 36px 0 8px; letter-spacing: 0.06em; }
.case .section p { margin-bottom: 12px; }
.case-points { padding-left: 1.2em; margin: 16px 0 0; }
.case-points li { margin-bottom: 12px; }
.case code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86em; background: var(--moss-soft); padding: 1px 5px; overflow-wrap: anywhere; letter-spacing: 0; }
.funnel { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 6px; }
.funnel li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  background: var(--surface);
  border-left: 3px solid var(--moss);
  padding: 10px 16px;
}
.funnel li:nth-child(2) { margin-right: 4%; }
.funnel li:nth-child(3) { margin-right: 8%; }
.funnel li:nth-child(4) { margin-right: 12%; }
.funnel li:nth-child(5) { margin-right: 16%; }
.funnel li:nth-child(6) { margin-right: 20%; border-left-color: var(--clay); }
.funnel span { font-weight: 600; }
.funnel small { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; line-height: 1.2; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.case-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); font-size: 0.9rem; }
.case-table caption { text-align: left; font-weight: 600; padding: 8px 0; }
.case-table th, .case-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.case-table thead th { background: var(--moss-soft); }
.case-table th[scope="row"] { width: 1%; }
.case-table th[scope="row"] code { white-space: nowrap; }
.case-try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.case-try span { flex: 1 1 260px; color: var(--muted); font-size: 0.9rem; }
.case-code { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); }
.case-code summary { cursor: pointer; font-weight: 600; padding: 12px 16px; }
.case-code pre { margin: 0; padding: 0 16px 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.6; }
.case-code pre code { background: none; padding: 0; }
.scores { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.scores li { padding: 18px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.scores strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: var(--moss); line-height: 1.2; }
.scores span { font-size: 0.8rem; color: var(--muted); }
.scores .scores-note { grid-column: 1 / -1; border: none; padding: 12px 0 0; text-align: left; font-size: 0.82rem; color: var(--muted); }
.case-back { margin-top: 28px; text-align: center; }
.case .site-footer { padding: 8px 0 24px; }
@media (min-width: 768px) {
  .case-index { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .scores { grid-template-columns: repeat(4, 1fr); }
}
.palette { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.palette li { display: grid; grid-template-columns: 36px 3.5em 6.5em 1fr; align-items: center; gap: 12px; font-size: 0.9rem; }
.palette .swatch { width: 36px; height: 36px; border: 1px solid var(--line); }
.swatch-1 { background: var(--paper); }
.swatch-2 { background: var(--stone); }
.swatch-3 { background: var(--ink); }
.swatch-4 { background: var(--moss); }
.swatch-5 { background: var(--clay); }
@media (max-width: 479px) { .palette li { grid-template-columns: 36px 3.5em 1fr; } .palette li code { display: none; } }
