/* ============================================================
   QUEENS Marriage Design — style.css v2
   Design: Art Deco Luxury × Editorial Japanese Craft
   Palette: Dusty Purple / Champagne Gold / Warm Ivory
   Fonts: Noto Serif JP + Cormorant Garamond + Noto Sans JP
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --color-deep:    #5D3F5C;
  --color-main:    #9B7A98;
  --color-light:   #C8A4C0;
  --color-mist:    #EFE6ED;

  /* Backgrounds */
  --bg-base:  #FAF7F9;
  --bg-pure:  #FFFFFF;
  --bg-ivory: #F5F0EB;
  --bg-ink:   #1E1620;

  /* Text */
  --text-primary:   #2A2229;
  --text-secondary: #6B5F68;
  --text-muted:     #9E8E9C;
  --text-on-dark:   rgba(255,255,255,0.88);

  /* Borders & Rules */
  --border:         #E0D5DE;
  --border-fine:    rgba(93,63,92,0.15);
  --border-gold:    rgba(201,169,97,0.4);

  /* Accents */
  --accent-gold:    #C9A961;
  --accent-rose:    #B47896;
  --accent-gold-light: #E8D5A0;

  /* Shadows */
  --shadow-xs:   0 2px 8px rgba(93,63,92,0.06);
  --shadow-sm:   0 4px 20px rgba(93,63,92,0.08);
  --shadow-md:   0 8px 40px rgba(93,63,92,0.12);
  --shadow-lg:   0 20px 60px rgba(93,63,92,0.16);
  --shadow-gold: 0 0 0 1px rgba(201,169,97,0.3), 0 8px 32px rgba(201,169,97,0.1);

  /* Gradients */
  --gradient-hero:    linear-gradient(150deg, #C8A4C0 0%, #9B7A98 45%, #5D3F5C 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 55%, rgba(30,22,32,0.75) 100%);
  --gradient-ivory:   linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-base) 100%);
  --gradient-mist:    linear-gradient(135deg, var(--color-mist) 0%, #F7EFF5 100%);

  /* Typography Scale */
  --fs-display: clamp(44px, 6vw, 80px);
  --fs-h1:      clamp(36px, 5vw, 64px);
  --fs-h2:      clamp(26px, 3.5vw, 44px);
  --fs-h3:      clamp(20px, 2.5vw, 28px);
  --fs-h4:      18px;
  --fs-lead:    18px;
  --fs-body:    16px;
  --fs-sm:      14px;
  --fs-xs:      12px;
  --fs-label:   11px;

  /* Spacing */
  --sp-section-y:     120px;
  --sp-section-y-sm:  72px;
  --sp-section-x:     80px;
  --sp-section-x-sm:  24px;
  --container-max:    1280px;
  --container-text:   760px;

  /* Motion */
  --ease-luxury:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:      cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:     200ms;
  --dur-base:     600ms;
  --dur-slow:     1000ms;
  --dur-xslow:    1400ms;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴ Pro W3', sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-luxury);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', 'ヒラギノ明朝 ProN', serif;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--color-deep);
}

h1 { font-size: var(--fs-h1); line-height: 1.25; }
h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
h4 { font-size: var(--fs-h4); margin-bottom: 12px; font-weight: 400; }

/* Cormorant accent for decorative English text */
.cormorant,
.en-accent,
.section-label,
.stat-en,
.pricing-en {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.12em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--text-secondary);
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 56px;
  font-size: var(--fs-body);
  line-height: 1.9;
}

/* Section label — small caps English above h2 */
.section-label {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Numbered section indicator */
.section-num {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-main);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 2px;
  margin-bottom: 16px;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-section-x);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--sp-section-x);
}

.section {
  padding: var(--sp-section-y) 0;
}

.section-mist  { background: var(--gradient-mist); }
.section-white { background: var(--bg-pure); }
.section-ivory { background: var(--gradient-ivory); }
.section-ink   { background: var(--bg-ink); }

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 var(--sp-section-x-sm);
  }
  .section {
    padding: var(--sp-section-y-sm) 0;
  }
}

/* ============================================================
   5. DECORATIVE SVG ELEMENTS (inline)
   ============================================================ */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  color: var(--border-gold);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-gold);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Hairline decorative rules */
.rule-gold {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  margin: 16px 0;
}

.rule-gold.centered {
  margin: 16px auto;
}

/* ============================================================
   6. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(250, 247, 249, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-fine);
  transition: box-shadow var(--dur-base) var(--ease-luxury),
              background var(--dur-base) var(--ease-luxury);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--sp-section-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-deep);
  line-height: 1;
}

.logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-main);
  font-weight: 300;
  line-height: 1;
}

/* Navigation */
.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--dur-base) var(--ease-luxury);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--dur-base) var(--ease-luxury);
}

.nav a:hover,
.nav a.active {
  color: var(--color-deep);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  padding: 11px 28px;
  background: transparent;
  color: var(--color-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-deep);
  transition: all var(--dur-base) var(--ease-luxury);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--color-deep);
  color: white;
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-deep);
  transition: all var(--dur-base) var(--ease-luxury);
}

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

@media (max-width: 968px) {
  .header-inner { padding: 16px var(--sp-section-x-sm); }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-base);
    padding: 32px var(--sp-section-x-sm);
    border-top: 1px solid var(--border-fine);
    overflow-y: auto;
    z-index: 899;
  }

  .nav.is-open a {
    padding: 20px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }

  .nav.is-open a::after { display: none; }
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 52px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-luxury);
}

.btn:hover::before { opacity: 1; }

/* Primary */
.btn-primary {
  background: var(--color-deep);
  color: white;
  border: 1px solid var(--color-deep);
}

.btn-primary:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 120, 150, 0.3);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-deep);
  border: 1px solid var(--color-deep);
}

.btn-outline:hover {
  background: var(--color-deep);
  color: white;
  transform: translateY(-2px);
}

/* Gold */
.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-ink);
  border: 1px solid var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn-gold:hover {
  background: #B8954F;
  border-color: #B8954F;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.35);
}

/* Full width */
.btn-full { width: 100%; }

/* Small */
.btn-sm { padding: 12px 32px; font-size: 14px; }

/* Button group */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn { padding: 16px 32px; font-size: 14px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

/* ============================================================
   8. HERO — INDEX PAGE (Cinematic Full-Bleed)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 60px;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: center;
  animation: hero-kenburns 18s ease-out infinite alternate;
}

/* Graceful placeholder when no image */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg,
    #C8A4C0 0%,
    #9B7A98 35%,
    #7A5C78 60%,
    #5D3F5C 100%
  );
}

/* Subtle noise texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Gradient overlay — bottom heavy for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30, 22, 32, 0.12) 0%,
    rgba(30, 22, 32, 0.05) 40%,
    rgba(30, 22, 32, 0.55) 75%,
    rgba(30, 22, 32, 0.78) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px var(--sp-section-x) 72px;
}

/* Superscript English label */
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.hero-content h1 {
  font-size: var(--fs-display);
  color: white;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 200;
  max-width: 680px;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content .lead {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 40px;
}

/* Stats strip inside hero */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 32px;
}

.hero-stat {
  flex: 1;
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.hero-stat:nth-child(2) {
  padding-left: 32px;
}

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: white;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: var(--sp-section-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.hero-scroll-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes hero-kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 200%; }
}

@media (max-width: 968px) {
  .hero { min-height: 90svh; }
  .hero-content { padding: 60px var(--sp-section-x-sm) 64px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 0 0 24px; }
  .hero-stat:last-child { padding: 0; border-bottom: none; }
  .hero-stat:nth-child(2) { padding: 0 0 24px; }
  .hero-scroll { display: none; }
}

/* ============================================================
   9. IBJ CERTIFIED BADGE (SVG inline, trust signal)
   ============================================================ */
.ibj-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border: 1px solid var(--border-gold);
  background: rgba(201,169,97,0.06);
}

.ibj-badge-wrap .ibj-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  line-height: 1.3;
}

/* ============================================================
   10. SECTION — 3 PROMISES
   ============================================================ */
.promises {
  background: var(--bg-pure);
}

.promises-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-fine);
  border: 1px solid var(--border-fine);
}

.promise-card {
  background: var(--bg-pure);
  padding: 56px 40px;
  position: relative;
  transition: background var(--dur-base) var(--ease-luxury);
}

.promise-card:hover {
  background: var(--bg-base);
}

/* Editorial number */
.promise-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 28px;
  letter-spacing: -0.02em;
  user-select: none;
}

/* SVG icon container */
.promise-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.promise-icon-wrap svg {
  width: 36px;
  height: 36px;
  color: var(--color-main);
}

.promise-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--color-deep);
}

.promise-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

@media (max-width: 968px) {
  .promises-grid { grid-template-columns: 1fr; }
  .promise-card { padding: 40px 28px; }
}

/* ============================================================
   11. SECTION — FEATURES (4 strengths)
   ============================================================ */
.features-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-cell {
  background: var(--bg-pure);
  border: 1px solid var(--border-fine);
  padding: 40px 36px;
  transition: box-shadow var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-luxury);
}

.bento-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Cell sizes */
.bento-cell-wide  { grid-column: span 7; }
.bento-cell-narrow{ grid-column: span 5; }
.bento-cell-full  { grid-column: span 12; }
.bento-cell-half  { grid-column: span 6; }

.bento-cell-accent {
  background: linear-gradient(135deg, var(--color-deep) 0%, #4a3149 100%);
  border-color: var(--color-deep);
}

.bento-cell-accent h3,
.bento-cell-accent p,
.bento-cell-accent .bento-label {
  color: white;
}

.bento-cell-accent p { color: rgba(255,255,255,0.96); font-weight: 400; }
.bento-cell-accent h3 { color: #fff; }

.bento-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: block;
}

.bento-cell-accent .bento-label {
  color: var(--accent-gold-light);
}

.bento-cell h3 {
  font-size: var(--fs-h4);
  margin-bottom: 14px;
  line-height: 1.4;
}

.bento-cell p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* Icon in bento */
.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-gold);
  background: rgba(201,169,97,0.06);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}

@media (max-width: 968px) {
  .features-bento { grid-template-columns: 1fr; }
  .bento-cell-wide,
  .bento-cell-narrow,
  .bento-cell-full,
  .bento-cell-half { grid-column: span 1; }
}

/* Legacy features-grid for sub-pages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-pure);
  border: 1px solid var(--border-fine);
  transition: box-shadow var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-luxury);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  background: rgba(201,169,97,0.06);
  font-size: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

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

/* ============================================================
   12. DIAGNOSIS CTA BANNER — Immersive
   ============================================================ */
.diagnosis-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg-ink);
  padding: 100px var(--sp-section-x);
}

/* Decorative gradient blob */
.diagnosis-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,122,152,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.diagnosis-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.diagnosis-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.diagnosis-banner h2 {
  color: white;
  font-weight: 200;
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}

.diagnosis-banner .lead {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 0;
}

.diagnosis-banner .btn-gold {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .diagnosis-banner { padding: 72px var(--sp-section-x-sm); }
  .diagnosis-banner-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   13. COUNSELOR / ABOUT
   ============================================================ */
.counselor-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.counselor-image-wrap {
  position: relative;
}

.counselor-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* Decorative border offset */
.counselor-image-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--border-gold);
  z-index: 0;
  pointer-events: none;
}

.counselor-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image placeholder */
.counselor-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-mist) 0%, var(--color-light) 60%, var(--color-main) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.counselor-badge-wrap {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
}

.counselor-content h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  margin-bottom: 24px;
}

.counselor-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.counselor-tag {
  padding: 6px 18px;
  border: 1px solid var(--border-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  background: rgba(201,169,97,0.05);
}

.counselor-message {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 2;
  font-size: 15px;
}

/* Career timeline */
.counselor-career {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-bottom: 36px;
}

.career-item {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-fine);
  font-size: 14px;
}

.career-item:last-child { border-bottom: none; }

.career-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 60px;
}

.career-text {
  color: var(--text-secondary);
}

@media (max-width: 968px) {
  .counselor-section { grid-template-columns: 1fr; gap: 48px; }
  .counselor-image-frame { max-width: 360px; margin: 0 auto; }
  .counselor-image-frame::before { display: none; }
  .counselor-badge-wrap { right: 0; bottom: -10px; }
}

/* ============================================================
   14. TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--bg-ivory);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-pure);
  padding: 36px 32px;
  border: 1px solid var(--border-fine);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  line-height: 1;
  color: var(--color-mist);
  position: absolute;
  top: 16px;
  left: 20px;
}

.testimonial-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-fine);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--color-main);
  letter-spacing: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-deep);
  letter-spacing: 0.04em;
  display: block;
}

.testimonial-info {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 968px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px 24px; }
}

/* ============================================================
   15. PRICING
   ============================================================ */
.pricing-section { background: var(--bg-pure); }

.pricing-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-fine);
}

.pricing-card {
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--border-fine);
  transition: transform var(--dur-base) var(--ease-luxury),
              box-shadow var(--dur-base) var(--ease-luxury);
}

.pricing-card:last-child { border-right: none; }

.pricing-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Featured card */
.pricing-card.is-featured {
  background: var(--color-deep);
  z-index: 1;
}

/* Plan badge */
.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px;
  background: var(--accent-gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bg-ink);
  font-weight: 600;
  white-space: nowrap;
}

/* Plan tier label */
.pricing-tier-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.is-featured .pricing-tier-label { color: rgba(255,255,255,0.55); }

/* Header */
.pricing-header {
  padding: 48px 40px 36px;
  border-bottom: 1px solid var(--border-fine);
}

.is-featured .pricing-header {
  border-bottom-color: rgba(255,255,255,0.1);
}

.pricing-header h3 {
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.is-featured .pricing-header h3 {
  color: white;
}

.pricing-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.is-featured .pricing-tagline { color: rgba(255,255,255,0.65); }

/* Body */
.pricing-body {
  padding: 36px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-fine);
  color: var(--text-secondary);
  gap: 16px;
}

.is-featured .pricing-list li {
  border-bottom-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-deep);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.is-featured .pricing-list .price { color: var(--accent-gold-light); }

/* Highlights list */
.pricing-support {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-fine);
}

.is-featured .pricing-support {
  border-top-color: rgba(255,255,255,0.1);
}

.pricing-support li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.is-featured .pricing-support li { color: rgba(255,255,255,0.65); }

.pricing-support li::before {
  content: '—';
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Pricing footer CTA */
.pricing-footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border-fine);
}

.is-featured .pricing-footer {
  border-top-color: rgba(255,255,255,0.1);
}

.pricing-footer .btn { width: 100%; }

/* Note below pricing */
.pricing-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 20px;
  }
  .pricing-card {
    border: 1px solid var(--border-fine);
    border-right: 1px solid var(--border-fine);
  }
  .pricing-card.is-featured {
    transform: none;
  }
  .pricing-header,
  .pricing-body,
  .pricing-footer { padding-left: 28px; padding-right: 28px; }
}

/* ============================================================
   16. FAQ ACCORDION
   ============================================================ */
.faq-section { background: var(--bg-pure); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-pure);
  border: 1px solid var(--border-fine);
}

.faq-question {
  width: 100%;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-luxury);
  list-style: none;
  background: none;
}

.faq-question:hover { background: var(--bg-base); color: var(--color-deep); }

.faq-question-text { flex: 1; line-height: 1.5; }

/* Plus/minus icon */
.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 300;
  transition: transform var(--dur-base) var(--ease-luxury),
              background var(--dur-base) var(--ease-luxury);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-gold);
  color: white;
}

.faq-answer {
  padding: 0 32px 28px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-primary);
  border-top: 1px solid var(--border-fine);
  padding-top: 20px;
}

.faq-answer a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Remove default marker */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

@media (max-width: 768px) {
  .faq-question { padding: 20px 20px; }
  .faq-answer { padding: 0 20px 20px; padding-top: 16px; }
}

/* ============================================================
   17. CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
  line-height: 1.3;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
}

.contact-list li {
  padding-left: 24px;
  position: relative;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.contact-note {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-mist);
  border-left: 2px solid var(--color-main);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* Elevated form */
.contact-form {
  background: var(--bg-pure);
  padding: 48px;
  border: 1px solid var(--border-fine);
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  margin-bottom: 32px;
  font-size: var(--fs-h3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-deep);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: var(--bg-base);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-luxury),
              box-shadow var(--dur-fast) var(--ease-luxury);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B7A98' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-main);
  background: var(--bg-pure);
  box-shadow: 0 0 0 3px rgba(155,122,152,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.required {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 10px;
  background: var(--accent-rose);
  color: white;
  letter-spacing: 0.08em;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 24px;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-main);
}

.form-consent a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form { padding: 32px 24px; }
}

/* ============================================================
   18. BOTTOM CTA
   ============================================================ */
.bottom-cta {
  background: var(--bg-pure);
  padding: var(--sp-section-y) var(--sp-section-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,230,237,0.6) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.bottom-cta h2 {
  margin-bottom: 16px;
}

.bottom-cta p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
}

.bottom-cta .btn-group {
  justify-content: center;
}

@media (max-width: 768px) {
  .bottom-cta { padding: 72px var(--sp-section-x-sm); }
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding: 80px var(--sp-section-x) 32px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand column */
.footer-brand-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: white;
  display: block;
  margin-bottom: 6px;
}

.footer-brand-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  display: block;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

/* Badge in footer */
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(201,169,97,0.3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201,169,97,0.8);
}

/* Nav columns */
.footer-col h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col ul li {
  padding: 6px 0;
  font-size: 13px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-base) var(--ease-luxury);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-col ul li:not(:has(a)) {
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 968px) {
  .footer { padding: 60px var(--sp-section-x-sm) 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   20. PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px var(--sp-section-x) 80px;
  overflow: hidden;
  background: var(--bg-pure);
  border-bottom: 1px solid var(--border-fine);
  min-height: 360px;
}

/* Decorative background — defaults to gradient, overridden per-page via --hero-img */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image: var(--gradient-mist);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* When inline --hero-img is set: replace ::before bg with image + readability gradient */
.page-hero[style*='--hero-img']::before {
  background-image:
    linear-gradient(95deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.30) 28%, rgba(255,255,255,0) 55%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}

/* Subtle vignette over the image for elegance */
.page-hero[style*='--hero-img']::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgba(45,30,46,0.18) 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

.page-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: 16px;
  max-width: 640px;
}

.page-hero p {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px var(--sp-section-x-sm) 60px;
  }
  .page-hero::before { display: none; }
}

/* ============================================================
   21. ANIMATIONS & SCROLL FX — v2 (Aman / Aesop级 Cinematic)
   ============================================================ */

/* ----------------------------------------------------------
   Motion design tokens (追加)
   ---------------------------------------------------------- */
:root {
  /* Aman-grade timing: 1.6–2.4s slow ease */
  --ease-cinematic:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drift:      cubic-bezier(0.45, 0, 0.25, 1);
  --ease-surface:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-drift:       1800ms;
  --dur-cinematic:   2200ms;
  --dur-surface:     500ms;
  --stagger-unit:    90ms;
}

/* ----------------------------------------------------------
   A. fade-in — Aman-grade slow rise
   IS 1.8s / translate Y 40px → 0 / IntersectionObserver trigger
   Scroll-driven primary + .is-visible fallback
   ---------------------------------------------------------- */
.fade-in {
  opacity: 0;
  translate: 0 42px;
  transition:
    opacity  1.8s var(--ease-cinematic),
    translate 1.8s var(--ease-cinematic);
  will-change: opacity, translate;
}

/* IntersectionObserver JS adds .is-visible */
.fade-in.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Scroll-driven override (Chrome 115+ / Firefox 128+ / Safari 18+) */
@supports (animation-timeline: view()) {
  .fade-in {
    animation: anim-fade-rise 1.8s var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 8% cover 45%;
    /* reset transition so animation takes over */
    transition: none;
    opacity: 1; /* let @keyframes control */
    translate: none;
  }
}

@keyframes anim-fade-rise {
  from {
    opacity: 0;
    translate: 0 42px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ----------------------------------------------------------
   B. reveal-up — editorial line-by-line ascent
   Longer delay, clip-path reveal for H2-level headlines
   ---------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  translate: 0 52px;
  clip-path: inset(0 0 100% 0);   /* hidden below clip */
  transition:
    opacity  1.4s var(--ease-reveal),
    translate 1.4s var(--ease-reveal),
    clip-path 1.4s var(--ease-reveal);
  will-change: opacity, translate, clip-path;
}

.reveal-up.active {
  opacity: 1;
  translate: 0 0;
  clip-path: inset(0 0 0% 0);
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }

@supports (animation-timeline: view()) {
  .reveal-up {
    animation: anim-reveal-up 1.4s var(--ease-reveal) both;
    animation-timeline: view();
    animation-range: entry 5% cover 42%;
    transition: none;
    opacity: 1;
    translate: none;
    clip-path: none;
  }

  .reveal-delay-1 { animation-delay: 90ms; }
  .reveal-delay-2 { animation-delay: 180ms; }
  .reveal-delay-3 { animation-delay: 270ms; }
  .reveal-delay-4 { animation-delay: 360ms; }
}

@keyframes anim-reveal-up {
  from {
    opacity: 0;
    translate: 0 52px;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(0 0 0% 0);
  }
}

/* ----------------------------------------------------------
   C. image-scale-wrap — 2s decelerated zoom-out Ken Burns
   on-entry: scale(1.10) → scale(1.00)
   ---------------------------------------------------------- */
.image-scale-wrap {
  overflow: hidden;
}

.image-scale-wrap img {
  scale: 1.10;
  transition: scale 2.2s var(--ease-drift);
  will-change: scale;
  transform-origin: center center;
}

.image-scale-wrap.active img,
.image-scale-wrap.in-view img {
  scale: 1.00;
}

@supports (animation-timeline: view()) {
  .image-scale-wrap img {
    animation: anim-scale-in 2.2s var(--ease-drift) both;
    animation-timeline: view(block);
    animation-range: entry 0% cover 55%;
    transition: none;
    scale: none;
  }
}

@keyframes anim-scale-in {
  from { scale: 1.10; }
  to   { scale: 1.00; }
}

/* ----------------------------------------------------------
   D. stagger-children — mathematical nth-child delay
   90ms interval per child (up to 12 items)
   ---------------------------------------------------------- */
.stagger-children > * {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity  1.4s var(--ease-cinematic),
    translate 1.4s var(--ease-cinematic);
  will-change: opacity, translate;
}

/* .is-visible (JS-added) — stagger by nth-child */
.stagger-children.is-visible > *:nth-child(1)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 0); }
.stagger-children.is-visible > *:nth-child(2)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 1); }
.stagger-children.is-visible > *:nth-child(3)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 2); }
.stagger-children.is-visible > *:nth-child(4)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 3); }
.stagger-children.is-visible > *:nth-child(5)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 4); }
.stagger-children.is-visible > *:nth-child(6)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 5); }
.stagger-children.is-visible > *:nth-child(7)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 6); }
.stagger-children.is-visible > *:nth-child(8)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 7); }
.stagger-children.is-visible > *:nth-child(9)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 8); }
.stagger-children.is-visible > *:nth-child(10) { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 9); }
.stagger-children.is-visible > *:nth-child(11) { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 10); }
.stagger-children.is-visible > *:nth-child(12) { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 11); }

/* .visible alias (Section 38用) */
.stagger-children.visible > *:nth-child(1)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 0); }
.stagger-children.visible > *:nth-child(2)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 1); }
.stagger-children.visible > *:nth-child(3)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 2); }
.stagger-children.visible > *:nth-child(4)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 3); }
.stagger-children.visible > *:nth-child(5)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 4); }
.stagger-children.visible > *:nth-child(6)  { opacity:1; translate:0 0; transition-delay: calc(var(--stagger-unit) * 5); }

/* Number count-up placeholder */
.count-up {
  display: inline-block;
}

/* ============================================================
   22. LEGAL PAGES
   ============================================================ */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-section-x);
}

.legal-intro {
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  line-height: 1.9;
}

.legal-container h2 {
  font-size: 18px;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--color-main);
}

.legal-container p {
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.9;
}

.legal-bullet,
.legal-ordered {
  padding-left: 24px;
  margin: 16px 0;
}

.legal-bullet { list-style: disc; }
.legal-ordered { list-style: decimal; }

.legal-bullet li,
.legal-ordered li {
  margin-bottom: 8px;
  line-height: 1.9;
  color: var(--text-primary);
}

.legal-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 32px;
  border-top: 1px solid var(--border);
}

.legal-list dt {
  font-weight: 500;
  color: var(--color-deep);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.legal-list dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .legal-container { padding: 0 var(--sp-section-x-sm); }
  .legal-list { grid-template-columns: 1fr; gap: 0; }
  .legal-list dt { padding-bottom: 4px; border-bottom: none; }
  .legal-list dd { margin-bottom: 16px; padding-top: 0; }
}

/* ============================================================
   23. UTILITY / MISC
   ============================================================ */

/* Diagnosis page specific */
.diagnosis-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  border: 1px solid var(--border-fine);
}

.step-card {
  padding: 48px 36px;
  border-right: 1px solid var(--border-fine);
  position: relative;
  background: var(--bg-pure);
  transition: background var(--dur-base) var(--ease-luxury);
}

.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--bg-base); }

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .diagnosis-steps { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--border-fine); }
  .step-card:last-child { border-bottom: none; }
}

/* IBJ badge inline */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Floating LINE CTA */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur-base) var(--ease-luxury);
}

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

.line-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6,199,85,0.35);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-spring);
}

.line-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(6,199,85,0.45);
}

.line-float-btn svg {
  width: 28px;
  height: 28px;
  color: white;
}

.line-float-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: white;
  padding: 3px 10px;
  box-shadow: var(--shadow-xs);
}

@media (max-width: 480px) {
  .line-float { bottom: 20px; right: 16px; }
}

/* ============================================================
   22. PAGE-HERO INNER ELEMENTS
   ============================================================ */
.page-hero-text {
  position: relative;
  z-index: 1;
}

.page-hero-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  /* Layered: second decorative pass over ::before gradient */
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(201,169,97,0.04) 100%
  );
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-deco::after {
  content: '';
  position: absolute;
  bottom: 32px;
  right: 48px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold));
  opacity: 0.4;
}

@media (max-width: 768px) {
  .page-hero-deco { display: none; }
}

/* ============================================================
   23. HERO-EYEBROW (page sub-hero label)
   ============================================================ */
.hero-eyebrow {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

/* ============================================================
   24. CONTACT-NOTE-ITEM (icon + text rows)
   ============================================================ */
.contact-note-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-fine);
}

.contact-note-item:last-child {
  border-bottom: none;
}

.contact-note-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-gold);
  opacity: 0.8;
}

/* ============================================================
   25. DIAGNOSIS-STEPS — 4-COLUMN VARIANT (counselor page)
   ============================================================ */
.diagnosis-steps--4 {
  grid-template-columns: repeat(4, 1fr);
}

.diagnosis-steps--4 .step-card {
  padding: 36px 24px;
}

@media (max-width: 960px) {
  .diagnosis-steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagnosis-steps--4 .step-card:nth-child(2) {
    border-right: none;
  }
  .diagnosis-steps--4 .step-card:nth-child(1),
  .diagnosis-steps--4 .step-card:nth-child(2) {
    border-bottom: 1px solid var(--border-fine);
  }
  .diagnosis-steps--4 .step-card:last-child {
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .diagnosis-steps--4 {
    grid-template-columns: 1fr;
  }
  .diagnosis-steps--4 .step-card {
    border-right: none;
    border-bottom: 1px solid var(--border-fine);
  }
  .diagnosis-steps--4 .step-card:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   26. ORNAMENT DIVIDER
   ============================================================ */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 80px auto;
  max-width: 320px;
  color: var(--accent-gold);
  opacity: 0.5;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.4;
}

.ornament-divider svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ============================================================
   27. PRICING-GRID (pricing page)
   ============================================================ */
.pricing-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.pricing-intro p {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-fine);
  margin-bottom: 80px;
}

.pricing-tier {
  padding: 56px 40px;
  border-right: 1px solid var(--border-fine);
  position: relative;
  background: var(--bg-pure);
  transition: background var(--dur-base) var(--ease-luxury);
}

.pricing-tier:last-child {
  border-right: none;
}

.pricing-tier.is-featured {
  background: var(--color-accent);
}

.pricing-tier.is-featured .pricing-amount,
.pricing-tier.is-featured .pricing-period,
.pricing-tier.is-featured h3,
.pricing-tier.is-featured .pricing-tier-label,
.pricing-tier.is-featured .pricing-support li {
  color: var(--bg-pure);
}

.pricing-tier.is-featured .pricing-support li::before {
  background: rgba(250,247,249,0.5);
}

.pricing-tier-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 28px;
}

.pricing-tier.is-featured .pricing-tier-label {
  color: rgba(250,247,249,0.7);
}

.pricing-tier h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  margin: 24px 0 4px;
}

.pricing-period {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.pricing-support {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--border-fine);
  padding-top: 24px;
}

.pricing-tier.is-featured .pricing-support {
  border-top-color: rgba(250,247,249,0.2);
}

.pricing-support li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing-support li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--accent-gold);
}

.pricing-footer {
  border-top: 1px solid var(--border-fine);
  padding-top: 32px;
}

.pricing-tier.is-featured .pricing-footer {
  border-top-color: rgba(250,247,249,0.2);
}

.pricing-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.pricing-tier.is-featured .pricing-note {
  color: rgba(250,247,249,0.6);
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-tier { border-right: none; border-bottom: 1px solid var(--border-fine); }
  .pricing-tier:last-child { border-bottom: none; }
  .pricing-amount { font-size: 44px; }
}

/* ============================================================
   28. CONTACT-GRID (contact page)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-fine);
  margin-bottom: 80px;
}

.contact-info-panel {
  padding: 64px 56px;
  border-right: 1px solid var(--border-fine);
  background: var(--bg-base);
}

.contact-form-panel {
  padding: 64px 56px;
  background: var(--bg-pure);
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-panel { border-right: none; border-bottom: 1px solid var(--border-fine); }
  .contact-info-panel,
  .contact-form-panel { padding: 48px 32px; }
}

@media (max-width: 480px) {
  .contact-info-panel,
  .contact-form-panel { padding: 40px 24px; }
}

/* ============================================================
   29. SECTION-LABEL + RULE-GOLD (shared editorial elements)
   ============================================================ */
.section-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
  margin: 20px 0 32px;
  opacity: 0.4;
}

/* ============================================================
   30. CONTACT-LIST (contact page bullet list)
   ============================================================ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.contact-list li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-fine);
  padding-left: 20px;
  position: relative;
}

.contact-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  opacity: 0.6;
}

.contact-list li:last-child { border-bottom: none; }

/* ============================================================
   31. PROMISE-GRID (shared numbered/icon grid)
   ============================================================ */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-fine);
}

.promise-item {
  padding: 48px 36px;
  border-right: 1px solid var(--border-fine);
  position: relative;
}

.promise-item:last-child { border-right: none; }

.promise-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.promise-item svg {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: block;
}

.promise-item h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.promise-item p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .promises-grid { grid-template-columns: 1fr; }
  .promise-item { border-right: none; border-bottom: 1px solid var(--border-fine); }
  .promise-item:last-child { border-bottom: none; }
}

/* ============================================================
   32. FAQ STYLES (faq page)
   ============================================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-fine);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-fine);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.6;
  gap: 16px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-q-text {
  flex: 1;
}

.faq-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-luxury);
}

.faq-answer {
  padding: 0 0 28px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

/* ============================================================
   33. BOTTOM-CTA (shared CTA section)
   ============================================================ */
.bottom-cta {
  background: var(--color-ink);
  color: var(--bg-pure);
  padding: 120px var(--sp-section-x);
  text-align: center;
}

.bottom-cta h2 {
  color: var(--bg-pure);
  margin-bottom: 16px;
}

.bottom-cta p {
  color: rgba(250,247,249,0.7);
  font-size: var(--fs-lead);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .bottom-cta { padding: 80px var(--sp-section-x-sm); }
}

/* ============================================================
   34. COUNSELOR PAGE SPECIFICS
   ============================================================ */
.counselor-section {
  padding: 100px var(--sp-section-x);
  max-width: var(--container-max);
  margin: 0 auto;
}

.counselor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.counselor-image-wrap {
  position: relative;
}

.counselor-image-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gradient-mist);
  position: relative;
  overflow: hidden;
}

.counselor-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counselor-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-mist) 0%, var(--color-mist) 100%);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.counselor-ibj-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
}

.counselor-content {
  padding-top: 24px;
}

.counselor-name {
  font-size: 32px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.counselor-name-kana {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: block;
}

.counselor-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.counselor-career {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--border-fine);
}

.counselor-career li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-fine);
  font-size: 13px;
  color: var(--text-secondary);
}

.counselor-career .career-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--accent-gold);
  flex-shrink: 0;
  min-width: 56px;
}

.counselor-philosophy {
  background: var(--bg-base);
  padding: 100px var(--sp-section-x);
}

.counselor-philosophy-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (max-width: 960px) {
  .counselor-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .counselor-image-frame { aspect-ratio: 4/3; }
  .counselor-ibj-badge { bottom: -16px; right: -8px; }
}

@media (max-width: 768px) {
  .counselor-section { padding: 80px var(--sp-section-x-sm); }
  .counselor-philosophy { padding: 80px var(--sp-section-x-sm); }
}

/* ============================================================
   35. DIAGNOSIS BANNER (full-width dark hero variant)
   ============================================================ */
.diagnosis-banner {
  background: var(--color-ink);
  color: var(--bg-pure);
  padding: 140px var(--sp-section-x) 80px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.diagnosis-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(42,31,44,0.85) 0%, rgba(42,31,44,0.55) 60%, rgba(42,31,44,0.92) 100%),
    var(--diagnosis-bg, none);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.diagnosis-banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.diagnosis-banner h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 200;
  color: var(--bg-pure);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  max-width: 640px;
}

.diagnosis-banner p {
  font-size: var(--fs-lead);
  color: rgba(250,247,249,0.96);
  max-width: 620px;
  line-height: 1.85;
  margin-bottom: 48px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
  .diagnosis-banner {
    padding: 120px var(--sp-section-x-sm) 60px;
    min-height: 380px;
  }
  .diagnosis-banner h1 { font-size: clamp(28px, 7vw, 40px); }
}

/* ============================================================
   36. FEATURES BENTO GRID (features page)
   ============================================================ */
.bento-wide-text h3 {
  font-size: 22px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.bento-wide-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.bento-wide-text strong {
  color: var(--accent-gold);
}

.bento-wide-text a {
  font-size: 13px;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent-gold);
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease-luxury);
}

.bento-wide-text a:hover { opacity: 1; }

/* ============================================================
   37. MISSING VAR — sp-side (alias for section-x on narrow)
   ============================================================ */
:root {
  --sp-side: var(--sp-section-x);
}

/* ============================================================
   38. TOP PAGE ONLY — index.html 専用追加スタイル
   (2026-05-14 クローン再構築)
   ============================================================ */

/* ---- Scene Divider (full-bleed photo strip) ---- */
.scene-divider {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.scene-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.scene-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,22,32,0.42) 0%,
    rgba(30,22,32,0.22) 50%,
    rgba(30,22,32,0.55) 100%
  );
}
.scene-divider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 24px;
}
.scene-divider-text .scene-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}
.scene-divider-text h2 {
  color: white;
  font-weight: 200;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}
.scene-divider-text p {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.9;
  max-width: 480px;
}

/* ---- Strengths Digest (3 columns, light) ---- */
.strengths-section {
  background: var(--bg-pure);
}
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-fine);
  background: var(--border-fine);
  position: relative;
}
.strength-card {
  background: var(--bg-pure);
  padding: 52px 40px;
  position: relative;
  transition: background var(--dur-base) var(--ease-luxury);
}
.strength-card:hover { background: var(--bg-base); }
.strength-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  letter-spacing: -0.02em;
  user-select: none;
}
.strength-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  background: rgba(201,169,97,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.strength-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}
.strength-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--color-deep);
  line-height: 1.4;
}
.strength-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.strengths-photo {
  position: relative;
  overflow: hidden;
  height: 260px;
  margin-top: 0;
  border-top: 1px solid var(--border-fine);
}
.strengths-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.8s var(--ease-luxury);
}
.strengths-photo:hover img { transform: scale(1.04); }
.strengths-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93,63,92,0.22) 0%, transparent 60%);
}
@media (max-width: 968px) {
  .strengths-grid { grid-template-columns: 1fr; background: var(--bg-pure); border: none; gap: 2px; }
  .strength-card { border: 1px solid var(--border-fine); padding: 40px 28px; }
  .strengths-photo { height: 200px; }
}

/* ---- Pricing Digest (compact, 3 columns) ---- */
.pricing-digest {
  background: var(--bg-ivory);
}
.pricing-digest-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-digest-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.pricing-photo-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.pricing-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pricing-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  pointer-events: none;
  margin: 16px;
}
.pricing-digest-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border-fine);
}
.pricing-digest-card {
  background: var(--bg-pure);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0;
  transition: background var(--dur-fast) var(--ease-luxury);
}
.pricing-digest-card:hover { background: var(--bg-base); }
.pricing-digest-card.is-highlight {
  background: var(--color-deep);
}
.pricing-digest-card.is-highlight:hover { background: var(--color-deep); opacity: 0.95; }
.pricing-digest-tier {
  writing-mode: vertical-rl;
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding: 24px 16px;
  border-right: 1px solid var(--border-fine);
  user-select: none;
}
.is-highlight .pricing-digest-tier {
  color: rgba(255,255,255,0.45);
  border-right-color: rgba(255,255,255,0.1);
}
.pricing-digest-name {
  padding: 24px 28px;
}
.pricing-digest-name h4 {
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--color-deep);
  font-weight: 400;
}
.is-highlight .pricing-digest-name h4 { color: white; }
.pricing-digest-name p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.is-highlight .pricing-digest-name p { color: rgba(255,255,255,0.55); }
.pricing-digest-amount {
  padding: 24px 28px;
  text-align: right;
  border-left: 1px solid var(--border-fine);
}
.is-highlight .pricing-digest-amount { border-left-color: rgba(255,255,255,0.1); }
.pricing-digest-amount .amount-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.is-highlight .pricing-digest-amount .amount-label { color: rgba(255,255,255,0.5); }
.pricing-digest-amount .amount-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-deep);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.is-highlight .pricing-digest-amount .amount-val { color: var(--accent-gold-light); }
.pricing-badge-top {
  position: absolute;
  top: -1px;
  right: 28px;
  padding: 4px 16px;
  background: var(--accent-gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--bg-ink);
  font-weight: 600;
}
.pricing-digest-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
@media (max-width: 968px) {
  .pricing-digest-layout { grid-template-columns: 1fr; gap: 40px; }
  .pricing-photo-wrap { height: 260px; }
  .pricing-digest-amount { padding: 20px 20px; }
  .pricing-digest-name { padding: 20px 20px; }
}

/* ---- Counselor Compact ---- */
.counselor-compact {
  background: var(--bg-pure);
}
.counselor-compact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.counselor-compact-photo {
  position: relative;
}
.counselor-compact-photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.counselor-compact-photo-frame::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 1px solid var(--border-gold);
  z-index: 0;
  pointer-events: none;
}
.counselor-compact-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.counselor-compact-photo-bg {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 160px;
  height: 120px;
  overflow: hidden;
  opacity: 0.28;
  z-index: 0;
  filter: saturate(0.4);
}
.counselor-compact-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.counselor-compact-ibj {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 3;
}
.counselor-compact-content h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  margin-bottom: 20px;
}
.counselor-compact-content .rule-gold { margin-bottom: 20px; }
.counselor-compact-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.counselor-compact-tags span {
  padding: 5px 16px;
  border: 1px solid var(--border-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  background: rgba(201,169,97,0.05);
}
.counselor-compact-msg {
  font-size: 15px;
  line-height: 2.0;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
@media (max-width: 968px) {
  .counselor-compact-grid { grid-template-columns: 1fr; gap: 48px; }
  .counselor-compact-photo-frame { max-width: 320px; margin: 0 auto; }
  .counselor-compact-photo-frame::before { display: none; }
  .counselor-compact-photo-bg { right: 0; bottom: -12px; }
  .counselor-compact-ibj { left: 0; bottom: -10px; }
}

/* ---- Diagnosis Banner with photo ---- */
.diagnosis-photo-banner {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.diagnosis-photo-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.diagnosis-photo-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.diagnosis-photo-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30,22,32,0.88) 0%,
    rgba(30,22,32,0.72) 50%,
    rgba(30,22,32,0.35) 100%
  );
}
.diagnosis-photo-banner-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px var(--sp-section-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.diagnosis-photo-banner-content h2 {
  color: white;
  font-weight: 200;
  margin-bottom: 12px;
}
.diagnosis-photo-banner-content .section-label { color: var(--accent-gold); }
.diagnosis-photo-banner-content .lead {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  margin-bottom: 0;
}
.diagnosis-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.diagnosis-cta-note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-align: right;
}
@media (max-width: 768px) {
  .diagnosis-photo-banner-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px var(--sp-section-x-sm);
  }
  .diagnosis-cta-block { align-items: flex-start; }
  .diagnosis-cta-note { text-align: left; }
}

/* ---- Testimonials compact ---- */
.testimonials-compact {
  background: var(--bg-base);
}
.testimonials-compact-header {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 968px) {
  .testimonials-compact-grid { grid-template-columns: 1fr; }
}

/* ---- Bottom CTA with flowers bg ---- */
.cta-photo-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250,247,249,0.91);
}
.cta-photo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px var(--sp-section-x);
  max-width: 680px;
  margin: 0 auto;
}
.cta-photo-content h2 {
  margin-bottom: 16px;
  color: var(--color-deep);
}
.cta-photo-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.cta-photo-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .cta-photo-content { padding: 64px var(--sp-section-x-sm); }
}

/* ---- Trust strip refinement ---- */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .trust-strip { gap: 20px; }
  .trust-item { font-size: 12px; }
}

/* ---- Floating LINE CTA ---- */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.line-float-btn {
  width: 56px;
  height: 56px;
  background: #06C755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6,199,85,0.35);
  transition: transform var(--dur-fast) var(--ease-luxury),
              box-shadow var(--dur-fast) var(--ease-luxury);
}
.line-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(6,199,85,0.4);
}
.line-float-btn svg {
  width: 26px;
  height: 26px;
  color: white;
}
.line-float-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Fade-in / stagger (Section 38 alias — points to Section 21 v2) ---- */
/* .fade-in, .stagger-children are now defined in Section 21 v2 above.    */
/* .visible alias is also handled there. This block keeps reduced-motion.  */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .stagger-children > * { opacity: 1; translate: none; transition: none; animation: none; }
}

/* ============================================================
   39. TOP PAGE — EDITORIAL HYBRID (Section 39)
   Aman Quiet Luxury × Editorial Japanese Craft
   ============================================================ */

/* ---- 39-A: Header on-hero state & scroll transition ---- */
.header-editorial {
  transition: background var(--dur-base) var(--ease-luxury),
              box-shadow var(--dur-base) var(--ease-luxury),
              color var(--dur-base) var(--ease-luxury);
}

/* On hero: transparent background, white logo + nav */
.header-on-hero {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}
.header-on-hero .logo-en,
.header-on-hero .logo-ja,
.header-on-hero .nav-editorial a,
.header-on-hero .header-cta-editorial {
  color: rgba(255,255,255,0.92);
}
.header-on-hero .header-cta-editorial {
  border-color: rgba(255,255,255,0.45);
}
.header-on-hero .header-cta-editorial:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
.header-on-hero .menu-toggle span {
  background: white;
}

/* Scrolled state: opaque ivory */
.header-scrolled {
  background: rgba(250, 247, 249, 0.97);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-fine);
}

/* ---- 39-B: Hero editorial ---- */
.hero-editorial {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-editorial-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Fallback gradient when image fails */
.hero-bg-fallback {
  background: var(--gradient-hero);
}

/* Gradient overlay — bottom heavy */
.hero-editorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30, 22, 32, 0.08) 0%,
    rgba(30, 22, 32, 0.04) 35%,
    rgba(30, 22, 32, 0.52) 70%,
    rgba(30, 22, 32, 0.82) 100%
  );
}

/* 12-column editorial grid */
.hero-editorial-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px var(--sp-section-x) 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: flex-end;
}

/* Left copy: spans 7 columns */
.hero-editorial-copy {
  grid-column: 1 / span 7;
}

/* Right panel: spans 4 columns, offset from right */
.hero-editorial-panel {
  grid-column: 9 / span 4;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 32px;
  margin-bottom: 8px;
}

/* Hero eyebrow */
.hero-editorial-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 28px;
}
.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* Hero H1 */
.hero-editorial-h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: var(--fs-display);
  font-weight: 200;
  color: white;
  line-height: 1.18;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

/* Hero sub */
.hero-editorial-sub {
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin-bottom: 44px;
}

/* Hero CTA group */
.hero-editorial-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Ghost button (hero) */
.btn-editorial-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  transition: color var(--dur-base) var(--ease-luxury),
              border-color var(--dur-base) var(--ease-luxury);
}
.btn-editorial-ghost:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}
.btn-editorial-ghost svg {
  transition: transform var(--dur-base) var(--ease-luxury);
}
.btn-editorial-ghost:hover svg {
  transform: translateX(4px);
}

/* Dark version of ghost (bottom CTA) */
.btn-editorial-ghost--dark {
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-editorial-ghost--dark:hover {
  color: var(--color-deep);
  border-color: var(--color-deep);
}

/* Hero qualitative panel */
.hero-panel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
}
.hero-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  width: 100%;
}
.hero-panel-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  font-style: italic;
}
.hero-panel-ja {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
}

/* reveal-up / image-scale-wrap → v2 defined in Section 21.              */
/* This block retains reduced-motion and link-editorial which follow.     */
@media (prefers-reduced-motion: reduce) {
  .reveal-up       { opacity: 1; translate: none; clip-path: none; transition: none; animation: none; }
  .image-scale-wrap img { scale: none; transition: none; animation: none; }
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-editorial-grid {
    display: flex;
    flex-direction: column;
    padding: 80px var(--sp-section-x-sm) 64px;
    gap: 40px;
  }
  .hero-editorial-panel {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-left: 0;
    padding-top: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-panel-divider { display: none; }
  .hero-panel-item { padding: 0; }
}
@media (max-width: 480px) {
  .hero-editorial-h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-editorial-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- 39-C: Promises section ---- */
.promises-header {
  margin-bottom: 80px;
}
.promises-title {
  font-size: var(--fs-h2);
  margin-top: 8px;
}

/* Promise row: asymmetric 3-part layout */
.promise-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-fine);
}
.promise-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
/* Right variant: image on right side */
.promise-row--right {
  grid-template-columns: 120px 1fr 1fr;
  direction: rtl;
}
.promise-row--right > * { direction: ltr; }

/* Huge Cormorant number (decorative background element) */
.promise-num-col {
  display: flex;
  justify-content: flex-end;
}
.promise-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Promise image */
.promise-image-col {
  aspect-ratio: 4 / 3;
}
.promise-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Promise text */
.promise-text-col {
  padding: 16px 0;
}
.promise-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 16px;
}
.promise-text-col h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 16px;
  line-height: 1.5;
}
.promise-text-col p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .promise-row,
  .promise-row--right {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    margin-bottom: 56px;
    padding-bottom: 56px;
  }
  .promise-num-col { justify-content: flex-start; }
  .promise-num { font-size: clamp(56px, 14vw, 80px); }
  .promise-image-col { aspect-ratio: 16 / 9; }
}

/* ---- 39-D: Counselor Voice section ---- */
.counselor-voice-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.counselor-voice-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.counselor-voice-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.counselor-voice-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(30, 22, 32, 0.82) 0%,
    rgba(93, 63, 92, 0.68) 100%
  );
}
.counselor-voice-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-section-x);
  text-align: center;
}
.counselor-voice-quote {
  margin: 24px 0 32px;
}
.counselor-voice-quote p {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 2.1;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
}
.counselor-voice-name {
  margin-top: 32px;
  line-height: 1.8;
}
.counselor-voice-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-style: italic;
}
.counselor-voice-placeholder {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .counselor-voice-content { padding: 0 var(--sp-section-x-sm); }
  .counselor-voice-section { padding: 80px 0; }
}

/* ---- 39-E: Strengths bento grid ---- */
.strengths-editorial-header {
  margin-bottom: 56px;
}

.strengths-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}

/* Wide cell: spans 8 columns, 2 rows */
.bento-cell-wide {
  grid-column: 1 / span 8;
  grid-row: 1 / span 2;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-mist);
}

/* Text cells: 4 columns each */
.bento-cell-text {
  grid-column: span 4;
  background: var(--bg-pure);
  padding: 40px 36px;
  border: 1px solid var(--border-fine);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento-cell-accent {
  background: var(--bg-ivory);
}

/* Image + text overlay cell: 8 columns */
.bento-cell-image-text {
  grid-column: 1 / span 8;
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.bento-img-wrap {
  width: 100%;
  height: 100%;
}
.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wide cell label */
.bento-cell-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  background: linear-gradient(to top, rgba(30,22,32,0.7) 0%, transparent 100%);
}
.bento-label-en {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 4px;
}
.bento-label-ja {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.06em;
  margin: 0;
}

/* Image-text overlay */
.bento-cell-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px 40px;
  background: linear-gradient(to top, rgba(30,22,32,0.82) 0%, transparent 100%);
  width: 100%;
}
.bento-cell-overlay-text h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 10px;
  line-height: 1.4;
}
.bento-cell-overlay-text p { font-size: 13px; line-height: 1.8; margin: 0; }

/* Bento numbers */
.bento-num {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: var(--color-mist);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}
.bento-cell-text .bento-num { margin-bottom: 4px; }
.bento-cell-text h3 { font-size: clamp(16px, 1.8vw, 20px); margin-bottom: 8px; }
.bento-cell-text p { font-size: 13px; line-height: 1.85; color: var(--text-secondary); flex: 1; }

@media (max-width: 960px) {
  .strengths-bento {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .bento-cell-wide     { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bento-cell-text     { grid-column: span 1; padding: 28px 24px; }
  .bento-cell-image-text { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}
@media (max-width: 480px) {
  .strengths-bento { grid-template-columns: 1fr; }
  .bento-cell-text { grid-column: 1; }
}

/* link-editorial (Aman-style underline link) */
.link-editorial {
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
  color: var(--color-deep);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.link-editorial::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: var(--color-main);
  transform-origin: bottom right;
  transition: transform 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}
.link-editorial:hover::after {
  transform-origin: bottom left;
  transform: scaleX(0);
}

/* ---- 39-F: Counselor editorial ---- */
.counselor-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Photo wrap with corner brackets */
.counselor-editorial-photo-wrap {
  position: relative;
  padding: 24px;
}

/* Aman-style L-shaped corner brackets */
.corner-bracket {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--accent-gold);
  border-style: solid;
}
.corner-bracket-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner-bracket-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-bracket-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-bracket-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.counselor-editorial-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-mist);
}
.counselor-editorial-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counselor-editorial-handwriting {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 140px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.counselor-editorial-handwriting img {
  width: 100%;
  height: auto;
}

.counselor-editorial-ibj {
  position: absolute;
  bottom: 24px;
  left: 0;
  transform: translateX(-50%);
}

.counselor-editorial-content {
  padding-top: 8px;
}

.counselor-editorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}
.counselor-editorial-tags span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-deep);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  background: rgba(201,169,97,0.05);
}

.counselor-editorial-quote {
  border-left: 2px solid var(--border-gold);
  padding-left: 20px;
  margin: 0 0 24px;
}
.counselor-editorial-quote p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.counselor-editorial-name {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.counselor-editorial-role {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-style: italic;
}

@media (max-width: 768px) {
  .counselor-editorial-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .counselor-editorial-ibj {
    transform: none;
    left: auto;
    right: 8px;
    bottom: 8px;
  }
  .counselor-editorial-handwriting { display: none; }
}

/* ---- 39-G: Pricing editorial ---- */
.pricing-editorial-header {
  margin-bottom: 48px;
  text-align: center;
}

.pricing-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pricing-editorial-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-fine);
  padding: 36px 28px 32px;
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
}
.pricing-editorial-card--featured {
  background: var(--bg-ink);
  border-color: var(--border-gold);
}
.pricing-editorial-card--featured .pricing-editorial-tier,
.pricing-editorial-card--featured .pricing-editorial-name,
.pricing-editorial-card--featured .pricing-editorial-desc,
.pricing-editorial-card--featured .price-label,
.pricing-editorial-card--featured .price-keiro {
  color: rgba(255,255,255,0.7);
}
.pricing-editorial-card--featured .price-val {
  color: var(--accent-gold);
}
.pricing-editorial-card--featured .price-entry {
  color: rgba(255,255,255,0.5);
}

.pricing-badge-editorial {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--bg-ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-editorial-tier {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.pricing-editorial-name {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 400;
}
.pricing-editorial-desc {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.pricing-editorial-price {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-fine);
}
.pricing-editorial-card--featured .pricing-editorial-price {
  border-top-color: rgba(201,169,97,0.2);
}
.price-entry {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.price-monthly {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.price-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--color-deep);
  letter-spacing: -0.01em;
  line-height: 1;
}
.price-val small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.price-keiro {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Jewelry image accent */
.pricing-editorial-image-accent {
  margin-top: 48px;
  max-width: 320px;
}
.pricing-editorial-image-accent img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pricing-editorial-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .pricing-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pricing-editorial-card {
    grid-template-rows: auto;
  }
  .pricing-editorial-image-accent { max-width: 200px; }
}

/* ---- 39-H: Testimonials editorial ---- */
.testimonials-editorial-header {
  margin-bottom: 56px;
  text-align: center;
}

.testimonials-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-editorial-card {
  background: var(--bg-pure);
  padding: 36px 28px 28px;
  border: 1px solid var(--border-fine);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.testimonial-editorial-quote-mark {
  font-size: 56px;
  line-height: 1;
  color: var(--color-mist);
  font-style: italic;
  margin-bottom: -16px;
}

.testimonial-editorial-body {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-secondary);
  flex: 1;
}

.testimonial-editorial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-fine);
}
.testimonial-editorial-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-editorial-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.testimonial-editorial-info {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .testimonials-editorial-grid { grid-template-columns: 1fr; }
}

/* ---- 39-I: Bottom CTA editorial ---- */
.cta-editorial {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-editorial-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-editorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(250, 247, 249, 0.94) 0%,
    rgba(239, 230, 237, 0.88) 100%
  );
}
.cta-editorial-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-section-x);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}
.cta-editorial-decor {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.cta-editorial-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-editorial-h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.3;
  margin-bottom: 0;
}
.cta-editorial-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.cta-editorial-btns {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 16px;
}
.cta-editorial-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .cta-editorial-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 var(--sp-section-x-sm);
  }
  .cta-editorial-decor { max-width: 240px; }
  .cta-editorial { padding: 80px 0; }
}
@media (max-width: 480px) {
  .cta-editorial-btns { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   40. ANIMATION SYSTEM v2 — Aman / Aesop / Hermès Grade
   2026-05-14
   ============================================================ */

/* ----------------------------------------------------------
   40-A. Hero background Ken Burns — slow cinematic (12s)
   1.00 → 1.04 scale, alternating directions per cycle
   ---------------------------------------------------------- */
@keyframes hero-kenburns {
  0%   { transform: scale(1.00) translate(0, 0); }
  50%  { transform: scale(1.04) translate(-0.5%, -0.3%); }
  100% { transform: scale(1.00) translate(0, 0); }
}

/* Override the old 18s hero-kenburns used in Section 8 hero */
.hero-bg img,
.hero-editorial-bg img {
  animation: hero-kenburns 12s var(--ease-surface) infinite;
  transform-origin: center center;
  will-change: transform;
}

/* ----------------------------------------------------------
   40-B. Scroll indicator line — refined perpetual drop
   ---------------------------------------------------------- */
@keyframes scroll-line {
  0%   { top: -100%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

/* ----------------------------------------------------------
   40-C. Header scroll transition — 600ms smooth
   Reinforces Section 39's .header-on-hero / .header-scrolled
   ---------------------------------------------------------- */
.header {
  transition:
    background    600ms var(--ease-cinematic),
    box-shadow    600ms var(--ease-cinematic),
    border-color  600ms var(--ease-cinematic);
}

.header.scrolled,
.header.header-scrolled {
  background: rgba(250, 247, 249, 0.97);
  box-shadow: 0 1px 0 var(--border-fine), var(--shadow-sm);
}

/* ----------------------------------------------------------
   40-D. Button microinteractions — luxe elevation + shadow bloom
   ---------------------------------------------------------- */

/* Primary */
.btn-primary {
  transition:
    background   500ms var(--ease-surface),
    border-color 500ms var(--ease-surface),
    color        500ms var(--ease-surface),
    translate    400ms var(--ease-cinematic),
    box-shadow   400ms var(--ease-cinematic);
}

.btn-primary:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 32px rgba(180, 120, 150, 0.28),
              0 4px  12px rgba(93, 63, 92, 0.14);
}

.btn-primary:active {
  translate: 0 -1px;
  box-shadow: 0 4px 12px rgba(180, 120, 150, 0.2);
  transition-duration: 80ms;
}

/* Outline */
.btn-outline {
  transition:
    background   500ms var(--ease-surface),
    color        500ms var(--ease-surface),
    translate    400ms var(--ease-cinematic),
    box-shadow   400ms var(--ease-cinematic);
}

.btn-outline:hover {
  translate: 0 -3px;
  box-shadow: 0 10px 28px rgba(93, 63, 92, 0.16);
}

.btn-outline:active {
  translate: 0 -1px;
  transition-duration: 80ms;
}

/* Gold */
.btn-gold {
  transition:
    background   500ms var(--ease-surface),
    border-color 500ms var(--ease-surface),
    color        500ms var(--ease-surface),
    translate    400ms var(--ease-cinematic),
    box-shadow   400ms var(--ease-cinematic);
}

.btn-gold:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.30),
              0 4px  12px rgba(201, 169, 97, 0.16);
}

.btn-gold:active {
  translate: 0 -1px;
  transition-duration: 80ms;
}

/* Header CTA */
.header-cta {
  transition:
    background   400ms var(--ease-surface),
    color        400ms var(--ease-surface),
    box-shadow   400ms var(--ease-cinematic);
}

.header-cta:hover {
  box-shadow: 0 6px 18px rgba(93, 63, 92, 0.14);
}

/* ----------------------------------------------------------
   40-E. Card microinteractions — perspective tilt + shadow depth
   ---------------------------------------------------------- */

/* Bento cell */
.bento-cell {
  transition:
    box-shadow  500ms var(--ease-surface),
    translate   400ms var(--ease-cinematic),
    rotate      400ms var(--ease-cinematic);
  transform-style: preserve-3d;
}

.bento-cell:hover {
  box-shadow: var(--shadow-lg);
  translate: 0 -4px;
}

/* Feature card */
.feature-card {
  transition:
    box-shadow  500ms var(--ease-surface),
    translate   400ms var(--ease-cinematic);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  translate: 0 -3px;
}

/* Pricing card */
.pricing-card {
  transition:
    translate    500ms var(--ease-cinematic),
    box-shadow   500ms var(--ease-surface);
}

.pricing-card:hover {
  translate: 0 -5px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* Testimonial card */
.testimonial-card,
.testimonial-editorial-card {
  transition:
    box-shadow  500ms var(--ease-surface),
    translate   400ms var(--ease-cinematic);
}

.testimonial-card:hover,
.testimonial-editorial-card:hover {
  box-shadow: var(--shadow-md);
  translate: 0 -3px;
}

/* Strength card */
.strength-card {
  transition:
    background  500ms var(--ease-surface),
    translate   400ms var(--ease-cinematic),
    box-shadow  400ms var(--ease-surface);
}

.strength-card:hover {
  translate: 0 -2px;
  box-shadow: var(--shadow-sm);
}

/* Promise card */
.promise-card {
  transition:
    background  500ms var(--ease-surface),
    translate   400ms var(--ease-cinematic),
    box-shadow  400ms var(--ease-surface);
}

.promise-card:hover {
  translate: 0 -2px;
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------
   40-F. Image zoom on hover — scene divider + photo strips
   ---------------------------------------------------------- */
.strengths-photo img,
.counselor-image-frame img,
.counselor-compact-photo-frame img,
.counselor-editorial-portrait img,
.scene-divider img,
.cta-editorial-decor img,
.pricing-photo-wrap img {
  transition: scale 900ms var(--ease-drift);
  will-change: scale;
  transform-origin: center center;
}

.strengths-photo:hover img,
.counselor-image-frame:hover img,
.counselor-compact-photo-frame:hover img,
.counselor-editorial-photo-wrap:hover .counselor-editorial-portrait img,
.scene-divider:hover img {
  scale: 1.04;
}

/* ----------------------------------------------------------
   40-G. link-editorial — Aman-style wipe transition (refinement)
   Direction: right-to-left wipe out on hover, left-to-right wipe in on un-hover
   ---------------------------------------------------------- */
.link-editorial::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: var(--color-main);
  transform-origin: bottom right;
  transform: scaleX(1);
  transition: transform 600ms cubic-bezier(0.86, 0, 0.07, 1);
}

.link-editorial:hover::after {
  transform-origin: bottom left;
  transform: scaleX(0);
  transition-duration: 500ms;
}

/* Nav underline — same precision */
.nav a::after {
  transition: width 500ms var(--ease-cinematic);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ----------------------------------------------------------
   40-H. FAQ accordion — height transition + chevron rotate
   Works with <details>/<summary> (existing HTML structure)
   ---------------------------------------------------------- */
.faq-item {
  transition: box-shadow 300ms var(--ease-surface);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-icon {
  transition:
    transform   400ms var(--ease-cinematic),
    background  300ms var(--ease-surface),
    color       300ms var(--ease-surface);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-gold);
  color: white;
}

/* faq-answer: smooth height reveal via max-height technique */
.faq-answer {
  overflow: hidden;
  transition: padding 400ms var(--ease-cinematic);
}

/* faq-question hover state */
.faq-question {
  transition:
    background  300ms var(--ease-surface),
    color       300ms var(--ease-surface);
}

/* ----------------------------------------------------------
   40-I. Hero content staggered entrance (on page load)
   Orchestrated sequence: eyebrow → h1 → sub → CTA → stats
   ---------------------------------------------------------- */
@keyframes hero-enter {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-eyebrow,
.hero-editorial-eyebrow {
  animation: hero-enter 1.2s var(--ease-cinematic) both;
  animation-delay: 200ms;
}

.hero-content h1,
.hero-editorial-h1 {
  animation: hero-enter 1.4s var(--ease-cinematic) both;
  animation-delay: 380ms;
}

.hero-content .lead,
.hero-editorial-sub {
  animation: hero-enter 1.4s var(--ease-cinematic) both;
  animation-delay: 520ms;
}

.hero-editorial-cta,
.hero-content .btn-group {
  animation: hero-enter 1.2s var(--ease-cinematic) both;
  animation-delay: 660ms;
}

.hero-stats,
.hero-editorial-panel {
  animation: hero-enter 1.2s var(--ease-cinematic) both;
  animation-delay: 800ms;
}

.hero-scroll {
  animation: hero-enter 1.0s var(--ease-cinematic) both;
  animation-delay: 1100ms;
}

/* ----------------------------------------------------------
   40-J. Scroll-driven parallax strips
   section-level slow drift (CSS only, no JS)
   ---------------------------------------------------------- */
@supports (animation-timeline: scroll()) {
  /* Scene divider image parallax: scrolls 8% slower than page */
  .scene-divider img {
    animation: parallax-drift 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0% 100%;
    will-change: translate;
  }

  @keyframes parallax-drift {
    from { translate: 0 -6%; }
    to   { translate: 0  6%; }
  }

  /* Counselor voice bg parallax */
  .counselor-voice-bg img {
    animation: parallax-slow 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0% 100%;
  }

  @keyframes parallax-slow {
    from { translate: 0 -4%; }
    to   { translate: 0  4%; }
  }
}

/* ----------------------------------------------------------
   40-K. Section heading entrance — section-label → rule → h2
   ---------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .section-label {
    animation: anim-label-in 1.0s var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  @keyframes anim-label-in {
    from {
      opacity: 0;
      letter-spacing: 0.5em;
    }
    to {
      opacity: 1;
      letter-spacing: 0.25em;
    }
  }

  .rule-gold {
    animation: anim-rule-expand 1.2s var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 8% cover 35%;
  }

  @keyframes anim-rule-expand {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 40px;
      opacity: 1;
    }
  }
}

/* ----------------------------------------------------------
   40-L. Ornament divider entrance — opacity + subtle scale
   ---------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .ornament-divider {
    animation: anim-ornament-in 1.4s var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }

  @keyframes anim-ornament-in {
    from { opacity: 0; scale: 0.92; }
    to   { opacity: 0.5; scale: 1; }
  }
}

/* ----------------------------------------------------------
   40-M. Number / stat count shimmer on entry
   Decorative ghost numbers get a reveal from below
   ---------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .promise-num,
  .strength-num,
  .step-num,
  .bento-num {
    animation: anim-num-rise 1.6s var(--ease-reveal) both;
    animation-timeline: view();
    animation-range: entry 8% cover 50%;
  }

  @keyframes anim-num-rise {
    from {
      opacity: 0;
      translate: 0 24px;
      color: transparent;
    }
    to {
      opacity: 1;
      translate: 0 0;
      color: var(--color-mist);
    }
  }
}

/* ----------------------------------------------------------
   40-N. IBJ badge pulse on entry
   ---------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .ibj-badge-wrap,
  .counselor-badge-wrap,
  .counselor-compact-ibj,
  .counselor-ibj-badge,
  .counselor-editorial-ibj {
    animation: anim-badge-float-in 1.2s var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 15% cover 50%;
  }

  @keyframes anim-badge-float-in {
    from {
      opacity: 0;
      translate: 8px 8px;
      scale: 0.94;
    }
    to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }
}

/* ----------------------------------------------------------
   40-O. LINE float button — elastic pop-in
   ---------------------------------------------------------- */
.line-float.is-visible {
  animation: anim-line-float-in 600ms var(--ease-cinematic) both;
}

@keyframes anim-line-float-in {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: 0.88;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.line-float-btn {
  transition:
    translate  300ms var(--ease-cinematic),
    box-shadow 300ms var(--ease-surface),
    scale      300ms var(--ease-cinematic);
}

.line-float-btn:hover {
  translate: 0 -4px;
  scale: 1.08;
  box-shadow: 0 10px 32px rgba(6,199,85,0.4);
}

/* ----------------------------------------------------------
   40-P. Pricing digest card hover — right-column reveal
   ---------------------------------------------------------- */
.pricing-digest-card {
  transition:
    background  400ms var(--ease-surface),
    box-shadow  400ms var(--ease-surface);
}

.pricing-digest-card:hover:not(.is-highlight) {
  box-shadow: 0 4px 24px rgba(93,63,92,0.08);
}

.pricing-digest-amount .amount-val {
  transition: color 400ms var(--ease-surface);
}

.pricing-digest-card:hover:not(.is-highlight) .amount-val {
  color: var(--color-deep);
}

/* ----------------------------------------------------------
   40-Q. Counselor career timeline — stagger lines on scroll
   ---------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .career-item,
  .counselor-career li {
    animation: anim-career-slide 800ms var(--ease-cinematic) both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }

  .career-item:nth-child(1), .counselor-career li:nth-child(1) { animation-delay: 0ms; }
  .career-item:nth-child(2), .counselor-career li:nth-child(2) { animation-delay: 80ms; }
  .career-item:nth-child(3), .counselor-career li:nth-child(3) { animation-delay: 160ms; }
  .career-item:nth-child(4), .counselor-career li:nth-child(4) { animation-delay: 240ms; }
  .career-item:nth-child(5), .counselor-career li:nth-child(5) { animation-delay: 320ms; }
  .career-item:nth-child(6), .counselor-career li:nth-child(6) { animation-delay: 400ms; }

  @keyframes anim-career-slide {
    from {
      opacity: 0;
      translate: -16px 0;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

/* ----------------------------------------------------------
   40-R. Focus state (WCAG 2.4.11) — brand purple ring
   ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
  border-radius: 2px;
  transition: outline-offset 150ms var(--ease-surface);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------------------------------------
   40-S. prefers-reduced-motion master kill-switch
   All v2 animations disabled in a single block
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }

  /* Scroll-driven animations explicitly neutralised */
  .fade-in,
  .reveal-up,
  .stagger-children > *,
  .section-label,
  .rule-gold,
  .ornament-divider,
  .promise-num, .strength-num, .step-num, .bento-num,
  .ibj-badge-wrap, .counselor-badge-wrap,
  .counselor-compact-ibj, .counselor-ibj-badge,
  .counselor-editorial-ibj,
  .hero-eyebrow, .hero-editorial-eyebrow,
  .hero-content h1, .hero-editorial-h1,
  .hero-content .lead, .hero-editorial-sub,
  .hero-editorial-cta, .hero-content .btn-group,
  .hero-stats, .hero-editorial-panel,
  .hero-scroll,
  .career-item, .counselor-career li {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  .image-scale-wrap img {
    animation: none !important;
    scale: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-bg img,
  .hero-editorial-bg img {
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================================
   41. POST-FIXES — visibility + bento + hero refinement (2026-05-14)
   ============================================================ */

/* 41-A. Define missing --color-ink (was undefined → bottom-cta transparent) */
:root {
  --color-ink: #2A2229;
  --color-ink-soft: #3a2f37;
}

/* 41-B. Bottom CTA — solid dark background + ensure white text contrast */
.bottom-cta {
  background: linear-gradient(180deg, #2A2229 0%, #3a2f37 100%) !important;
  color: #FAF7F9 !important;
  position: relative;
  isolation: isolate;
}
.bottom-cta::before {
  background: radial-gradient(circle, rgba(201,169,97,0.08) 0%, transparent 60%) !important;
}
.bottom-cta h2 { color: #FFFFFF !important; }
.bottom-cta p  { color: rgba(250,247,249,0.85) !important; }
.bottom-cta .section-label { color: #C9A961 !important; }
.bottom-cta .btn-outline {
  border-color: rgba(255,255,255,0.5) !important;
  color: #FFFFFF !important;
  background: transparent !important;
}
.bottom-cta .btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #FFFFFF !important;
}

/* 41-C. CTA-editorial overlay — make sure overlay applies (was computed empty) */
.cta-editorial-overlay {
  background: linear-gradient(135deg, rgba(250,247,249,0.95) 0%, rgba(239,230,237,0.92) 100%) !important;
}

/* 41-D. Strengths bento — simplify layout (clean 2×2 + top image strip) */
.strengths-bento {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  gap: 1px !important;
  background: var(--border-fine) !important;
  border: 1px solid var(--border-fine) !important;
}
.strengths-bento .bento-cell-wide {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  aspect-ratio: 16 / 5 !important;
  position: relative;
  overflow: hidden;
}
.strengths-bento .bento-cell-text {
  grid-column: span 1 !important;
  grid-row: auto !important;
  padding: 44px 36px !important;
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}
.strengths-bento .bento-cell-image-text {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  position: relative;
  aspect-ratio: 16 / 6 !important;
  overflow: hidden;
}
.strengths-bento .bento-cell-accent {
  background: linear-gradient(135deg, #5D3F5C 0%, #4A3149 100%) !important;
}
.strengths-bento .bento-cell-accent .bento-num { color: rgba(255,255,255,0.35) !important; }
.strengths-bento .bento-cell-accent h3 { color: #FFFFFF !important; }
.strengths-bento .bento-cell-accent p { color: rgba(255,255,255,0.92) !important; }

@media (max-width: 768px) {
  .strengths-bento { grid-template-columns: 1fr !important; }
  .strengths-bento .bento-cell-wide { aspect-ratio: 16/9 !important; }
}

/* 41-E. Hero — subtler Ken Burns (40s, 1.0→1.02) + stronger scrim */
.hero-bg img,
.hero-editorial-bg img {
  animation: hero-kenburns-subtle 40s ease-in-out infinite alternate !important;
}
@keyframes hero-kenburns-subtle {
  0%   { transform: scale(1.000); }
  100% { transform: scale(1.018); }
}

/* Stronger scrim over hero image to ground text */
.hero-overlay,
.hero-bg::after,
.hero-editorial-bg::after {
  background: linear-gradient(
    180deg,
    rgba(20,16,22,0.20) 0%,
    rgba(20,16,22,0.10) 30%,
    rgba(20,16,22,0.45) 70%,
    rgba(20,16,22,0.65) 100%
  ) !important;
}

/* Soft vignette to reduce "pasted" feeling */
.hero::after,
.hero-editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(20,16,22,0.35) 100%);
  z-index: 1;
}

/* Respect reduced motion - kill all kenburns */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .hero-editorial-bg img {
    animation: none !important;
  }
}

/* ============================================================
   42. POST-FIXES — counselor section text-only mode + counselor.html image scale-down
   ============================================================ */

/* 42-A. Index counselor section: text-only centered layout (no image) */
.counselor-editorial--textonly { padding: 100px var(--sp-section-x, 80px); }
.counselor-editorial-grid--centered {
  grid-template-columns: 1fr !important;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  gap: 0 !important;
}
.counselor-editorial-grid--centered .rule-gold { margin-left: auto; margin-right: auto; }
.counselor-editorial-grid--centered .counselor-editorial-tags { justify-content: center; }
.counselor-editorial-grid--centered .counselor-editorial-quote {
  text-align: center;
  border-left: none;
  border-top: 1px solid rgba(45,30,46,0.08);
  border-bottom: 1px solid rgba(45,30,46,0.08);
  padding: 32px 0;
  margin: 32px 0;
}
.counselor-editorial-grid--centered h2 {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 40px);
}
.counselor-editorial-grid--centered .btn { display: inline-block; }

/* 42-B. counselor.html image — scale down (was too large) */
.counselor-image-wrap {
  max-width: 380px;
  margin: 0 auto;
}
.counselor-image-frame {
  max-width: 380px;
  aspect-ratio: 3 / 4;
}
.counselor-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 969px) {
  .counselor-section {
    grid-template-columns: 380px 1fr !important;
    gap: 64px;
  }
}
@media (max-width: 768px) {
  .counselor-image-wrap, .counselor-image-frame { max-width: 280px; }
}

/* ============================================================
   43. Japanese typography polish — natural line breaks for headings
   ============================================================ */
h1, h2, h3, h4,
.cta-editorial-h2,
.hero-headline,
.faq-content-header h1,
.faq-category-title,
.bottom-cta h2,
.promises-title,
.pricing-editorial-header h2,
.testimonials-editorial h2,
.counselor-editorial-content h2,
.strengths-editorial-header h2 {
  /* Modern: break at natural Japanese phrase boundaries (Chrome 119+) */
  word-break: auto-phrase;
  line-break: strict;
  /* Fallback: avoid breaking inside words */
  overflow-wrap: anywhere;
}

/* Force no break for the 「。」「、」 to never start a line */
@supports (hanging-punctuation: allow-end) {
  h1, h2, h3, h4 {
    hanging-punctuation: allow-end;
  }
}

/* ============================================================
   44. MOBILE OPTIMIZATION — 2026-05-14
   All rules are additive. No existing section was modified.
   Target: 375×667 (iPhone SE) / 414×896 (iPhone 14 Pro Max) /
           768×1024 (iPad mini)
   Spec: WCAG 2.2 touch ≥44px / overflow-x:hidden / iOS Safari safe
   ============================================================ */

/* ── 44-0. Global overflow guard ─────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── 44-1. Breakpoint: 768px (tablet / large phone) ─────── */
@media (max-width: 768px) {

  /* -- 44-1-A. Design tokens override ------------------------ */
  :root {
    --sp-section-x:    24px;
    --sp-section-y:    72px;
    --sp-section-x-sm: 16px;
    --fs-display: clamp(34px, 9vw, 52px);
    --fs-h1:      clamp(28px, 7.5vw, 44px);
    --fs-h2:      clamp(22px, 5.5vw, 36px);
    --fs-h3:      clamp(18px, 4.5vw, 24px);
  }

  /* -- 44-1-B. Container side padding ----------------------- */
  .container {
    padding-inline: 20px;
  }

  /* -- 44-1-C. Hero — index.html (/hero-editorial) ---------- */
  /* iOS Safari: fallback before dvh was supported (< iOS 15.4) */
  .hero-editorial {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0;
  }
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 120px var(--sp-section-x) 64px;
    gap: 40px;
  }
  .hero-editorial-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0;
  }
  .hero-editorial-copy h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.35;
  }
  .hero-editorial-panel {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid rgba(201,169,97,0.3);
    padding-left: 0;
    padding-top: 24px;
  }
  .hero-stat {
    text-align: center;
    min-width: 80px;
  }
  .hero-editorial-scroll {
    display: none;
  }

  /* -- 44-1-D. Promises (promise-row) ----------------------- */
  .promise-row {
    grid-template-columns: 1fr;
    direction: ltr;   /* reset rtl for mobile */
    gap: 24px;
    padding: 48px 0;
  }
  .promise-row--right {
    direction: ltr;
  }
  .promise-row--right > * {
    direction: ltr;
  }
  .promise-num {
    font-size: clamp(52px, 13vw, 80px);
    line-height: 1;
  }
  .promise-text {
    font-size: var(--fs-body);
    line-height: 1.8;
  }
  .promise-image-wrap {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    border-radius: 0;
  }
  .promise-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* -- 44-1-E. Counselor editorial (index.html) ------------- */
  .counselor-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .counselor-editorial-photo-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px;
  }
  /* IBJ badge: keep proportional but don't overflow */
  .counselor-editorial-ibj {
    transform: translateX(0);
    right: -12px;
  }

  /* -- 44-1-F. Pricing editorial (index.html) --------------- */
  .pricing-editorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-editorial-card {
    /* subgrid fallback on older Safari */
    display: block;
  }
  .pricing-editorial-card .card-header,
  .pricing-editorial-card .card-body,
  .pricing-editorial-card .card-footer {
    display: block;
  }

  /* -- 44-1-G. Testimonials editorial ----------------------- */
  .testimonials-editorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* -- 44-1-H. CTA editorial (index.html) ------------------- */
  .cta-editorial-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px var(--sp-section-x);
  }
  .cta-editorial-decor {
    display: none; /* decorative image hidden on mobile */
  }

  /* -- 44-1-I. Bottom CTA section --------------------------- */
  .bottom-cta {
    padding: 72px var(--sp-section-x);
    text-align: center;
  }
  .bottom-cta .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .bottom-cta .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }

  /* -- 44-1-J. FAQ page (inline-style override) ------------- */
  .faq-page-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 var(--sp-section-x);
  }
  /* Collapse sticky sidebar into horizontal scrollable pill nav */
  .faq-categories {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-left: none;
    border-bottom: 1px solid rgba(45,30,46,0.08);
    padding-left: 0;
    padding-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .faq-categories::-webkit-scrollbar { display: none; }
  .faq-categories-label {
    display: none; /* hidden on mobile — redundant with context */
  }
  .faq-cat-link {
    /* WCAG 2.2: min touch target 44×44px */
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    white-space: nowrap;
    padding: 10px 14px;
    border: 1px solid rgba(45,30,46,0.12);
    background: white;
    font-size: 13px;
  }
  .faq-cat-link.is-active {
    border-color: #C9A961;
    background: rgba(201,169,97,0.08);
    padding-left: 14px;
  }
  .faq-cat-link .cat-count {
    margin-left: 6px;
  }
  .faq-q {
    padding: 20px 0;
    font-size: 14.5px;
    gap: 16px;
  }
  .faq-q:hover { padding-left: 0; } /* disable hover slide on mobile */
  .faq-a-inner {
    padding: 0 0 20px;
    font-size: 14px;
  }
  .faq-search-input {
    font-size: 16px; /* prevent iOS auto-zoom on focus */
    padding: 14px 20px 14px 46px;
  }
  .faq-page {
    padding: 64px 0 80px;
  }

  /* -- 44-1-K. Legal pages (.legal-container / .legal-list) - */
  .legal-container {
    padding-inline: var(--sp-section-x);
  }
  .legal-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-list dt {
    padding: 16px 0 4px;
    border-bottom: none;
    font-weight: 500;
    color: var(--color-deep);
  }
  .legal-list dd {
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(45,30,46,0.08);
  }

  /* -- 44-1-L. Page hero (sub-pages) ----------------------- */
  .page-hero {
    min-height: 240px;
    padding: 100px 24px 48px;
  }
  .page-hero-text h1 {
    font-size: clamp(26px, 7vw, 40px);
  }
  .page-hero-text .lead {
    font-size: 14px;
  }

  /* -- 44-1-M. Strengths bento ----------------------------- */
  .features-bento.strengths-bento,
  .features-bento {
    gap: 12px;
  }
  .bento-cell {
    padding: 28px 24px;
  }
  .bento-cell h3 {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  /* -- 44-1-N. Counselor page (counselor.html) ------------- */
  .counselor-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .counselor-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .counselor-badge-wrap {
    right: 0;
  }
  .counselor-career {
    grid-template-columns: 1fr 1fr;
  }

  /* -- 44-1-O. Diagnosis page ------------------------------ */
  .diagnosis-banner {
    min-height: 400px !important;
  }
  .diagnosis-banner-inner {
    padding: 80px 24px 48px !important;
  }
  .diagnosis-banner-inner h1 {
    font-size: clamp(28px, 7.5vw, 44px) !important;
  }

  /* -- 44-1-P. Contact form --------------------------------- */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* -- 44-1-Q. Footer -------------------------------------- */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  /* -- 44-1-R. Header touch targets ------------------------ */
  .header-cta {
    /* show abbreviated on tablet */
    font-size: 13px;
    padding: 10px 16px;
  }

} /* end @media 768px */

/* ── 44-2. Breakpoint: 480px (small phones) ──────────────── */
@media (max-width: 480px) {

  /* -- 44-2-A. Token override for very small screens -------- */
  :root {
    --sp-section-x:    16px;
    --sp-section-y:    56px;
    --fs-display: clamp(30px, 8.5vw, 44px);
    --fs-h1:      clamp(24px, 7vw, 36px);
    --fs-h2:      clamp(20px, 5.5vw, 30px);
  }

  /* -- 44-2-B. Global ---------------------------------------- */
  .container {
    padding-inline: 16px;
  }

  /* -- 44-2-C. Hero (index.html) ----------------------------- */
  .hero-editorial-grid {
    padding: 108px 16px 56px;
    gap: 32px;
  }
  .hero-editorial-copy h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .hero-editorial-panel {
    gap: 20px;
  }

  /* -- 44-2-D. Bottom CTA ------------------------------------ */
  .bottom-cta {
    padding: 56px 16px;
  }

  /* -- 44-2-E. FAQ page -------------------------------------- */
  .faq-page-inner {
    padding: 0 16px;
    gap: 36px;
  }
  .faq-page {
    padding: 56px 0 64px;
  }
  .faq-cat-link {
    font-size: 12px;
    padding: 10px 10px;
  }
  .faq-q {
    font-size: 14px;
    padding: 18px 0;
  }
  .faq-content-header h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .faq-search-wrap {
    margin-bottom: 36px;
  }

  /* -- 44-2-F. Legal pages ----------------------------------- */
  .legal-container {
    padding-inline: 16px;
  }

  /* -- 44-2-G. Page hero ------------------------------------- */
  .page-hero {
    min-height: 200px;
    padding: 88px 16px 40px;
  }

  /* -- 44-2-H. Counselor career grid: single col ------------- */
  .counselor-career {
    grid-template-columns: 1fr;
  }

  /* -- 44-2-I. Diagnosis banner ------------------------------ */
  .diagnosis-banner {
    min-height: 360px !important;
  }
  .diagnosis-banner-inner {
    padding: 72px 16px 40px !important;
  }
  .diagnosis-banner-inner .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* -- 44-2-J. Pricing editorial card ----------------------- */
  .pricing-editorial-card {
    padding: 28px 20px;
  }

  /* -- 44-2-K. Testimonials --------------------------------- */
  .testimonial-editorial-card {
    padding: 24px 20px;
  }

  /* -- 44-2-L. Footer --------------------------------------- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* -- 44-2-M. Promise row number size ---------------------- */
  .promise-num {
    font-size: clamp(44px, 11vw, 64px);
  }

  /* -- 44-2-N. Strengths bento: ensure 1-col at 480px ------- */
  .bento-cell-wide,
  .bento-cell-narrow {
    grid-column: 1 / -1;
  }

  /* -- 44-2-O. Header — hide cta text, show icon style ------- */
  .header-cta {
    font-size: 12px;
    padding: 8px 12px;
    letter-spacing: 0;
  }

} /* end @media 480px */

/* ── 44-3. Breakpoint: 375px (iPhone SE extreme) ─────────── */
@media (max-width: 390px) {

  .header-cta {
    /* hide at smallest breakpoint to avoid nav overflow */
    display: none;
  }
  .header-inner {
    /* give more room to hamburger when CTA is hidden */
    gap: 0;
  }
  .hero-editorial-copy h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
  .hero-editorial-panel {
    gap: 16px;
  }
  .hero-stat-num {
    font-size: clamp(28px, 8vw, 40px);
  }
  .faq-page-inner {
    padding: 0 12px;
  }

} /* end @media 390px */

/* ── 44-4. Touch target enforcement (all breakpoints) ────── */
@media (pointer: coarse) {
  /* Any interactive element smaller than 44×44 gets a min-size */
  .faq-cat-link,
  .faq-q,
  .menu-toggle,
  .footer a,
  .nav a,
  .btn,
  .header-cta,
  .line-float-btn {
    min-height: 44px;
  }
  .menu-toggle {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
  /* FAQ accordion Q button padding bump for thumb */
  .faq-q {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  /* Nav links in open overlay */
  .nav a {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
  }
}

/* ── 44-5. iOS Safari safe-area insets ───────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .line-float {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ── 44-6. prefers-reduced-motion guard (additive) ────────── */
/* (main.js already sets duration vars to 0 — this is CSS safety net) */
@media (prefers-reduced-motion: reduce) {
  .faq-cat-link,
  .faq-q {
    transition: none;
  }
}

/* ── 44-7. Overflow-x audit: catch any stray overflowers ─── */
@media (max-width: 768px) {
  section,
  article,
  .hero-editorial,
  .features-bento,
  .promises-grid,
  .pricing-editorial-grid,
  .testimonials-editorial-grid,
  .cta-editorial-content,
  .counselor-editorial-grid,
  .faq-page-inner,
  .footer-inner {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ── END Section 44 ──────────────────────────────────────── */
