/* JIROSO ─ 人事・労務・総務の実務メディア */
:root {
  --ink: #1b2433;
  --ink-2: #4a5568;
  --muted: #718096;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --navy: #14213d;
  --navy-2: #22345c;
  --ji: #2563eb;      /* 人事 */
  --ji-soft: #e8efff;
  --ro: #0f9d76;      /* 労務 */
  --ro-soft: #e4f6f0;
  --so: #e07a1f;      /* 総務 */
  --so-soft: #fdf0e3;
  --law: #c2334d;
  --law-soft: #fbe9ec;
  --ai: #7c4ddb;
  --ai-soft: #f1ebfd;
  --accent: #f5b301;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .06);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-logo: "Inter", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; overflow-wrap: anywhere; }
a { color: var(--ji); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.small { font-size: .82rem; color: var(--muted); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px; }
.nowrap { white-space: nowrap; }
.eyebrow { font-family: var(--font-logo); font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 0 0 .4em; }

/* ---------- buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6em 1.2em; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.4; font-family: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-lg { padding: .85em 1.8em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .7em; border-radius: 4px; color: #fff; background: var(--navy); white-space: nowrap; line-height: 1.7; vertical-align: middle; }
.badge-jinji { background: var(--ji); }
.badge-roumu { background: var(--ro); }
.badge-soumu { background: var(--so); }
.badge-ai { background: var(--ai); }
.badge-services { background: #0e7490; }
.badge-news { background: #475569; }
.badge-law { background: var(--law); }
a.badge:hover { text-decoration: none; filter: brightness(1.1); }
.chip { display: inline-block; font-size: .74rem; padding: .1em .6em; border-radius: 4px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip-accent { background: var(--accent); border-color: var(--accent); color: var(--navy); font-weight: 700; }
.due { font-style: normal; font-size: .78rem; color: var(--law); font-weight: 700; white-space: nowrap; margin-left: .3em; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; flex-direction: column; color: var(--navy); text-decoration: none !important; line-height: 1.1; flex-shrink: 0; }
.logo-mark { font-family: var(--font-logo); font-weight: 900; font-size: 1.6rem; letter-spacing: .02em; }
.logo-mark b { font-weight: 900; }
.logo-mark i { font-style: normal; color: #c3cad6; font-weight: 400; margin: 0 .05em; }
.l-ji { color: var(--ji); } .l-ro { color: var(--ro); } .l-so { color: var(--so); }
.logo-sub { font-size: .68rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.header-search { flex: 1; display: flex; max-width: 420px; margin-left: auto; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.header-search input { flex: 1; border: 0; background: transparent; padding: .55em 1em; font: inherit; font-size: .9rem; min-width: 0; }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: transparent; padding: 0 14px; color: var(--ink-2); cursor: pointer; }
.nav-toggle { display: none; }
.gnav { border-top: 1px solid var(--line); }
.gnav ul { display: flex; list-style: none; margin: 0 auto; padding: 0 16px; gap: 4px; }
.gnav a { display: block; padding: 10px 16px; font-weight: 700; font-size: .95rem; color: var(--ink); border-bottom: 3px solid transparent; text-decoration: none; }
.gnav a:hover, .gnav a.is-current { border-color: var(--navy); }
.gnav .nav-jinji:hover, .gnav .nav-jinji.is-current { border-color: var(--ji); color: var(--ji); }
.gnav .nav-roumu:hover, .gnav .nav-roumu.is-current { border-color: var(--ro); color: var(--ro); }
.gnav .nav-soumu:hover, .gnav .nav-soumu.is-current { border-color: var(--so); color: var(--so); }
.gnav .nav-law:hover, .gnav .nav-law.is-current { border-color: var(--law); color: var(--law); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 14px 0 0; font-size: .8rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1d2f57 60%, #24407a 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245,179,1,.18), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: #a9b8d6; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: .01em; }
.hero .lead { color: #d5deef; max-width: 640px; }
.hero-search { display: flex; gap: 8px; margin: 24px 0 12px; max-width: 640px; }
.hero-search input { flex: 1; padding: .85em 1.2em; border-radius: 999px; border: 0; font: inherit; min-width: 0; }
.hero .hero-search .btn-primary { background: var(--accent); color: var(--navy); }
.section .hero-search input, .narrow .hero-search input { border: 1.5px solid var(--line); }
.hero-keywords { font-size: .82rem; color: #a9b8d6; }
.hero-keywords a { color: #fff; margin-right: .8em; border-bottom: 1px dotted rgba(255,255,255,.5); }
.hero-keywords a:hover { text-decoration: none; border-bottom-style: solid; }
.hero-month { display: flex; flex-direction: column; align-items: center; background: #fff; color: var(--navy); border-radius: 20px; padding: 26px 20px; text-decoration: none !important; box-shadow: 0 10px 40px rgba(0,0,0,.25); transition: transform .15s; }
.hero-month:hover { transform: translateY(-3px); }
.hero-month-label { font-weight: 700; font-size: .9rem; background: var(--accent); padding: .1em .9em; border-radius: 999px; }
.hero-month-num { font-family: var(--font-logo); font-size: 5.5rem; font-weight: 900; line-height: 1.1; }
.hero-month-num small { font-size: 1.6rem; font-family: var(--font); }
.hero-month-cta { font-size: .88rem; font-weight: 700; color: var(--ji); }

/* ---------- page head ---------- */
.page-head { background: var(--navy); color: #fff; padding: 40px 0 36px; margin-top: 14px; }
.page-head .eyebrow { color: #a9b8d6; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; }
.page-head .lead { color: #d5deef; margin: 0; max-width: 760px; }
.page-head-jinji { background: linear-gradient(120deg, #173a8c, var(--ji)); }
.page-head-roumu { background: linear-gradient(120deg, #0a5c46, var(--ro)); }
.page-head-soumu { background: linear-gradient(120deg, #8f4710, var(--so)); }
.page-head-ai { background: linear-gradient(120deg, #43248a, var(--ai)); }
.page-head-law { background: linear-gradient(120deg, #6e1527, var(--law)); }
.page-head-cal { background: linear-gradient(120deg, var(--navy), #2b4a86); }
.page-head-tpl { background: linear-gradient(120deg, #3b3209, #8a6d05); }
.page-head-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.breadcrumbs + main .page-head { margin-top: 14px; }

/* ---------- layout ---------- */
.section { padding: 44px 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2, .h2 { font-size: 1.4rem; font-weight: 900; margin: 0; padding-left: 14px; border-left: 5px solid var(--navy); }
.h2 { margin: 32px 0 16px; }
.section-head a, .panel-head a { font-size: .88rem; font-weight: 700; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -28px; position: relative; z-index: 2; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel h2 { font-size: 1.15rem; font-weight: 900; margin: 0 0 .5em; }
.panel h2 .num { color: var(--ji); }
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 24px; padding-bottom: 56px; align-items: start; }
.sidebar { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 18px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.side-box h2 { font-size: 1rem; font-weight: 900; margin-bottom: .7em; }
.side-box .tpl-card { margin-bottom: 8px; }
.side-month { background: var(--bg-soft); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-top: 1px solid var(--line); }
.side-links li:first-child { border-top: 0; }
.side-links a { display: block; padding: .5em 0; font-size: .92rem; color: var(--ink); font-weight: 500; }
.side-toc ol { padding-left: 1.2em; margin: 0; font-size: .88rem; }
.side-toc li { margin: .3em 0; }
.side-toc a { color: var(--ink-2); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag-cloud a { font-size: .82rem; background: var(--bg-soft); border-radius: 4px; padding: .1em .6em; color: var(--ink-2); }

/* ---------- checklist (home) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .55em 0 .55em 1.9em; border-top: 1px dashed var(--line); position: relative; font-size: .95rem; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .9em; width: 1.1em; height: 1.1em; border: 2px solid #b8c2d1; border-radius: 4px; }
.checklist .badge { margin-right: .5em; }

/* ---------- law list ---------- */
.law-list { list-style: none; padding: 0; margin: 0; }
.law-row a { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.law-row:first-child a { border-top: 0; }
.law-row a:hover .law-title { color: var(--law); }
.law-date { display: flex; flex-direction: column; align-items: center; background: var(--law-soft); color: var(--law); border-radius: 8px; padding: 4px 0; line-height: 1.2; }
.law-date b { font-family: var(--font-logo); font-size: 1.05rem; }
.law-date small { font-size: .68rem; }
.law-body { display: flex; flex-direction: column; min-width: 0; }
.law-title { font-weight: 700; font-size: .95rem; line-height: 1.5; }
.law-target { font-size: .78rem; color: var(--muted); }
.law-days { font-size: .78rem; font-weight: 700; color: var(--ink-2); background: var(--bg-soft); padding: .2em .7em; border-radius: 999px; white-space: nowrap; font-style: normal; }
.law-days.is-soon { background: var(--law); color: #fff; }
.law-days.is-past { color: var(--muted); }
.law-list-lg .law-row a { padding: 16px 0; }
.law-list-lg .law-title { font-size: 1.05rem; }
.law-table td { vertical-align: top; }
.law-table ul.mini { margin: 0; padding-left: 1.1em; font-size: .86rem; }
.law-facts { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border: 2px solid var(--law); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.law-facts-date { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; border-right: 1px solid var(--line); }
.law-facts-date span { font-size: .8rem; color: var(--muted); }
.law-facts-date b { font-size: 1.35rem; color: var(--law); }
.law-facts dl, .article-facts { margin: 0; display: grid; gap: 6px; }
.law-facts dl div, .article-facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; font-size: .9rem; }
.law-facts dt, .article-facts dt { color: var(--muted); font-weight: 700; }
.law-facts dd, .article-facts dd { margin: 0; }
.law-date-inline { display: inline-block; font-size: .78rem; background: var(--law-soft); color: var(--law); padding: .1em .6em; border-radius: 4px; margin-right: .6em; vertical-align: middle; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 18px 20px; color: var(--ink); text-decoration: none !important; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 .4em; line-height: 1.55; }
.card-desc { font-size: .86rem; color: var(--ink-2); margin: 0 0 .6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin: auto 0 0; font-size: .76rem; color: var(--muted); }
.more { text-align: center; margin-top: 22px; }

/* tabs */
.tab-list { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.tab { border: 0; background: none; font: inherit; font-weight: 700; padding: .6em 1.4em; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected="true"].tab-jinji { color: var(--ji); border-color: var(--ji); }
.tab[aria-selected="true"].tab-roumu { color: var(--ro); border-color: var(--ro); }
.tab[aria-selected="true"].tab-soumu { color: var(--so); border-color: var(--so); }

/* templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tpl-group { margin-bottom: 40px; }
.tpl-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none !important; transition: box-shadow .15s; }
.tpl-card:hover { box-shadow: var(--shadow); }
.tpl-icon { flex-shrink: 0; width: 46px; height: 56px; border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-family: var(--font-logo); font-size: .66rem; font-weight: 800; color: #fff; background: #2b579a; position: relative; }
.tpl-icon::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: #fff #fff rgba(255,255,255,.4) rgba(255,255,255,.4); }
.tpl-csv, .tpl-xlsx { background: #217346; }
.tpl-pdf { background: #b30b00; }
.tpl-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.tpl-title { font-weight: 700; line-height: 1.5; }
.tpl-desc { font-size: .82rem; color: var(--ink-2); line-height: 1.6; }
.tpl-rank { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; counter-reset: rank; }
.tpl-rank li { position: relative; counter-increment: rank; }
.tpl-rank li::before { content: counter(rank); position: absolute; left: -8px; top: -8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 900; font-family: var(--font-logo); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.dl-box { border: 2px solid var(--accent); background: #fffbeb; border-radius: var(--radius); padding: 22px 24px; margin: 0 0 32px; }
.dl-box h2 { font-size: 1.2rem; font-weight: 900; }

/* ai band */
.ai-band { background: var(--ai-soft); border-radius: 20px; margin-top: 20px; margin-bottom: 20px; }
.ai-band .section-head h2 { border-color: var(--ai); }
.ai-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: #fff; border: 2px solid var(--ai); border-radius: var(--radius); padding: 18px 22px; margin-top: 24px; }
.ai-cta p { margin: 0; font-size: .92rem; }
.ai-cta .btn { flex-shrink: 0; background: var(--ai); }
.about-band { border-top: 1px solid var(--line); }
.about-band h2 { font-size: 1.3rem; font-weight: 900; }

/* month grid */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.month-card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); text-decoration: none !important; background: #fff; transition: box-shadow .15s; }
.month-card:hover { box-shadow: var(--shadow); }
.month-card.is-current { border: 2px solid var(--accent); background: #fffbeb; }
.month-card .chip { position: absolute; right: 14px; top: 14px; }
.month-num { font-family: var(--font-logo); font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.month-num small { font-size: 1rem; font-family: var(--font); }
.month-card ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .86rem; color: var(--ink-2); }

/* ---------- article ---------- */
.article { min-width: 0; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 900; line-height: 1.45; }
.article-head .lead { color: var(--ink-2); }
.article-facts { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px; grid-template-columns: repeat(2, 1fr); }
.summary-box { border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.summary-box h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: .4em; }
.summary-box ul { margin: 0; padding-left: 1.2em; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 32px; }
.toc-title { font-weight: 900; margin: 0 0 .3em; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.toc li.lv3 { margin-left: 1.2em; list-style: circle; font-size: .88rem; }
.toc a { color: var(--ink-2); }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; font-weight: 900; margin: 2.2em 0 .8em; padding: .5em .8em; background: var(--bg-soft); border-left: 5px solid var(--navy); border-radius: 0 6px 6px 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: #fffbeb; border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { background: var(--bg-soft); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--navy); color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; padding: 0; }
.prose .anchor { display: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
tbody th { background: var(--bg-soft); font-weight: 700; }
tr.is-past { color: var(--muted); }
.sources, .article-templates, .related { margin-top: 40px; }
.sources h2, .article-templates h2, .related h2 { font-size: 1.15rem; font-weight: 900; }
.sources ul { padding-left: 1.2em; font-size: .9rem; }
.article-templates .tpl-card { margin-bottom: 10px; }
.disclaimer { margin-top: 32px; font-size: .8rem; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 12px 16px; }
.disclaimer p { margin: 0; }

/* checkboxes */
.checkboxes { list-style: none; padding: 0; margin: 0; }
.checkboxes li { border-top: 1px dashed var(--line); }
.checkboxes li:first-child { border-top: 0; }
.checkboxes label { display: flex; gap: .7em; align-items: flex-start; padding: .55em 0; cursor: pointer; }
.checkboxes input { width: 1.2em; height: 1.2em; margin-top: .35em; flex-shrink: 0; accent-color: var(--ro); }
.checkboxes input:checked + span { color: var(--muted); text-decoration: line-through; }
.check-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.check-group h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label, .tool-form label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.form em, .tool-form em { font-style: normal; font-size: .7rem; background: var(--law); color: #fff; padding: 0 .5em; border-radius: 3px; margin-left: .3em; vertical-align: middle; }
input[type=text], input[type=email], input[type=number], input[type=date], select, textarea { font: inherit; font-weight: 400; padding: .65em .9em; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ji); outline-offset: 1px; }
.form .check, .tool-form .check { display: flex; gap: .5em; align-items: center; font-weight: 400; }
.form .check input, .tool-form .check input { width: 1.15em; height: 1.15em; }
.form-inline { grid-template-columns: 1fr 1fr; }
.form-inline .check, .form-inline .btn { grid-column: 1 / -1; }
.form-inline .btn { justify-self: start; }
.form-error { color: var(--law); font-weight: 700; }
.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice p { margin: 0; }
.notice-ok { background: var(--ro-soft); border: 1px solid var(--ro); }
.notice-error { background: var(--law-soft); border: 1px solid var(--law); }
.tool-form { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.tool-form fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.tool-form legend { font-weight: 900; font-size: 1.05rem; margin-bottom: 10px; }
.tool-form input[type=number] { width: 7em; display: inline-block; }
.tool-result { border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; border: 2px solid var(--line); }
.tool-result.is-yes { border-color: var(--ro); background: var(--ro-soft); }
.tool-result.is-no { border-color: var(--so); background: var(--so-soft); }
.tool-result h2 { font-size: 1.2rem; font-weight: 900; }
.tool-result table { background: #fff; }
.tool-list { padding-left: 1.4em; }
.tool-list label { font-weight: 400; display: inline; }

/* search */
.search-results { list-style: none; padding: 0; }
.search-results li a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.search-results .chip { align-self: flex-start; }
.search-results span:last-child { font-size: .86rem; color: var(--ink-2); }
.result-count { font-weight: 700; margin-top: 20px; }

/* ---------- newsletter / footer ---------- */
.newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-size: 1.35rem; font-weight: 900; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter-form .small, .newsletter-form .form-error { grid-column: 1 / -1; margin: 0; }
.site-footer { background: var(--navy); color: #c8d2e6; padding: 44px 0 20px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: .9rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3em 0; }
.footer-brand .logo-mark i { color: #4a5b80; }
.footer-brand .l-ji { color: #7ea6ff; } .footer-brand .l-ro { color: #4fd6ad; } .footer-brand .l-so { color: #ffad66; }
.footer-brand .small { color: #a9b8d6; }
.copyright { margin-top: 32px; font-size: .78rem; color: #8392b2; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner, .home-grid { grid-template-columns: 1fr; }
  .home-grid { margin-top: 24px; }
}
@media (max-width: 760px) {
  .header-inner { height: 60px; gap: 10px; }
  .logo-mark { font-size: 1.35rem; }
  .header-search, .header-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
  .gnav { display: none; }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; padding: 0 16px 8px; }
  .gnav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 36px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-month { flex-direction: row; justify-content: space-between; padding: 14px 20px; }
  .hero-month-num { font-size: 2.6rem; }
  .hero-month-num small { font-size: 1rem; }
  .hero-search { flex-direction: column; }
  .article-facts, .form-inline, .law-facts { grid-template-columns: 1fr; }
  .law-facts-date { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .ai-cta { flex-direction: column; align-items: flex-start; }
  .newsletter-form { grid-template-columns: 1fr; }
  .tpl-rank, .tpl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 16px; }
  .law-row a { grid-template-columns: 52px 1fr; }
  .law-row .law-days { grid-column: 2; justify-self: start; }
  .tab { padding: .6em .9em; }
}
@media print {
  .site-header, .site-footer, .newsletter, .sidebar, .breadcrumbs, .no-print, .ai-cta { display: none !important; }
  .layout-2col { display: block; }
  body { font-size: 12pt; }
}

/* template preview */
.tpl-preview { margin-top: 36px; }
.tpl-preview > h2 { font-size: 1.15rem; font-weight: 900; }
.tpl-paper { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 4px; padding: 32px 36px; background: #fff; max-height: 640px; overflow: auto; font-size: .92rem; margin-bottom: 18px; }
.tpl-paper h1 { font-size: 1.4rem; text-align: center; margin-bottom: 1em; }
.tpl-paper h2 { font-size: 1.05rem; background: none; border-left: 0; padding: 0; border-bottom: 2px solid var(--navy); border-radius: 0; margin: 1.6em 0 .6em; }
@media (max-width: 760px) { .tpl-paper { padding: 20px 16px; } }
.toc ol { list-style: none; padding-left: 0; }
.toc li { padding-left: 1em; position: relative; }
.toc li::before { content: "・"; position: absolute; left: 0; color: var(--muted); }
.toc li.lv3 { margin-left: 1.4em; list-style: none; }
