/* ============================================================
   やすらぎ庵 (Yasuragi-an) — Demo Site CSS v3
   "The Modern Sanctuary" — Stitch統合版
   Skova Digital デモサイト
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Variables — v3 Stitch統合 4段サーフェス + No-Line Rule
   ---------------------------------------------------------- */
:root {
  /* === Stitch採用カラー（メイン） === */
  --an-primary:    #49663b;
  --an-primary-lt: #7a9a6a;
  --an-secondary:  #765939;

  /* === サーフェス4段階階層 === */
  --an-surface:      #fbf9f6;
  --an-surface-low:  #f5f3f0;
  --an-surface-mid:  #efeeeb;
  --an-surface-high: #eae8e5;

  /* === テキスト === */
  --an-text:     #1b1c1a;
  --an-muted:    #43483f;
  --an-label:    #49663b;

  /* === アクセント・装飾 === */
  --an-gold:     #c4a05a;
  --an-outline:  #c3c8bc;

  /* === 大型タイポグラフィ用 === */
  --an-text-ghost: rgba(27,28,26,0.05);
  --an-line:       rgba(27,28,26,0.10);

  /* === デモバナー === */
  --an-demo-bg:    #3A4A30;
  --an-demo-link:  #C9A96E;
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.85;
  letter-spacing: 0.025em;
  color: var(--an-text);
  background-color: var(--an-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Shippori Mincho", Georgia, serif;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3, h4, h5, h6 {
  font-family: "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--an-primary);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   3. Container
   ---------------------------------------------------------- */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 767px) {
  .container { padding: 0 1.25rem; }
}

/* ----------------------------------------------------------
   4. Section Label
   ---------------------------------------------------------- */
.section-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--an-label);
  display: block;
}

/* ----------------------------------------------------------
   5. Demo Banner
   ---------------------------------------------------------- */
.demo-banner {
  background: var(--an-demo-bg);
  color: #ffffff;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 9999;
}

.demo-banner a {
  color: var(--an-demo-link);
  text-decoration: underline;
  margin-left: 0.5rem;
}

@media (hover: hover) {
  .demo-banner a:hover { opacity: 0.8; }
}

/* ----------------------------------------------------------
   6. Header / Navigation — v3 Glassmorphism
   ---------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease-out, transform 300ms ease-out;
}

#site-header.hidden-up {
  transform: translateY(-100%);
}

#site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(44, 26, 14, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .header-inner { padding: 0.875rem 1.25rem; }
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.site-logo-ja {
  font-family: "Shippori Mincho", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--an-primary);
  letter-spacing: 0.05em;
}

.site-logo-en {
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--an-muted);
  text-transform: uppercase;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 767px) {
  .nav-desktop { display: none; }
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--an-muted);
  position: relative;
  transition: color 200ms;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--an-primary);
  transition: width 300ms ease-out;
}

@media (hover: hover) {
  .nav-link:hover { color: var(--an-primary); }
  .nav-link:hover::after { width: 100%; }
}

/* Nav CTA pill button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--an-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  min-height: 44px;
  transition: background 200ms ease-out;
  border: none;
  text-decoration: none;
}

@media (hover: hover) {
  .btn-nav-cta:hover { background: #3a5230; }
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--an-text);
  border-radius: 2px;
  transition: transform 300ms ease-out, opacity 200ms;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(251, 249, 246, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

#mobile-menu:not([inert]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-menu a {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--an-text);
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu-cta {
  background: var(--an-primary) !important;
  color: #fff !important;
  border-radius: 9999px;
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--an-muted);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------
   7. Skip Link
   ---------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  background: var(--an-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10000;
  transition: top 200ms;
}

.skip-link:focus {
  top: 0;
}

/* ----------------------------------------------------------
   8. Hero — v3: 中央配置 + 銀杏装飾
   ---------------------------------------------------------- */
#hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--an-surface);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* 銀杏SVG装飾 */
.hero-ginkgo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-ginkgo-right {
  bottom: -2rem;
  right: -1rem;
  width: clamp(120px, 18vw, 220px);
  opacity: 0.05;
}

.hero-ginkgo-left {
  top: -1rem;
  left: -2rem;
  width: clamp(80px, 12vw, 160px);
  opacity: 0.04;
  transform: scaleX(-1) rotate(30deg);
}

.hero-label {
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--an-label);
  font-weight: 500;
  display: block;
}

.hero-h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--an-text);
}

.hero-sub {
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.025em;
  color: var(--an-muted);
  max-width: 38ch;
  margin: 0 auto;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.hero-micro {
  font-size: 0.8125rem;
  color: var(--an-muted);
  line-height: 1.6;
  text-align: center;
}

/* ----------------------------------------------------------
   9. Buttons — v3 プライマリ/セカンダリ (pill shape)
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--an-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2.25rem;
  border-radius: 9999px;
  border: none;
  min-height: 52px;
  transition: background 200ms ease-out, transform 200ms ease-out;
  text-decoration: none;
  cursor: pointer;
  /* Ambient Shadow */
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.12);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #3a5230;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 26, 14, 0.15);
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--an-primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2.25rem;
  border-radius: 9999px;
  border: 1.5px solid var(--an-primary);
  min-height: 52px;
  transition: all 200ms ease-out;
  text-decoration: none;
}

@media (hover: hover) {
  .btn-outline:hover {
    background: var(--an-primary);
    color: #fff;
    transform: translateY(-2px);
  }
}

/* ----------------------------------------------------------
   10. Fullbleed Photo Break
   ---------------------------------------------------------- */
#photo-break {
  width: 100%;
  height: 48vh;
  min-height: 260px;
  overflow: hidden;
  display: block;
  position: relative;
}

#photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.92) saturate(0.85);
  display: block;
}

/* CSS gradient placeholder for photo break */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #b8c8a8 0%,
    #c8d8b8 30%,
    #a8bca4 60%,
    #9eaa92 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
                    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

/* ----------------------------------------------------------
   11. Pain Nav — v3: No-Line Rule (pill bg only)
   ---------------------------------------------------------- */
#pain-nav {
  background: var(--an-surface-low);
  position: relative;
  overflow: hidden;
}

/* 銀杏装飾 (pain-nav) */
#pain-nav .section-ginkgo {
  position: absolute;
  top: -1rem;
  right: -2rem;
  width: clamp(100px, 14vw, 180px);
  opacity: 0.04;
  pointer-events: none;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

@media (max-width: 767px) {
  .tab-list { gap: 0.5rem; }
}

/* v3: No-Line Rule — border なし, pill bg のみ */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  color: var(--an-muted);
  background: transparent;
  transition: all 200ms ease-out;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  min-height: 44px;
  letter-spacing: 0.02em;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Stitch "Tabbed Interfaces": secondary at 12% bg */
.tab-btn.is-active {
  background: rgba(118, 89, 57, 0.12);
  color: var(--an-secondary);
  font-weight: 700;
}

@media (hover: hover) {
  .tab-btn:not(.is-active):hover {
    background: rgba(73, 102, 59, 0.08);
    color: var(--an-primary);
  }
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  animation: tabFadeIn 200ms ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 767px) {
  .tab-panel.is-active {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tab-content-title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--an-text);
  line-height: 1.4;
}

.tab-content-desc {
  font-size: 0.9rem;
  color: var(--an-muted);
  line-height: 1.8;
}

.symptom-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.symptom-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--an-text);
}

.symptom-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--an-primary);
  color: #fff;
  font-size: 0.625rem;
  flex-shrink: 0;
  font-weight: 700;
}

.tab-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--an-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms;
}

@media (hover: hover) {
  .tab-menu-link:hover { opacity: 0.7; }
}

.tab-image-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  /* Ambient Shadow */
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.07);
}

.tab-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ----------------------------------------------------------
   12. Body Map — SVG Interaction (v2継承)
   ---------------------------------------------------------- */
#body-map {
  background: var(--an-surface-mid);
}

.bodymap-layout {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 767px) {
  .bodymap-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.bodymap-svg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bodymap-hint {
  font-size: 0.75rem;
  color: var(--an-muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* Mobile button tabs for body parts */
.bodymap-mobile-btns {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

@media (max-width: 767px) {
  .bodymap-mobile-btns { display: flex; }
  .bodymap-svg-wrap { display: none; }
}

/* v3: No-Line Rule */
.bodymap-mobile-btn {
  background: var(--an-surface);
  border: none;
  color: var(--an-muted);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-family: inherit;
  min-height: 44px;
  transition: all 200ms;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(44, 26, 14, 0.05);
}

.bodymap-mobile-btn.is-active {
  background: rgba(118, 89, 57, 0.12);
  color: var(--an-secondary);
  font-weight: 700;
}

#body-svg {
  width: 100%;
  max-width: 200px;
  cursor: default;
  overflow: visible;
}

/* Body part groups */
.body-part {
  cursor: pointer;
}

.body-part .bp-highlight {
  fill: rgba(73, 102, 59, 0);
  stroke: transparent;
  stroke-width: 2;
  transition: fill 200ms, stroke 200ms;
}

.body-part:hover .bp-highlight,
.body-part:focus-visible .bp-highlight,
.body-part.is-active .bp-highlight {
  fill: rgba(73, 102, 59, 0.28);
  stroke: var(--an-primary);
}

.body-part:focus-visible {
  outline: none;
}

/* Body map info panel */
.bodymap-panel {
  background: var(--an-surface);
  border-radius: 1.25rem;
  padding: 2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Ambient Shadow */
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.06);
}

.bodymap-default {
  text-align: center;
  color: var(--an-muted);
  font-size: 0.9375rem;
}

.bodymap-default-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.bodymap-info {
  display: none;
}

.bodymap-info.is-active {
  display: block;
  animation: tabFadeIn 200ms ease-out;
}

.bodymap-info-title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--an-text);
  margin-bottom: 0.75rem;
}

.bodymap-symptom-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bodymap-symptom-list li {
  font-size: 0.875rem;
  color: var(--an-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bodymap-symptom-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--an-primary);
  flex-shrink: 0;
}

.bodymap-menu-ref {
  background: rgba(73, 102, 59, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--an-primary);
  font-weight: 700;
  /* No-Line Rule: border なし */
}

/* ----------------------------------------------------------
   13. Menu — v3: Ambient Shadow + No-Line (Stone Shape)
   ---------------------------------------------------------- */
#menu {
  background: var(--an-surface);
  position: relative;
  overflow: hidden;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* v3: border なし / Ambient Shadow のみ / border-radius 1.25rem */
.menu-card {
  background: var(--an-surface-low);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.07), 0 1px 4px rgba(44, 26, 14, 0.04);
  transition: box-shadow 300ms ease-out, transform 300ms ease-out;
}

@media (hover: hover) {
  .menu-card:hover {
    box-shadow: 0 12px 32px rgba(44, 26, 14, 0.10), 0 4px 8px rgba(44, 26, 14, 0.06);
    transform: translateY(-3px);
  }
}

.menu-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background: var(--an-primary);
  color: #fff;
  font-size: 0.625rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.menu-card-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--an-text);
  letter-spacing: 0.02em;
}

.menu-card-duration {
  font-size: 0.8125rem;
  color: var(--an-muted);
}

.menu-price {
  font-family: "Shippori Mincho", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--an-secondary);
  line-height: 1;
}

.menu-price-note {
  font-size: 0.75rem;
  color: var(--an-muted);
}

.menu-desc {
  font-size: 0.875rem;
  color: var(--an-muted);
  line-height: 1.7;
  /* No-Line Rule: border-top なし → padding-top のみ */
}

/* First-timer banner */
.first-timer-banner {
  background: rgba(73, 102, 59, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--an-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(44, 26, 14, 0.05);
  /* No-Line Rule: border なし */
}

.first-timer-banner .original-price {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--an-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* ----------------------------------------------------------
   14. CTA Block (reusable)
   ---------------------------------------------------------- */
.cta-block {
  text-align: center;
}

.cta-micro {
  font-size: 0.8125rem;
  color: var(--an-muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   15. Stats — v3: 地形ライン装飾
   ---------------------------------------------------------- */
#stats {
  background: var(--an-surface-low);
  overflow: hidden;
  position: relative;
}

/* 地形ラインパターン (v3新規) */
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(27, 28, 26, 0.035) 28px,
    rgba(27, 28, 26, 0.035) 29px
  );
  pointer-events: none;
  z-index: 0;
}

/* 大型ゴーストテキスト */
.stats-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 700;
  color: var(--an-text-ghost);
  letter-spacing: 0.2em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-item {
  padding: 1rem 0;
}

.stat-number {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--an-text);
  display: block;
}

.stat-unit {
  font-size: 0.9375rem;
  color: var(--an-muted);
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--an-muted);
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------
   16. Flow — Horizontal Scroll Carousel (v3: No-Line Rule)
   ---------------------------------------------------------- */
#flow {
  background: var(--an-surface-mid);
}

.flow-scroller-outer {
  overflow: hidden;
  margin-left: -2rem;
  margin-right: -2rem;
}

.flow-scroller {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 2rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--an-primary) var(--an-surface-high);
}

.flow-scroller::-webkit-scrollbar {
  height: 4px;
}

.flow-scroller::-webkit-scrollbar-track {
  background: var(--an-surface-high);
  border-radius: 2px;
}

.flow-scroller::-webkit-scrollbar-thumb {
  background: var(--an-primary);
  border-radius: 2px;
}

/* v3: border なし / Ambient Shadow のみ / 1.25rem 角丸 */
.flow-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--an-surface);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.06);
}

.flow-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.flow-card:nth-child(1) { transition-delay: 0s; }
.flow-card:nth-child(2) { transition-delay: 0.1s; }
.flow-card:nth-child(3) { transition-delay: 0.2s; }
.flow-card:nth-child(4) { transition-delay: 0.3s; }
.flow-card:nth-child(5) { transition-delay: 0.4s; }

.flow-spacer {
  flex: 0 0 1rem;
}

.flow-step-num {
  font-family: "Shippori Mincho", serif;
  font-size: 3rem;
  font-weight: 700;
  color: #5a7a4e;
  line-height: 1;
  display: block;
}

.flow-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--an-text);
  letter-spacing: 0.02em;
}

.flow-card-desc {
  font-size: 0.875rem;
  color: var(--an-muted);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .flow-card { flex: 0 0 240px; }
  .flow-scroller-outer {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
  .flow-scroller {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ----------------------------------------------------------
   17. Result — CSS Bar Graphs (v2継承)
   ---------------------------------------------------------- */
#result {
  background: var(--an-surface);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 767px) {
  .result-grid { grid-template-columns: 1fr; }
}

.result-group {
  background: var(--an-surface-low);
  border-radius: 1.25rem;
  padding: 1.75rem;
  /* Ambient Shadow */
  box-shadow: 0 2px 8px rgba(44, 26, 14, 0.05);
}

.result-group-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--an-text);
  letter-spacing: 0.02em;
}

.result-stage {
  /* margin handled via inline style or mt */
}

.result-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.result-stage-label {
  font-size: 0.6875rem;
  color: var(--an-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-stage-value {
  font-family: "Shippori Mincho", serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--an-secondary);
}

.result-bar-track {
  background: var(--an-surface-high);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.result-bar-fill {
  height: 10px;
  border-radius: 5px;
  background: var(--an-primary);
  width: 0;
  transition: width 1.2s ease-out;
}

.result-bar-inverse {
  background: linear-gradient(to right, var(--an-primary), var(--an-secondary));
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--an-muted);
  text-align: center;
  opacity: 0.8;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   18. Therapist — v3: No-Line Rule + Ambient Shadow
   ---------------------------------------------------------- */
#therapist {
  background: var(--an-surface-low);
}

.therapist-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 767px) {
  .therapist-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* v3: CSS Gradient プレースホルダー */
.therapist-photo-placeholder {
  aspect-ratio: 5/7;
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    var(--an-surface-mid) 0%,
    var(--an-surface-high) 50%,
    var(--an-surface-low) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.06);
}

.therapist-photo-inner {
  width: 80%;
  height: 80%;
  background: linear-gradient(160deg, var(--an-surface-mid) 0%, var(--an-surface-high) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.therapist-name {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--an-text);
}

.therapist-name-en {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--an-muted);
  text-transform: uppercase;
  display: block;
}

.therapist-credentials {
  font-size: 0.8125rem;
  color: var(--an-muted);
  line-height: 1.7;
}

/* v3: border-left → background color のみ */
.therapist-quote {
  background: var(--an-surface-mid);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  font-size: 0.9375rem;
  color: var(--an-text);
  line-height: 1.85;
}

.therapist-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  /* No-Line Rule: border-top なし → background 差で区別 */
}

.therapist-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.therapist-stat-num {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--an-secondary);
  line-height: 1;
}

.therapist-stat-label {
  font-size: 0.6875rem;
  color: var(--an-muted);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   19. Testimonials — v3: No-Line Rule
   ---------------------------------------------------------- */
#testimonial {
  background: var(--an-surface-mid);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* v3: border なし / Ambient Shadow */
.testimonial-card {
  background: var(--an-surface);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.06);
}

.stars {
  color: var(--an-secondary);
  font-size: 1rem;
  display: block;
  letter-spacing: 0.1em;
}

.testimonial-before {
  font-size: 0.875rem;
  color: var(--an-muted);
  line-height: 1.75;
  display: block;
}

.testimonial-after {
  font-size: 0.9rem;
  color: var(--an-text);
  font-weight: 500;
  line-height: 1.75;
  display: block;
}

/* v3: border-top なし → 背景色なしで視覚的区別 */
.testimonial-cite {
  font-size: 0.75rem;
  color: var(--an-muted);
  letter-spacing: 0.05em;
  display: block;
  font-style: normal;
  opacity: 0.8;
}

/* ----------------------------------------------------------
   20. Access
   ---------------------------------------------------------- */
#access {
  background: var(--an-surface);
}

.access-layout {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 767px) {
  .access-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.access-section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--an-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-info {
  font-size: 0.875rem;
  color: var(--an-text);
  line-height: 1.8;
}

.access-map-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

.access-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.access-map-link {
  font-size: 0.875rem;
  color: var(--an-primary);
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms;
}

@media (hover: hover) {
  .access-map-link:hover { opacity: 0.7; }
}

/* ----------------------------------------------------------
   21. Contact Form — v3: Ghost Border
   ---------------------------------------------------------- */
#contact {
  background: var(--an-surface-low);
  position: relative;
  overflow: hidden;
}

/* 銀杏装飾 (contact) */
#contact .section-ginkgo {
  position: absolute;
  bottom: -1rem;
  left: -2rem;
  width: clamp(100px, 14vw, 180px);
  opacity: 0.04;
  pointer-events: none;
  transform: rotate(-15deg);
}

.contact-heading {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--an-text);
  text-align: center;
  line-height: 1.3;
}

.contact-sub {
  font-size: 0.9rem;
  color: var(--an-muted);
  text-align: center;
  line-height: 1.7;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--an-surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  /* Ambient Shadow */
  box-shadow: 0 8px 32px rgba(44, 26, 14, 0.07), 0 2px 8px rgba(44, 26, 14, 0.04);
}

@media (max-width: 767px) {
  .contact-form-wrap { padding: 1.5rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--an-text);
  letter-spacing: 0.02em;
}

.form-required {
  color: #b03a2e;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

/* v3: Ghost Border — rgba(195,200,188,0.6) */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--an-surface);
  border: 1px solid rgba(195, 200, 188, 0.6);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--an-text);
  transition: border-color 200ms, outline 200ms;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--an-primary);
  outline-offset: 2px;
  border-color: var(--an-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--an-muted);
  pointer-events: none;
}

.form-field-error {
  font-size: 0.8125rem;
  color: #b03a2e;
  display: none;
}

.form-field-error.is-visible {
  display: block;
}

#form-alert {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  display: none;
}

#form-alert.is-error {
  display: block;
  background: rgba(176,58,46,0.08);
  color: #b03a2e;
}

#form-status {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  display: none;
  background: rgba(73, 102, 59, 0.1);
  color: var(--an-primary);
}

#form-status.is-visible {
  display: block;
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--an-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1rem;
  border: none;
  border-radius: 9999px;
  min-height: 56px;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.12);
}

@media (hover: hover) {
  .btn-submit:hover {
    background: #3a5230;
    transform: translateY(-1px);
  }
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ----------------------------------------------------------
   22. Footer — Dark footer (v3: rgba text)
   ---------------------------------------------------------- */
#site-footer {
  background: var(--an-text);
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }
}

.footer-logo-ja {
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  display: block;
}

.footer-logo-en {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  display: block;
}

.footer-catch {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.70);
}

.footer-nav-title {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  display: block;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.80);
  transition: color 200ms;
}

@media (hover: hover) {
  .footer-nav-list a:hover { color: #fff; }
}

.footer-info {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
}

/* No-Line Rule: footer-divider は薄い透明度ラインのみ */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.70);
}

.footer-skova {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.70);
}

.footer-skova a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  transition: color 200ms;
}

@media (hover: hover) {
  .footer-skova a:hover { color: #fff; }
}

/* ----------------------------------------------------------
   23. Section Heading (reusable)
   ---------------------------------------------------------- */
.section-heading {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--an-text);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.section-lead {
  font-size: 0.9375rem;
  color: var(--an-muted);
  line-height: 1.85;
  max-width: 40ch;
}

/* ----------------------------------------------------------
   24. Reveal Animations — v3: 5要素まで translateY
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ----------------------------------------------------------
   25. prefers-reduced-motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .flow-card,
  .result-bar-fill,
  .menu-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------
   26. Utility
   ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
