/* ============================================================
   制度箱 LP スタイル
   トンマナの正: assets/mock/career_path_kit_mock.html
   スマホ最優先（375px基準）・1カラム縦長
   ============================================================ */
:root {
  --pine: #1E5648;        /* 園庭の常緑：信頼の主色 */
  --pine-dark: #143C32;
  --tampopo: #F5B82E;     /* 園児帽子の黄色：行動の色 */
  --ink: #26292B;
  --paper: #FFFFFF;
  --bg: #F1F6F3;          /* 淡い若葉のトーン */
  --line: #D8E4DD;
  --muted: #5C6A62;      /* 小さい文字でもWCAG AA(4.5:1)を満たす濃度 */
  --stamp: #C0392B;       /* 確認印の朱 */
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Zen Maru Gothic', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); }

/* ---------- 共通レイアウト ---------- */
main { max-width: 720px; margin: 0 auto; }
section { padding: 44px 20px; }
.sec-head {
  font-size: 21px; font-weight: 900; color: var(--pine-dark);
  line-height: 1.5; margin-bottom: 18px; letter-spacing: .02em;
}
.yellow-line {
  background: linear-gradient(transparent 68%, var(--tampopo) 68%, var(--tampopo) 92%, transparent 92%);
}
.note-small { font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.u-lead-strong { margin-top: 14px; font-weight: 700; }
.u-mt10 { margin-top: 10px; }
.doc-head { margin: 20px 0 10px; font-size: 15px; color: var(--pine-dark); }
.detail-cta-note { font-size: 13.5px; margin: 16px 0; }
.copyright { margin-top: 10px; opacity: .7; }
.enact-date { margin-top: 20px; color: var(--muted); }

/* ---------- ヘッダー ---------- */
header.site {
  background: var(--pine); color: #fff;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 17px;
  letter-spacing: .06em; display: inline-flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none;
}
/* 角印風ロゴ */
.logo .seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 2px solid #fff; border-radius: 5px;
  font-size: 10.5px; line-height: 1.15; text-align: center; font-weight: 700;
  letter-spacing: 0;
}
.logo small { font-weight: 500; opacity: .8; font-size: 10.5px; }
@media (max-width: 480px) { .logo small { display: none; } }

/* ---------- CTAボタン ---------- */
.btn {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
  display: block; width: 100%; text-align: center; text-decoration: none;
  border: none; border-radius: 12px; cursor: pointer;
  padding: 16px 20px; font-size: 15.5px; line-height: 1.45;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--tampopo); outline-offset: 2px; }
.btn-primary {
  background: var(--tampopo); color: var(--pine-dark);
  box-shadow: 0 4px 14px rgba(245, 184, 46, .45);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: var(--paper); color: var(--pine-dark);
  border: 2px solid var(--pine);
}
.btn-secondary:hover { background: #F4FAF7; }
.btn small { display: block; font-weight: 500; font-size: 11.5px; opacity: .85; }
.cta-pair { display: grid; gap: 12px; max-width: 460px; margin: 22px auto 0; }

/* ---------- SEC-1 ファーストビュー ---------- */
.hero { background: var(--paper); text-align: center; padding: 40px 20px 46px; }
.hero .micro {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--pine);
  border: 1.5px solid var(--pine); border-radius: 99px; padding: 5px 16px; margin-bottom: 18px;
}
.hero h1 {
  font-size: 25px; font-weight: 900; color: var(--pine-dark);
  line-height: 1.55; letter-spacing: .02em;
}
.hero .sub { margin-top: 14px; font-size: 14px; color: var(--ink); text-align: left; }
.hero .rescue {
  margin-top: 18px; text-align: left; font-size: 13.5px;
  background: #FFF9EC; border-left: 4px solid var(--tampopo);
  border-radius: 0 8px 8px 0; padding: 14px 16px;
}
/* 第二の釘（研修逆算の告知）: 朱アクセントで rescue と役割を分ける */
.hero .second-nail {
  margin-top: 18px; text-align: left; font-size: 13.5px;
  background: #FFF3EE; border-left: 4px solid var(--stamp);
  border-radius: 0 8px 8px 0; padding: 14px 16px;
}
.hero .second-nail .nail-head { font-weight: 700; color: #A93226; margin-bottom: 4px; }
.explain .applied-note {
  background: var(--paper); border: 1.5px solid var(--pine); border-radius: 10px;
  padding: 12px 16px; font-size: 13.5px; font-weight: 500; margin-bottom: 16px;
}
@media (min-width: 560px) { .hero .sub, .hero .rescue { text-align: center; } }

/* ---------- SEC-2 共感ブロック ---------- */
.empathy ul { list-style: none; display: grid; gap: 10px; }
.empathy li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px 13px 42px; font-size: 14px; position: relative;
}
.empathy li::before {
  content: "□"; position: absolute; left: 16px; top: 12px;
  color: var(--pine); font-weight: 700;
}
.empathy .bridge { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--pine-dark); }

/* ---------- SEC-3 制度解説 ---------- */
.explain .req-list { counter-reset: req; list-style: none; display: grid; gap: 12px; margin: 16px 0; }
.explain .req-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px 14px 52px; position: relative; font-size: 14px;
}
.explain .req-list li::before {
  counter-increment: req; content: counter(req);
  position: absolute; left: 14px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pine); color: #fff; font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.explain .punch {
  margin-top: 16px; padding: 14px 16px; background: var(--paper);
  border-left: 4px solid var(--stamp); border-radius: 0 8px 8px 0; font-size: 14px;
}

/* ---------- SEC-4 商品（文書10点） ---------- */
.product { background: var(--paper); }
.doc-grid { list-style: none; display: grid; gap: 8px; counter-reset: doc; }
.doc-grid li {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px 11px 46px;
  font-size: 13.5px; font-weight: 500; position: relative; background: #FCFEFD;
}
.doc-grid li::before {
  counter-increment: doc; content: counter(doc, decimal-leading-zero);
  position: absolute; left: 14px; top: 11px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 12px; color: var(--pine);
}
.samples { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 560px) { .samples { grid-template-columns: repeat(3, 1fr); } }
.samples figure {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 18px rgba(30, 86, 72, .06);
}
.samples figcaption { font-size: 11.5px; color: var(--muted); text-align: center; padding: 8px 6px; }
/* 見本ミニチュア（モックの paper-view を縮小再現） */
.mini-paper {
  position: relative; background: #fff; padding: 14px 12px 12px; min-height: 150px;
}
.mini-paper h4 {
  font-family: 'Zen Maru Gothic', sans-serif; font-size: 11.5px; font-weight: 900;
  color: var(--ink); border-bottom: 2px solid var(--pine); padding-bottom: 4px; margin-bottom: 8px;
  padding-right: 44px;
}
.mini-paper table { border-collapse: collapse; width: 100%; font-size: 9px; line-height: 1.5; }
.mini-paper th { background: #EAF2EE; border: 1px solid var(--line); padding: 3px 5px; text-align: left; font-weight: 700; white-space: nowrap; }
.mini-paper td { border: 1px solid var(--line); padding: 3px 5px; vertical-align: top; }
.mini-alert {
  font-size: 8.5px; background: #FFF3EE; border-left: 3px solid var(--stamp);
  padding: 4px 7px; border-radius: 0 6px 6px 0; margin-top: 6px;
}
.mini-stamp {
  position: absolute; top: 6px; right: 8px; width: 42px; height: 42px;
  border: 2px solid var(--stamp); border-radius: 50%; color: #A93226;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 7.5px;
  line-height: 1.3; text-align: center; transform: rotate(-8deg); opacity: .85;
}

/* ---------- SEC-5 差別化3点 ---------- */
.diff .point {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; margin-bottom: 14px;
}
.diff .point h3 { font-size: 16px; font-weight: 900; color: var(--pine-dark); margin-bottom: 8px; }
.diff .point p { font-size: 14px; }

/* ---------- SEC-6 比較表 ---------- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
table.compare { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 12.5px; background: var(--paper); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 9px 10px; text-align: center; }
table.compare thead th { background: #EAF2EE; font-weight: 700; }
table.compare .col-kit { background: #FFF9EC; font-weight: 700; }
table.compare tbody th { background: #F6FAF7; font-weight: 700; text-align: left; white-space: nowrap; }
.compare-note { font-size: 13px; margin-top: 16px; }
.scroll-hint { font-size: 11px; color: var(--muted); text-align: right; margin-bottom: 6px; }
@media (min-width: 600px) { .scroll-hint { display: none; } }

/* ---------- SEC-7 料金 ---------- */
.pricing .plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px;
}
.pricing .plan.main { border: 2px solid var(--pine); position: relative; }
.pricing .plan.main::after {
  content: "標準"; position: absolute; top: -11px; left: 16px;
  background: var(--pine); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 2px 12px;
}
.pricing .plan h3 { font-size: 15px; font-weight: 900; color: var(--pine-dark); }
.pricing .price { font-family: 'Zen Maru Gothic', sans-serif; font-size: 24px; font-weight: 900; color: var(--pine-dark); margin: 4px 0; }
.pricing .price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pricing .plan p { font-size: 13.5px; }

/* ---------- SEC-8 提供の流れ ---------- */
.flow ol { list-style: none; counter-reset: flow; display: grid; gap: 0; }
.flow li {
  counter-increment: flow; position: relative;
  padding: 0 0 22px 52px; font-size: 14px;
}
.flow li::before {
  content: counter(flow);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine); color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px;
  width: 2px; background: var(--line);
}
.honest {
  margin-top: 8px; padding: 14px 16px; background: #FFF9EC;
  border-left: 4px solid var(--tampopo); border-radius: 0 8px 8px 0; font-size: 13px;
}

/* ---------- SEC-9 信頼 ---------- */
.trust { background: var(--paper); }
.trust .maker {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; font-size: 14px; position: relative; background: #FCFEFD;
}
/* 朱の確認印（シグネチャ要素） */
.stamp {
  position: absolute; top: 14px; right: 14px; width: 74px; height: 74px;
  border: 3px solid var(--stamp); border-radius: 50%; color: #A93226; /* 文字はコントラスト確保のため一段濃い朱 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 9.5px;
  line-height: 1.35; text-align: center; transform: rotate(-8deg); opacity: .85;
  letter-spacing: .05em; pointer-events: none;
}
.stamp::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--stamp); border-radius: 50%; }
.stamp .big { font-size: 11px; }
.trust .maker p:first-of-type { padding-right: 78px; }

/* ---------- SEC-10 FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 14px; padding: 14px 16px;
  list-style: none; position: relative; padding-right: 40px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 16px; top: 12px;
  color: var(--pine); font-weight: 700;
}
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 16px 14px; font-size: 13.5px; color: var(--ink); }

/* ---------- SEC-11 クロージング ---------- */
.closing { background: var(--pine); color: #fff; text-align: center; padding: 52px 20px; }
.closing h2 { font-size: 22px; font-weight: 900; line-height: 1.6; }
.closing p { margin-top: 12px; font-size: 14px; opacity: .92; }
.closing .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.closing .btn-secondary:hover { background: rgba(255,255,255,.08); }

/* ---------- 診断ウィザード ---------- */
.diagnosis-sec { background: var(--bg); }
.diag-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; box-shadow: 0 4px 18px rgba(30, 86, 72, .06);
}
.diag-card h2 { font-size: 18px; font-weight: 900; color: var(--pine-dark); margin-bottom: 10px; }
.diag-card .lead { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.progress-track { height: 10px; background: #E1EBE5; border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pine), #3E8A75); border-radius: 99px; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }
#diag-progress-label { font-size: 12px; font-weight: 700; color: var(--pine); }
#diag-question { font-size: 16px; font-weight: 700; line-height: 1.7; min-height: 78px; margin-bottom: 18px; }

.answer-btns { display: grid; gap: 10px; }
.answer-btns button {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--line); border-radius: 99px; background: #fff;
  padding: 13px; cursor: pointer; transition: all .15s;
}
.answer-btns button:hover { border-color: var(--pine); background: #F4FAF7; }
.answer-btns button:focus-visible { outline: 2px solid var(--tampopo); outline-offset: 2px; }
.answer-btns .unknown { color: var(--muted); }
#diag-back {
  margin-top: 14px; background: none; border: none; color: var(--muted);
  text-decoration: underline; font-size: 13px; cursor: pointer; padding: 6px 4px;
}

.result-grade {
  display: inline-block; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
  font-size: 15px; border-radius: 99px; padding: 6px 20px; color: #fff; margin-bottom: 10px;
}
.grade-a { background: var(--pine); }
.grade-b { background: #B8860B; }
.grade-c { background: var(--stamp); }
#result-headline { font-size: 18px; font-weight: 900; color: var(--pine-dark); margin-bottom: 8px; }
#result-count { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
#result-body { font-size: 14px; margin-bottom: 20px; }

.email-gate {
  border-top: 1px dashed var(--line); padding-top: 18px; margin-top: 6px;
}
.email-gate p { font-size: 13px; margin-bottom: 12px; }

/* ---------- フォーム共通 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 6px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 12px; font-size: 16px; /* 16px以上でiOSのズームを防ぐ */
  font-family: inherit; border: 1.5px solid var(--line); border-radius: 8px; background: #FCFEFD;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--tampopo); outline-offset: 1px; border-color: var(--tampopo);
}
textarea { min-height: 88px; resize: vertical; }
.form-error {
  background: #FFF3EE; border-left: 4px solid var(--stamp); border-radius: 0 8px 8px 0;
  padding: 12px 14px; font-size: 13px; margin-bottom: 14px;
}
.privacy-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
/* honeypot: 視覚・支援技術の両方から隠す */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done-box {
  background: #F4FAF7; border: 1.5px solid var(--pine); border-radius: var(--radius);
  padding: 22px 20px; font-size: 14px;
}
.done-box h3 { color: var(--pine-dark); font-size: 16px; margin-bottom: 8px; }

#detail-list { list-style: none; display: grid; gap: 12px; margin: 16px 0; }
#detail-list li {
  border: 1px solid var(--line); border-left: 4px solid var(--tampopo);
  border-radius: 0 10px 10px 0; padding: 13px 16px; font-size: 13.5px; background: #FCFEFD;
}
#detail-list li b { color: var(--pine-dark); }
#detail-list li p { margin-top: 4px; }

/* ---------- フッター ---------- */
footer.site {
  background: var(--pine-dark); color: rgba(255,255,255,.85);
  padding: 30px 20px 40px; font-size: 12px; text-align: center;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 14px; }
footer.site a { color: #fff; }
footer.site .gov-note { font-weight: 700; margin-top: 10px; }

/* ---------- プライバシーポリシーページ ---------- */
.legal { background: var(--paper); border-radius: var(--radius); padding: 28px 22px; margin: 24px 20px; }
.legal h1 { font-size: 20px; color: var(--pine-dark); margin-bottom: 16px; }
.legal h2 { font-size: 15px; color: var(--pine-dark); margin: 22px 0 8px; }
.legal p, .legal li { font-size: 13.5px; }
.legal ul { padding-left: 20px; }

[hidden] { display: none !important; }
