/* 色・書体・余白の正本。姉妹の公式サイト（かけつけ・ととのえ・てほどき・とりきめ）の型に合わせる（docs/requirements.md §1）。
   違うのは差し色だけ＝銅色（主君 2026-11-08）。コントラスト比は tests/site.test.mjs で見張る。 */
:root {
  --brand: #1f2b4d;        /* 紺（白地 13.9:1） */
  --brand-deep: #151e36;
  --paper: #f6f4ef;        /* 区画の帯の生成り */
  --copper: #9a4f1c;       /* 差し色の銅。申し込みのボタンの地（白い文字 6.0:1）・生成り地の文字 5.4:1 */
  --copper-deep: #7d3f15;
  --copper-light: #e8a87c; /* 紺地の上の明るい銅（紺地 6.8:1） */
  --ledger: #3a4a7a;       /* 台帳の藍（製品の画面の色・ポータルと同じ・給与のリポ frontend/src/theme/themes.ts） */
  --ink: #1f2b4d;
  --muted: #4a5160;
  --line: #e4e1d8;
  --radius: 0.875rem;
  --shadow-soft: 0 6px 20px rgba(31, 43, 77, 0.08);
  --shadow-lift: 0 10px 24px rgba(10, 16, 34, 0.3);
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

/* 見出しの書体は、サイトで使う字だけに絞った物を自前で配る（scripts/subset-font.sh・OFL は fonts/OFL.txt） */
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-black.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { body { font-size: 17px; } }
@media (min-width: 1024px) { body { font-size: 18px; } }

a { color: var(--brand); text-underline-offset: 4px; }
a:hover { color: var(--copper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { max-width: 1240px; } .narrow { max-width: 880px; } }

h1, h2 { font-family: var(--font-display); font-weight: 900; line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }
.nb { display: inline-block; }
h1 { margin: 0; font-size: 30px; }
h2 { margin: 0 0 24px; font-size: 25px; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.6; }
@media (min-width: 768px) { h1 { font-size: 40px; } h2 { font-size: 32px; } }
@media (min-width: 1280px) { h1 { font-size: 46px; } h2 { font-size: 38px; } }

/* ── ヘッダー（白地・上に貼り付く。JS を使わないので透過にはしない） ── */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1280px; height: 64px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .head-in { height: 76px; padding: 0 32px; } }
.logo { display: block; flex-shrink: 0; color: var(--ink); line-height: 1; text-decoration: none; }
.logo-name { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 900; letter-spacing: 0.04em; }
.logo-cat { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.logo-series { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
@media (min-width: 1024px) { .logo-name { font-size: 24px; } }
.head-nav { display: none; }
.head-nav ul, .menu ul { margin: 0; padding: 0; list-style: none; }
.head-nav ul { display: flex; gap: 4px; }
.head-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; text-decoration: none; white-space: nowrap; }
.head-nav a:hover, .head-nav a[aria-current] { background: var(--paper); color: var(--brand); }
.head-act { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1100px) { .head-nav { display: block; } .menu { display: none; } }

.menu { position: relative; }
.menu summary { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--brand); }
.menu summary:hover { background: var(--paper); }
.menu nav { position: absolute; top: 52px; right: 0; width: min(280px, calc(100vw - 32px)); padding: 8px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); outline: 1px solid var(--line); }
.menu nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu nav a:hover, .menu nav a[aria-current] { background: var(--paper); }

/* ── ボタン（丸い形・申し込みだけ銅） ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px; border-radius: 999px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.btn-compact { min-height: 40px; padding: 6px 16px; font-size: 14px; white-space: nowrap; }
.btn-apply { background: var(--copper); color: #fff; box-shadow: var(--shadow-soft); }
.btn-apply:hover { background: var(--copper-deep); color: #fff; }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-inverse { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-inverse:hover { background: #fff; color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ── 区画（白と生成りを交互に・いちばん目立たせる 1 つだけ紺） ── */
main section { padding: 56px 0; }
@media (min-width: 768px) { main section { padding: 64px 0; } }
@media (min-width: 1280px) { main section { padding: 72px 0; } }
section.paper { background: var(--paper); }
section.brand { background: var(--brand); color: #fff; }
section.brand h2, section.brand a:not(.btn) { color: #fff; }
.kicker { margin: 0 0 8px; color: var(--copper); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
section.brand .kicker, .hero .eyebrow { color: var(--copper-light); }
.lead { max-width: 46rem; margin: -8px 0 32px; color: var(--muted); }
section.brand .lead, .hero-lead { color: rgba(255, 255, 255, 0.9); }
.sub { margin: 40px 0 16px; }

/* ── 最初の画面（見せ場）: 紺の地に控えめな方眼と銅の光・一言の約束を大きく・右に「いままで → 頼むだけ → 本物の画面」 ── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 92% 110%, rgba(232, 168, 124, 0.22), transparent 60%),
    radial-gradient(40rem 24rem at 0% 0%, rgba(58, 74, 122, 0.55), transparent 70%),
    linear-gradient(98deg, var(--brand-deep) 0%, var(--brand) 55%, #2c3a63 100%);
  color: #fff;
}
.hero::before {
  position: absolute; inset: 0; content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero::after { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; content: ""; background: linear-gradient(90deg, var(--copper) 0%, var(--copper-light) 50%, var(--ledger) 100%); }
main section.hero { padding: 56px 0 64px; }
@media (min-width: 1024px) { main section.hero { padding: 80px 0 96px; } }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.hero-photo { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px rgba(10, 16, 34, 0.45); outline: 1px solid rgba(255, 255, 255, 0.18); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 30%; }
.hero h1 { font-size: 34px; line-height: 1.4; letter-spacing: 0.01em; }
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1280px) { .hero h1 { font-size: 52px; } }
.hero-name { color: var(--copper-light); }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 14px; border: 1px solid rgba(232, 168, 124, 0.6); border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.hero-claim { margin: 20px 0 0; color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 900; line-height: 1.5; }
@media (min-width: 768px) { .hero-claim { font-size: 28px; } }
.hero-claim b { color: var(--copper-light); font-size: 1.35em; }
.hero-lead { max-width: 40rem; margin: 24px 0 0; }
.btn-hero { min-height: 58px; padding: 12px 30px; font-size: 1.08em; box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.28), var(--shadow-lift); }
.btn-hero .arrow { margin-left: 10px; transition: transform 0.15s; }
.btn-hero:hover .arrow { transform: translateX(3px); }

.ask-before { display: inline-block; margin: 28px 0 0; padding: 10px 18px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--muted); font-size: 15px; line-height: 1.7; }
.ask-before b { white-space: nowrap; text-decoration: line-through; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }
.ask-tag { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; vertical-align: 2px; }
.ask .wrap { text-align: center; }
.ask-steps { display: grid; gap: 32px; max-width: 760px; margin: 32px auto 0; text-align: left; }
.ask-step { margin: 0; }
.ask-step figcaption { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.6; }
.ask-num { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--copper); color: #fff; font-size: 14px; line-height: 1; }
.frame { overflow: hidden; border-radius: 10px; background: #1e1e1e; box-shadow: 0 18px 40px rgba(31, 43, 77, 0.22); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #2c2c2c; }
.frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.frame-bar em { margin-left: 8px; overflow: hidden; color: rgba(255, 255, 255, 0.75); font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; height: auto; padding: 6px 4px; }
.ask-foot { margin: 20px 0 0; color: var(--muted); font-size: 13px; }

.thousand { background: var(--paper); }
.mix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.mix li { padding: 18px 16px; border-radius: var(--radius); background: #fff; outline: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.mix b { color: var(--ink); }
.mix strong { display: block; margin-top: 4px; color: var(--copper); font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1.2; }
.thousand-fact { display: grid; gap: 4px 20px; align-items: center; max-width: 52rem; margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--copper); border-radius: var(--radius); background: #fff; }
@media (min-width: 768px) { .thousand-fact { grid-template-columns: auto 1fr; } }
.thousand-num { color: var(--brand); font-family: var(--font-display); font-size: 36px; font-weight: 900; line-height: 1.2; white-space: nowrap; }

.page-head { background: var(--paper); }
main section.page-head { padding: 48px 0; }
.page-head .lead { margin: 16px 0 0; }

.closing { text-align: center; }
.closing .lead { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }

/* ── 面（カード・手順・注記・表） ── */
.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards li { padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); outline: 1px solid var(--line); }
.cards p { margin: 0; color: var(--muted); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 60px; counter-increment: step; }
.steps li::before { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; content: counter(step); }
.steps li:last-child { padding-bottom: 0; }
.steps p { margin: 0; color: var(--muted); }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; margin: 0 0 12px; padding-left: 28px; }
.checks li::before { position: absolute; top: 0.75em; left: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); content: ""; }

.note { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); }
section.paper .note { background: #fff; }
.note-inverse { margin: 28px 0 0; padding: 16px 20px; border-left: 4px solid var(--copper-light); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.92); font-size: 0.92em; }
.price { margin: 0 0 8px; font-size: 1.15em; font-weight: 700; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
th, td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper); color: var(--brand); }
th[scope="row"] { width: 13em; white-space: nowrap; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; white-space: nowrap; }

.faq details { margin: 0 0 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); outline: 1px solid var(--line); }
.faq summary { padding: 18px 48px 18px 22px; position: relative; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 18px; right: 22px; color: var(--copper); content: "＋"; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ── 個人情報の扱い（本文の形は前のまま） ── */
.policy { padding: 48px 0 64px; }
.policy h1 { margin: 0 0 8px; font-size: 30px; }
.policy h2 { margin: 44px 0 14px; font-size: 23px; }
.policy h3 { margin: 28px 0 8px; font-size: 18px; }
.updated { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .policy h1 { font-size: 34px; } }

/* ── フッター（紺の地） ── */
.site-foot { padding: 48px 0 32px; background: var(--brand); color: #fff; font-size: 15px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-name { margin: 0 0 24px; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.foot-legal, .foot-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.85); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-row p { margin: 0; }
.foot-row .foot-links a { text-decoration: underline; text-underline-offset: 4px; }
.foot-org { display: block; }
.copy { margin-top: 20px !important; color: rgba(255, 255, 255, 0.65); font-size: 14px; }

/* ── 狭い画面: 表を縦に積む ── */
@media (max-width: 680px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; }
  table.stack td { border: 0; border-bottom: 1px solid var(--line); }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { display: block; color: var(--muted); font-size: 13px; font-weight: 700; content: attr(data-label); }
  th[scope="row"] { width: auto; white-space: normal; }
  .btn-compact { padding: 6px 12px; font-size: 13px; }
}
