/* ============================================================
   指針工房 公開サイトの共通スタイル
   紙は生成り、文字は墨、目印は朱の印だけ。色はこの2系統（墨の濃淡と朱）で組む。
   背景には公文書の罫線を薄く引き、各節は規程の条文のように「第○条」で並べる。
   ============================================================ */
:root {
  --paper: #f6f4ef;
  --paper-2: #efebe3;
  --paper-3: #e7e2d7;
  --rule: #d8d1c3;
  --rule-soft: #e6e0d4;
  --ink: #1c1d1f;
  --ink-2: #393b3f;
  --ink-3: #63666c;
  --ink-4: #94979c;
  --shu: #b5412d;
  --shu-deep: #8f3121;
  --shu-tint: #ecd5cd;
  --shu-wash: #f8eeea;
  --serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.9;
  word-break: normal; line-break: strict; overflow-wrap: break-word;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
/* 紙の粒。SVGのノイズを薄く重ねる。文字の下のコントラストを落とさない濃さに留める */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--shu-deep); text-decoration-color: var(--shu); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- 見出し ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.45; letter-spacing: .02em; }
/* 見出しは語の途中で折らない。<wbr> を置いた文節の境目と、句読点の後ろでだけ改行する */
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.42; letter-spacing: .03em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

/* 条文の札。「第一条」のように節の頭に置く */
.article {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--shu); letter-spacing: .18em;
}
.article::before { content: ""; width: 28px; height: 1px; background: var(--shu); flex: 0 0 auto; }
.article { word-break: keep-all; }
@media (max-width: 520px) { .article { letter-spacing: .08em; gap: 10px; } .article::before { width: 18px; } }
.lead { font-size: 17px; line-height: 2; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; line-height: 1.8; }

/* ---- 上の帯 ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.site-head .logo { display: block; height: 38px; flex: 0 0 auto; }
.site-head .logo img { height: 38px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--shu-deep); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) {
  .site-nav a.hide-sm { display: none; }
  .site-head .logo, .site-head .logo img { height: 32px; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding: 14px 26px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--shu-deep); border-color: var(--shu-deep); color: #fff; }
.btn.shu { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn.shu:hover { background: var(--shu-deep); border-color: var(--shu-deep); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.sm { font-size: 13px; padding: 9px 16px; }
.btn .arrow { font-family: var(--serif); font-weight: 400; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- 節 ---- */
section.band { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--rule-soft); }
section.band.alt { background: var(--paper-2); }
section.band.ink { background: var(--ink); color: var(--paper); border-top: 0; }
section.band.ink h2, section.band.ink h3 { color: var(--paper); }
section.band.ink .lead { color: #cfcac0; margin-top: 16px; }
.band-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.band-head h2 { margin-bottom: 18px; }

/* ---- 最初の画面 ---- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
/* 便箋の罫線。上下はにじませて、文字の下では目立たないようにする */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
  opacity: .55;
}
/* 便箋の左の縦罫（朱の細線） */
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: max(calc((100vw - var(--wrap)) / 2 + var(--gutter) - 22px), 10px);
  width: 1px; background: var(--shu); opacity: .35; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 26px; font-size: clamp(30px, 3.1vw, 46px); letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--shu); }
.hero .lead { margin-bottom: 34px; max-width: none; }
.hero .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hero .facts div { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.hero .facts .b { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
@media (max-width: 520px) { .hero .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; } }

/* ---- 文書の見本（最初の画面の右） ---- */
.doc-stack { position: relative; height: 560px; max-width: 520px; margin-left: auto; width: 100%; }
@media (max-width: 920px) { .doc-stack { margin: 0 auto; height: 520px; } }
@media (max-width: 520px) { .doc-stack { height: 470px; } }
.sheet {
  position: absolute; background: #fff; border: 1px solid #e3ded3;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 40px -18px rgba(40,30,15,.28);
}
.sheet.back2 { inset: 46px 8px 24px 64px; transform: rotate(4deg); background: #fbfaf7; }
.sheet.back1 { inset: 30px 30px 34px 40px; transform: rotate(-2.2deg); background: #fdfcfa; }
.sheet.front { inset: 12px 52px 52px 14px; padding: 42px 38px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sheet .s-badge { font-size: 11px; font-weight: 700; letter-spacing: .5em; padding: 4px 6px 4px 16px; border: 1.5px solid #1a3c6e; color: #1a3c6e; margin-bottom: 30px; }
.sheet .s-co { font-size: 12px; color: #555; margin-bottom: 4px; letter-spacing: .1em; }
.sheet .s-title { font-family: var(--sans); font-size: clamp(16px, 2.2vw, 23px); font-weight: 700; color: #1a3c6e; line-height: 1.5; margin-bottom: 26px; word-break: keep-all; }
@media (max-width: 520px) { .sheet.front { padding: 30px 18px 22px; } .sheet .s-meta { width: 92%; } }
.sheet .s-meta { width: 78%; font-size: 10.5px; color: #444; text-align: left; }
.sheet .s-meta div { display: flex; gap: 14px; border-bottom: 1px solid #e4e4e4; padding: 6px 0; }
.sheet .s-meta span:first-child { color: #1a3c6e; font-weight: 700; min-width: 64px; }
.sheet .s-meta .ph { background: #fbf2df; color: #7d5614; border-bottom: 1px dashed #c99a45; padding: 0 3px; }
.sheet .s-seals { display: flex; margin-top: auto; align-self: flex-end; border: 1px solid #b9c4d6; }
.sheet .s-seals div { width: 64px; font-size: 9.5px; color: #1a3c6e; border-left: 1px solid #b9c4d6; }
.sheet .s-seals div:first-child { border-left: 0; }
.sheet .s-seals .b { display: block; font-weight: 600; letter-spacing: .3em; padding: 2px 0 2px .3em; background: #f2f4f8; border-bottom: 1px solid #b9c4d6; }
.sheet .s-seals i { display: block; height: 56px; position: relative; }

/* 朱の承認印。ページを開いたときに一度だけ押される */
.stamp {
  position: absolute; width: 60px; height: 60px; left: 50%; top: 50%; margin: -30px 0 0 -30px;
  color: var(--shu); transform: rotate(-9deg); opacity: .9;
  filter: url(#ink-bleed);
}
.stamp svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .stamp.press { animation: press .52s cubic-bezier(.2,.9,.25,1.2) 1.1s both; }
  @keyframes press {
    0% { opacity: 0; transform: rotate(-9deg) scale(1.9); }
    55% { opacity: .95; transform: rotate(-9deg) scale(.94); }
    100% { opacity: .9; transform: rotate(-9deg) scale(1); }
  }
}

/* 見本に重ねるチェックリストの札 */
.card-float {
  position: absolute; left: -34px; bottom: -6px; width: min(290px, 70%);
  background: var(--paper); border: 1px solid var(--rule); padding: 16px 18px 12px;
  box-shadow: 0 22px 44px -20px rgba(40,30,15,.35);
}
@media (max-width: 920px) { .card-float { left: 0; bottom: -10px; } }
.card-float .cf-h { font-size: 11px; color: var(--ink-3); letter-spacing: .12em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.card-float .cf-h .b { color: var(--ink); font-family: var(--serif); font-size: 15px; letter-spacing: 0; }
.cf-row { display: flex; gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--rule-soft); line-height: 1.5; }
.pin { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border: 1px solid var(--ink); letter-spacing: .04em; line-height: 1.6; }
.pin.done { background: var(--ink); color: var(--paper); }
.pin.sample { background: transparent; color: var(--ink); }
.pin.empty { border-style: dashed; border-color: var(--ink-4); color: var(--ink-3); }
.pin.req { border-color: var(--shu); color: var(--shu); }

/* ---- 3つの手順 ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 28px 34px 0; border-right: 1px solid var(--rule); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
@media (max-width: 860px) {
  .step, .step + .step { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}
.step .num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--shu); font-weight: 400; margin-bottom: 18px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.step .ui { margin-top: 20px; background: var(--paper); border: 1px solid var(--rule); padding: 14px; font-size: 12.5px; }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.step .chip { border: 1px solid var(--rule); padding: 3px 10px; border-radius: 14px; color: var(--ink-3); background: #fff; }
.step .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step .bubble { background: #fff; border: 1px solid var(--rule); padding: 9px 12px; line-height: 1.65; margin-bottom: 8px; }
.step .bubble.me { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-left: 34%; }

/* ---- 目次 ---- */
.toc { columns: 2; column-gap: 56px; counter-reset: none; margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .toc { columns: 1; } }
.toc li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.toc .n { font-family: var(--serif); color: var(--ink-4); min-width: 30px; font-variant-numeric: tabular-nums; }
.toc .t { flex: 1; }
.toc .opt { font-size: 11px; color: var(--shu); border: 1px solid var(--shu-tint); padding: 0 7px; white-space: nowrap; }

/* ---- 業種の札 ---- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.ind-grid .ind-cta { grid-column: span 2; }
@media (max-width: 1040px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } .ind-grid .ind-cta { grid-column: auto; } }
.ind {
  background: var(--paper); padding: 26px 24px 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; min-height: 220px; transition: background .15s;
}
.ind:hover { background: #fff; color: var(--ink); }
.ind .k { font-size: 11.5px; letter-spacing: .14em; color: var(--ink-4); margin-bottom: 6px; }
.ind h3 { font-size: 20px; margin-bottom: 14px; }
.ind blockquote { margin: 0 0 18px; padding-left: 14px; border-left: 2px solid var(--shu); font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.ind .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.ind:hover .go { color: var(--shu-deep); }
/* 業種の札の最後に置く、掛け合わせの案内。4列のときは2マスぶん使って空きを埋める */
.ind-cta { background: var(--ink); color: var(--paper); }
.ind-cta:hover { background: var(--shu-deep); color: #fff; }
.ind-cta .k { color: #a9a49a; }
.ind-cta h3 { color: var(--paper); }
.ind-cta p { font-size: 13.5px; line-height: 1.85; color: #d9d4ca; margin: 0 0 18px; }
.ind-cta .go, .ind-cta:hover .go { color: #fff; }

/* ---- 法令の年表 ---- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr; } }
.tl { padding: 22px 22px 8px 0; position: relative; }
.tl::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--shu); }
@media (max-width: 960px) { .tl { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--rule); } .tl::before { top: 26px; } }
.tl time { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tl .nm { font-size: 14px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.tl .why { font-size: 13px; color: var(--ink-3); line-height: 1.75; }
.tl .left { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--shu); border: 1px solid var(--shu-tint); padding: 0 8px; }

/* ---- 書き出し ---- */
.exports { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--rule); background: var(--rule); gap: 1px; }
@media (max-width: 860px) { .exports { grid-template-columns: repeat(2, 1fr); } }
.exports div { background: var(--paper); padding: 22px 18px; }
.exports .b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.exports span { font-size: 13px; color: var(--ink-3); line-height: 1.7; display: block; }

/* ---- 料金 ---- */
.compare-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table.compare { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 14.5px; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.7; }
table.compare thead th { vertical-align: bottom; padding: 26px 18px 20px; width: 22%; }
table.compare thead th.now { background: #fff; box-shadow: inset 0 3px 0 var(--shu); }
table.compare .pn { display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); }
table.compare .pp { display: block; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .01em; margin: 6px 0 4px; }
table.compare .ps { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); line-height: 1.7; }
table.compare tbody th { font-weight: 400; color: var(--ink-2); }
table.compare td.yes, table.compare td.no { text-align: center; font-family: var(--serif); font-size: 17px; }
table.compare td.yes { color: var(--shu); font-weight: 700; }
table.compare td.no { color: var(--ink-4); }
table.compare td.now { background: #fff; }
table.compare tfoot td { border-bottom: 0; padding-top: 16px; font-size: 13px; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  table.compare th, table.compare td { padding: 11px 8px; font-size: 13px; }
  table.compare thead th { padding: 18px 8px 14px; }
  table.compare .pn { font-size: 15px; }
  table.compare .pp { font-size: 20px; }
  table.compare .ps { display: none; }
}

/* ---- 入力欄 ---- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .04em; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink-3); border-radius: 0; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--shu); box-shadow: 0 2px 0 -0.5px var(--shu); }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.form .agree input { margin-top: 5px; accent-color: var(--shu); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 13.5px; min-height: 1.6em; }
.form-msg.ok { color: var(--ink); font-weight: 700; }
.form-msg.ng { color: var(--shu-deep); }
.ink .form label { color: #d9d4ca; }
.ink .form .agree { color: #cfcac0; }
.ink .form input[type=email], .ink .form select { background: #26272a; color: var(--paper); border-color: #3a3c40; border-bottom-color: #8d8a83; }
.ink .form-msg.ok { color: var(--paper); }
.ink .form-msg.ng { color: #e7a99b; }

/* ---- よくある質問 ---- */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 17px; font-weight: 600; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; top: 22px; color: var(--shu); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 0 24px; color: var(--ink-2); font-size: 15px; }

/* ---- 更新履歴 ---- */
table.changes { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14.5px; }
table.changes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.changes tbody { border-bottom: 1px solid var(--rule); }
table.changes th { width: 150px; padding: 24px 24px 24px 0; text-align: left; vertical-align: top; font-family: var(--serif); font-weight: 400; }
table.changes th .b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); }
table.changes th time { font-size: 13px; color: var(--ink-3); }
table.changes td { padding: 6px 0 6px 20px; position: relative; vertical-align: top; color: var(--ink-2); line-height: 1.8; }
table.changes tr:first-child td { padding-top: 26px; }
table.changes tr:last-child td { padding-bottom: 24px; }
table.changes td::before { content: ""; position: absolute; left: 0; top: calc(6px + .9em); width: 10px; height: 2px; background: var(--shu); }
table.changes tr:first-child td::before { top: calc(26px + .9em); }
@media (max-width: 700px) {
  table.changes, table.changes tbody, table.changes tr, table.changes th, table.changes td { display: block; width: auto; }
  table.changes th { padding: 20px 0 6px; }
  table.changes tr:first-child td { padding-top: 6px; }
  table.changes tr:first-child td::before { top: calc(6px + .9em); }
}

/* ---- 業種別ページ ---- */
.head-col { max-width: 820px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 8px; color: var(--ink-4); }
.rules { list-style: none; padding: 0; margin: 0; counter-reset: rule; border-top: 1px solid var(--ink); }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.85; }
.rules li::before { content: "第" counter(rule, cjk-decimal) "項"; font-family: var(--serif); font-size: 13px; color: var(--shu); padding-top: 3px; letter-spacing: .06em; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.plain th, table.plain td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.75; }
table.plain th { font-weight: 400; width: 56%; color: var(--ink-2); }
table.plain td .b { font-weight: 700; font-size: 15.5px; color: var(--ink); }
table.plain td .sym { font-family: var(--serif); color: var(--shu); margin-right: 8px; font-weight: 700; }
.notes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.notes div { background: var(--paper); padding: 22px 24px; }
.notes h3 { font-size: 17px; margin-bottom: 8px; }
.notes p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.matrix { display: grid; grid-template-columns: 120px repeat(3, 1fr); border-top: 1px solid var(--ink); }
.matrix > * { padding: 14px 12px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.matrix .h { font-weight: 700; font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.matrix .h .b { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.matrix .h span { display: block; font-weight: 400; font-size: 12px; line-height: 1.6; letter-spacing: 0; }
.matrix a { text-decoration: none; display: inline-block; font-weight: 700; padding: 6px 12px; border: 1px solid var(--rule); background: #fff; font-size: 13px; }
.matrix a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .matrix { grid-template-columns: 84px repeat(3, 1fr); } .matrix > * { padding: 10px 6px; font-size: 12.5px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---- 文章のページ（プライバシーなど） ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 44px 0 14px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---- 下の帯 ---- */
.site-foot { background: var(--ink); color: #bdb8ae; padding: 64px 0 40px; font-size: 13px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.site-foot img { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.site-foot h4 { color: var(--paper); font-size: 12px; letter-spacing: .16em; margin: 0 0 12px; font-weight: 700; }
.foot-links a { display: block; margin-bottom: 6px; }
.site-foot a { color: #e3ded4; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .copy { grid-column: 1 / -1; border-top: 1px solid #36383c; padding-top: 22px; margin-top: 10px; color: #8d8a83; font-size: 12px; }

/* ---- 印刷 ---- */
@media print {
  body::before, .site-head, .site-foot { display: none; }
  body { background: #fff; }
}

/* ============================================================
   管理画面
   ============================================================ */
.admin { padding: 40px 0 90px; }
.admin-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; overflow-x: auto; }
.admin-tabs button {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; background: none; border: 0; cursor: pointer;
  padding: 12px 16px; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap;
}
.admin-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--shu); }
.admin-tabs .cnt { font-family: var(--serif); margin-left: 6px; color: var(--shu); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 28px; }
.kpis div { background: var(--paper); padding: 18px 20px; }
.kpis b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.25; }
.kpis span { font-size: 12px; color: var(--ink-3); }
.a-card { background: #fff; border: 1px solid var(--rule); padding: 22px 24px; margin-bottom: 16px; }
.a-card .top { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.a-card .top h3 { font-size: 20px; }
.a-card .meta { font-size: 12.5px; color: var(--ink-3); }
.a-card .sig { font-size: 13px; line-height: 1.75; padding: 6px 0; border-top: 1px dashed var(--rule-soft); }
.a-card .sig time { color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
.a-card pre {
  white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--rule-soft);
  padding: 16px 18px; font-family: var(--sans); font-size: 13px; line-height: 1.85; margin: 12px 0; max-height: 360px; overflow-y: auto;
}
.a-card .problems { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--shu); background: var(--shu-wash); font-size: 13px; line-height: 1.8; }
.a-card .problems li { margin-left: 1em; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .a-grid { grid-template-columns: 1fr; } }
.state { font-size: 11px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--ink); letter-spacing: .04em; }
.state.sent, .state.posted, .state.done { background: var(--ink); color: var(--paper); }
.state.skipped { border-style: dashed; color: var(--ink-3); border-color: var(--ink-4); }
.state.approved { border-color: var(--shu); color: var(--shu); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 1px solid var(--rule); }
.a-table th, .a-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; line-height: 1.7; }
.a-table th { font-size: 12px; color: var(--ink-3); background: var(--paper); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { font-family: var(--sans); font-size: 12.5px; border: 1px solid var(--rule); background: #fff; padding: 6px 12px; border-radius: 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.law-note { font-size: 13px; line-height: 1.85; color: var(--ink-2); background: var(--paper-2); padding: 16px 20px; border-left: 3px solid var(--ink); margin-bottom: 22px; }
