/* スコア当番 LP 共通スタイル（アプリと同じ緑のトーン） */
:root {
  --bg: #f4f6f2;
  --card: #ffffff;
  --soft: #eef2ec;
  --ink: #1c2420;
  --ink-soft: #5d6b63;
  --line: #d5ddd7;
  --brand: #1f6f43;
  --brand-soft: #dcefe3;
  --red: #d2452f;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.9;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { font-weight: 800; font-size: 19px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.header-nav a.btn { color: #fff; }
.header-nav a { white-space: nowrap; }
/* 幅の狭い端末（320px 台）でも「ログイン」と「無料ではじめる」が 1 行に収まるよう詰める */
@media (max-width: 380px) {
  .site-header .wrap, .header-nav { gap: 8px; }
  .brand { font-size: 16px; }
  .header-nav { font-size: 13px; }
  .header-nav .btn--small { padding: 6px 10px; font-size: 13px; }
}
/* スマホ幅ではページ内リンクを隠す。「ログイン」は登録済みの人の入口なので残す */
@media (max-width: 720px) { .header-nav a:not(.btn):not(.nav-login) { display: none; } }

/* ===== ボタン ===== */
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 800;
  text-decoration: none; border-radius: 999px; padding: 14px 30px; font-size: 17px;
  box-shadow: 0 3px 0 #164f30;
}
.btn:hover { filter: brightness(1.06); }
.btn--small { padding: 6px 16px; font-size: 14px; box-shadow: none; }
.btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }

/* ===== ヒーロー ===== */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, #e6f1e9 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.4; margin: 0 0 18px; letter-spacing: 0.01em; }
.accent { color: var(--brand); }
.red { color: var(--red); }
.hero-sub { font-size: 17px; color: var(--ink-soft); margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
/* ストアへのリンク（公式バッジの画像は使わず、文字のピル） */
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-links--center { justify-content: center; margin-top: 18px; }
/* 公式バッジ（サクブン先生の LP と同じ画像・同じ高さ 48px） */
.store-links { gap: 12px; align-items: center; }
.store-link { display: inline-flex; align-items: center; }
.store-link img { height: 48px; width: auto; display: block; }
.phone {
  border-radius: 28px; overflow: hidden; border: 8px solid #1c2420; background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); max-width: 300px; margin: 0 auto;
}
/* 画面写真（サクブン先生の LP と同じ。スマホの枠は付けず、角丸と影だけ） */
.hero-shot, .feature-media { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(20, 60, 30, 0.14); }
.hero-shot img, .feature-media img { display: block; width: 100%; height: auto; }
.feature-media { box-shadow: 0 12px 30px rgba(20, 60, 30, 0.12); border-radius: 14px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}

/* ===== セクション ===== */
section { padding: 52px 0; }
section.alt { background: #fff; }
.section-title { font-size: clamp(22px, 3.6vw, 30px); text-align: center; margin: 0 0 10px; line-height: 1.5; }
.section-lead { text-align: center; color: var(--ink-soft); margin: 0 auto 36px; max-width: 680px; }

/* 悩み */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.worry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.worry .q { font-weight: 800; margin-bottom: 6px; }
.worry p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) { .worries { grid-template-columns: 1fr; } }

/* 特徴 */
/* 画面写真はスマホの枠つき・小さめ（300px だと 1 行が画面 1 枚ぶんの高さになり、縦に間延びする） */
.feature { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; margin-bottom: 40px; }
.feature:nth-child(even) { grid-template-columns: 240px 1fr; }
.feature-img.phone { max-width: 240px; border-width: 6px; border-radius: 24px; }
.feature:nth-child(even) .feature-img { order: -1; }
.feature:last-child { margin-bottom: 0; }
.feature-label { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 12px; }
.feature h3 { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; margin: 10px 0 12px; }
.feature p { margin: 0 0 10px; color: var(--ink-soft); }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .feature-img { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h4 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ステップ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--soft); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px;
}
.step h4 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* 料金 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.plan--main { border: 2px solid var(--brand); }
.plan--main { position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 12px; line-height: 1.8;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.price { font-size: 34px; font-weight: 800; line-height: 1.3; }
.price small { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.price-sub { color: var(--ink-soft); font-size: 14px; margin: 2px 0 14px; }
.plan ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.plan-limits { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 14px !important; }
.trial {
  max-width: 820px; margin: 0 auto 28px; background: var(--brand-soft); border: 2px solid var(--brand);
  border-radius: var(--radius); padding: 22px 24px;
}
.trial-head { display: flex; gap: 18px; align-items: center; }
.trial-days {
  flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: baseline; justify-content: center; padding-top: 22px; font-size: 38px; font-weight: 800; line-height: 1;
}
.trial-days small { font-size: 14px; margin-left: 2px; }
.trial-title { font-size: 20px; font-weight: 800; line-height: 1.5; }
.trial-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.trial-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; font-weight: 700; }
.trial-points li::before { content: "✓ "; color: var(--brand); }
@media (max-width: 560px) {
  .trial-head { flex-direction: column; align-items: flex-start; }
  .trial-days { width: 76px; height: 76px; padding-top: 18px; font-size: 30px; }
}
.hero-trial { margin: 14px 0 0; font-size: 15px; }
.hero-trial strong { background: linear-gradient(transparent 60%, var(--brand-soft) 60%); }
.price-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 18px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

/* CTA */
.cta { text-align: center; background: var(--brand); color: #fff; }
.cta .section-title { color: #fff; }
.cta p { margin: 0 0 24px; opacity: 0.9; }
.cta .btn { background: #fff; color: var(--brand); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }

/* フッター */
/* サクブン先生と同じ構成（特定商取引法に基づく表記はフッターに出さず、サポートと利用規約から nofollow でリンクする） */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 34px 0; font-size: 13px; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink-soft); }
.copyright { color: var(--ink-soft); opacity: 0.8; margin: 0; line-height: 1.7; }

/* ===== 法定ページ ===== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; font-size: 15px; }
.legal-page h1 { font-size: 24px; line-height: 1.5; }
.legal-page h2 { font-size: 18px; margin-top: 32px; }
.legal-page h3 { font-size: 16px; margin-top: 22px; }
.legal-page table { width: 100%; border-collapse: collapse; background: #fff; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--soft); width: 30%; white-space: nowrap; }
@media (max-width: 600px) {
  .legal-page th, .legal-page td { display: block; width: 100%; white-space: normal; }
  .legal-page td { border-top: none; }
}
.back-home { display: inline-block; margin-bottom: 8px; font-size: 14px; }
.legal-note { font-size: 13px; color: var(--ink-soft); }

/* ===== ガイド（スコアの付け方） ===== */
.guide-page { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; font-size: 16px; line-height: 1.9; }
.guide-page .crumbs { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.guide-page .crumbs a { color: var(--ink-soft); }
.guide-page h1 { font-size: clamp(24px, 4.4vw, 32px); line-height: 1.45; margin: 0 0 14px; }
.guide-page .lead { color: var(--ink-soft); margin: 0 0 24px; }
.guide-page h2 { font-size: 21px; line-height: 1.5; margin: 40px 0 12px; padding-left: 12px; border-left: 5px solid var(--brand); }
.guide-page h3 { font-size: 17px; margin: 26px 0 8px; }
.guide-page figure { margin: 18px 0 22px; text-align: center; }
.guide-page figure img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
/* 入力画面の写真はトップと同じスマホ型の枠（.phone）に入れる。画像は枠の内側の幅に合わせる（はみ出すと右が切れる） */
.guide-page figure.guide-shot { width: 260px; max-width: 100%; }
.guide-page figure.guide-shot .phone { max-width: 100%; }
.guide-page figure.guide-shot img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.guide-page .shots { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.guide-page figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.guide-page table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; margin: 12px 0 18px; }
.guide-page th, .guide-page td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.guide-page th { background: var(--soft); }
.guide-page .mark { font-weight: 800; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
.guide-page .note { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 15px; }
.guide-page .toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 34px; margin: 0 0 8px; }
.guide-page .soon { color: var(--ink-soft); font-size: 13px; }
.guide-cta { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; margin: 40px 0 8px; text-align: center; }
.guide-cta p { margin: 0 0 14px; }
.guide-cta .btn { font-size: 16px; padding: 12px 26px; }
.guide-page table.keep-first td:first-child, .guide-page table.keep-first th:first-child { white-space: nowrap; }

/* スマホ幅: 画面写真をさらに小さく、ヒーローのボタン 2 つは横に並べる（縦に長くなりすぎないように） */
@media (max-width: 820px) {
  .feature-img.phone { max-width: 200px; }
  .hero .phone { max-width: 240px; }
  .hero-cta .btn { flex: 1 1 40%; text-align: center; padding-left: 12px; padding-right: 12px; }
  .section-lead { margin-bottom: 24px; }
}
