/* HintPon LP — tokens */
:root {
  --paper: #F5F6F4;      /* 地色: 冷たい寄りの白。クリームにしない */
  --white: #FFFFFF;
  --ink: #1E2328;        /* 本文 */
  --ink-2: #4A5259;      /* 補足 */
  --rule: #D6D9D4;       /* 罫線 */
  --indigo: #234B73;     /* 主色: 見出し・ボタン・ロゴ */
  --indigo-dark: #1A3A5A;
  --marker: #FFE45C;     /* 唯一の強い色: マーカー */
  --dot: #E8B923;        /* ロゴの点 */
  --check: #8A5A00;      /* 要確認の文字色 (白地で 4.5:1 以上) */
  --check-bg: #FFF4D6;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; letter-spacing: 0.01em; }
h2 { font-size: clamp(22px, 2.2vw, 28px); padding-bottom: 12px; border-bottom: 2px solid var(--indigo); display: inline-block; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { margin: 0 0 1em; }
a { color: var(--indigo); }
strong { font-weight: 700; }
small { font-size: 0.85em; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

/* スキップリンク */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 20;
  background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 4px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* 準備中の帯 */
.notice {
  margin: 0; padding: 8px var(--gutter);
  background: var(--ink); color: #fff;
  font-size: 13px; text-align: center;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245,246,244,0.96);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { display: block; }
.brand-sub { font-size: 12px; color: var(--ink-2); }
.site-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="true"] { border-bottom-color: var(--indigo); }
.header-inner .btn-sm { flex-shrink: 0; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.4;
  border: 2px solid var(--indigo);
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); }
.btn-quiet { background: transparent; color: var(--indigo); }
.btn-quiet:hover { background: #E9EEF4; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 72px; background: var(--white); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.hero-grid > * { min-width: 0; }
.product-name { font-weight: 700; color: var(--indigo); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.product-scope { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.lead { font-size: 17px; margin: 20px 0 20px; max-width: 30em; }
.hero-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hero-price strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.hero-price span { color: var(--ink-2); font-size: 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 台帳（唯一の大きな表現） */
.ledger { margin: 0; }
.ledger figcaption { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.ledger-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--ink); font-size: 15px; table-layout: fixed;
}
.ledger-table th, .ledger-table td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.ledger-table th { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper); border-bottom: 1px solid var(--ink); }
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table th:nth-child(1), .ledger-table td:nth-child(1) { width: 72px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.ledger-table th:nth-child(3), .ledger-table td:nth-child(3) { width: 116px; font-weight: 700; }
.ledger-table th:nth-child(4), .ledger-table td:nth-child(4) { width: 96px; }
mark {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%);
  color: inherit; padding: 0 2px;
}

/* 状態 */
.status { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 3px; white-space: nowrap; }
.status.ok { border: 1px solid var(--rule); color: var(--ink-2); }
.status.check { background: var(--check-bg); color: var(--check); border: 1px solid #E9CF8A; font-weight: 700; }
.reason { display: block; font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-lead { margin: 20px 0 32px; max-width: 40em; color: var(--ink-2); }
.hint { font-size: 14px; color: var(--ink-2); }
.caveat { margin-top: 28px; padding: 14px 16px; border-left: 3px solid var(--indigo); background: var(--white); font-size: 15px; max-width: 44em; }
.section-alt .caveat { background: var(--paper); }

/* Sample */
.sample-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.sample-grid > * { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll:focus-visible { outline-offset: 0; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; border: 1px solid var(--rule); min-width: 620px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data-table th { font-weight: 700; color: var(--ink-2); font-size: 13px; background: var(--paper); }
.data-table td:first-child { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.data-table td:nth-child(3) { white-space: nowrap; }
.data-table td:nth-child(4) { min-width: 12em; }
.data-table .reason { white-space: normal; }

/* 集計バー: 全分類に共通の100%トラック */
.bars { list-style: none; margin: 0 0 12px; padding: 0; }
.bars li { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.bar-label { font-weight: 700; }
.bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-val small { color: var(--ink-2); margin-left: 6px; }
.bar-track { display: block; width: 100%; height: 12px; background: #E6E9E4; border-radius: 2px; overflow: hidden; }
.bar { display: block; height: 100%; width: var(--w); background: var(--indigo); }
.bars .is-check .bar { background: repeating-linear-gradient(135deg, var(--check) 0 3px, #fff 3px 6px); }
.bars .is-check .bar-label { color: var(--check); }
.bars-foot { font-size: 13px; color: var(--ink-2); margin-bottom: 28px; }
.sample-files { display: flex; gap: 12px; flex-wrap: wrap; }

/* Includes */
.includes { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.includes > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.includes dt { font-weight: 700; }
.includes dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

/* Steps: 実際に順序があるので番号を使う */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; border-top: 1px solid var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; top: 10px; left: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: 16px; }
.steps p { font-size: 15px; margin: 0; }

/* Price */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 24px; }
.price-grid > * { min-width: 0; }
.price-amount { margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; }
.yen { font-size: 40px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.tax { color: var(--ink-2); }
.price-scope { margin: 0 0 16px; padding-left: 1.2em; }
.price-terms h3 { margin-top: 0; }
.price-terms h3 + p { margin-bottom: 24px; }
.terms { border: 1px solid var(--rule); padding: 10px 14px; background: var(--paper); }
.terms summary { cursor: pointer; font-weight: 700; }
.terms ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 15px; }

/* Data / FAQ */
.plain-list { margin: 20px 0 0; padding-left: 1.2em; }
.plain-list li { margin-bottom: 8px; }
#faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
#faq details:first-of-type { margin-top: 20px; border-top: 1px solid var(--rule); }
#faq summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
#faq details p { margin: 8px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #D8DCE0; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.footer-logo { display: block; margin-bottom: 10px; }
.footer-status { max-width: 30em; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
}
@media (max-width: 960px) {
  .hero-grid, .sample-grid, .price-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 12px 0 16px 40px; border-top: 0; border-bottom: 1px solid var(--rule); }
  .steps li::before { top: 14px; }
  .includes { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 48px 0; }
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .header-inner .btn-sm { margin-left: auto; padding: 8px 10px; font-size: 13px; }
  .ledger-table { font-size: 13px; }
  .ledger-table th, .ledger-table td { padding: 8px 6px; }
  .ledger-table th:nth-child(1), .ledger-table td:nth-child(1) { width: 48px; }
  .ledger-table th:nth-child(3), .ledger-table td:nth-child(3) { width: 76px; }
  .ledger-table th:nth-child(4), .ledger-table td:nth-child(4) { width: 76px; }
  .status { font-size: 12px; padding: 1px 5px; white-space: nowrap; }
  .yen { font-size: 34px; }
  .sample-files .btn { width: 100%; text-align: center; }
}
