/* Elk Draw CAD 紹介サイト
   色はアプリのアイコン（濃紺・琥珀・青）から取っています。
   本文は、Windowsに入っている BIZ UDPゴシック を先頭に指定（外部のフォントは読み込まない）。 */

/* BIZ UDPゴシックの「_」は、極端に細く、下の端に描かれて見えないので、「_」だけ別のフォントで描く */
@font-face {
  font-family: "UnderscoreFix";
  src: local("Segoe UI"), local("Arial"), local("Helvetica Neue"), local("Helvetica");
  unicode-range: U+005F;
}

:root {
  color-scheme: light;

  /* 紙と墨 */
  --paper: #f4f6f9;
  --paper-2: #e9edf3;
  --surface: #ffffff;
  --ink: #132038;
  --ink-2: #364259;
  --ink-3: #5b6780;
  --line: #d0d7e2;
  --line-strong: #9aa6ba;
  --grid: rgba(19, 32, 56, 0.055);

  /* ブランドの色 */
  --amber: #f2a93b;
  --amber-hi: #ffbc58;
  --amber-line: #c98410;
  --blue: #3e8fde;
  --blue-ink: #1d63b0;

  /* 濃紺の帯（製品の画面を載せる場所） */
  --navy: #0e1829;
  --navy-2: #152540;
  --navy-line: #2a3d5e;
  --on-navy: #e8edf5;
  --on-navy-2: #a9b6cb;

  --sans: "UnderscoreFix", "BIZ UDPGothic", "BIZ UDPゴシック", "Yu Gothic UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --mono: "UnderscoreFix", "Cascadia Mono", "Consolas", ui-monospace, "SFMono-Regular", "Menlo", "BIZ UDGothic",
    "Noto Sans Mono CJK JP", monospace;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.15s;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 700 16px/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber-line); }
.btn--primary:hover { background: var(--amber-hi); color: var(--ink); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--on-navy { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.btn--on-navy:hover { border-color: var(--on-navy-2); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) {
  .hero__cta .btn, .plan__cta .btn, .closing .btn { width: 100%; }
  .btn--lg { padding: 15px 16px; font-size: 16px; }
}
@media (max-width: 420px) { .btn__sub { display: none; } }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 249, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: var(--ink); }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.site-header .btn { margin-left: 4px; }
.site-header .brand + .btn { margin-left: auto; }
@media (max-width: 860px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- 区切りの寸法線（セクションの名前を、寸法として書く） ---------- */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  color: var(--ink-3);
  font: 600 12.5px/1 var(--mono);
  letter-spacing: 0.14em;
}
.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 9px;
  border-inline: 1px solid var(--line-strong);
  background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat;
}
.dim--on-navy { color: var(--on-navy-2); }
.dim--on-navy::before,
.dim--on-navy::after {
  border-inline-color: var(--navy-line);
  background-image: linear-gradient(var(--navy-line), var(--navy-line));
}

.sprite { position: absolute; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--flush { padding-top: 0; }
.h2--gap { margin-bottom: 32px; }
.h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  letter-spacing: 0.01em;
  max-width: 22em;
}
.lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-2); max-width: 40em; }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 6vw, 80px);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%);
  mask-image: linear-gradient(#000 30%, transparent 92%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--ink-3);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: 0.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--amber); }
.hero h1 {
  font-size: clamp(28px, 7.6vw, 64px);
  line-height: 1.22;
  letter-spacing: 0.005em;
}
.hero .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  color: var(--ink-3);
  font: 13px/1.6 var(--mono);
  letter-spacing: 0.02em;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--blue); }
.pc-note {
  display: none;
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 4px solid var(--amber);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 860px), (pointer: coarse) { .pc-note { display: block; } }

.hero__grid { display: grid; gap: clamp(36px, 6vw, 56px); }
.hero__shot { min-width: 0; }
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(36px, 3.4vw, 48px); }
  /* 作図画面は、右の画面の端まで広げる（はみ出た分は、見えない） */
  .hero__shot { margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter))); }
  .hero__shot .window { border-top-right-radius: 0; border-bottom-right-radius: 0; }
}

/* アプリのウィンドウ風の枠 */
.window {
  margin: 0;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(19, 32, 56, 0.4), 0 40px 80px -36px rgba(19, 32, 56, 0.6),
    0 12px 24px -12px rgba(19, 32, 56, 0.25);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding-inline: 12px;
  background: #0a1220;
  color: #8fa0bb;
  font: 12px/1 var(--mono);
  letter-spacing: 0.04em;
}
.window__bar svg { width: 16px; height: 16px; }
.window__ctl { margin-left: auto; display: flex; gap: 18px; }
.window__ctl i { display: block; width: 11px; height: 11px; border: 1px solid #6c7d99; }
.window__ctl i:first-child { border: 0; border-bottom: 1px solid #6c7d99; height: 6px; }
.window img { width: 100%; }
.caption {
  margin-top: 12px;
  color: var(--ink-3);
  font: 12.5px/1.7 var(--mono);
  letter-spacing: 0.03em;
}

/* ---------- 対応ファイル形式 ---------- */
.formats {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: 28px;
}
.formats__grid {
  display: grid;
  gap: 18px 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .formats__grid { grid-template-columns: auto 1fr auto; } }
.formats__title { color: var(--ink); font-weight: 700; }
.formats__rows { display: grid; gap: 12px; }
.formats__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.formats__row dt { width: 5.2em; color: var(--ink-3); font: 600 12px/1 var(--mono); letter-spacing: 0.1em; }
.formats__row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 700 13px/1.3 var(--mono);
  letter-spacing: 0.04em;
}
.tag--jww { background: var(--amber); border-color: var(--amber-line); }
.formats__note { color: var(--ink-3); font-size: 14px; max-width: 24em; }

/* ---------- 機能（取り込む・描く・自動で作る・出す） ---------- */
.feature {
  display: grid;
  gap: 28px 56px;
  align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--rev .feature__text { order: 2; }
}
.feature__no {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
}
.feature h3 { font-size: clamp(22px, 2.8vw, 30px); }
.feature p { margin-top: 16px; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 22px; line-height: 1.8; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 8px; height: 8px; background: var(--blue); }

.convert { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.convert figure { margin: 0; }
.convert figcaption { margin-top: 8px; text-align: center; color: var(--ink-3); font: 12px/1.5 var(--mono); letter-spacing: 0.06em; }
.convert img { border: 1px solid var(--line-strong); background: #fff; }
.convert__before img { width: 190px; max-width: 100%; }
.convert__after img { width: 140px; max-width: 100%; }
.convert__arrow { display: grid; gap: 4px; justify-items: center; color: var(--blue-ink); font: 700 12px/1 var(--mono); letter-spacing: 0.1em; }
.convert__arrow svg { width: 46px; height: 14px; }
.convert__pair { display: flex; gap: 12px; }
@media (max-width: 560px) {
  .convert__arrow { width: 100%; }
  .convert__arrow svg { transform: rotate(90deg); margin-block: 16px; }
  .convert__before img { width: 150px; }
  .convert__after img { width: 112px; }
}

.paper { background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -28px rgba(19, 32, 56, 0.35); margin: 0; }
.paper img { width: 100%; }

/* ---------- 自動で作る（濃紺の帯） ---------- */
.auto { background: var(--navy); color: var(--on-navy-2); position: relative; }
.auto .h2, .auto h3 { color: var(--on-navy); }
.auto .lead { color: var(--on-navy-2); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--navy-line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--navy-2), rgba(21, 37, 64, 0.4));
}
.card__art { color: var(--on-navy-2); }
.card__art svg { width: 100%; height: auto; max-height: 150px; }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; line-height: 1.85; }
.card__tag { color: var(--amber); font: 700 12px/1 var(--mono); letter-spacing: 0.12em; }
.auto__foot { margin-top: 22px; color: var(--on-navy-2); font: 12.5px/1.7 var(--mono); }
.art-line { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: square; }
.art-acc { stroke: var(--amber); stroke-width: 1.8; fill: none; stroke-linecap: square; }
.art-fill { fill: var(--amber); }
.art-text { fill: currentColor; font: 600 9px var(--mono); }

/* ---------- 機能一覧（仕様表） ---------- */
.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.spec--gap { margin-top: 32px; }
.spec th, .spec td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 11em; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.spec th span { display: block; margin-top: 2px; color: var(--ink-3); font: 11.5px/1.5 var(--mono); letter-spacing: 0.08em; font-weight: 400; }
.spec td { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.spec td b { color: var(--ink); }
@media (max-width: 720px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { padding: 18px 0 2px; border-bottom: 0; white-space: normal; }
  .spec td { padding: 0 0 18px; }
}

/* ---------- ひと通りの流れ ---------- */
.steps { display: grid; gap: 32px 28px; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps--gap { margin-top: 36px; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--blue-ink); font: 700 13px/1 var(--mono); letter-spacing: 0.1em; }
.steps b { display: block; color: var(--ink); font-size: 16px; line-height: 1.5; }
.steps span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 動画 ---------- */
.video { display: grid; gap: 28px 56px; align-items: center; margin-top: clamp(48px, 7vw, 88px); padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 760px) { .video { grid-template-columns: 1fr auto; } }
.video h3 { font-size: 22px; }
.video p { margin-top: 12px; max-width: 30em; }
.video__frame { position: relative; width: 250px; max-width: 100%; aspect-ratio: 9 / 16; margin-inline: auto; background: var(--navy); border-radius: 10px; overflow: hidden; }
.video__frame img, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, transparent 50%, rgba(14, 24, 41, 0.55)); cursor: pointer; }
.video__play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--amber); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.video__play:hover span { transform: scale(1.06); }
.video__play span::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }

/* ---------- 料金 ---------- */
.pricing { display: grid; gap: 32px; }
@media (min-width: 960px) { .pricing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } }
.plan { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); }
.plan__name { color: var(--ink-3); font: 700 12.5px/1 var(--mono); letter-spacing: 0.14em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; color: var(--ink); }
.plan__price b { font: 700 clamp(44px, 7vw, 64px)/1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--ink-3); font-size: 15px; }
.plan__lead { margin-top: 14px; padding: 10px 14px; background: var(--paper); border-left: 4px solid var(--amber); color: var(--ink); font-size: 15px; }
.plan .ticks { margin-top: 24px; }
.plan__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.plan__fine { margin-top: 18px; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.buy-flow { counter-reset: flow; display: grid; gap: 0; }
.buy-flow li { counter-increment: flow; position: relative; padding: 0 0 26px 52px; }
.buy-flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 14px/1 var(--mono); }
.buy-flow li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line-strong); }
.buy-flow li:last-child { padding-bottom: 0; }
.buy-flow li:last-child::after { display: none; }
.buy-flow b { display: block; color: var(--ink); line-height: 1.6; }
.buy-flow span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.8; }
.buy-flow-title { margin-bottom: 22px; color: var(--ink); font-size: 18px; }

/* ---------- よくある質問 ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 52px 20px 4px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--ink); transition: transform 0.2s; }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { background: rgba(255, 255, 255, 0.6); }
.faq__a { padding: 0 52px 24px 4px; max-width: 46em; color: var(--ink-2); }
.faq__a p + p { margin-top: 10px; }

/* ---------- 開発者より ---------- */
.about { display: grid; gap: 28px 56px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.about__quote { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.8; color: var(--ink); font-weight: 700; }
.about__text { margin-top: 20px; }
.company { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.company img { width: min(100%, 320px); }
.company dl { display: grid; gap: 10px; margin: 20px 0 0; font-size: 14px; }
.company dt { color: var(--ink-3); font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.1em; }
.company dd { margin: 0; color: var(--ink); }

/* ---------- 最後の呼びかけ ---------- */
.closing { background: var(--navy); color: var(--on-navy-2); padding-block: clamp(56px, 8vw, 96px); text-align: center; }
.closing h2 { color: var(--on-navy); font-size: clamp(26px, 4vw, 40px); margin-inline: auto; }
.closing p { margin: 16px auto 0; max-width: 34em; }
.closing .hero__cta { justify-content: center; }
.closing .caption { color: var(--on-navy-2); margin-top: 20px; }

/* ---------- フッター（図面の表題欄） ---------- */
.footer { padding-block: 56px 36px; }
.titleblock {
  display: grid;
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .titleblock { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.titleblock > div { padding: 14px 16px 16px; background: var(--paper); min-width: 0; }
.titleblock dt { color: var(--ink-3); font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; }
.titleblock dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; line-height: 1.6; font-weight: 700; overflow-wrap: break-word; }
.titleblock dd a { font-size: 14px; }
.titleblock dd small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.titleblock .tb-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
@media (min-width: 860px) { .titleblock .tb-name { grid-column: auto; grid-row: span 2; align-items: flex-start; flex-direction: column; justify-content: space-between; } }
.tb-name svg { width: 44px; height: 44px; }
.tb-name b { display: block; font-size: 22px; line-height: 1.3; color: var(--ink); }
.tb-name small { display: block; color: var(--ink-3); font-size: 12.5px; }
.titleblock .tb-wide { grid-column: span 2; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 28px; font-size: 14px; }
.footer__links a { color: var(--ink-2); }
.footer__copy { margin-top: 18px; color: var(--ink-3); font: 12.5px/1.7 var(--mono); }

/* ---------- 法的ページ ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc__head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.doc__head p { margin-top: 10px; color: var(--ink-3); font: 13px/1.7 var(--mono); }
.doc h1 { font-size: clamp(28px, 4.4vw, 40px); }
.doc__body { max-width: 52em; }
.doc__body h2 { margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--amber); font-size: 20px; }
.doc__body p, .doc__body li { color: var(--ink-2); }
.doc__body p + p { margin-top: 12px; }
.doc__body ol, .doc__body ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 1.6em; }
.doc__body ol { list-style: decimal; }
.doc__body ul { list-style: disc; }
.doc__body strong { color: var(--ink); }
.doc__table { width: 100%; margin: 12px 0; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.doc__table th, .doc__table td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.85; }
.doc__table thead th { background: var(--paper-2); color: var(--ink); font-size: 13px; }
.doc__table tbody th { width: 11em; color: var(--ink); background: rgba(255, 255, 255, 0.55); }
@media (max-width: 720px) {
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table th, .doc__table td { display: block; width: 100%; }
  .doc__table thead { display: none; }
  .doc__table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .doc__table th, .doc__table td { padding: 4px 0; border: 0; }
  .doc__table tbody th { background: transparent; width: 100%; color: var(--ink-3); font: 600 12px/1.6 var(--mono); }
  .doc__table--3 td:nth-of-type(1)::before { content: "取得する場面　"; color: var(--ink-3); font: 12px var(--mono); }
  .doc__table--3 td:nth-of-type(2)::before { content: "目的　"; color: var(--ink-3); font: 12px var(--mono); }
}
.doc__back { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .closing, .pc-note, .hero__cta, .video { display: none; }
  body { background: #fff; }
}
