/* 名刺箱のサイトの共通の見た目（依頼書6-1・6-2・D-067 案 C「道具としての端正さ」）。
   白地と墨色の文字・細い線・そろった列・等幅の数字。識別色の黄（#FFC800）は主なボタンだけに使い、白地の文字には使わない。
   地に色を敷いた角丸の箱・影・札は作らない（角を丸めるのはボタンと名刺の画像だけ）。
   橙（--warn）は下書きの印・確かめどころだけ。外のフォント・解析・広告は読み込まない（7-9） */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --text: #1c1c1e;
  --text-2: #636366;
  --line: #e5e5ea;
  --line-soft: #f0f0f3;
  --fill: #f1f1f4;
  --fill-hover: #e6e6eb;
  --selected: #e9e9ee;
  --link: #1c1c1e;
  --card-line: #c7c7cc;
  --scan: #ffc800;
  --on-scan: #1c1c1e;
  --warn: #9a5200;
  --paper: #fbfbf8;
  --radius: 8px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-grouped: #1c1c1e;
    --text: #f2f2f7;
    --text-2: #a1a1a6;
    --line: #38383a;
    --line-soft: #2c2c2e;
    --fill: #2c2c2e;
    --fill-hover: #3a3a3c;
    --selected: #2c2c2e;
    --link: #f2f2f7;
    --card-line: #48484a;
    --warn: #ffb35c;
    --paper: #f4f4f0;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-grouped: #1c1c1e;
  --text: #f2f2f7;
  --text-2: #a1a1a6;
  --line: #38383a;
  --line-soft: #2c2c2e;
  --fill: #2c2c2e;
  --fill-hover: #3a3a3c;
  --selected: #2c2c2e;
  --link: #f2f2f7;
  --card-line: #48484a;
  --warn: #ffb35c;
  --paper: #f4f4f0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-feature-settings: "palt"; line-height: 1.4; font-weight: 700; }
/* 文字のリンクは本文の色に細い下線（アプリの tint と同じ墨色。青にしない） */
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
/* 日付・枚数・値段・表の数字は等幅にして桁をそろえる */
table, .updated, .numeric, time { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 上の帯 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .inner {
  max-width: 960px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* 本文 */
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.page.wide { max-width: 960px; }
.page h1 { font-size: 30px; margin: 0 0 12px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.page h3 { font-size: 18px; margin: 28px 0 6px; }
.page p, .page ul, .page ol, .page table { margin: 0 0 14px; }
.page li { margin: 4px 0; }
.lead { font-size: 18px; color: var(--text); }
.muted { color: var(--text-2); font-size: 14px; }
.breadcrumb { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-2); }
.updated { font-size: 14px; color: var(--text-2); }

table.plain { border-collapse: collapse; width: 100%; font-size: 15px; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
table.plain thead th { font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--text-2); }
/* 「項目 → 選ぶもの」の表：左の列は灰色の小さな文字で幅をそろえる（アプリの FieldTableRow と同じ形） */
table.plain tbody th { font-weight: 400; font-size: 14px; color: var(--text-2); width: 30%; }
table.plain td.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  table.plain.stack, table.plain.stack tbody, table.plain.stack tr, table.plain.stack th, table.plain.stack td { display: block; }
  table.plain.stack thead { display: none; }
  table.plain.stack tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.plain.stack th, table.plain.stack td { border: 0; padding: 2px 0; }
  table.plain.stack tbody th { width: auto; }
  table.plain.stack td[data-label]::before { content: attr(data-label) "："; color: var(--text-2); }
}

/* ボタン */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--fill); color: var(--text);
}
.button:hover { background: var(--fill-hover); }
.button.primary { background: var(--scan); color: var(--on-scan); }
.button.primary:hover { filter: brightness(.95); }
.button[disabled] { opacity: .5; cursor: default; }

/* 「誰ともつながりません」（D-067：黒い囲みをやめ、見出しと番号つきの4行・細い線にした。アプリの NumberedList と同じ形） */
.isolated { margin: 32px 0 24px; }
.isolated h2 { border: 0; margin: 0 0 8px; padding: 0; font-size: 22px; }
ol.numbered { list-style: none; counter-reset: item; padding: 0; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
ol.numbered > li {
  counter-increment: item; position: relative; margin: 0; padding: 12px 0 12px 32px; border-top: 1px solid var(--line);
}
ol.numbered > li::before {
  content: counter(item); position: absolute; left: 0; top: 12px; width: 20px;
  font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums;
}

/* 知らせ・下書きの印（地を塗らず、細い線と文字で示す） */
.note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 16px 0; }
.draft-banner {
  border-top: 2px solid var(--warn); border-bottom: 1px solid var(--line); color: var(--warn);
  padding: 10px 0 12px; margin: 0 0 20px; font-weight: 600;
}
.draft-banner span { display: block; font-weight: 400; font-size: 15px; color: var(--text); }

/* 紹介（PR）の段 */
.disclosure { font-size: 16px; margin: 8px 0 16px; }
/* 「PR」の印は法の求める表示なので残す（色の地は塗らず、細い線の四角） */
.pr-label {
  display: inline-block; border: 1px solid currentColor; border-radius: 2px; padding: 0 6px;
  font-size: 14px; font-weight: 700; line-height: 1.5; margin-left: 8px; vertical-align: 3px;
}
.products h3 { margin-top: 20px; }
.product-list { list-style: none; padding: 0; margin: 0; }
.product-list li { border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0; }
.product-list a { font-weight: 600; }
.product-list .why { display: block; color: var(--text-2); font-size: 15px; white-space: pre-line; }

/* 目次 */
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); margin: 0; }
.toc a { display: block; padding: 12px 0; text-decoration: none; color: var(--text); }
.toc a strong { display: block; font-size: 17px; font-weight: 600; }
.toc a span { color: var(--text-2); font-size: 15px; }
.toc a:hover strong { text-decoration: underline; }

/* よくある質問 */
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style-position: outside; }
details.faq div { padding: 0 0 12px; }

/* 下の帯 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--text-2); }
.site-footer .inner { max-width: 960px; margin: 0 auto; padding: 20px 16px 28px; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 4px 0; }

/* トップ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: center; margin-bottom: 8px; }
.hero h1 { font-size: 34px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .actions + p { margin-top: 10px; }
/* 名刺の見本は、アプリの名刺の画像と同じく細い線の縁（影は付けない） */
.hero-card {
  background: var(--paper); color: #1c1c1e; border-radius: 4px; border: 1px solid var(--card-line);
  aspect-ratio: 91 / 55; padding: 18px 20px; font-size: 12px; line-height: 1.5; position: relative;
}
.hero-card .co { font-weight: 600; font-size: 12px; }
.hero-card .nm { font-size: 22px; font-weight: 700; letter-spacing: 3px; margin-top: 14px; }
.hero-card .ad { color: #444; font-size: 10.5px; margin-top: 12px; }
.hero-card .sample { position: absolute; right: 10px; top: 8px; font-size: 11px; color: #6e6e73; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .page h1 { font-size: 26px; }
}
.features { width: 100%; border-collapse: collapse; }
.features th, .features td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.features th { width: 28%; font-weight: 400; color: var(--text-2); font-size: 15px; }
@media (max-width: 560px) {
  .features, .features tbody, .features tr, .features th, .features td { display: block; width: auto; }
  .features th { border: 0; padding-bottom: 0; }
}
