/* CraftDock site v2 — 「帳簿・罫線」案 / 配色B「海寄り」(2026-11-20 本人選定)
   色はすべて :root のトークンで定義。外部フォント・外部CSS・JSは使わない。
   配色を変えるときは、favicon.svg の色と、各ページの theme-color も合わせる。 */
:root {
  color-scheme: light dark;
  --paper: #f1f6f9;
  --surface: #fafcfd;
  --ink: #10222e;
  --muted: #4a5f6d;
  --rule: #d0dce4;
  --accent: #0b5b7e;
  --stamp: #0b6a62;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Cascadia Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1620;
    --surface: #11202c;
    --ink: #e4edf2;
    --muted: #9fb2bf;
    --rule: #24394a;
    --accent: #7fc8e8;
    --stamp: #6fd0c4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* --- 共通: リンクとフォーカス --- */
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* --- ヘッダー --- */
header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .06em; line-height: 1; }
.brand svg { width: 24px; height: 24px; flex: none; }
.mark-dock { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.mark-hull { fill: currentColor; }
header.site nav { display: flex; gap: 4px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* --- 冒頭 --- */
.hero { display: grid; gap: 28px 48px; align-items: center; padding: 56px 0 44px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(29px, 5.2vw, 46px); line-height: 1.45; letter-spacing: .03em; margin: 0 0 18px; }
.hero h1 .ph { display: inline-block; }
.hero p.lead { color: var(--muted); margin: 0; max-width: 34em; }
.hero p.cta { margin: 18px 0 0; }
.hero p.cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; }
.hero p.cta a::after { content: "\2193"; content: "\2193" / ""; text-decoration: none; display: inline-block; }
.dockfig { width: 100%; max-width: 220px; height: auto; display: block; }
.dockfig .wall { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; }
.dockfig .hull { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dockfig .mast { stroke: var(--ink); stroke-width: 2; stroke-linecap: square; }
.dockfig .block { fill: var(--ink); }
.dockfig .tick { stroke: var(--muted); stroke-width: 1; }
.dockfig .water { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; padding: 88px 0 72px; }
}

/* --- 欄(左に見出し、右に本文。帳簿の摘要欄の並び) --- */
.row { display: grid; gap: 14px 48px; padding: 36px 0; border-top: 1px solid var(--rule); }
.row > h2 { margin: 0; font-size: 16px; line-height: 1.7; letter-spacing: .06em; }
.row > .body { min-width: 0; max-width: 700px; }
.row > .body > :last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .row { grid-template-columns: 220px minmax(0, 1fr); padding: 44px 0; }
  .row > .body:only-child { grid-column: 2; }
}
h3 { font-size: 17px; line-height: 1.6; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.note { color: var(--muted); font-size: 14px; }

/* --- 準備している道具(カードではなく、罫線で区切った行) --- */
.items { border-top: 1px solid var(--ink); margin-bottom: 16px; }
.item { display: grid; gap: 10px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.item h3 { margin: 0; }
.item h3 small { display: block; margin-top: .25em; font-size: .72em; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.item p { margin: 0; }
.stamp { display: inline-block; margin-top: 8px; padding: 1px 8px; font-size: 12px; line-height: 1.7; letter-spacing: .08em; color: var(--stamp); border: 1px solid currentColor; border-radius: 2px; }
dl.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dotted var(--rule); font-size: 14px; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; font-weight: 600; }
@media (min-width: 640px) {
  .item { grid-template-columns: 190px minmax(0, 1fr); }
}

/* --- 公式LINE --- */
.line-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--rule); padding: 20px; }
.line-box .txt { flex: 1 1 240px; min-width: 0; }
.line-box .txt p { margin-bottom: 14px; }
.line-box .btn { display: inline-block; line-height: 0; padding: 4px 0; }
.line-box .btn img { display: block; height: 36px; width: auto; max-width: 100%; border: 0; }
.line-box .btn:focus-visible { outline-offset: 0; }
.qrbox { margin: 0; width: 156px; flex: none; }
.qrbox img.qr { display: block; width: 120px; height: 120px; background: #fff; padding: 4px; }
.qrbox figcaption { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* スマートフォンでは自分の画面のQRは読み取れないので出さない(lazy指定のため通信もしない) */
@media (max-width: 639px) { .qrbox { display: none; } }
.row:target > h2 { color: var(--accent); }

/* --- フッター(帳簿の締めの二重線) --- */
footer.site { margin-top: 28px; border-top: 3px double var(--ink); padding: 22px 0 56px; color: var(--muted); font-size: 13px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 0 0 8px; }

/* --- 第2段階のページ(特商法など)で使う部品。名前は v1 と同じ --- */
.todo { background: #fff1c2; color: #6b4e00; padding: 0 4px; border-radius: 3px; font-size: .85em; }
ul.plain { padding-left: 1.2em; margin: 0 0 16px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec th, table.spec td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
table.spec th { background: var(--surface); width: 30%; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease, border-color .15s ease; }
}
@media print {
  header.site nav, .skip, .dockfig { display: none; }
  body { background: #fff; color: #000; }
}
