:root {
  --navy: #3a2a20; --navy2: #5b4030; --acc: #c2540a; --acc2: #475569; --gold: #ffd9a8;
  --bg: #f7f4f1; --card: #ffffff; --fg: #15202b; --mut: #5b6675; --line: #e3e8ef; --hi: #fcefe3;
  --w: 880px; --r: 16px; --sh: 0 1px 2px rgba(58,42,32,.06), 0 8px 24px rgba(58,42,32,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.7 "Segoe UI", "Nirmala UI", "Myanmar Text", "Noto Sans Devanagari", "Noto Sans Myanmar", Roboto, system-ui, -apple-system, "Hiragino Sans", "Noto Sans", sans-serif; }
a { color: var(--acc); }
/* 上の帯・見出し・本文・下の帯は全部同じ幅（--w）＝左右の端がそろう */
.wrap, .bar, .menu { width: 100%; max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* 上の帯 */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; font-size: 17px; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), #e0731f); color: var(--navy); font-weight: 800; }
.menu { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.menu a:first-child { margin-left: -12px; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; color: #eadfd5; text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.menu a[aria-current] { background: #fff; color: var(--navy); font-weight: 600; }

/* 見出しの帯 */
.hero { background: radial-gradient(1200px 400px at 80% -20%, #8a5a3c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 36px 0 72px; }
.hero h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.25; margin: 8px 0 12px; letter-spacing: -.3px; }
.hero .lead { color: #f0e2d4; font-size: 17px; margin: 0; max-width: 620px; }
.hero .lead a { color: #fff; }
.badge { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #ffd9a8; font-size: 13px; font-weight: 600; }
main.wrap { margin-top: -48px; position: relative; }

/* カード */
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
fieldset { border: 0; margin: 0 0 8px; padding: 0; }
legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 6px; color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 14px; }
label { display: block; margin: 8px 0; font-size: 14px; color: var(--mut); }
input, select { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--fg); background: #f8fafc; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
input:focus, select:focus { outline: none; border-color: var(--acc); background: #fff; box-shadow: 0 0 0 4px rgba(194,84,10,.12); }
button, .btn { display: inline-block; width: 100%; margin-top: 12px; padding: 14px 18px; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--acc), #e0731f); color: #fff; cursor: pointer; text-align: center; text-decoration: none; box-shadow: 0 6px 16px rgba(194,84,10,.28); transition: transform .1s; }
button:active { transform: translateY(1px); }
button.ghost { background: #fff; color: var(--acc); border: 1.5px solid var(--line); box-shadow: none; font-weight: 600; font-size: 15px; padding: 10px 14px; }

/* 結果 */
.result:empty { display: none; }
.result { margin-top: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; animation: up .25s ease-out; }
@keyframes up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpis > div { background: var(--hi); border-radius: 12px; padding: 14px 16px; }
.kpis > div.main { background: linear-gradient(135deg, var(--acc2), #64748b); color: #fff; }
.kpis small { display: block; font-size: 13px; opacity: .85; }
.kpis strong { display: block; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result table { width: 100%; border-collapse: collapse; }
.result th, .result td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.result td { text-align: right; font-variant-numeric: tabular-nums; }
.result tr.hi th, .result tr.hi td { font-weight: 700; color: var(--acc2); }
.result tr.flag th, .result tr.flag td { color: #c2410c; font-weight: 700; }
.warn { color: #c2410c; }
.small, .src { font-size: 13px; color: var(--mut); }

/* チェックリスト */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps li.after::before { background: var(--acc2); }
.steps time { display: block; font-size: 13px; color: var(--acc); font-weight: 700; }
.steps b { display: block; }
.steps span { display: block; color: var(--mut); font-size: 14px; }
.trip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 40px; gap: 10px; align-items: end; }
.trip .x { width: 40px; height: 46px; margin: 0 0 8px; padding: 0; background: #f1f4f8; color: var(--mut); box-shadow: none; font-size: 20px; }

/* 共有 */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; }
.share .sharebtn { width: auto; margin: 0; padding: 9px 16px; font-size: 14px; background: var(--navy); box-shadow: none; }
.share a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--fg); }

/* 本文 */
.prose { margin-top: 28px; }
.prose h2 { font-size: 21px; margin: 28px 0 8px; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
article.prose { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.checks { list-style: none; padding-left: 0 !important; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--acc2); font-weight: 800; }
h2.sec { font-size: 20px; margin: 40px 0 12px; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; text-decoration: none; color: var(--fg); border: 1px solid transparent; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: #e8cdb5; }
.card b { color: var(--navy); font-size: 16px; }
.card span { color: var(--mut); font-size: 13px; line-height: 1.55; } /* 説明は3行で切らず全部出す（本人 2026-11-04「見切れてる」） */
.card em { font-style: normal; color: var(--acc); font-weight: 600; font-size: 14px; margin-top: auto; }
.guides { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.guides li { border-bottom: 1px solid var(--line); }
.guides li:last-child { border-bottom: 0; }
.guides a { display: block; padding: 14px 18px; text-decoration: none; color: var(--fg); font-weight: 600; }
.guides a::after { content: " →"; color: var(--acc); }
.cta { margin: 20px 0 0; }

footer { margin-top: 56px; background: var(--navy); color: #d9c8ba; padding: 28px 0 36px; font-size: 14px; }
footer .brand { margin: 0 0 6px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: #fff; text-decoration: none; }
footer .small { color: #a8917e; }

.brand { white-space: nowrap; }
@media print { .top, .hero, footer, .share, .cards, .guides, h2.sec, form { display: none; } main.wrap { margin: 0; } }

/* セクションは全部「見出し＋白い箱」の1つの型。間隔もここだけで決める */
.panel + .result, form.panel + .result { margin-top: 16px; }
section.sec { margin-top: 36px; }
/* main は帯に48px食い込ませる（白い箱を帯に重ねる見せ方）。先頭が見出しだと文字が帯に重なって見切れるので、見出しで始まる時だけ帯の下まで下げる（本人 2026-11-04 15:29「ここ見切れてるやん」） */
main.wrap > section.sec:first-child, main.wrap > h2:first-child { margin-top: 72px; }
section.sec > h2 { font-size: 20px; margin: 0 0 12px; color: var(--navy); }
section.sec > .panel.prose, article.panel { margin-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.cards, .guides { margin-top: 0; }
.hero { padding-bottom: 76px; }

/* 本文の表（早見表）。表だけ箱の中で横に動かせる＝ページ全体は 375px でもはみ出さない */
.prose h3 { font-size: 16px; margin: 22px 0 6px; color: var(--navy); }
@media (max-width: 420px) { .tbl table { font-size: 14px; } .tbl th, .tbl td { padding: 8px 4px; } }

.kpis strong.t { font-size: 20px; }

/* ここから失業保険サイトで足した物 */
.checks2 { margin: 4px 0 0; }
label.chk { display: flex; align-items: flex-start; gap: 10px; color: var(--fg); font-size: 15px; line-height: 1.5; margin: 10px 0; cursor: pointer; }
label.chk[hidden] { display: none; }
label.chk input { display: inline-block; width: 20px; height: 20px; min-width: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--acc); }
.formh { font-size: 17px; margin: 0 0 4px; color: var(--navy); }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--hi); color: var(--navy); font-weight: 700; }
.tbl tbody th { font-weight: 600; }
.tbl td, .tbl tbody th { white-space: nowrap; }
.tbl.wrap td, .tbl.wrap tbody th { white-space: normal; }
@media (max-width: 420px) { .tbl:not(.wrap) table { font-size: 13px; } .tbl:not(.wrap) th, .tbl:not(.wrap) td { padding: 7px 3px; } }
.result .kpis strong { font-size: 24px; }
.result .cta { margin-top: 16px; }
.btn.ghostbtn { background: #fff; color: var(--acc); border: 1.5px solid var(--line); box-shadow: none; }
.prose ol { padding-left: 1.4em; }
@media (max-width: 480px) { .brand { font-size: 15px; } }

/* 消費税サイトで足した物 */
.cmp tr.hi th, .cmp tr.hi td { color: var(--acc); font-weight: 700; }
.cmp tr.off th, .cmp tr.off td { color: var(--mut); }
.cmp tr.why td { font-size: 13px; color: var(--mut); padding-top: 0; white-space: normal; }
.cmp td { text-align: right; }
.cmp th:not(:first-child) { text-align: right; }
.cmp em { font-style: normal; font-size: 12px; background: var(--acc); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.cmp tbody th { white-space: normal; }
.cmp td[colspan="3"] { text-align: left; }
.cmp td[colspan="4"] { text-align: left; }
