/* Evalign サイト共通スタイル（src/site/layout.ts の全ページで読み込む）
   色はブランドの藍 + CTA のオレンジに絞り、製品の識別色（Pro=橙 / AI Scan=シアン / Input=緑）は小さな要素だけに使う */

:root {
  --brand:        #1a3a7c;
  --brand-mid:    #1e52b8;
  --link:         #1d4ed8;
  --cta:          #ea6c0a;
  --cta-dark:     #c2570a;
  --cta-light:    #fff7ed;
  --pro:          #ea6c0a;
  --ai:           #0284c7;
  --ai-light:     #f0f9ff;
  --input:        #047857;
  --input-light:  #ecfdf5;
  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;
  --text:         #0f172a;
  --text-sub:     #475569;
  --border:       #e2e8f0;
  --radius:       14px;
  --shadow:       0 4px 20px rgba(15, 23, 42, .07);
  --header-h:     64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px; line-height: 1.8; color: var(--text); background: var(--bg);
  word-break: auto-phrase; -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
small { font-size: 12px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* ── ボタン ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); }
.btn-green { background: var(--input); color: #fff; }
.btn-green:hover { background: #065f46; }
.btn-outline { background: #fff; color: var(--brand); border-color: #c7d2e5; }
.btn-outline:hover { border-color: var(--brand-mid); background: #f5f8ff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-text { background: none; color: var(--link); padding-left: 8px; padding-right: 8px; }
.btn-text:hover { text-decoration: underline; }

/* ── ヘッダー ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.site-header-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 20px; color: var(--brand); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav > a { color: var(--text-sub); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--brand); }
.site-nav > a[aria-current="page"] { font-weight: 700; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-sub); white-space: nowrap; }
.nav-menu summary:hover, .nav-menu summary[aria-current="page"] { color: var(--brand); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: '▾'; margin-left: 4px; font-size: 11px; }
.apps-menu summary { font-weight: 700; color: var(--brand); padding: 7px 14px; border: 1.5px solid #c7d2e5; border-radius: 8px; }
.nav-menu-panel {
  position: absolute; left: 0; top: calc(100% + 10px); width: 290px; background: #fff; z-index: 10;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 6px;
}
.apps-menu .nav-menu-panel { left: auto; right: 0; }
.nav-menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.nav-menu-panel a:hover, .nav-menu-panel a[aria-current="page"] { background: var(--bg-alt); }
.nav-menu-panel b { display: block; font-size: 14px; }
.nav-menu-panel span { display: block; font-size: 12px; color: var(--text-sub); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 4px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── セクション共通 ───────────────────── */
.sec { padding: 80px 24px; }
.sec-alt { background: var(--bg-alt); }
.sec-inner { max-width: 1120px; margin: 0 auto; }
.sec-inner.narrow { max-width: 800px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cta); margin-bottom: 8px; }
.sec-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.35; margin-bottom: 14px; }
.sec-title-sm { font-size: 22px; font-weight: 800; line-height: 1.4; margin: 8px 0 18px; }
.sec-title-sm:not(:first-child) { margin-top: 48px; }
.sec-lead { color: var(--text-sub); max-width: 680px; margin-bottom: 32px; }
.center { text-align: center; margin-top: 28px; }
.hero-btns.center { justify-content: center; }
.muted { color: var(--text-sub); font-size: 14px; margin-top: 16px; }
.page-head { background: var(--bg-alt); padding: 56px 24px 36px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.35; margin-bottom: 12px; }
.page-head .sec-lead { margin-bottom: 12px; }

/* ── ヒーロー ─────────────────────────── */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 55%, #1a5cb8 100%); color: #fff; padding: 80px 24px 72px; }
.hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow-pill { display: inline-block; font-size: 13px; font-weight: 700; color: #fed7aa; background: rgba(234,108,10,.18); border: 1px solid rgba(251,146,60,.45); padding: 4px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1.25; margin-bottom: 20px; letter-spacing: -.01em; }
.hero h1 .accent { color: #93c5fd; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 30px; max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.72); }
.video-wrap { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.video-wrap video { width: 100%; }
.video-label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; background: rgba(15,23,42,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-right: 6px; vertical-align: 1px; }

.trust-band { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-sub); }
.trust-band span { display: inline-flex; align-items: center; gap: 8px; }
.trust-band .icon { color: var(--brand-mid); }

/* ── トップ：製品の選び方 ─────────────── */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.choice-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; background: #fff; }
.choice-card.choice-paper { border-color: #a7f3d0; background: linear-gradient(180deg, var(--input-light), #fff 55%); }
.choice-q { font-size: 15px; font-weight: 700; color: var(--brand); line-height: 1.6; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.choice-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.choice-card > p { font-size: 14px; color: var(--text-sub); }
.choice-price { margin: 14px 0 18px; }
.choice-price b { font-family: 'DM Sans', sans-serif; font-size: 18px; color: var(--text); }
.choice-links { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── トップ：使い方タブ ───────────────── */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--text-sub); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--cta); }
.tab-panels:not(.js) .tab-panel + .tab-panel { margin-top: 48px; }
.tab-panel h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 18px; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps span { font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.panel-note { margin-top: 18px; font-size: 14px; color: var(--text-sub); background: #fff; border-left: 3px solid var(--cta); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ── トップ：画面例 ───────────────────── */
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.screen-card { display: block; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; padding: 0; box-shadow: var(--shadow); }
.screen-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
/* 横長の画像は切り抜くと端が欠けるので、枠の中に全体を収める */
.screen-card img.is-wide, .shots img.is-wide { object-fit: contain; object-position: center; background: var(--bg-alt); padding: 12px; }
.screen-card span { display: block; padding: 12px 16px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--border); }

/* ── トップ：学生データ ───────────────── */
.data-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.data-list { list-style: none; display: grid; gap: 12px; }
.data-list li { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; border-left: 4px solid var(--brand-mid); }
.data-list li.sent { border-left-color: var(--cta); }
.data-list b { display: block; font-size: 15px; }
.data-list span { font-size: 14px; color: var(--text-sub); }

/* ── トップ：料金の要約 ───────────────── */
.price-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-summary > div { border: 1px solid var(--border); border-top: 4px solid var(--brand-mid); border-radius: 12px; padding: 20px; }
.price-summary .ps-pro { border-top-color: var(--pro); }
.price-summary .ps-ai { border-top-color: var(--ai); }
.price-summary .ps-input { border-top-color: var(--input); }
.ps-name { font-size: 14px; font-weight: 700; color: var(--text-sub); }
.ps-price { font-family: 'DM Sans', sans-serif; font-size: 30px; font-weight: 700; margin: 2px 0 6px; }
.ps-price small { font-size: 14px; color: var(--text-sub); }
.ps-note { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

.story p { color: var(--text-sub); max-width: 760px; }
.story-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* ── FAQ ─────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 8px; top: 14px; font-size: 22px; font-weight: 400; color: var(--text-sub); }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 20px; color: var(--text-sub); font-size: 15px; }

.final-cta { background: linear-gradient(135deg, #0f172a, #1e3a6e); color: #fff; text-align: center; padding: 72px 24px; }
.final-cta h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; margin-bottom: 8px; }
.final-cta p { color: rgba(255,255,255,.8); margin-bottom: 28px; }

/* ── モーダル ─────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.75); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 920px; max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 22px; cursor: pointer; }
.modal-title { font-weight: 800; font-size: 17px; margin-bottom: 18px; padding-right: 48px; }
.modal-imgs { display: grid; gap: 18px; }
.modal-imgs figure { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.modal-imgs figcaption { padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--text-sub); background: var(--bg-alt); }

/* ── 料金ページ ───────────────────────── */
.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.free-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.free-card.free-input { border-color: #a7f3d0; background: var(--input-light); }
.free-card h3 { font-size: 18px; font-weight: 800; }
.free-card p { font-size: 14px; color: var(--text-sub); }
.free-card .free-price { font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); grid-row: 1; grid-column: 2; }
.free-card .btn { grid-column: 1 / -1; justify-self: start; }
.which { background: var(--cta-light); border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 22px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-card { border: 2px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan-card.plan-pro { border-color: #fdba74; }
.plan-card.plan-ai { border-color: #7dd3fc; }
.plan-card h3 { font-size: 22px; font-weight: 900; }
.plan-tagline { color: var(--text-sub); font-size: 14px; margin-bottom: 14px; }
.plan-features { list-style: none; margin-bottom: 20px; }
.plan-features li { position: relative; padding: 4px 0 4px 24px; font-size: 14px; }
.plan-features li::before { content: '✓'; position: absolute; left: 2px; color: var(--brand-mid); font-weight: 700; }
.term-picker { border: 0; margin-bottom: 16px; display: grid; gap: 8px; }
.term-picker legend { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.term-option { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'r l p' 'r n n'; gap: 0 10px; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.term-option:has(input:checked) { border-color: var(--cta); background: var(--cta-light); }
.term-option input { grid-area: r; width: 18px; height: 18px; accent-color: var(--cta); }
.term-label { grid-area: l; font-weight: 700; font-size: 15px; }
.term-label em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--cta); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.term-price { grid-area: p; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 18px; }
.term-per { grid-area: n; font-size: 12px; color: var(--text-sub); }
.plan-small { font-size: 12px; color: var(--text-sub); margin-top: 8px; text-align: center; }
.plan-card .buy-btn { margin-top: auto; }

.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow li { counter-increment: f; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--text-sub); }
.flow li::before { content: counter(f); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cta); color: #fff; font-weight: 700; margin-bottom: 8px; }
.flow li.warn { border-color: #fdba74; background: var(--cta-light); }
.flow b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.flow strong { color: #9a3412; }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--brand-mid); font-weight: 700; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
.compare th, .compare td, .data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-size: 14px; }
.compare thead th:not(:first-child) { text-align: center; }
.compare thead th small, .compare td small, .compare th small { display: block; font-weight: 500; color: var(--text-sub); font-size: 12px; }
.compare td { text-align: center; width: 15%; }
.compare tbody th { font-weight: 500; }
.compare tr.cat th { background: var(--bg-alt); font-size: 13px; font-weight: 700; color: var(--text-sub); }
.compare .c-pro { color: var(--pro); }
.compare .c-ai { color: var(--ai); }
.compare .ok { color: var(--brand-mid); }
.compare .no { color: #cbd5e1; }
.compare .ok .icon, .compare .no .icon { width: 20px; height: 20px; }
.data-table { min-width: 680px; }
.data-table thead th { background: var(--bg-alt); }
.data-table tbody th { font-weight: 700; width: 26%; }
.data-table.checklist { min-width: 0; }
.data-table.checklist tbody th { width: 45%; font-weight: 500; }
.data-table tr:last-child > * , .compare tr:last-child > * { border-bottom: 0; }

/* ── セキュリティ：データの流れ ───────── */
.flow-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 24px; }
.fd-box { border-radius: 14px; padding: 18px 20px; border: 2px solid var(--brand-mid); background: #f5f8ff; }
.fd-box.fd-ext { border-color: #fdba74; background: var(--cta-light); }
.fd-box b { display: block; font-size: 16px; }
.fd-box span { display: block; font-size: 14px; color: var(--text-sub); }
.fd-box em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand-mid); margin-top: 6px; }
.fd-box.fd-ext em { color: #9a3412; }
.fd-arrow { font-weight: 700; color: #9a3412; font-size: 14px; white-space: nowrap; }
.fd-v { display: none; }

/* ── 運営者・文書ページ ───────────────── */
.info-table th, .info-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 15px; }
.info-table th { width: 28%; color: var(--text-sub); font-weight: 700; white-space: nowrap; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 15px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.5em; margin: 8px 0; }
.doc li + li { margin-top: 4px; }
.doc .doc-card { border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.doc .doc-card h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; }
.doc .doc-warning { background: var(--cta-light); border: 1px solid #fdba74; border-radius: 10px; padding: 14px 18px; margin-top: 14px; }
.doc .caution { color: #b42318; }
.doc .info-table { margin: 8px 0; }

/* ── 製品ページ ───────────────────────── */
.crumbs { font-size: 13px; color: var(--text-sub); padding: 12px 24px; border-bottom: 1px solid var(--border); }
.crumbs a { color: var(--text-sub); }
.product-hero { padding: 56px 24px 64px; background: linear-gradient(180deg, #f5f8ff, #fff); border-bottom: 1px solid var(--border); }
.product-hero.product-ai-scan { background: linear-gradient(180deg, var(--ai-light), #fff); }
.product-hero.product-input { background: linear-gradient(180deg, var(--input-light), #fff); }
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.product-hero .sec-lead { margin-bottom: 26px; }
.product-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 48px rgba(15,23,42,.12); background: #fff; }
.product-shot img { width: 100%; max-height: 460px; object-fit: cover; object-position: top; }
.who-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.who-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.who-list .icon { color: var(--brand-mid); margin-top: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-sub); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shots figure { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.shots figcaption { padding: 10px 14px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--border); }
.spec-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.price-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.price-box .sec-title-sm { margin-top: 0; }
.pp-price { margin-bottom: 12px; }
.pp-price b { font-family: 'DM Sans', sans-serif; font-size: 20px; }
.pp-price-head { font-weight: 700; margin-bottom: 8px; }
.pp-terms { list-style: none; border-top: 1px solid var(--border); margin-bottom: 18px; }
.pp-terms li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pp-terms b { font-family: 'DM Sans', sans-serif; font-size: 18px; }
.pp-terms em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--cta); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.related-card:hover { border-color: var(--brand-mid); }
.related-card b { font-size: 16px; }
.related-card span { grid-column: 1; font-size: 14px; color: var(--text-sub); }
.related-card .icon { grid-row: 1 / 3; grid-column: 2; color: var(--brand-mid); }

/* ── ヘルプセンター ───────────────────── */
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: border-color .2s, box-shadow .2s; }
.help-card:hover { border-color: var(--brand-mid); box-shadow: var(--shadow); }
.help-card .icon { width: 28px; height: 28px; color: var(--brand-mid); margin-bottom: 6px; }
.help-card b { font-size: 17px; }
.help-card span { font-size: 14px; color: var(--text-sub); }
.help-contact { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; background: var(--bg-alt); border-radius: 14px; padding: 22px 24px; }
.help-contact .icon { width: 26px; height: 26px; color: var(--brand-mid); margin-top: 2px; }
.help-contact p { font-size: 15px; color: var(--text-sub); }
.help-layout { padding-top: 40px; }
.help-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.help-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: 14px; }
.help-nav p { font-size: 12px; font-weight: 700; color: var(--text-sub); margin: 14px 0 4px; letter-spacing: .06em; }
.help-nav a { color: var(--text); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.help-nav a:hover { background: var(--bg-alt); }
.help-nav a[aria-current="page"] { background: #eef3ff; color: var(--brand); font-weight: 700; }
.doc-title { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.35; margin-bottom: 8px; }
.help-grid .doc { min-width: 0; max-width: 780px; }

/* ── フッター ─────────────────────────── */
.site-footer { background: #0f172a; color: rgba(255,255,255,.7); padding: 56px 24px 28px; font-size: 14px; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand span { color: #fff; }
.footer-brand p { margin: 12px 0 16px; }
.share { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.share a, .share button { color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 6px; padding: 6px 12px; font-size: 13px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: rgba(255,255,255,.2); }
.footer-head { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.copyright { max-width: 1120px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.mobile-cta { display: none; }

/* ── レスポンシブ ─────────────────────── */
@media (max-width: 1000px) {
  .steps, .flow { grid-template-columns: repeat(2, 1fr); }
  .who-list, .feature-grid, .help-cards { grid-template-columns: repeat(2, 1fr); }
  .price-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header-inner { gap: 12px; padding: 0 16px; }
  .menu-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(15,23,42,.1);
    padding: 8px 16px 16px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .site-nav { display: flex; }
  .site-nav > a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-menu { margin-top: 12px; }
  .nav-menu summary { display: block; padding: 4px; border: 0; font-size: 13px; font-weight: 700; color: var(--text-sub); pointer-events: none; }
  .nav-menu summary::after { content: none; }
  .nav-menu-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0; display: grid; gap: 4px; }
  .nav-menu-panel a { background: var(--bg-alt); }
  .hero { padding: 48px 16px 56px; }
  .hero-inner, .data-split { grid-template-columns: 1fr; gap: 32px; }
  .video-label { top: 10px; bottom: auto; }
  .sec { padding: 56px 16px; }
  .page-head { padding: 40px 16px 28px; }
  .choice-grid, .screens-grid, .plan-grid, .free-grid, .product-hero-inner, .spec-split, .shots, .related, .help-grid { grid-template-columns: 1fr; }
  .product-hero { padding: 40px 16px 48px; }
  .help-nav { position: static; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .help-grid { gap: 24px; }
  .help-grid .doc { order: -1; }
  .crumbs { padding: 10px 16px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .flow-diagram { grid-template-columns: 1fr; }
  .fd-arrow { justify-self: center; }
  .fd-h { display: none; }
  .fd-v { display: inline; }
  /* 画面下の固定 CTA（フッターに重ならないよう body に余白） */
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
  }
  body { padding-bottom: 72px; }
  .menu-open ~ .mobile-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .steps, .flow, .price-summary, .who-list, .feature-grid, .help-cards { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
  .trust-band { justify-content: flex-start; flex-direction: column; gap: 8px; padding: 18px 16px; }
  .free-card { grid-template-columns: 1fr; }
  .free-card .free-price { grid-row: auto; grid-column: auto; }
  .info-table th { white-space: normal; width: 34%; }
  .site-footer-inner { grid-template-columns: 1fr; }
}

/* ── 印刷（セキュリティページを PDF で渡す用途） ── */
@media print {
  .site-header, .site-footer, .mobile-cta, .no-print, .skip-link { display: none !important; }
  body { padding: 0; font-size: 12px; }
  .sec, .page-head { padding: 16px 0; background: none; border: 0; }
  .table-scroll { overflow: visible; border: 0; }
  .data-table { min-width: 0; }
  a { color: inherit; text-decoration: none; }
}
