/* =========================================================
   Atelier Lumen — Landing Page Styles
   テーマ: 夜の図書館／灯のともる工房（明朝×直線×ネイビー＆金）
   ========================================================= */

/* ---------- カスタムプロパティ ---------- */
:root {
  /* color */
  --primary: #1B2A4A;
  --secondary: #3E5C76;
  --accent: #E8B04B;
  /* 薄背景上のテキストに使う、AA(4.5:1)を満たす濃い金。
     装飾線や濃色背景上では --accent をそのまま使う */
  --accent-ink: #8A6214;
  --bg: #F7F4EC;
  --text: #22262E;

  --primary-92: rgba(27, 42, 74, 0.92);
  --secondary-line: rgba(62, 92, 118, 0.2);
  --paper: #FBF9F3;
  --muted: #5b6470;

  /* type */
  --font-head: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* spacing */
  --space-section: clamp(72px, 11vw, 120px);
  --container: 1120px;
  --gutter: 24px;

  /* radius */
  --radius-sharp: 2px;
  --radius-img: 4px;

  /* misc */
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s ease;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text);
  background-color: var(--bg);
  /* 極薄の罫線グリッド（原稿用紙を想起） */
  background-image:
    linear-gradient(to bottom, rgba(27, 42, 74, 0.04) 1px, transparent 1px);
  background-size: 100% 32px;
  /* 個々のはみ出し要因は要素側(.hero の overflow:clip 等)で制御済み。
     これは将来の追加要素に対する保険であり、破綻の隠蔽が目的ではない */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* 外部画像の読み込み失敗時のフォールバック（JSが付与）。
   壊れた画像アイコンの代わりに、装飾的な無地背景を見せる */
img.img--failed {
  background:
    linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  /* alt テキストの折返し位置が崩れないよう最小高さを確保 */
  min-height: 1px;
}
.hero__figure img.img--failed {
  width: 100%;
  aspect-ratio: 9 / 11;
  filter: none;
}
.voice__avatar.img--failed { filter: none; }

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

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

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

input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.5; letter-spacing: 0.04em; }

strong { font-weight: 700; }

/* tabular numerals for prices/numbers */
.hero__micro strong,
.plan__price-num,
.plan__price-sub { font-variant-numeric: tabular-nums; }

/* ---------- フォーカスリング ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sharp);
}

/* ---------- スキップリンク ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius-sharp);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- スクロール進捗バー ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container--narrow { max-width: 800px; }

.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--paper); }

/* ---------- セクション見出し ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  /* 薄背景上のテキストはAAを満たす濃い金を使用（装飾線は --accent のまま） */
  color: var(--accent-ink);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-head__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.section-head__title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  color: var(--primary);
}
.section-head__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sharp);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn--block { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--secondary-line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: var(--primary-92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(232, 176, 75, 0.18);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ブランドロゴ */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { display: inline-flex; flex: none; }
.brand__text { display: inline-flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  transition: color var(--transition);
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color var(--transition);
}
.site-header.is-scrolled .brand__name,
.site-header.is-scrolled .brand__sub { color: var(--bg); }

/* ナビ */
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  position: relative;
  padding-block: 6px;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { width: 100%; }
.site-header.is-scrolled .nav__link { color: var(--bg); }

.nav__link--cta {
  border: 1.5px solid var(--accent);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sharp);
  transition: background-color var(--transition), color var(--transition);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover,
.nav__link--cta:focus-visible { background: var(--accent); color: var(--primary); }
.site-header.is-scrolled .nav__link--cta { color: var(--bg); }
.site-header.is-scrolled .nav__link--cta:hover,
.site-header.is-scrolled .nav__link--cta:focus-visible { color: var(--primary); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition);
}
.site-header.is-scrolled .nav-toggle__bar { background: var(--bg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 96px));
  padding-bottom: var(--space-section);
  position: relative;
  /* clip は overflow:hidden と違いスクロールコンテナを作らないため、
     子の position:sticky 等を将来使っても破綻しにくい。
     負オフセットの装飾(.hero__lumenline)はここで要素側にクリップする */
  overflow: clip;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero__eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--secondary);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.hero__title-accent {
  color: var(--accent-ink);
  position: relative;
}
.hero__lead {
  margin-top: 24px;
  max-width: 36em;
  color: var(--text);
  font-size: 1rem;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__micro {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.hero__micro strong { color: var(--accent-ink); }

/* ヒーロー写真 */
.hero__visual { position: relative; }
.hero__figure {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--secondary-line);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  /* セピア寄りの落ち着いたグレーディング */
  filter: grayscale(28%) sepia(12%) contrast(1.02) brightness(0.98);
}
/* 紙質テクスチャを薄く重ねる */
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(27, 42, 74, 0.18), transparent 60%),
    linear-gradient(to top, rgba(27, 42, 74, 0.32), transparent 45%);
  pointer-events: none;
}
.hero__figcaption {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--bg);
  letter-spacing: 0.06em;
}
/* 金の光ライン */
.hero__lumenline {
  position: absolute;
  top: -36px;
  right: -28px;
  width: clamp(180px, 28vw, 300px);
  height: clamp(180px, 28vw, 300px);
  z-index: 2;
  pointer-events: none;
}
.lumen-path {
  stroke-linecap: round;
  stroke-dasharray: 999;
  stroke-dashoffset: 999;
  /* 実パス長より大きい値で初期非表示。JSが getTotalLength() の実長で上書きして描画アニメ */
}
.lumen-dot { opacity: 0; }

/* ---------- 特徴（番号付きリスト） ---------- */
.feature-list { display: flex; flex-direction: column; }
.feature {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--secondary-line);
}
.feature:last-child { border-bottom: 1px solid var(--secondary-line); }

.feature__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.feature__icon { display: inline-flex; padding-top: 4px; }
.line-icon {
  width: clamp(40px, 6vw, 52px);
  height: clamp(40px, 6vw, 52px);
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}
.feature:hover .line-icon { stroke: var(--accent); }
.feature__title {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--primary);
  margin-bottom: 8px;
}
.feature__text { color: var(--text); font-size: 0.96rem; max-width: 48em; }

/* ---------- 料金プラン ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--secondary-line);
  border-radius: var(--radius-sharp);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.section--alt .plan { background: var(--bg); }

.plan--featured {
  border: 1.5px solid var(--accent);
  background: var(--paper);
}
.plan__ribbon {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: var(--radius-sharp);
}
.plan__head { margin-bottom: 18px; }
.plan__name {
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan__name-jp {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.plan__tagline {
  font-size: 0.86rem;
  color: var(--secondary);
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--primary);
  margin-top: 4px;
}
.plan__price-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1;
}
.plan__price-unit { font-size: 0.9rem; color: var(--muted); }
.plan__price-sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 24px;
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.plan__features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.7;
}
.check {
  width: 18px; height: 18px;
  flex: none;
  margin-top: 5px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan a.btn { margin-top: auto; }

.pricing__note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--secondary);
  letter-spacing: 0.04em;
}

/* ---------- 受講生の声 ---------- */
.voices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.voice {
  background: var(--paper);
  border: 1px solid var(--secondary-line);
  border-radius: var(--radius-sharp);
  padding: clamp(28px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.voice::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 8px;
}
.voice__quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--primary);
  letter-spacing: 0.03em;
  flex: 1;
}
.voice__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary-line);
}
.voice__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  filter: grayscale(60%) sepia(14%);
  border: 1px solid var(--secondary-line);
}
.voice__meta { display: flex; flex-direction: column; line-height: 1.4; }
.voice__name { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.voice__role { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--secondary-line);
}
.faq-item:last-child { border-bottom: 1px solid var(--secondary-line); }
.faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--primary);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--secondary); }
.faq-item__q-text { flex: 1; }

/* +/- アイコン（金の細線、回転） */
.faq-item__icon {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}
.faq-item__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-item__icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-item__a {
  color: var(--text);
  font-size: 0.96rem;
}
.faq-item__a p { max-width: 60em; }

/* FAQ開閉アニメ（JS制御の高さトランジション。他LP=beauty-salon等と同一方式に統一）。
   JSが panel.style.height を 0⇄scrollHeight で制御し、CSSの transition が補間する。
   旧<details>+grid方式は modern Chromium の ::details-content が閉時に
   content-visibility:hidden へ即切替するため閉アニメが効かず（スナップ）、
   方式ごと差し替えた。これで開閉とも全ブラウザで同一の挙動になる。 */
.faq-item__a {
  overflow: hidden;
}
/* プログレッシブエンハンスメント: JSがある時だけ畳む。
   JS無効時は height:auto のまま＝中身が見える（内容は失われない）。 */
.js .faq-item__a {
  height: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item__a {
    transition: height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  }
}

/* padding は内側の wrapper に移し、高さアニメに含める */
.faq-item__a-inner {
  padding: 0 4px 24px;
}

/* ---------- 申込・最終CTA ---------- */
.cta { position: relative; }
.cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
.cta__lead { margin-top: 16px; color: var(--text); max-width: 38em; }
.cta__assure {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta__assure li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--secondary);
}

/* フォーム */
.form {
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius-img);
  padding: clamp(28px, 5vw, 44px);
}
.form__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--bg);
}
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--bg);
}
/* 入力例の補助テキスト（プレースホルダ依存を避ける）。AAを満たす不透明度 */
.field__hint {
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.72);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.field__req {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--accent);
  padding: 1px 8px;
  border-radius: var(--radius-sharp);
  margin-left: 6px;
  vertical-align: 1px;
}
.field__input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(247, 244, 236, 0.06);
  /* 非フォーカス時の輪郭が視認できるよう不透明度を引き上げ（約3.5:1） */
  border: 1px solid rgba(247, 244, 236, 0.45);
  border-radius: var(--radius-sharp);
  color: var(--bg);
  line-height: 1.6;
  transition: border-color var(--transition), background-color var(--transition);
}
/* 入力例ヒントとしても機能するため、AA(4.5:1)を満たす不透明度に */
.field__input::placeholder { color: rgba(247, 244, 236, 0.62); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(247, 244, 236, 0.1);
}
.field__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__input--area { resize: vertical; min-height: 96px; }
select.field__input { appearance: none; -webkit-appearance: none; cursor: pointer; }
select.field__input option { color: var(--text); }

.field__error {
  min-height: 0;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.field.has-error .field__input { border-color: var(--accent); }

.form__sub-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.86rem;
  color: rgba(247, 244, 236, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.form__sub-link:hover,
.form__sub-link:focus-visible { color: var(--accent); }

.form__success {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sharp);
  background: rgba(232, 176, 75, 0.12);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--bg);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--primary);
  color: var(--bg);
  padding-top: clamp(56px, 8vw, 80px);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer .brand--footer .brand__name,
.site-footer .brand--footer .brand__sub { color: var(--bg); }
.site-footer__tagline {
  font-family: var(--font-head);
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(247, 244, 236, 0.85);
  letter-spacing: 0.04em;
}
.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a {
  font-size: 0.9rem;
  color: rgba(247, 244, 236, 0.85);
  transition: color var(--transition);
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: var(--accent); }
.site-footer__contact p { font-size: 0.9rem; color: rgba(247, 244, 236, 0.85); }

.site-footer__bottom {
  border-top: 1px solid rgba(247, 244, 236, 0.16);
  padding-block: 24px;
}
.site-footer__bottom .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__copy { font-size: 0.8rem; color: rgba(247, 244, 236, 0.7); }
.site-footer__disclaimer { font-size: 0.74rem; color: rgba(247, 244, 236, 0.55); letter-spacing: 0.03em; }

/* ---------- スクロールアニメ ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- モバイルナビ ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--primary-92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(232, 176, 75, 0.2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(20px, 5vw, 40px) 28px;
  }
  .nav__list li { border-bottom: 1px solid rgba(247, 244, 236, 0.1); }
  .nav__link {
    display: block;
    color: var(--bg);
    padding: 16px 4px;
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__link--cta {
    border: none;
    color: var(--accent);
    padding: 16px 4px;
  }
  .site-header.is-scrolled .nav__link--cta:hover { background: transparent; color: var(--accent); }
}

/* ---------- レスポンシブ（タブレット以上） ---------- */
@media (min-width: 768px) {
  .voices { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .cta__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__bottom .container { flex-direction: row; justify-content: space-between; align-items: center; }

  /* Standard を強調。scale はテキストがにじむため使わず、
     枠線・影・わずかな持ち上げ(margin)で立体感を出す */
  .plan--featured {
    z-index: 2;
    border-width: 2px;
    margin-block: -12px;
    box-shadow: 0 14px 40px rgba(27, 42, 74, 0.16);
  }
}

/* 非常に狭い画面の調整 */
@media (max-width: 360px) {
  .feature { grid-template-columns: auto 1fr; }
  .feature__icon { grid-column: 1; grid-row: 2; }
  .feature__num { grid-column: 1; grid-row: 1; align-self: start; }
  .feature__body { grid-column: 2; grid-row: 1 / span 2; }
}
