/* d2cwatch v4 (2026-10-01) — 赤青鉛筆の在庫台帳。紙 #F7F7F4 / 墨 #17171A / 赤 = 全欠品 / 青 = 在庫復帰。見出し Shippori Mincho B1、本文はシステムのゴシック */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;600&display=swap');
:root {
  --paper: #f7f7f4; --ink: #17171a; --ash: #7b7b77; --rule: #dededa; --tint: #ecede8; --red: #d3392a; --blue: #2b4cb2; --white: #ffffff;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", -apple-system, sans-serif;
  --gutter: 64px; --max: 1240px;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-weight: 400; line-height: 1.9; font-feature-settings: "palt"; letter-spacing: 0.01em; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }

/* ヘッダ */
.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 22px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none; line-height: 1; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; }
.top nav a { text-decoration: none; color: var(--ink); }
.top nav a:not(.navcta):hover { color: var(--ash); }
.top nav a.navcta { border: 1px solid var(--ink); padding: 9px 16px; font-size: 0.86rem; }
.top nav a.navcta:hover { background: var(--ink); color: var(--paper); }

/* ヒーロー */
.hero { padding: 52px 0 88px; border-top: 1px solid var(--ink); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; margin-bottom: 48px; }
.hero-side { padding-bottom: 6px; }
.eyebrow { font-family: var(--serif); font-size: 0.95rem; color: var(--ash); margin: 0 0 26px; letter-spacing: 0.04em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 4.4rem); line-height: 1.24; letter-spacing: 0.01em; margin: 0; }
h1 .l { display: block; white-space: nowrap; }
.lead { font-size: 1rem; margin: 0 0 26px; max-width: 30em; color: #2a2a2d; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 18px 34px; font-size: 0.98rem; letter-spacing: 0.04em; border: 1px solid var(--ink); cursor: pointer; font-family: var(--sans); font-weight: 500; line-height: 1.4; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.price-line { margin: 18px 0 0; font-size: 0.86rem; color: var(--ash); max-width: 30em; line-height: 1.8; }

/* 在庫台帳(ヒーロー) */
.ledger { border-top: 1px solid var(--ink); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 10px; font-family: var(--serif); font-size: 0.9rem; }
.ledger-head b { font-weight: 600; font-size: 1.05rem; }
.ledger-head span { color: var(--ash); font-size: 0.82rem; font-family: var(--sans); }
.ledger table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ledger th, .ledger td { padding: 0; border-top: 1px solid var(--rule); height: 54px; vertical-align: middle; }
.ledger thead th { height: 30px; border-top: 1px solid var(--ink); font-weight: 400; font-size: 0.72rem; color: var(--ash); text-align: center; font-variant-numeric: tabular-nums; font-family: var(--sans); letter-spacing: 0; }
.ledger th.lab { width: 21%; text-align: left; padding-right: 8px; }
.ledger th.ver { width: 10%; text-align: right; }
.ledger td.lab { font-size: 0.9rem; line-height: 1.3; padding-right: 12px; }
.ledger td.lab small { display: block; color: var(--ash); font-size: 0.7rem; letter-spacing: 0.06em; margin-top: 3px; }
.ledger td.day { text-align: center; }
.ledger td.ver { text-align: right; }
.c { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #bdbdb8; background: transparent; vertical-align: middle; opacity: 0; transform: scale(0.55); animation: pop 380ms cubic-bezier(.2,.8,.3,1) forwards; }
.c.s1 { border-color: var(--red); background: linear-gradient(90deg, var(--red) 50%, transparent 50%); }
.c.s2 { border-color: var(--red); background: var(--red); border-radius: 3px; }
.c.s3 { border-color: var(--blue); border-width: 3px; background: transparent; }
.c.s4 { border: 0; background: transparent; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.d1{animation-delay:.10s}.d2{animation-delay:.17s}.d3{animation-delay:.24s}.d4{animation-delay:.31s}.d5{animation-delay:.38s}.d6{animation-delay:.45s}.d7{animation-delay:.52s}.d8{animation-delay:.59s}.d9{animation-delay:.66s}.d10{animation-delay:.73s}.d11{animation-delay:.80s}.d12{animation-delay:.87s}.d13{animation-delay:.94s}.d14{animation-delay:1.01s}.d15{animation-delay:1.08s}.d16{animation-delay:1.15s}.d17{animation-delay:1.22s}.d18{animation-delay:1.29s}.d19{animation-delay:1.36s}.d20{animation-delay:1.43s}.d21{animation-delay:1.50s}.d22{animation-delay:1.57s}.d23{animation-delay:1.64s}.d24{animation-delay:1.71s}.d25{animation-delay:1.78s}.d26{animation-delay:1.85s}.d27{animation-delay:1.92s}.d28{animation-delay:1.99s}
.badge { display: inline-block; font-family: var(--serif); font-weight: 600; font-size: 0.86rem; padding: 4px 10px; border: 1px solid currentColor; line-height: 1.4; white-space: nowrap; opacity: 0; animation: fade 500ms ease-out 2.25s forwards; }
.badge.red { color: var(--red); } .badge.blue { color: var(--blue); } .badge.ink { color: var(--ink); }
@keyframes fade { to { opacity: 1; } }
.ledger tbody tr:hover td { background: var(--tint); }
.ledger td.day:last-of-type, .ledger th.day:last-of-type { position: relative; }
.ledger tbody td.day:last-of-type::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: 0; animation: fade 400ms ease-out 2.1s forwards; transform: translateX(-0.5px); }
.ledger tbody tr:last-child td.day:last-of-type::after { bottom: 0; }
.ledger-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px 0 0; font-size: 0.74rem; color: var(--ash); border-top: 1px solid var(--ink); }
.ledger-foot .key { display: flex; flex-wrap: wrap; gap: 14px; }
.ledger-foot .key i.c { opacity: 1; transform: none; animation: none; width: 10px; height: 10px; margin-right: 5px; }
.sample-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sample-link:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .c, .badge { animation: none; opacity: 1; transform: none; } }

/* セクション */
section.block { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding: 88px 0; border-top: 1px solid var(--ink); }
.kicker { font-family: var(--serif); font-size: 0.9rem; color: var(--ash); margin: 0 0 14px; }
section.block h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.35; margin: 0; letter-spacing: 0.005em; }
.note { color: var(--ash); font-size: 0.88rem; margin: 18px 0 0; line-height: 1.8; }
.note a { color: var(--blue); }

/* 週報の目次 */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: sec; }
.toc li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); counter-increment: sec; }
.toc li::before { content: counter(sec, decimal-leading-zero); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.5; font-variant-numeric: tabular-nums; }
.toc li b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.5; margin-bottom: 2px; }
.toc li span { color: #4b4b4a; font-size: 0.92rem; display: block; }

/* サンプル */
.sample { max-width: 560px; }
.sample a.page1 { display: block; background: var(--white); box-shadow: 0 1px 0 var(--rule), 0 28px 56px -24px rgba(23,23,26,0.35); }
.sample a.page1 img { display: block; width: 100%; }
.sample .caption { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 0.82rem; color: var(--ash); font-variant-numeric: tabular-nums; }

/* 手順(時間軸) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 18px 20px 6px 0; border-right: 1px solid var(--rule); margin-right: 20px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.4; margin-bottom: 8px; }
.steps li b small { display: block; font-family: var(--sans); font-weight: 400; color: var(--ash); font-size: 0.76rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.steps li p { margin: 0; font-size: 0.94rem; color: #2a2a2d; }

/* 料金 */
.bigprice { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1.1; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.bigprice span { font-family: var(--sans); font-size: 0.95rem; color: var(--ash); margin-left: 6px; }
table.plan { width: 100%; border-collapse: collapse; margin: 0 0 22px; border-top: 1px solid var(--ink); font-size: 0.95rem; }
table.plan th, table.plan td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: top; }
table.plan td { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; padding-left: 16px; }
table.plan td .u { font-family: var(--sans); font-size: 0.8rem; color: var(--ash); margin-left: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 500; position: relative; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--serif); font-size: 1.4rem; color: var(--ash); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: #2a2a2d; max-width: 38em; }

/* フォームページ */
.page { padding: 40px 0 0; max-width: 44em; border-top: 1px solid var(--ink); }
.page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 28px 0 18px; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 30px 0 8px; }
form label { display: block; margin: 16px 0 6px; font-weight: 500; font-size: 0.95rem; }
form input { width: 100%; padding: 13px 14px; border: 1px solid #c9c9c4; background: var(--white); font-size: 1rem; margin-top: 4px; font-family: var(--sans); border-radius: 0; }
form input:focus { border-color: var(--ink); }
fieldset { border: 1px solid var(--rule); padding: 12px 16px 14px; margin: 18px 0; }
fieldset input { margin: 6px 0; }
legend { padding: 0 6px; font-size: 0.9rem; }
#msg, #trialmsg { margin-top: 12px; }
dl.legal { margin: 8px 0 0; border-top: 1px solid var(--ink); }
dl.legal dt { font-weight: 500; padding-top: 12px; }
dl.legal dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.check-list { list-style: none; padding: 0; margin: 12px 0; }
.check-list li { padding: 10px 12px; border: 1px solid var(--rule); background: var(--white); margin-bottom: 8px; }
.check-list li.ok { border-left: 4px solid var(--blue); }
.check-list li.ng { border-left: 4px solid var(--red); color: var(--ash); }
#result h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 28px 0 8px; }
#next .btn { margin-top: 10px; }
details#manual { margin: 18px 0; }
details#manual summary { cursor: pointer; color: var(--ash); font-size: 0.92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.linkbtn { background: none; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.92rem; padding: 6px 0; font-family: var(--sans); }
.more input { margin-top: 8px; }

footer { padding: 28px 0 56px; border-top: 1px solid var(--ink); font-size: 0.84rem; color: var(--ash); display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 8px; }
footer a { color: var(--ash); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 1100px) { :root { --gutter: 36px; } .hero, section.block { gap: 40px; } }
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  h1 .l { white-space: normal; display: inline; }
  h1 .l::after { content: ""; display: block; }
  .top nav { gap: 16px; } .top nav a:not(.navcta) { display: none; }
  section.block { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 56px; }
  .hero { padding: 36px 0 56px; }
  .hero-top { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  h1 { font-size: clamp(2.1rem, 8.6vw, 2.9rem); }
  .btn { display: block; text-align: center; padding: 17px; }
  .ledger th.lab { width: 40%; } .ledger th.ver { width: 20%; }
  .ledger td.day.old, .ledger th.day.old, .ledger td.day.mid, .ledger th.day.mid { display: none; }
  .ledger th, .ledger td { height: 46px; }
  .ledger td.lab { font-size: 0.78rem; } .ledger td.lab small { display: none; }
  .ledger-head span { display: none; }
  .c { width: 11px; height: 11px; }
  .badge { font-size: 0.76rem; padding: 3px 7px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 0 14px; }
  .steps li:last-child { border-bottom: 0; }
  section.block h2 { font-size: 1.7rem; }
}

/* 補助金パトロール(2026-10-09): d2cwatch の紙・墨・赤青をそのまま使い、ヒーローの在庫台帳を「公募変更台帳」の表に置き換える */
.hero-top { align-items: start; }
.hero-side .price-line b { color: var(--ink); font-weight: 600; }
table.changes { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.changes th, table.changes td { text-align: left; padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; font-size: 0.9rem; line-height: 1.6; }
table.changes thead th { border-top: 1px solid var(--ink); font-weight: 400; font-size: 0.72rem; color: var(--ash); padding: 6px 8px 6px 0; }
table.changes th.k { width: 7.5em; } table.changes th.p { width: 11em; } table.changes th.d { width: 6em; }
table.changes td.p { font-family: var(--serif); font-weight: 600; }
table.changes td.d { color: var(--ash); font-variant-numeric: tabular-nums; }
table.changes .old { color: var(--ash); text-decoration: line-through; text-decoration-color: #bbb; }
table.changes .new { color: var(--blue); font-weight: 600; }
table.changes .fail { color: var(--red); }
table.changes small { display: block; color: var(--ash); font-size: 0.74rem; word-break: break-all; }
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 8px 0 14px; }
.programs[hidden] { display: none; } /* 「全制度」チェック時は個別を隠す(display:grid が hidden 属性に勝つ) */
.programs h3 { grid-column: 1 / -1; font-family: var(--serif); font-weight: 600; font-size: 0.95rem; margin: 14px 0 4px; color: var(--ash); }
.programs label { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 400; font-size: 0.92rem; }
.programs label input { width: auto; margin: 5px 0 0; }
.programs label small { display: block; color: var(--ash); font-size: 0.76rem; line-height: 1.5; }
.allrow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 500; }
.allrow input { width: auto; margin: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 18px; }
.plans .plan-card { border: 1px solid var(--ink); padding: 20px 22px; background: var(--white); }
.plans .plan-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.plans .plan-card .p { font-family: var(--serif); font-size: 2rem; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.plans .plan-card .p span { font-family: var(--sans); font-size: 0.82rem; color: var(--ash); margin-left: 4px; }
.plans .plan-card ul { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.plans .plan-card li { margin: 4px 0; }
.plans .plan-card.pro { border-width: 2px; }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } .plans { grid-template-columns: 1fr; } table.changes th.p { width: 7em; } table.changes th.k { width: 5.5em; } }
