/* site.css — 理由書ナビ LP の骨格と意匠(案A: 実物の画面を主役に・分割型の最初の画面+一枚絵型)
   見せ場は1つだけ: 最初の画面の「罫線の紙」の上に、実物の作成画面を置くこと(静的・動かない)
   余白は 4 の倍数だけ(4/8/12/16/20/24/28/32…)。色・文字の大きさは theme.css の変数だけを使う */

body { font-size: var(--fs-body); line-height: var(--lh-body); }
/* 見出しは文節で折り返す(「募集し/ています」のような途中の折れを防ぐ)。
   行送り1.45は和文の見出しのための上書き(漢字の多い2行の見出しが1.3では詰まって見えるため) */
h1, h2, h3 { line-height: var(--lh-heading); font-weight: 700; word-break: auto-phrase; }
p + p { margin-top: 0.8em; }
strong { font-weight: 700; }
a:not(.btn) { color: var(--c-accent); text-decoration: underline; text-underline-offset: 4px; }
a:not(.btn):hover { color: var(--c-accent-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.brand, .brand:hover { text-decoration: none !important; }
.section-continue { padding-top: 0; }  /* 同じ白い面が続くとき、上の余白を重ねない */
html { scroll-padding-top: 80px; }     /* 固定のヘッダーの下に見出しが隠れないように */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-accent); color: var(--c-text-inv) !important; padding: 12px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

/* ── ボタン(押せる大きさ 44px以上) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-s);
  font-size: var(--fs-ui); font-weight: 700; line-height: 1.4;
  border: 2px solid var(--c-accent); transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--c-accent); color: var(--c-text-inv); }
.btn-primary:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); }
.btn-secondary { background: var(--c-surface); color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-tint); }
.btn-large { min-height: 56px; padding: 12px 28px; font-size: var(--fs-body); }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--c-header); border-bottom: 1px solid var(--c-line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--c-accent); font-weight: 700; font-size: var(--fs-logo); }
.brand img { width: 32px; height: 32px; }
.brand span { white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: var(--fs-ui); color: var(--c-text) !important; text-decoration: none !important; border-radius: var(--radius-s);
}
.site-nav a:hover { background: var(--c-tint); }
.header-cta { min-height: 44px; padding: 8px 20px; white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 960px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 520px) { .cta-full { display: none; } .cta-short { display: inline; } }

/* ── 最初の画面(分割型) ── */
.hero {
  height: auto; min-height: 0;              /* quality-base の 100svh を外す(内容の高さで十分。アドレスバーの伸縮でずれない) */
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  /* 見せ場: 罫線の紙(静的・動かない) */
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--rule-line) 39px, var(--rule-line) 40px),
    var(--bg-base);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.eyebrow { font-size: var(--fs-ui); font-weight: 700; color: var(--c-accent); margin-bottom: 12px; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: 0.01em; }
.hero-lead { margin-top: 20px; color: var(--c-text-sub); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: var(--fs-body); color: var(--c-text); display: flex; align-items: flex-start; gap: 8px; }
.hero-note svg { flex: none; color: var(--c-accent); margin-top: 0.35em; }
/* 折り返すのは <wbr> の位置だけ(「送信さ/れません」と折れていた) */
.keep-phrase { word-break: keep-all; }
.screen {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.screen-bar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-chrome); }
.screen-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--c-chrome-dot); }
.screen img { width: 100%; height: auto; }
.screen-caption { margin-top: 12px; font-size: var(--fs-caption); color: var(--c-text-sub); text-align: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ── セクション共通 ── */
.section-white { background: var(--c-surface); }
.section-tint { background: var(--c-tint); }
.section-head { max-width: 46em; margin-bottom: var(--block-gap); }
.section-head h2 { font-size: var(--fs-title); }
.section-head p { margin-top: 16px; color: var(--c-text-sub); }

/* ── この手間、ありませんか ── */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.pains li { background: var(--bg-base); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.pains .q { font-size: var(--fs-h4); color: var(--c-accent); margin-bottom: 8px; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* ── できること(画像と文を左右交互) ── */
.features { display: grid; gap: clamp(48px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-no {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 2px solid var(--c-accent); border-radius: 50%; color: var(--c-accent); font-weight: 700; margin-bottom: 12px;
}
.feature h3 { font-size: var(--fs-h4); }
.feature p { margin-top: 12px; color: var(--c-text-sub); }
.feature figure img { width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-card); background: var(--c-surface); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

/* ── 使い方の流れ ── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.steps li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 20px 20px; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--c-accent); color: var(--c-text-inv); font-weight: 700; margin-bottom: 12px;
}
.steps h3 { font-size: var(--fs-h4); }
.steps p { margin-top: 8px; font-size: var(--fs-ui); color: var(--c-text-sub); line-height: 1.8; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.video-block { margin-top: var(--block-gap); max-width: 960px; margin-left: auto; margin-right: auto; }
.video-block h3 { font-size: var(--fs-h4); margin-bottom: 16px; }
.video-block video { width: 100%; height: auto; border-radius: var(--radius); background: var(--c-deep); box-shadow: var(--shadow-card); }
.video-note { margin-top: 12px; font-size: var(--fs-caption); color: var(--c-text-sub); }
.transcript { margin-top: 12px; }
.transcript summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--c-accent); font-weight: 700; font-size: var(--fs-ui);
}
.transcript ol { margin-top: 8px; padding-left: 1.4em; color: var(--c-text-sub); font-size: var(--fs-ui); }

/* ── データの扱い ── */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.points li { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.points h3 { font-size: var(--fs-h4); color: var(--c-accent); }
.points p { margin-top: 8px; color: var(--c-text); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.cautions { margin-top: 28px; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; background: var(--c-surface); }
.cautions h3 { font-size: var(--fs-h4); }
.cautions ul { margin-top: 12px; padding-left: 1.3em; color: var(--c-text-sub); }
.cautions li + li { margin-top: 8px; }
.doc-link { margin-top: 20px; }

/* ── 無料モニター(温かみの面はここだけ) ── */
.monitor {
  background: var(--c-warm-tint); border: 2px solid var(--c-warm); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.monitor .badge {
  display: inline-block; font-size: var(--fs-caption); font-weight: 700; color: var(--c-warm-deep);
  border: 2px solid var(--c-warm); border-radius: 999px; padding: 4px 16px; background: var(--c-surface);
}
.monitor h2 { font-size: var(--fs-title); margin-top: 12px; }
.monitor h2 + p { margin-top: 16px; }
.apply-quick { margin-top: 12px; font-weight: 700; }
.apply-quick .to-apply { margin-left: 4px; }
.monitor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 28px; }
.terms { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius-s); overflow: hidden; }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); line-height: 1.8; }
.terms th { width: 8em; color: var(--c-warm-deep); font-weight: 700; white-space: nowrap; }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 0; }
.asks h3 { font-size: var(--fs-h4); }
.asks ol { margin-top: 12px; padding-left: 1.4em; }
.asks li + li { margin-top: 8px; }
.apply { margin-top: 32px; padding-top: 28px; border-top: 2px dashed var(--c-warm); }
.apply h3 { font-size: var(--fs-h4); }
.apply-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; align-items: center; }
.tel { font-size: var(--fs-tel); font-weight: 700; color: var(--c-text) !important; text-decoration: none !important; letter-spacing: 0.02em; }
.apply-note { margin-top: 16px; font-size: var(--fs-body); color: var(--c-text); }
@media (max-width: 860px) { .monitor-grid { grid-template-columns: 1fr; } }
/* スマートフォンでは、項目名を内容の上に置く(横並びだと内容の列が細くなりすぎた) */
@media (max-width: 520px) {
  .terms th, .terms td { display: block; width: auto; }
  .terms th { padding-bottom: 0; border-bottom: 0; }
}

/* ── よくある質問 ── */
.faq { max-width: 860px; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-s); }
.faq details + details { margin-top: 12px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 20px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
/* 記号は読み上げの名前に入れない(「/ ""」で代わりの文字を空に。「プラス」と読まれていた) */
/* 「/ ""」を理解しない古いブラウザのために、同じ行の前に普通の書き方を置く(宣言ごと捨てられて記号が消えないように) */
.faq summary::before { content: "Q"; content: "Q" / ""; color: var(--c-accent); font-weight: 700; }
.faq summary::after { content: "+"; content: "+" / ""; margin-left: auto; color: var(--c-accent); font-size: var(--fs-h4); line-height: 1; }
.faq details[open] summary::after { content: "−"; content: "−" / ""; }
.faq .answer { padding: 0 20px 20px 44px; color: var(--c-text-sub); }

/* ── フッター ── */
.site-footer { background: var(--c-deep); color: var(--c-deep-text); padding: 48px 0 32px; }
.site-footer a:not(.btn) { color: var(--c-text-inv); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-brand { font-weight: 700; font-size: var(--fs-h4); color: var(--c-text-inv); }
.site-footer p { font-size: var(--fs-ui); }
.site-footer .small { font-size: var(--fs-caption); color: var(--c-deep-sub); margin-top: 24px; }

/* ── 404 ── */
.notfound h1 { font-size: var(--fs-title); }
.notfound p { margin-top: 16px; }
.notfound .actions { margin-top: 24px; }
