@charset "utf-8";

/* =========================================================
   スマイルトラッキング 商品サイト  site.css
   2026-09-07 / 手書きCSS（外部フレームワーク不要）

   デザイン方針：温かい編集デザイン
   参照 DESIGN.md：Anthropic（styles.refero.design）
   ・アイボリーの紙のような面。影は使わず、面の色差と1pxの罫線で構成
   ・見出し＝明朝（Noto Serif JP）／UI・ボタン＝サンセリフ（Noto Sans JP）
   ・アクセント＝テラコッタ #d97757。問い合わせCTAだけに使う
   ・角丸：カード20px／塗りボタンは下側だけ8px／線ボタンは12px
   色・余白は :root を編集する
   ========================================================= */

:root {
  /* 面（キャンバス → カード → 副次パネル → 特集） */
  --canvas: #f0eee6;
  --surface: #faf9f5;
  --oat: #e3dacc;
  --manilla: #f5e3c7;

  /* 文字・罫線 */
  --ink: #141413;
  --ink-2: #3d3d3a;
  --muted: #706f66;
  --cloud: #a3a199;
  --hairline: #d3d1c9;
  --rule: #b7b5ab;

  /* アクセント（問い合わせCTAのみ） */
  --clay: #d97757;
  --clay-deep: #c6613f;

  --maxw: 1120px;
  --header-h: 64px;

  /* プレースホルダ（本番公開前に外すもの）の目印 */
  --ph-bg: #fbe9d3;
  --ph-line: #c98a3c;
  --ph-ink: #7a4e12;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Georgia, serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* 魔改造ページだけ空気を変える（設計メモ 10-4）。面を少し沈ませ、アクセントを藍に */
.theme-custom {
  --canvas: #e9e7e0;
  --surface: #f4f2ec;
  --oat: #dcd8cc;
  --manilla: #e7ddc9;
  --clay: #4b3f6b;
  --clay-deep: #3a3054;
}

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

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

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.9;
  font-size: 16.5px;
  letter-spacing: .005em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* word-break: auto-phrase … 見出しを文節（意味のかたまり）で折り返す。
   Chrome / Edge のみ対応。未対応ブラウザでは従来どおりの折り返しになる（表示は崩れない） */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.45; margin: 0; font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; word-break: auto-phrase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- ヘッダー（影なし・ぼかしなし・下罫線のみ） ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.header .wrap { min-height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 150px; height: auto; }
.logo span { font-family: var(--sans); font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; padding-left: 12px; border-left: 1px solid var(--hairline); }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--sans); font-size: 13px; font-weight: 500; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; transition: color .15s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* 用途ドロップダウン（PC） */
.has-sub { position: relative; }
.has-sub > span:first-child { cursor: default; color: var(--muted); padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.has-sub > span:first-child::after { content: "＋"; font-size: 9px; color: var(--cloud); }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 8px; min-width: 260px;
  opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
/* 隙間ゼロで隣接させる（マウスが通る道に空白を作らない）。閉じるときだけ.15s待ってvisibilityを切る */
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity .15s, transform .15s;
}
.sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.sub a:hover { background: var(--oat); color: var(--ink); }

.menu-btn { display: none; }
.menu-toggle { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  padding: 13px 28px; border: 1px solid transparent; cursor: pointer;
  border-radius: 0 0 8px 8px; /* 下側だけ角丸 ＝ このサイトの署名的処理 */
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* 問い合わせCTA（テラコッタ）＝ 最も重要な1アクションだけ */
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); }
/* 副次アクション（線） */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); border-radius: 12px; }
.btn-ghost:hover { border-color: var(--ink); }
/* 濃い面の上で使う塗りボタン */
.btn-ivory { background: var(--surface); color: var(--ink); }
.btn-ivory:hover { background: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 34px; font-size: 15.5px; }

/* テキストリンク（常時下線＝紙の慣習） */
.link { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--clay-deep); }
.link-arrow::after { content: " →"; text-decoration: none; display: inline-block; }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.section-soft { background: var(--surface); }
.section-oat { background: var(--oat); }
.section-ink { background: var(--ink); color: var(--surface); }
.section + .section { border-top: 1px solid var(--hairline); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 16px;
}
.section-ink .eyebrow { color: var(--manilla); }
.section-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.section-lead { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 660px; word-break: auto-phrase; }
/* .br-pc … PCでだけ効く改行。スマホでは無効になり、通常の折り返しに戻る */
.br-pc { display: none; }
@media (min-width: 721px) { .br-pc { display: inline; } }
.section-ink .section-lead { color: rgba(250, 249, 245, .74); }

/* 本文ブロック */
.prose > * + * { margin-top: 18px; }
.prose p { font-size: 16.5px; color: var(--ink-2); word-break: auto-phrase; }
.prose h3 { font-size: 20px; font-weight: 600; }
/* 見出しと、その説明は近づける。次の見出しの前は大きく空ける。
   ＝ひとかたまりが見えるようにする（2026/9/15。機能ページで項目が地続きに見えていた） */
.prose > h3 + * { margin-top: 8px; }
.prose > * + h3 { margin-top: 36px; }
.prose > h3:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { padding-left: 22px; position: relative; font-size: 16px; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 6px; height: 6px; background: var(--clay); border-radius: 50%; }
.lead-strong { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.65; }
.lead-strong em { font-style: normal; color: var(--clay-deep); }

/* ---------- ページヒーロー（下層） ---------- */
.page-hero { background: var(--canvas); padding: 40px 0 56px; border-bottom: 1px solid var(--hairline); }
.crumbs { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--cloud); }
.page-hero .kicker { margin-top: 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); }
.page-hero h1 { margin-top: 10px; font-size: clamp(27px, 4vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.page-hero .desc { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 620px; word-break: auto-phrase; }
/* ページ上部を2段組に：左＝文字／右＝イメージ用のスペース。パンくずは上に全幅で残す */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: 48px; align-items: center; }
.page-hero-body, .page-hero-visual { min-width: 0; }
.page-hero-visual img { border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- トップ・ヒーロー（特集カード） ---------- */
.hero { background: var(--canvas); padding: 64px 0 80px; }
.hero-card {
  background: var(--manilla); border-radius: 24px; padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.hero-card > div { min-width: 0; }
.hero h1 { font-size: clamp(29px, 4.6vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.28; }
.hero h1 .mark { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.hero-sub { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 520px; word-break: auto-phrase; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 30px; }
.hero-note { margin-top: 16px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge {
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-2);
  background: rgba(20, 20, 19, .05); padding: 6px 12px; border-radius: 0;
}
.hero-visual { min-width: 0; }
.hero-visual img { border-radius: 16px; background: var(--surface); }

/* ---------- ヒーローの枠付きビジュアルカード ---------- */
.hero-frame { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.hero-frame > img { border-radius: 10px; background: var(--canvas); }
.hero-frame-foot { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.hero-frame-foot .hf-logo { width: 52%; }
.hero-frame-foot .hf-mascot { width: 32%; }

/* ---------- 帯（機能カテゴリのピル） ---------- */

/* ---------- 汎用：画像＋文の左右分割 ---------- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; margin-top: 44px; }
.split.rev .split-media { order: 2; }
.split-media { min-width: 0; }
.split-media img { border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); }
.split-body { min-width: 0; }
/* 右列の縦の間隔。性質の違う要素どうしを離し、まとまりを作る（この2カラム内だけに適用） */
.split-body .eyebrow { margin-bottom: 16px; }
.split-body .section-lead { margin-top: 26px; }
.split-body .mini-points { margin-top: 34px; gap: 14px 20px; }
.split-body .split-cta { margin-top: 38px; }
.split-mascot-note { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--oat); border-radius: 12px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.split-mascot-note img { width: 54px; flex-shrink: 0; }
.mini-points { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.mini-points li { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); padding-left: 18px; position: relative; }
.mini-points li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; background: var(--clay); border-radius: 50%; }

/* ---------- 問い合わせカード（manilla） ---------- */
.cta-card { background: var(--manilla); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center; }
.cta-card h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.45; }
.cta-card p { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 520px; }
.cta-card .cta-card-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.cta-card-visual { min-width: 0; }
.cta-card-visual img { width: 100%; }

/* ---------- 数字バー ---------- */
.stats { background: var(--canvas); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 20px; text-align: center; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat .num small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.stat .label { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 6px; }

/* ---------- 用途カード ---------- */
.use-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.use-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 30px 28px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.use-card:hover { background: #fff; border-color: var(--rule); }
/* カードのイラスト（トップページのみ）。リードの右側に縦置き。
   ★本番のイラストは「縦横比 3 : 4（縦長）」で作ること。例：600 × 800px、900 × 1200px。
     背景は透過PNGを推奨。比率が違うものを入れても枠内に収まるが、左右または上下に余白が出る。 */
.uc-body { display: flex; gap: 16px; align-items: flex-start; }
.uc-body p { flex: 1 1 auto; min-width: 0; }
.uc-art { flex: 0 0 116px; width: 116px; aspect-ratio: 3 / 4; object-fit: contain; object-position: top center; }
@media (max-width: 560px) {
  .uc-art { flex-basis: 88px; width: 88px; }
}
.use-card .uc-tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); }
.use-card h3 { font-size: 19px; font-weight: 600; line-height: 1.55; }
.use-card p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.use-card .uc-plan { margin-top: auto; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--oat); border-radius: 0; padding: 4px 12px; align-self: flex-start; }
.use-card.is-custom { background: var(--oat); border-style: dashed; border-color: var(--rule); }
.use-card.is-custom:hover { background: var(--manilla); }

/* ---------- 漫画（実物） ---------- */
.manga-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.manga-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; }
.manga-head { padding: 26px 28px 18px; }
.manga-ep { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--clay-deep); }
.manga-head h3 { margin-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.6; }
.manga-theme { margin-top: 12px; font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; }
.manga-points { padding: 0 28px 22px; display: grid; gap: 7px; }
.manga-points li { font-family: var(--sans); font-size: 13px; color: var(--ink-2); padding-left: 18px; position: relative; }
.manga-points li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; background: var(--clay); border-radius: 50%; }
.manga-strip { display: flex; gap: 6px; padding: 0 28px 28px; }
.manga-strip img { border-radius: 4px; border: 1px solid var(--hairline); flex: 1; min-width: 0; }
.manga-single { max-width: 780px; }
.manga-single .manga-strip { flex-wrap: wrap; }
.manga-single .manga-strip img { flex: 0 1 32%; }

/* ---------- 漫画ページ（ランディング＋各話） ---------- */
.manga-hero { background: var(--manilla); border-bottom: 1px solid var(--rule); padding: 44px 0 48px; }
.back-link { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.back-link::before { content: "←"; }
.back-link:hover { color: var(--clay-deep); }
.manga-hero .kicker { margin-top: 20px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-deep); }
.manga-hero h1 { margin-top: 8px; font-size: clamp(26px, 4.2vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.32; }
.manga-hero .lead { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 640px; }
.manga-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center; }
.manga-hero-grid > div:first-child { min-width: 0; }
.mascot-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; min-width: 0; }
.mascot-card img { width: 100%; }

.ep-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.ep-card { display: grid; grid-template-columns: 210px 1fr; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; }
.ep-card-cover { background: var(--oat); display: grid; place-items: center; padding: 18px; border-right: 1px solid var(--hairline); }
.ep-card-cover img { height: 260px; width: auto; max-width: 100%; border-radius: 4px; border: 1px solid var(--hairline); }
.ep-card-body { padding: 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.ep-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ep-badge { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; background: var(--ink); color: var(--surface); border-radius: 999px; padding: 4px 12px; }
.ep-theme { font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--clay-deep); }
.ep-card-body h2 { margin-top: 14px; font-size: 19px; font-weight: 600; line-height: 1.55; }
.ep-card-body > p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.85; }
.ep-pages { margin-top: 12px; font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; }
.ep-card-body .btn { margin-top: auto; align-self: flex-start; }

.ep-reader { max-width: 760px; margin-inline: auto; display: grid; gap: 16px; }
.ep-reader figure { margin: 0; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; background: var(--surface); }
.ep-reader figure img { width: 100%; }
.ep-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.ep-point { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.8; }
.ep-func { margin-top: 34px; background: var(--oat); border-radius: 18px; padding: 28px; }
.ep-func h3 { font-size: 18px; font-weight: 600; }
.ep-func dl { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ep-func dt { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--clay-deep); }
.ep-func dd { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin-inline: auto; }
.ep-nav a { border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 20px; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface); }
.ep-nav a:hover { border-color: var(--rule); }
.ep-nav a small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.ep-nav a.next { text-align: right; }
.ep-nav a.next small::after { content: " →"; }
.ep-nav a.back small::before { content: "← "; }

/* ---------- プレースホルダ（未制作の素材。本番前に外す） ---------- */
.ph { border: 2px dashed var(--ph-line); background: var(--ph-bg); border-radius: 12px; padding: 26px 26px 28px; color: var(--ph-ink); }
.ph-label { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--ph-line); color: #fff; padding: 4px 12px; margin-bottom: 14px; }
.ph h3 { font-size: 16.5px; font-weight: 700; color: var(--ph-ink); font-family: var(--sans); }
.ph-brief { margin-top: 12px; font-family: var(--sans); font-size: 13px; line-height: 1.95; color: #6f4a13; }
.ph-brief strong { color: var(--ph-ink); }
.ph-mini { font-family: var(--sans); font-size: 12.5px; padding: 14px 16px; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.ph-dummy { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--ph-line); }
.ph-dummy > p { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ph-ink); margin-bottom: 10px; }
.ph-dummy .manga-strip { display: flex; gap: 6px; padding: 0; }
.ph-dummy .manga-strip img { flex: 0 1 200px; border-radius: 4px; border: 1px solid var(--ph-line); opacity: .75; }

/* 用途ページの漫画枠（漫画＝左／文字＝右。ダミー漫画で仮レイアウト） */
.manga-ph { align-items: start; grid-template-columns: 1.25fr .75fr; gap: 40px; }
.manga-ph .split-media { min-width: 0; }
.mp-frame { border: 2px dashed var(--ph-line); background: var(--ph-bg); border-radius: 12px; padding: 18px; }
.mp-frame .ph-label { display: inline-block; margin-bottom: 14px; }
.mp-strip { display: flex; justify-content: center; }
.mp-strip img { width: 100%; max-width: 560px; height: auto; border-radius: 4px; border: 1px solid var(--ph-line); opacity: .85; background: #fff; }
.mp-note { margin-top: 14px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: #6f4a13; }
.manga-ph .split-body .eyebrow { margin-bottom: 10px; }
.manga-ph .split-body h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.manga-ph .split-body h3 { margin-top: 14px; font-size: 16px; font-weight: 700; font-family: var(--sans); color: var(--ph-ink); }
.manga-ph .ph-brief { margin-top: 12px; }

/* ---------- 時系列（見えないコスト。表にしない） ---------- */
.timeline { margin-top: 34px; display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 0 0 26px; position: relative; }
.tl-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 38px; bottom: 0; width: 1px; background: var(--rule); }
.tl-num { width: 40px; height: 40px; border-radius: 50%; background: var(--oat); color: var(--ink); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.tl-body { padding-top: 5px; }
.tl-body p { font-size: 16px; color: var(--ink-2); }
/* 導入の流れの7段階だけ、見出しと説明を別の段落にする。
   1つの段落に「見出し ── 説明」と入れていたときは、折り返した2行目が
   見出しの真下から始まって、どこまでが見出しか分からなかった（2026/9/15） */
.tl-body .tl-head { font-weight: 700; color: var(--ink); }
/* 見出し ── 説明 を1行に並べる。説明をブロック（右の列）にすることで、
   折り返した2行目が見出しの下にもぐらず、説明の先頭に揃う（2026/9/15） */
.tl-line { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; }
.tl-line .tl-head::after { content: "──"; margin: 0 .55em; font-weight: 400; color: var(--muted); }
@media (max-width: 720px) {
  /* 横に並べる幅がないので、見出しと説明を上下に分ける */
  .tl-line { grid-template-columns: 1fr; }
  .tl-line .tl-head::after { content: none; }
  .tl-line .tl-label + p { margin-top: 6px; }
}
.tl-cost { display: inline-block; margin-top: 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--clay-deep); background: rgba(217, 119, 87, .12); padding: 3px 12px; }
.tl-close { margin-top: 10px; padding: 26px 28px; background: var(--ink); color: var(--surface); border-radius: 16px; font-family: var(--serif); font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; line-height: 1.7; }

/* ---------- フロー図（当日こう変わる） ---------- */
.flow-figure { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.flow-node { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 16px; text-align: center; position: relative; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px; word-break: auto-phrase; }
.flow-node .fn-step { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--clay-deep); }
/* 誰がやるかの札（当日の流れ図）。文の長さが違っても、札は常に下端でそろう */
.flow-node .fn-who { margin-top: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); background: var(--oat); padding: 2px 9px; }
.flow-note { margin-top: 14px; text-align: right; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
/* 本文中から魔改造ページへ渡す注記（できることの線引き） */
.custom-note { margin-top: 26px; padding: 16px 20px; background: var(--oat); border-radius: 12px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
/* 主催者の手元で起きること（流れ図の下） */
.flow-aside { margin-top: 28px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 28px; }
.flow-aside > p { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--clay-deep); margin-bottom: 12px; }
.flow-figure .flow-node:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--rule); font-size: 13px; z-index: 2; }

/* ---------- 実績（写真＋テキスト） ---------- */
.case { margin-top: 34px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.case-facts { display: grid; gap: 14px; }
.case-facts h3 { font-size: 20px; font-weight: 600; }
.case-facts dl { display: grid; gap: 12px; margin: 0; }
.case-facts dt { font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.case-facts dd { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); }
.case-photos { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.case-photos figure { margin: 0; }
.case-photos img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--oat); width: 100%; }
.case-photos figcaption { font-family: var(--sans); font-size: 11px; color: var(--muted); padding: 8px 2px 0; }
.case-photos .span-2 { grid-column: 1 / -1; }
.case-photos .span-2 img { aspect-ratio: 16 / 9; }
.photo-note { margin-top: 16px; font-family: var(--sans); font-size: 11.5px; color: var(--muted); }

/* ---------- 実績一覧（表） ---------- */
.rec-table-wrap { margin-top: 34px; overflow-x: auto; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.rec-table th, .rec-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--hairline); }
.rec-table th { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rec-table td { color: var(--ink-2); }
.section-ink .rec-table th { color: var(--manilla); }
.section-ink .rec-table th, .section-ink .rec-table td { border-color: rgba(250, 249, 245, .16); }
.section-ink .rec-table td { color: rgba(250, 249, 245, .82); }

/* ---------- 料金（用途ページ：1プランだけ） ---------- */
.price-one { margin-top: 30px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; max-width: 500px; }
/* 中央揃えの節では、料金カードも中央に置く（右側が空いて見えるのを防ぐ） */
.center .price-one { margin-inline: auto; text-align: left; }
.price-one .po-name { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); }
.price-one .po-price { margin-top: 12px; font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.price-one .po-price small { font-size: 16px; font-weight: 600; }
.price-one .po-sub { margin-top: 12px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.price-one .po-link { margin-top: 20px; }

/* ---------- 料金ページ（全体） ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.plan { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 20px; padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan.is-featured { background: var(--manilla); border-color: var(--rule); }
.plan-flag { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--clay-deep); margin-bottom: 12px; min-height: 1.2em; }
.plan-no { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.plan h3 { margin-top: 8px; font-size: 21px; font-weight: 600; color: var(--ink); }
.plan .price { margin-top: 16px; font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.plan .price small { font-size: 15px; font-weight: 600; margin-left: 3px; }
.plan .price-sub { font-family: var(--sans); font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 8px; }
.plan p.desc { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.price-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.price-extra div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 20px; text-align: center; }
.price-extra dt { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; }
.price-extra dd { margin: 6px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.price-note { margin-top: 22px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.data-table-wrap { margin-top: 30px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.data-table th, .data-table td { padding: 14px 16px; border: 1px solid var(--hairline); text-align: left; }
.data-table th { background: var(--oat); font-family: var(--sans); font-weight: 700; font-size: 13px; }

/* ---------- 手順（導入の流れ） ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 22px; }
.step .stepno { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--clay-deep); }
.step h3 { margin-top: 8px; font-size: 16px; font-weight: 600; }
.step p { margin-top: 8px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.step .who { margin-top: 12px; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--oat); padding: 3px 10px; display: inline-block; }

.rev-list { margin-top: 34px; display: grid; gap: 12px; }
/* 左の列は、いちばん長いラベルに合わせて自動で広がる（折り返さないため） */
.rev-row { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 18px; align-items: baseline; padding: 18px 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; }
.rev-row .rev-when { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--clay-deep); white-space: nowrap; }
.rev-row .rev-what { font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 32px; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 22px; font-family: var(--sans); color: var(--clay-deep); font-weight: 700; font-size: 14px; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; top: 22px; color: var(--cloud); font-size: 15px; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 24px 32px; font-size: 15px; color: var(--ink-2); }
.faq .answer a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 2px; }
.faq-group-title { margin-top: 40px; font-size: 17px; font-weight: 600; }
.faq-group-title:first-of-type { margin-top: 0; }

/* ---------- CTA / 問い合わせ ---------- */
.cta { background: var(--ink); color: var(--surface); padding: 88px 0; }
.cta h2 { font-family: var(--serif); font-size: clamp(23px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.cta p { margin-top: 18px; font-size: 16.5px; color: rgba(250, 249, 245, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; align-items: center; margin-top: 30px; }
.cta .link { color: var(--surface); }
.cta .link:hover { color: var(--manilla); }

/* 用途ページ末尾：魔改造への1行 */
.custom-line { margin-top: 48px; padding: 24px 26px; border: 1px dashed var(--rule); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; background: var(--oat); font-size: 15px; color: var(--ink-2); }
.custom-line .link { white-space: nowrap; }

/* 問い合わせフォーム */
.formbox { margin-top: 8px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 28px; }
.formbox iframe { width: 100%; min-height: 900px; border: 0; border-radius: 12px; display: block; }
.form-placeholder { border: 2px dashed var(--ph-line); background: var(--ph-bg); border-radius: 12px; padding: 40px 24px; text-align: center; color: var(--ph-ink); font-family: var(--sans); }
.form-placeholder strong { display: block; font-size: 15px; margin-bottom: 10px; }
.form-fields { display: grid; gap: 18px; }
.form-fields label { display: grid; gap: 6px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.form-fields input, .form-fields select, .form-fields textarea { font: inherit; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--canvas); width: 100%; }
.form-fields textarea { min-height: 130px; resize: vertical; }

/* ---------- MyASP（マイスピー）埋め込みフォーム ----------
   マイスピーのCSSは読み込まず、このサイト側で全面的にスタイルを当てる。
   マイスピーのマークアップ（.myForm / .input_unit / .my_column …）に直接指定する。 */
.myasp-formbox { font-family: var(--sans); }
.myasp-formbox .content_title h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 22px; color: var(--ink); }
.myasp-formbox .myForm { display: block; }

/* レイアウトのリセット（マイスピーの float/table 前提を無効化） */
.myasp-formbox .input_unit { display: block; margin: 0 0 18px; }
.myasp-formbox .my_column,
.myasp-formbox .my_left,
.myasp-formbox .my_right { display: block; width: auto; float: none; margin: 0; padding: 0; }
.myasp-formbox .label_frame { margin-bottom: 6px; }

/* ラベル */
.myasp-formbox .form_input_label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.6; }
.myasp-formbox .form_input_label.required::after { content: " ＊"; color: var(--clay-deep); font-weight: 700; }
.myasp-formbox .form_input_label a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 2px; }

/* 入力欄 */
.myasp-formbox input[type="text"],
.myasp-formbox input[type="email"],
.myasp-formbox input[type="tel"],
.myasp-formbox input[type="number"],
.myasp-formbox textarea,
.myasp-formbox select {
  font: inherit; font-family: var(--sans); font-size: 15px; line-height: 1.6;
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--canvas); color: var(--ink);
  transition: border-color .15s;
}
.myasp-formbox input:focus, .myasp-formbox textarea:focus, .myasp-formbox select:focus {
  outline: none; border-color: var(--clay);
}
.myasp-formbox textarea, .myasp-formbox .textarea_frame textarea { min-height: 140px; resize: vertical; }
.myasp-formbox .textarea_frame { display: block; }

/* チェックボックス（プライバシーポリシー同意） */
.myasp-formbox .checkbox_frame { display: flex; align-items: flex-start; gap: 10px; }
.myasp-formbox .checkbox_input { flex-shrink: 0; padding-top: 2px; }
.myasp-formbox .checkbox_input input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--clay); }
.myasp-formbox .checkbox_label { font-size: 14px; color: var(--ink-2); }
.myasp-formbox .checkbox_label label { cursor: pointer; }

/* 送信ボタン */
.myasp-formbox .form_input_submit { margin-top: 24px; }
.myasp-formbox .form_input_submit input[type="submit"],
.myasp-formbox input[type="submit"] {
  font-family: var(--sans); font-weight: 500; font-size: 15.5px; color: #fff;
  background: var(--clay); border: 0; border-radius: 0 0 8px 8px;
  padding: 15px 36px; cursor: pointer; transition: background-color .15s;
}
.myasp-formbox .form_input_submit input[type="submit"]:hover,
.myasp-formbox input[type="submit"]:hover { background: var(--clay-deep); }

/* validation.js のエラー表示（マイスピーCSSなしでも崩れないよう最低限） */
.myasp-formbox .formError { font-family: var(--sans); font-size: 12px; }
.myasp-formbox .formError .formErrorContent { background: var(--clay-deep); color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; box-shadow: none; }
.myasp-formbox .formError .formErrorArrow div { background: var(--clay-deep); box-shadow: none; }
.myasp-formbox input.error, .myasp-formbox textarea.error { border-color: var(--clay-deep); background: #fdf1ec; }

/* ---------- 会社情報 ---------- */
.company-table { margin-top: 30px; width: 100%; border-collapse: collapse; font-size: 15px; }
.company-table th, .company-table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.company-table th { width: 150px; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--muted); }

/* ---------- フッター（全面 #141413） ---------- */
.footer { background: var(--ink); color: rgba(250, 249, 245, .62); padding: 60px 0 44px; font-family: var(--sans); font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.footer img { width: 176px; height: auto; margin-bottom: 16px; }
.footer-top > div p { max-width: 420px; line-height: 1.9; }
/* フッターのナビは、意味のまとまりごとに1列。旧版は13本を3列に流し込んでいたため、
   列にも行にも意味がなかった（2026/9/15に変更） */
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 28px 48px; align-items: start; }
.fn-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fn-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgba(250, 249, 245, .40); }
.footer-nav a { text-decoration: none; color: rgba(250, 249, 245, .62); white-space: nowrap; }
.footer-nav a:hover { color: var(--surface); }
.footer-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(250, 249, 245, .14); font-size: 11.5px; color: rgba(250, 249, 245, .42); line-height: 1.9; }

/* ---------- 追従CTA（スマホ） ---------- */
.sticky-cta { display: none; }

/* ---------- ページの先頭へ戻る（追従。JavaScriptは使わない） ----------
   href="#top" は、id が無くてもブラウザが文書の先頭へ戻す決まり（HTML仕様）。
   スクロールの動きは html の scroll-behavior: smooth に任せる */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.to-top:hover { background: #fff; border-color: var(--ink-2); color: var(--ink); }
/* 上向きの山形。文字ではなく罫線で描く（フォント差が出ないため） */
.to-top span {
  display: block; width: 10px; height: 10px;
  border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: 3px;
}
/* 少しスクロールするまで出さない（Chrome・Edge）。
   対応していないブラウザでは常に表示され、動作は同じ */
@supports (animation-timeline: scroll()) {
  .to-top { animation: to-top-in linear both; animation-timeline: scroll(); animation-range: 200px 420px; }
  @keyframes to-top-in {
    0%   { opacity: 0; visibility: hidden; }
    1%   { opacity: .02; visibility: visible; }
    100% { opacity: 1; visibility: visible; }
  }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .hero-card { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: none; }
  .hero-visual img { width: 100%; max-width: 600px; display: block; margin-inline: auto; }
  .manga-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mascot-card { max-width: none; }
  .mascot-card img { width: 100%; max-width: 260px; display: block; margin-inline: auto; }
  .ep-cards { grid-template-columns: 1fr; }
  .ep-card { grid-template-columns: 1fr; }
  .ep-card-cover { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 22px; }
  .ep-card-cover img { height: auto; width: 100%; max-width: 320px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .split-media { order: 0; }
  .manga-ph { grid-template-columns: 1fr; }
  .split-media { max-width: none; }
  .mp-strip img { width: 100%; max-width: 560px; }
  .cta-card { grid-template-columns: 1fr; gap: 28px; }
  .cta-card-visual { max-width: none; }
  .cta-card-visual img { width: 100%; max-width: 340px; display: block; margin-inline: auto; }
  .use-cards { grid-template-columns: 1fr; }
  .manga-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: 1fr; }

  /* モバイルナビ：ハンバーガー（純CSS） */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 6px 22px 16px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s;
  }
  .menu-toggle:checked ~ .nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
  .has-sub > span:first-child { padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
  .has-sub > span:first-child::after { display: none; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .sub a { padding: 11px 4px; font-size: 13px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; background: transparent; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .btn-header { display: none; }
  .footer-nav { grid-template-columns: repeat(2, auto); gap: 24px 36px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.85; }
  .section { padding: 60px 0; }
  .section-sm { padding: 44px 0; }
  .hero { padding: 40px 0 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--hairline); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hairline); }
  .steps { grid-template-columns: 1fr; }
  .case-photos { grid-template-columns: 1fr; }
  .price-extra { grid-template-columns: 1fr; }
  .flow-figure .flow-node::after { display: none; }
  .flow-node { flex-basis: 100%; }
  .rev-row { grid-template-columns: 1fr; gap: 4px; }
  .mini-points { grid-template-columns: 1fr; }
  .ep-points { grid-template-columns: 1fr; }
  .ep-func dl { grid-template-columns: 1fr; }
  .ep-nav { grid-template-columns: 1fr; }
  .ep-nav a.next { text-align: left; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .logo span { display: none; }
  body { padding-bottom: 72px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--canvas); border-top: 1px solid var(--hairline); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .sticky-cta .btn { width: 100%; }
  /* 追従CTAの上に逃がす */
  .to-top { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
