@charset "UTF-8";

/* =========================================================
   CLEVARISE — corporate site
   1. Design tokens
   2. Base / reset
   3. Utilities
   4. Header / skip link / fixed CTA
   5. Sections
   6. Components
   7. Media queries
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
  /* palette (raw) */
  --c-ink:        #0E1116;
  --c-ink-2:      #161B22;
  --c-paper:      #F7F6F3;
  --c-paper-2:    #FFFFFF;
  --c-gold:       #C8A96A;
  --c-gold-deep:  #9A7C3E;
  --c-slate:      #2E4057;
  --c-slate-soft: #4A617A;
  --c-gray:       #8A8F98;

  /* semantic (light scheme default) */
  --bg:           var(--c-paper);
  --bg-raise:     var(--c-paper-2);
  --fg:           #14181E;
  --fg-muted:     #5C626B;
  --line:         #DCD9D2;
  --accent:       var(--c-gold-deep);
  --accent-plain: var(--c-gold);
  --sub:          var(--c-slate);

  /* inverted block (always dark, both schemes) */
  --ink-bg:       var(--c-ink);
  --ink-bg-2:     var(--c-ink-2);
  --ink-fg:       var(--c-paper);
  --ink-fg-muted: #A9AEB6;
  --ink-line:     #2A313B;

  /* typography */
  --font-serif: "Zen Old Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-sans:  "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --fs-hero:  clamp(1.6rem, 0.6rem + 4.5vw, 4.25rem);
  --fs-show:  clamp(1.75rem, 1.05rem + 3vw, 3.5rem);
  --fs-h2:    clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  --fs-h3:    clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --fs-lead:  clamp(1rem, 0.95rem + 0.35vw, 1.175rem);
  --fs-body:  clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-small: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --fs-num:   clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);

  --lh-body: 1.9;
  --lh-head: 1.45;
  --measure: 38em;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-section: clamp(4.5rem, 3rem + 9vw, 11rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);

  --wrap: 68rem;
  --wrap-narrow: 44rem;

  --radius: 4px;
  --header-h: 60px;
  --dur: 0.7s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0B0E12;
    --bg-raise: #141920;
    --fg:       #ECEAE5;
    --fg-muted: #A2A7AF;
    --line:     #262C35;
    --accent:   var(--c-gold);
    --sub:      #93A6BC;
  }
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "palt";
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: 0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-plain);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 数字は等幅に */
.num, table, .sim, .price, time {
  font-feature-settings: "tnum" 1, "palt" 0;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   3. Utilities
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-4);
  line-height: 1.6;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--fg-muted);
  max-width: var(--measure);
}

.note {
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--fg-muted);
  max-width: var(--measure);
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--accent-plain);
  border: 0;
  margin: var(--sp-5) 0;
}
.rule--center { margin-inline: auto; }

/* fade-in (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) ease, transform var(--dur) cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------
   4. Header / skip link / fixed CTA
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: var(--fs-small);
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--c-ink) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--c-ink) 88%, transparent);
  border-bottom-color: var(--ink-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem);
  letter-spacing: 0.24em;
  white-space: nowrap;
  color: var(--c-paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.logo .logo__mark { color: var(--accent-plain); margin-right: 0.5em; }

.gnav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
/* モバイルではロゴ＋CTAのみに絞る */
.gnav__item { display: none; }
.gnav a {
  color: var(--ink-fg-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.25s ease;
}
.gnav a:hover { color: var(--c-paper); }
.gnav a.gnav__cta {
  color: var(--c-ink);
  background: var(--accent-plain);
  padding: 0 clamp(0.85rem, 0.4rem + 1.6vw, 1.1rem);
  min-height: 44px;
  border-radius: 2px;
  white-space: nowrap;
  font-weight: 600;
}
.gnav a.gnav__cta:hover { background: #D9BC7D; color: var(--c-ink); }

/* モバイル追従CTA */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-ink) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ink-line);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { width: 100%; }

/* ---------------------------------------------------------
   5. Sections
   --------------------------------------------------------- */
.section { padding-block: var(--sp-section); }

.section--ink {
  background: var(--ink-bg);
  color: var(--ink-fg);
}
.section--ink .lead,
.section--ink .note { color: var(--ink-fg-muted); }
.section--ink .eyebrow { color: var(--accent-plain); }

.section--paper { background: var(--bg); color: var(--fg); }

/* 暗→明のグラデーション橋渡し */
.transition-band {
  height: clamp(140px, 20vw, 300px);
  background: linear-gradient(
    to bottom,
    var(--ink-bg) 0%,
    color-mix(in srgb, var(--ink-bg) 92%, var(--bg)) 30%,
    color-mix(in srgb, var(--ink-bg) 74%, var(--bg)) 52%,
    color-mix(in srgb, var(--ink-bg) 42%, var(--bg)) 72%,
    color-mix(in srgb, var(--ink-bg) 14%, var(--bg)) 88%,
    var(--bg) 100%
  );
}

.section__head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section__title { font-size: var(--fs-h2); }
.section__head .lead { margin-top: var(--sp-5); }
.section__head.center .lead,
.section__head.center .measure { margin-inline: auto; }

/* --- ヒーロー --- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-bg);
  color: var(--ink-fg);
  padding-block: calc(var(--header-h) + clamp(4rem, 2rem + 12vw, 8rem)) clamp(4rem, 2rem + 10vw, 8rem);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(14,17,22,0.72) 0%,
      rgba(14,17,22,0.86) 55%,
      rgba(14,17,22,0.99) 100%);
}
.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: 0;
  margin-bottom: var(--sp-6);
}
.hero__title .br { display: block; }
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--ink-fg);
  max-width: var(--measure);
  margin-inline: auto;
  margin-bottom: var(--sp-5);
}
.hero__sub .amount { color: var(--accent-plain); font-weight: 700; }
.hero__lead {
  color: var(--ink-fg-muted);
  max-width: var(--measure);
  margin-inline: auto;
  margin-bottom: var(--sp-7);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.hero__scroll {
  margin-top: var(--sp-8);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-fg-muted);
}

/* --- 見せ場（大見出し単独） --- */
.showcase {
  background: var(--ink-bg);
  color: var(--ink-fg);
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding-block: var(--sp-9);
  text-align: center;
}
.showcase--paper {
  background: var(--bg);
  color: var(--fg);
}
.showcase__title {
  font-size: var(--fs-show);
  letter-spacing: 0.03em;
  max-width: 22em;
  margin-inline: auto;
}
.showcase__note {
  margin-top: var(--sp-6);
  color: var(--fg-muted);
  max-width: 34em;
  margin-inline: auto;
  text-align: left;
}
.showcase .showcase__note { font-size: var(--fs-body); }

/* --- 課題提起 --- */
.problems { display: grid; gap: var(--sp-7); counter-reset: prob; }
.problem {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--sp-5);
}
.problem__no {
  counter-increment: prob;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--accent-plain);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--sp-3);
}
.problem__no::before { content: "0" counter(prob); }
.problem__title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.problem__body { color: var(--ink-fg-muted); font-size: var(--fs-body); }

/* --- ミッション／バリュー --- */
.mission { text-align: center; }
.mission__label { font-size: var(--fs-small); letter-spacing: 0.2em; color: var(--accent); }
.mission__text {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.6;
  margin: var(--sp-4) 0 var(--sp-8);
}
.mission__vision {
  color: var(--fg-muted);
  max-width: var(--measure);
  margin-inline: auto;
}

.values { display: grid; gap: var(--sp-5); margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.value {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
}
.value__icon { color: var(--accent); margin-bottom: var(--sp-4); }
.value__title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.value__body { color: var(--fg-muted); font-size: var(--fs-body); }

/* --- 比較表 --- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--fs-body);
  background: var(--bg-raise);
}
.compare th, .compare td {
  padding: var(--sp-5) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}
.compare thead th {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  background: var(--bg);
  white-space: nowrap;
}
.compare tbody th { font-weight: 600; color: var(--fg); }
.compare th:nth-child(1) { width: 21%; }
.compare th:nth-child(2), .compare td:nth-child(2) { width: 40%; }
.compare th:nth-child(3), .compare td:nth-child(3) { width: 39%; }
.compare .col-us { background: color-mix(in srgb, var(--c-gold) 10%, var(--bg-raise)); }
.compare thead .col-us { background: color-mix(in srgb, var(--c-gold) 16%, var(--bg)); color: var(--fg); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .strike { color: var(--fg-muted); }

/* スマホ用カード */
.compare-cards { display: grid; gap: var(--sp-5); }
.ccard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: var(--sp-5);
}
.ccard__label {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.ccard__row + .ccard__row { margin-top: var(--sp-4); }
.ccard__who {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-bottom: var(--sp-1);
}
.ccard__row--us .ccard__who { color: var(--accent); }
.ccard__val { font-size: var(--fs-body); line-height: 1.8; }

/* 大きな数字 */
.bignum {
  text-align: center;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.bignum__label { font-size: var(--fs-small); letter-spacing: 0.18em; color: var(--fg-muted); }
.bignum__value {
  font-family: var(--font-serif);
  font-size: var(--fs-num);
  line-height: 1.1;
  color: var(--accent);
  margin: var(--sp-4) 0 var(--sp-3);
  letter-spacing: 0.01em;
}
.bignum__value .unit { font-size: 0.42em; margin-left: 0.15em; letter-spacing: 0.05em; }
.bignum__caption { font-size: var(--fs-small); color: var(--fg-muted); }

/* --- シミュレーター --- */
.sim {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.sim__field { margin-bottom: var(--sp-7); }
.sim__labelrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.sim__label { font-size: var(--fs-small); letter-spacing: 0.14em; color: var(--fg-muted); }
.sim__price {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.25rem);
  color: var(--fg);
}
.sim__price .unit { font-size: 0.5em; margin-left: 0.2em; }

.sim__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.sim__slider::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
  border-radius: 3px;
}
.sim__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  margin-top: -12.5px;
  border-radius: 50%;
  background: var(--accent-plain);
  border: 3px solid var(--bg-raise);
  box-shadow: 0 1px 6px rgba(0,0,0,0.28);
}
.sim__slider::-moz-range-track { height: 3px; background: var(--line); border-radius: 3px; }
.sim__slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-plain);
  border: 3px solid var(--bg-raise);
}
.sim__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: var(--sp-1);
}

.sim__rows { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.sim__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.sim__row dt { font-size: var(--fs-body); color: var(--fg-muted); }
.sim__row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 0.9rem + 1.1vw, 1.5rem);
}
.sim__row--us dt { color: var(--fg); }
.sim__row--us dd { color: var(--fg); }

.sim__result { text-align: center; padding-top: var(--sp-2); }
.sim__result .bignum { margin-top: 0; }

/* --- 会員プラン --- */
.plans { display: grid; gap: var(--sp-6); align-items: stretch; }
.plan {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--accent-plain);
  box-shadow: 0 0 0 1px var(--accent-plain);
}
.plan__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-plain);
  color: var(--c-ink);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
}
.plan__name {
  font-size: var(--fs-h3);
  letter-spacing: 0.14em;
  text-align: center;
}
.plan__price {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  margin: var(--sp-4) 0 var(--sp-2);
}
.plan__price .cur { font-size: 0.5em; margin-right: 0.15em; }
.plan__price .per { font-size: 0.42em; color: var(--fg-muted); margin-left: 0.25em; }
.plan__tax { text-align: center; font-size: 0.75rem; color: var(--fg-muted); }
.plan__list {
  margin: var(--sp-6) 0 var(--sp-6);
  display: grid;
  gap: var(--sp-3);
  flex: 1 1 auto;
}
.plan__list li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--fg-muted);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 0.9em; height: 1px;
  background: var(--accent-plain);
}
.plan__list li strong { color: var(--fg); font-weight: 600; }

/* --- スキーム図 --- */
.scheme-figure { margin: 0; }
.scheme-svg { width: 100%; height: auto; }
.scheme-svg--v { display: block; }
.scheme-svg--h { display: none; }
.scheme__caption {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border-left: 2px solid var(--accent-plain);
  background: var(--bg-raise);
  font-size: var(--fs-body);
  color: var(--fg-muted);
  max-width: var(--measure);
}
.scheme__caption strong { color: var(--fg); }

/* --- 流れ --- */
.steps { display: grid; gap: var(--sp-6); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4) var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.steps .step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__no {
  counter-increment: step;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
  min-width: 2.2em;
}
.step__no::before { content: "0" counter(step); }
.step__body { grid-column: 2; }
.step__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.step__text { color: var(--fg-muted); font-size: var(--fs-body); }

/* --- FAQ --- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 0.55em;
  width: 12px; height: 12px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.75em; }
.faq summary .q {
  font-family: var(--font-serif);
  color: var(--accent);
  flex: 0 0 auto;
}
.faq__answer {
  padding: 0 0 var(--sp-6) calc(1em + var(--sp-4));
  color: var(--fg-muted);
  font-size: var(--fs-body);
  max-width: var(--measure);
}
.faq__answer p + p { margin-top: var(--sp-3); }

/* --- 最終CTA --- */
.final { text-align: center; }
.final__title { font-size: var(--fs-h2); max-width: 20em; margin-inline: auto; }
.gift {
  margin: clamp(2.5rem, 2rem + 3vw, 4rem) auto 0;
  max-width: 34rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-bg-2);
  padding: var(--sp-6) var(--sp-5);
  text-align: left;
}
.gift__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-plain);
  margin-bottom: var(--sp-3);
}
.gift__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--ink-fg);
  line-height: 1.7;
}
.final__actions { margin-top: var(--sp-7); }
.final__note { margin: var(--sp-5) auto 0; color: var(--ink-fg-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------
   6. Components
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: var(--accent-plain);
  color: var(--c-ink);
}
.btn--primary:hover { background: #D9BC7D; }
.btn--ghost {
  background: transparent;
  color: var(--ink-fg);
  border-color: color-mix(in srgb, var(--c-paper) 34%, transparent);
  min-height: 48px;
  font-weight: 400;
}
.btn--ghost:hover { border-color: var(--c-paper); }
.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--accent-plain); color: var(--accent); }
.btn--block { width: 100%; }

/* --- フッター --- */
.site-footer {
  background: var(--ink-bg);
  color: var(--ink-fg-muted);
  padding-block: var(--sp-8) var(--sp-7);
  font-size: var(--fs-small);
}
.footer__top { display: grid; gap: var(--sp-7); }
.footer__brand .logo { color: var(--ink-fg); padding: 0; }
.footer__tagline { margin-top: var(--sp-3); color: var(--ink-fg-muted); }
.corp { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.corp div { display: flex; gap: var(--sp-4); }
.corp dt { flex: 0 0 6em; color: var(--c-gray); }
.corp dd { margin: 0; }
.footer__nav ul { display: grid; gap: var(--sp-3); }
.footer__nav a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-fg-muted);
}
.footer__nav a:hover { color: var(--ink-fg); }
.footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: var(--sp-4);
}
.footer__disclaimer { line-height: 1.85; color: var(--c-gray); max-width: var(--measure); }
.copyright { letter-spacing: 0.1em; color: var(--c-gray); }

/* 追従CTA分の余白（モバイル） */
.site-footer { padding-bottom: calc(var(--sp-7) + 76px); }

/* ---------------------------------------------------------
   7. Media queries
   --------------------------------------------------------- */
@media (min-width: 480px) {
  .hero__actions { gap: var(--sp-5); }
  .btn { min-width: 18rem; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }

  .gnav__item { display: block; }
  .hero__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .problems { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .compare-cards { display: none; }
  .table-scroll { display: block; }
  .step { grid-template-columns: 4rem 1fr; }
  .scheme-svg--v { display: none; }
  .scheme-svg--h { display: block; }
  .footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-5); }

  /* 768px以上ではヘッダーCTAがあるので追従バーは不要 */
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: var(--sp-7); }
}

@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .plan--featured {
    transform: scale(1.045);
    z-index: 1;
    padding-block: var(--sp-7) var(--sp-7);
  }
  .sim__rows { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .sim__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}

@media (min-width: 1280px) {
  :root { --wrap: 74rem; }
  .showcase__title { max-width: 20em; }
}

/* 768px未満では表を隠しカードで見せる */
@media (max-width: 767px) {
  .table-scroll { display: none; }
}

/* 改行制御 */
.hide-sp { display: none; }
@media (min-width: 768px) { .hide-sp { display: inline; } }
