/* 公開サイトの共通の部品。ライフステージごとに変わるのは --st-accent（見出し・ボタン・強調）と --st-soft（薄い背景）だけ
   書体・骨組み・お金の色（緑＝受け取る・赤＝払う）・正確さの表示はどのライフステージでも同じ */
:root { --st-accent: #0b0b0b; --st-soft: #f1f1f1; --p-text: #0b0b0b; --p-muted: #555; --p-link: #0a58ca; }
body { margin: 0; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; color: var(--p-text); background: #fff; line-height: 1.7; }
a { color: var(--p-link); }
/* 上の細い帯：全体の名前（小さく） */
.umb { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px; background: #fff; border-bottom: 1px solid #e3e3e3; font-size: 12.5px; }
.umb a { color: #333; text-decoration: none; font-weight: 700; }
.umb .umb-r { font-weight: 400; color: #555; }
body.top .umb { padding: 12px 16px; background: #0b0b0b; border: 0; }
body.top .umb a { color: #fff; font-size: 17px; font-weight: 900; }
/* ライフステージの帯：ライフステージの名前（大きく・ライフステージの色） */
.stbar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--st-accent); color: #fff; }
.st-logo { color: #fff !important; text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.st-logo span { font-size: 14px; font-weight: 700; opacity: .85; margin-left: 2px; }
.st-cur { font-size: 13px; opacity: .85; }
/* 道具のページでは、もとの .topbar を出さない（帯で代わりにする） */
html[data-site="public"] .topbar { display: none; }
.pw { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
/* メインページの見出し */
.st-hero { padding: 28px 0 24px; border-bottom: 3px solid var(--st-accent); }
.st-k { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--st-accent); }
.st-hero h1, .tp-hero h1 { margin: 0 0 12px; font-size: clamp(27px, 6.4vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: -.015em; }
.st-hero h1 span, .tp-hero h1 span { display: inline-block; }
.st-sub { margin: 0 0 18px; font-size: 15.5px; color: #333; max-width: 40em; }
.st-cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; background: var(--st-accent); color: #fff !important; font-weight: 900; font-size: 17px; text-decoration: none; box-shadow: 4px 4px 0 #0b0b0b33; }
.st-cta::after { content: "→"; margin-left: 10px; }
.st-cta:hover { filter: brightness(1.12); }
.st-free { margin: 10px 0 0; font-size: 13px; color: var(--p-muted); }
.st-soon { display: inline-block; margin: 6px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--st-soft); color: var(--st-accent); font-weight: 700; font-size: 14px; }
.st-h { margin: 32px 0 12px; font-size: 20px; font-weight: 900; padding-left: 10px; border-left: 6px solid var(--st-accent); line-height: 1.3; }
/* 道具 */
.st-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .st-tools { grid-template-columns: 1fr 1fr; } }
.st-tools a { display: block; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 2px solid var(--st-accent); border-radius: 14px; text-decoration: none; color: var(--p-text); background: #fff; }
.st-tools a:hover { background: var(--st-soft); }
.st-tools b { display: block; font-size: 17px; color: var(--st-accent); }
.st-tools b::after { content: " →"; }
.st-tools span { font-size: 14px; color: #333; }
/* 期限（赤＝期限は、どのライフステージでも同じ） */
.st-dl { list-style: none; padding: 0; margin: 0; border: 1.5px solid #0b0b0b; border-radius: 14px; overflow: hidden; }
.st-dl li { display: grid; grid-template-columns: 13em 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid #e3e3e3; font-size: 14.5px; }
.st-dl li:first-child { border-top: 0; }
.d-w { font-weight: 900; color: #d92d20; }
@media (max-width: 560px) { .st-dl li { grid-template-columns: 1fr; gap: 0; } }
.st-note { font-size: 13.5px; color: var(--p-muted); margin: 8px 0 0; }
/* 悩み・解説 */
.st-wr, .st-gd, .st-plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.st-wr a, .st-gd a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--st-soft); color: var(--p-text); text-decoration: none; font-weight: 700; font-size: 15px; }
.st-wr a::before { content: "Q. "; color: var(--st-accent); font-weight: 900; }
.st-wr a:hover, .st-gd a:hover { text-decoration: underline; }
.st-plan li { padding: 10px 14px; border-radius: 12px; background: var(--st-soft); font-weight: 700; }
.st-back { margin: 28px 0 0; font-weight: 700; }
/* 解説の本文 */
.guide { padding-top: 20px; max-width: 760px; }
.guide h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 900; line-height: 1.4; }
.guide h2 { font-size: 20px; font-weight: 900; padding-left: 10px; border-left: 6px solid var(--st-accent); margin-top: 32px; }
.guide blockquote { margin: 0; padding: 8px 12px; background: var(--st-soft); border-radius: 10px; font-size: 13.5px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.guide th, .guide td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; vertical-align: top; }
.guide th { background: var(--st-soft); }
/* トップ（ライフステージを選ぶ）：それぞれのカードがそのライフステージの色 */
.tp-hero { padding: 28px 0 8px; }
.tp-hero p { margin: 0; color: #333; }
.tp-st { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .tp-st { grid-template-columns: 1fr 1fr; } }
.tp-st a { display: block; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--p-text); background: var(--st-soft); border-left: 8px solid var(--st-accent); }
.tp-st li.on a { box-shadow: 5px 5px 0 #0b0b0b; border: 2px solid #0b0b0b; border-left: 8px solid var(--st-accent); }
.tp-st .n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 19px; font-weight: 900; color: var(--st-accent); }
.tp-st li.on .n::after { content: "→"; }
.tp-st .l { display: block; margin-top: 4px; font-size: 14px; color: #333; }
.soon { font-size: 12px; font-weight: 700; border: 1.5px solid currentColor; border-radius: 999px; padding: 1px 8px; }
/* 共通のフッター */
.pfoot { max-width: 960px; margin: 24px auto 0; padding: 16px; border-top: 2px solid #0b0b0b; font-size: 12.5px; color: var(--p-muted); }
.pfoot p { margin: 0 0 6px; }
.pf-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.pf-links a { color: #333; }
.pf-c { margin: 0; font-size: 12.5px; color: #555; }
/* 運営者情報などのページ */
.info { padding-bottom: 24px; }
.info h2 { --st-accent: #0b0b0b; }
.info table { display: table; }
.info td:first-child { white-space: nowrap; font-weight: 700; background: #f6f6f6; }
/* 印刷：押せない部品は出さない */
@media print { .umb-r, .h-btn, .st-cta, .pf-links { display: none !important; } .stbar, .st-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
