@charset "UTF-8";
/* CryptoStyle Labs — style.css（1本だけ。JS なし） */

/* ---------- tokens ---------- */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #1a1c20;
  --ink-2: #393d45;
  --muted: #5f656e;
  --line: #dcd8cf;
  --line-soft: #e9e6df;
  --accent: #23417a;
  --accent-ink: #ffffff;
  --accent-soft: #e5eaf4;
  --accent-line: #a9b8d6;
  --caution-bg: #f7f1e6;
  --caution-line: #d6c19c;
  --code-bg: #1f2329;
  --code-line: #3a404a;
  --code-accent: #8fb0ea;
  --radius: 12px;
  --radius-s: 8px;
  --wrap: 1040px;
  --read: 720px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171b;
    --surface: #1c1f24;
    --surface-2: #23272d;
    --ink: #eceae6;
    --ink-2: #cfccc6;
    --muted: #a3a29e;
    --line: #353a42;
    --line-soft: #2a2e35;
    --accent: #9db6e8;
    --accent-ink: #12161d;
    --accent-soft: #232c3d;
    --accent-line: #4a5f88;
    --caution-bg: #2a251c;
    --caution-line: #6b5a3c;
    --code-bg: #0f1114;
    --code-line: #2c3139;
    --code-accent: #9db6e8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171b;
  --surface: #1c1f24;
  --surface-2: #23272d;
  --ink: #eceae6;
  --ink-2: #cfccc6;
  --muted: #a3a29e;
  --line: #353a42;
  --line-soft: #2a2e35;
  --accent: #9db6e8;
  --accent-ink: #12161d;
  --accent-soft: #232c3d;
  --accent-line: #4a5f88;
  --caution-bg: #2a251c;
  --caution-line: #6b5a3c;
  --code-bg: #0f1114;
  --code-line: #2c3139;
  --code-accent: #9db6e8;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.75;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }

h1, h2, h3 {
  color: var(--ink);
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: balance;
  letter-spacing: 0.03em;
}
h1 { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.625rem); line-height: 1.38; font-weight: 700; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); line-height: 1.45; font-weight: 700; margin: 0 0 0.8em; }
h3 { font-size: 1.1875rem; line-height: 1.5; font-weight: 700; margin: 0 0 0.5em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 0.5em 1em; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); }
.muted { color: var(--muted); }
.small { font-size: 1rem; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.brand-name { font-size: 1.0625rem; }
.brand-mark { display: inline-flex; width: 26px; height: 26px; }
.bm-frame { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.bm-line { stroke: var(--ink); stroke-width: 1.2; }
.bm-fill { fill: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.nav li + li { margin-top: 0; }
.nav a {
  display: inline-block; padding: 6px 10px; border-radius: 6px;
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; line-height: 1.5;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 700; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: 64px 0; border-bottom: 1px solid var(--line-soft); }
.section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: var(--read); margin-bottom: 28px; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 0.875rem; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 500;
}
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.page-head .lead { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 40em; line-height: 1.85; }

.toc { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li + li { margin-top: 0; }
.toc a {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; background: var(--surface);
}
.toc a:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line-soft); }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; line-height: 1.4;
  border: 1px solid var(--accent); min-height: 48px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* 入るもの → 残るもの */
.io { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 44px; align-items: stretch; }
.io-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.io-col h2 { font-size: 1rem; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.io-col ol { margin: 0; padding-left: 1.5em; }
.io-col li { padding-left: 0.2em; }
.io-col li span { color: var(--muted); font-size: 1rem; }
.io-out { border-color: var(--accent-line); }
.io-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.io-arrow svg { width: 28px; height: 28px; transform: rotate(90deg); }
.io-arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .io { grid-template-columns: 1fr 44px 1fr; }
  .io-arrow svg { transform: none; }
}

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--surface); padding: 18px 20px; }
@media (max-width: 480px) { .facts div { padding: 14px 14px; } }
.facts dt { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts dd small { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); margin-top: 2px; }

/* ---------- caution（受けないもの） ---------- */
.caution { background: var(--caution-bg); border: 1px solid var(--caution-line); border-radius: var(--radius); padding: 24px 24px 20px; }
.caution h2, .caution h3 { margin-top: 0; }
.caution ul { margin-bottom: 0.8em; }
.caution p:last-child { margin-bottom: 0; }
.no-list { list-style: none; padding: 0; }
.no-list li { position: relative; padding-left: 1.6em; }
.no-list li::before {
  content: ""; position: absolute; left: 0.15em; top: 0.72em; width: 0.8em; height: 2px; background: var(--ink-2);
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.cards > li + li { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.card .num { display: block; font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.card-icon { width: 44px; height: 44px; margin-bottom: 14px; display: block; }
.ic-line { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.ic-solid { fill: var(--accent); }

/* ---------- 作例 ---------- */
.tool { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.tool:first-of-type { border-top: 0; padding-top: 0; }
.tool figure, .figure { margin: 0; }
.tool figcaption, .figure figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.tool-body h3 { margin-bottom: 8px; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li + li { margin-top: 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 10px; font-size: 1rem; line-height: 1.6; }
.note { font-size: 1rem; color: var(--muted); }
@media (min-width: 820px) {
  .tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
}
.svg-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.svg-box svg { display: block; width: 100%; }

/* SVG 共通 */
.sv-frame { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.sv-bar { fill: var(--surface-2); }
.sv-grid { stroke: var(--line-soft); stroke-width: 1; }
.sv-dot { fill: var(--line); }
.sv-title { fill: var(--muted); font-size: 14px; font-family: inherit; letter-spacing: 0.04em; }
.sv-btn { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.sv-btn-t { fill: var(--accent); font-size: 14px; font-weight: 700; font-family: inherit; }
.sv-label { fill: var(--ink-2); font-size: 14px; font-weight: 700; font-family: inherit; }
.sv-sub { fill: var(--muted); font-size: 14px; font-family: inherit; }
.sv-ink { fill: var(--ink-2); }
.sv-soft { fill: var(--surface-2); }
.sv-acc { fill: var(--accent); }
.sv-acc-soft { fill: var(--accent-soft); }
.sv-line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-line-acc { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-page { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.sv-cell { fill: none; stroke: var(--line); stroke-width: 1; }
.sv-code { fill: var(--code-bg); }
.sv-code-line { fill: var(--code-line); }
.sv-code-acc { fill: none; stroke: var(--code-accent); stroke-width: 1.4; }
.sv-code-t { fill: var(--code-accent); font-size: 12.5px; font-weight: 700; font-family: inherit; }
.sv-code-sub { fill: #8d939c; font-size: 13px; font-family: inherit; }

/* ---------- 段階（進め方） ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.steps > li + li { margin-top: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent);
  color: var(--accent); background: var(--surface); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1;
}
.steps > li::after {
  content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin-bottom: 0.5em; color: var(--ink-2); }
.steps .meta { display: inline-block; font-size: 0.875rem; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 8px; margin-bottom: 6px; font-weight: 500; }
.steps .figure { margin-top: 14px; max-width: 520px; }

/* ---------- 定義リスト（行） ---------- */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; color: var(--ink); }
.rows dd { margin: 0; color: var(--ink-2); }
@media (min-width: 640px) {
  .rows > div { grid-template-columns: 11em 1fr; }
}

/* ---------- 価格の目安 ---------- */
.price { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.price > div { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 18px 20px; border-top: 1px solid var(--line); }
.price > div:first-child { border-top: 0; }
.price dt { color: var(--ink-2); }
.price dd { margin: 0; font-weight: 700; font-size: 1.1875rem; font-feature-settings: "tnum"; }
.price dd small { font-weight: 400; font-size: 1rem; color: var(--muted); white-space: normal; }
@media (min-width: 640px) {
  .price > div { grid-template-columns: 1fr auto; align-items: baseline; }
  .price dd { text-align: right; white-space: nowrap; }
}
.price-note { margin-top: 14px; }

.legal-box { margin-top: 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-s); background: var(--surface); padding: 18px 20px; }
.legal-box h3 { font-size: 1rem; margin-bottom: 6px; }
.legal-box p:last-child { margin-bottom: 0; }

/* ---------- 沿革 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li + li { margin-top: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); }
.timeline time { display: block; font-weight: 700; font-size: 0.9375rem; color: var(--accent); }

/* ---------- 想定の場面 ---------- */
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; vertical-align: 0.15em; margin-left: 6px; }
.scenes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.scenes li + li { margin-top: 0; }
.scenes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 20px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 48px; }
.qa { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.qa h3 { font-size: 1.0625rem; display: flex; gap: 10px; }
.qa h3::before { content: "Q"; color: var(--accent); font-weight: 700; flex: none; }
.qa p, .qa ul { color: var(--ink-2); padding-left: 1.6em; }
.qa ul { padding-left: 3em; }

/* ---------- 連絡 ---------- */
.mail-card { background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 28px 24px; }
.mail-card .label { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 6px; }
.mail-addr { display: inline-block; font-size: clamp(1.125rem, 0.9rem + 1.6vw, 1.625rem); font-weight: 700; word-break: break-all; margin-bottom: 16px; }

/* ---------- CTA ---------- */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; }
.cta h2 { margin-bottom: 0.4em; }
.cta p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 32px; font-size: 1rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.footer-grid p { margin: 0 0 0.4em; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav li + li { margin-top: 0; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.legal { margin: 28px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.copy { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- 2カラム（広い画面） ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

@media (max-width: 480px) {
  body { font-size: 1rem; line-height: 1.8; }   /* 16px */
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .page-head { padding: 40px 0 28px; }
  .caution, .cta, .mail-card { padding-left: 18px; padding-right: 18px; }
  .card { padding: 18px; }
  .steps > li { padding-left: 54px; }
}

/* ---------- v3 追加（2026/10/11・検査役の移植と直し） ---------- */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang { font-size: 1rem; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--accent); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: 1rem; }
.gnav ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gnav li + li { margin-top: 0; }
.gnav a { display: block; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); text-decoration: none; background: var(--surface-2); }
.gnav a:hover { background: var(--accent-soft); color: var(--ink); }
.gnav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (min-width: 860px) {
  .gnav ul { display: flex; gap: 4px; padding-bottom: 14px; }
  .gnav a { background: transparent; padding: 6px 14px; }
  .gnav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
}
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 24px; }
.scene-ex { margin: 6px 0 0; font-size: 1rem; color: var(--ink-2); }
.scene-ex b { color: var(--accent); font-weight: 700; margin-right: 0.4em; }
.next { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 720px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next a { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.next a:hover { border-color: var(--accent-line); }
.next strong { display: block; margin-bottom: 2px; }
.next span { display: block; font-size: 1rem; color: var(--muted); }
.mail-sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0 0; font-size: 1rem; line-height: 1.75; white-space: pre-wrap; font-family: inherit; color: var(--ink); }
.fg-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.fg-box-q { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.fg-box-s { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.fg-label { fill: var(--ink); font-size: 14px; font-family: inherit; }
.fg-label-s { fill: var(--muted); font-size: 13px; font-family: inherit; }
.fg-line { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.fg-arrow { fill: var(--muted); }
