/* 料金・規約などの静的ページ。アプリ本体（src/index.css）と同じ設計言語「帳場の台帳」に合わせる（正本は DESIGN.md）。外部フォント・CDN は読まない */
/* 見出し・ロゴの書体（Zen Kaku Gothic New、OFL。tools/subset-font.py で絞ったもの。外部からは読まない） */
@font-face { font-family: "SuitouZen"; src: url("fonts/suitou-zen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SuitouZen"; src: url("fonts/suitou-zen-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root {
  --ai-50: #eef2fb; --ai-100: #dbe3f5; --ai-200: #b8c7ea; --ai-400: #5878c8; --ai-500: #2f55b0; --ai-600: #264894; --ai-700: #1f3a78; --ai-900: #14244a;
  --sumi: #1f2430; --sumi-500: #5b6372;
  --paper: #f8f6f0; --sheet: #fffdf8; --rule: #e3dccb; --row-hover: #f3efe4;
  --shu-50: #fbeeec; --shu-500: #c8372d; --shu-700: #9b261e;
  --display: "SuitouZen", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background-color: var(--paper); background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(227, 220, 203, .45) 27px 28px); color: var(--sumi); font-family: var(--body); line-height: 1.7; overflow-x: hidden; }
header.site, main, footer.site { max-width: 820px; margin: 0 auto; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
header.site .brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 23px; line-height: 1; color: var(--ai-900); text-decoration: none; letter-spacing: -.01em; }
header.site .brand img { width: 26px; height: 26px; display: block; }
header.site .brand b { font-weight: inherit; }
header.site .brand span, footer.site .brand span { color: var(--ai-500); }
footer.site .brand span { color: var(--ai-200); }
header.site nav { display: flex; gap: 6px; flex-wrap: wrap; }
header.site nav a { font-size: 14px; font-weight: 700; color: var(--ai-500); text-decoration: none; padding: 8px 16px; min-height: 40px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--ai-500); transition: background-color .12s, color .12s; }
header.site nav a:hover { background: var(--ai-50); }
header.site nav a:first-child { background: var(--ai-500); color: #fff; }
header.site nav a:first-child:hover { background: var(--ai-600); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ai-500); outline-offset: 2px; }
main { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 28px 20px 32px; margin: 8px 16px 0; }
@media (min-width: 852px) { main { margin: 8px auto 0; padding: 40px 48px 48px; } }
h1, h2, h3 { color: var(--ai-900); font-family: var(--display); font-weight: 700; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 18px; line-height: 1.5; margin: 36px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
p, li { font-size: 15px; }
ol, ul { padding-left: 22px; }
strong { color: var(--ai-900); }
code { font-size: 13px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.meta { color: var(--sumi-500); font-size: 13px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
th, td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { background: var(--paper); width: 30%; color: var(--ai-900); font-weight: 700; }
@media (max-width: 560px) { th, td { display: block; width: auto; } th { border-bottom: 0; padding-bottom: 2px; } }
/* 3列以上の表（見出しが1行目）: スマホでは見出し行を隠し、各セルの前に見出しを出す */
table.multi th { width: auto; }
@media (max-width: 560px) {
  table.multi tr:first-child { display: none; }
  table.multi td { border-bottom: 0; padding: 4px 12px; }
  table.multi td:first-child { padding-top: 12px; font-weight: 700; color: var(--ai-900); }
  table.multi td:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
  table.multi tr:last-child td:last-child { border-bottom: 0; }
  table.multi td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ai-700); }
}
a { color: var(--ai-500); text-underline-offset: 3px; }
a:hover { color: var(--ai-700); }

/* 足元: 濃藍のパネル */
footer.site { padding: 32px 16px 40px; font-size: 13px; }
footer.site > .cols, footer.site > .copy { background: var(--ai-900); color: rgba(255,255,255,.8); }
footer.site .cols { display: grid; gap: 20px; grid-template-columns: 1.3fr 1fr; padding: 28px 28px 8px; border-radius: 10px 10px 0 0; }
footer.site .cols .logo { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 8px; }
footer.site .cols p { font-size: 13px; margin: 0; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer.site li { font-size: 13px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: #fff; }
footer.site .copy { margin: 0; padding: 12px 28px 24px; border-radius: 0 0 10px 10px; color: rgba(255,255,255,.65); }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }

/* 404: 朱の印 */
.notfound { text-align: center; padding: 48px 20px; }
.notfound .big { margin: 0 0 16px; }
.notfound .big span { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 999px; border: 4px solid var(--shu-500); color: var(--shu-500); font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; transform: rotate(-10deg); font-variant-numeric: tabular-nums; }
.notfound .btn { display: inline-block; padding: 12px 28px; }

/* 料金 */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 20px 0; }
.plan { border: 1px solid var(--rule); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; background: var(--sheet); }
.plan.reco { border: 2px solid var(--ai-500); background: var(--ai-50); position: relative; }
.plan.reco::after { content: "おすすめ"; position: absolute; top: -12px; right: 16px; background: var(--ai-500); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 6px; }
.plan h3 { margin: 0 0 2px; font-size: 20px; }
.price { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.2; color: var(--ai-900); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.price .sub { font-family: inherit; font-size: 14px; }
.sub { color: var(--sumi-500); font-size: 13px; margin: 0; }
.btn { display: block; text-align: center; margin-top: 10px; padding: 10px 14px; min-height: 44px; border-radius: 8px; background: var(--ai-500); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color .12s; }
.btn:hover { background: var(--ai-600); color: #fff; }
.plan .sub:last-of-type { margin-bottom: 16px; }
.plan .btn:first-of-type { margin-top: auto; }
.btn.off { background: var(--paper); color: var(--sumi-500); border: 1px dashed var(--rule); pointer-events: none; opacity: .8; }
.notice { background: var(--ai-50); color: var(--ai-900); border: 1px solid var(--ai-200); border-radius: 10px; padding: 12px 16px; font-size: 14px; }

/* 使い方・よくある質問・解説記事（public/guide.html・faq.html・articles/）。色・角丸は DESIGN.md のトークンのまま */
header.site { flex-wrap: wrap; }
@media (max-width: 560px) { header.site nav a { padding: 8px 12px; } }
button.btn { border: 0; width: auto; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn.inline { display: inline-block; padding: 10px 24px; }
.crumbs { font-size: 13px; color: var(--sumi-500); margin: 0 0 12px; overflow-wrap: anywhere; }
.crumbs a { color: var(--sumi-500); }
.lead { font-size: 16px; color: var(--sumi); background: var(--ai-50); border: 1px solid var(--ai-200); border-radius: 10px; padding: 14px 16px; margin: 16px 0 8px; }
.lead p, .lead li { font-size: 16px; }
.lead p:first-child { margin-top: 0; }
.lead p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px 12px 8px; background: var(--paper); margin: 20px 0 0; }
.toc .toc-title { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ai-900); margin: 0 0 4px 8px; }
.toc ol { margin: 0; padding-left: 30px; }
.toc li { font-size: 14px; margin: 2px 0; }
h3 { font-size: 16px; line-height: 1.5; margin: 24px 0 4px; }
caption { caption-side: top; text-align: left; font-size: 13px; color: var(--sumi-500); padding: 0 0 6px; }
table { margin: 12px 0; }
td, th { overflow-wrap: anywhere; }
ol li, ul li { margin: 4px 0; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.box { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; background: var(--paper); margin: 28px 0 0; }
.box p { font-size: 14px; margin: 0; }
.cta { border: 2px solid var(--ai-500); border-radius: 10px; padding: 16px 18px; background: var(--ai-50); margin: 20px 0 0; }
.cta p, .cta li { font-size: 14px; }
.cta .cta-title { font-family: var(--display); font-weight: 700; color: var(--ai-900); font-size: 17px; margin: 0 0 4px; }
.cta .btn { margin-right: 6px; }
.cta .btn.sub-btn { background: var(--sheet); color: var(--ai-500); border: 1px solid var(--ai-500); }
.cta .btn.sub-btn:hover { background: var(--ai-50); color: var(--ai-700); }
.sources li { font-size: 13px; overflow-wrap: anywhere; }
.posts { display: grid; gap: 12px; margin: 20px 0 0; }
.post { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 18px; }
.post h2 { margin: 0 0 4px; font-size: 17px; padding: 0; border: 0; }
.post h2 a { color: var(--ai-900); text-decoration: none; }
.post h2 a:hover { color: var(--ai-600); text-decoration: underline; }
.post p { margin: 0; font-size: 14px; color: var(--sumi-500); }
/* よくある質問 */
details.qa { border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); margin: 8px 0; }
details.qa summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 700; color: var(--ai-900); font-size: 15px; list-style: none; position: relative; padding-right: 40px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "＋"; position: absolute; right: 14px; top: 11px; color: var(--ai-500); font-weight: 700; }
details.qa[open] summary::after { content: "－"; }
details.qa summary:hover { background: var(--row-hover); border-radius: 10px; }
details.qa summary:focus-visible { outline: 2px solid var(--ai-500); outline-offset: 2px; }
details.qa .ans { padding: 0 16px 12px; }
details.qa .ans p { margin: 8px 0 0; }
@media (max-width: 560px) { table.multi td.num { text-align: left; } table.multi td:empty { display: none; } }
/* 解説記事の一覧: グループ見出し（h2）の下に記事名（h3）を並べる */
.post h3 { margin: 0 0 4px; font-size: 17px; }
.post h3 a { color: var(--ai-900); text-decoration: none; }
.post h3 a:hover { color: var(--ai-600); text-decoration: underline; }
.posts + h2 { margin-top: 28px; }
