/* GND Technologies — サイト v5（2026-11-08）
   設計：仕様書のように読めるサイト。左に見出し、右に本文の2列を基本にし、
   臙脂は「面」ではなく「印」として使う（短い文字・太い罫・番号）。白地に臙脂の面を置くのは1ページ1か所、
   しかも文字は大きく短く。本文を白抜きにしない。角丸なし。外部フォントなし。 */
:root {
  --ink: #1f1a1b;          /* 本文（臙脂寄りの黒） */
  --ink-2: #4e4648;        /* 補足 */
  --ink-3: #8a8183;        /* 注記・キャプション */
  --paper: #ffffff;
  --paper-2: #f7f4f3;      /* 淡い面（臙脂寄りの灰） */
  --tint: #f3e7e8;         /* 臙脂の薄い面 */
  --line: #e6dfe0;
  --line-2: #cfc3c5;
  --accent: #8c2f39;
  --accent-2: #6d242c;
  --max: 1120px;
  --gutter: 28px;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  --latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* type scale */
  --t-xs: 12px; --t-s: 13.5px; --t-b: 15.5px; --t-m: 17px; --t-l: 22px; --t-xl: clamp(26px, 3vw, 34px); --t-hero: clamp(30px, 4.4vw, 48px);
}

* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.9; font-size: var(--t-b); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { text-wrap: balance; margin: 0; word-break: auto-phrase; line-break: strict; text-spacing-trim: trim-both; }
/* 本文：行末をそろえる（最終行は左）。禁則は strict、行末の約物はぶら下げ、固有名詞は折り返さない */
p, li, dd, td, dt, summary { line-break: strict; }
/* 両端揃えは1行が長い本文だけ。カードなど幅の狭い列で使うと字間が開いて全角詰めのように見えるため、左揃えのままにする */
/* 両端揃えは使わない（文字間が開いて読みにくくなるため。2026-11-09） */
.card p, .biz p, .flow li span, .note { text-align: left; }
.nb { white-space: nowrap; }
/* 幅が狭い画面では両端揃えをやめる（文節折り返しと併用すると字間が開きすぎるため）。見出しの手動改行も解除して自動の文節折り返しに任せる */
@media (max-width: 720px) {
  h1 br, h2 br { display: none; }
}
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); flex: none; display: block; }
.brand-text { font-family: var(--latin); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 22px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.current { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); font-family: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-block; text-decoration: none; padding: 12px 22px; font-size: 14px; font-weight: 600; border: 1px solid var(--accent); color: #fff !important; background: var(--accent); transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }

/* ---------- hero（左：見出し／右：事業の要点カード） ---------- */
.hero-brand { padding: 72px 0 72px; border-bottom: 1px solid var(--line); }
.hero-brand .eyebrow { margin-bottom: 20px; }
.hero-brand h1 { font-size: var(--t-hero); font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; margin-bottom: 26px; }
.hero-brand p.hero-lead { color: var(--ink-2); font-size: var(--t-b); line-height: 2; max-width: 36em; margin-bottom: 36px; word-break: auto-phrase; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 40px; margin: 56px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts > div { min-width: 0; }
.facts dt { font-size: var(--t-xs); color: var(--accent); letter-spacing: .12em; margin: 0 0 6px; font-weight: 700; }
.facts dd { font-size: var(--t-s); color: var(--ink); margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- サブページ見出し ---------- */
.page-head { padding: 60px 0 52px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: var(--t-xl); font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.page-head p { color: var(--ink-2); max-width: 40em; word-break: auto-phrase; }

/* ---------- sections（左：見出し列／右：本文列） ---------- */
section { padding: 72px 0; }
section.alt, section.band { background: var(--paper-2); border-block: 1px solid var(--line); }
section + section.alt, section + section.band { border-top: none; }
.sec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.sec-head { position: sticky; top: 92px; }
.eyebrow { font-family: var(--latin); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em; color: var(--accent); margin: 0 0 12px; text-transform: uppercase; }
h2 { font-size: var(--t-l); font-weight: 700; line-height: 1.5; letter-spacing: 0.01em; }
h3 { font-size: var(--t-m); font-weight: 700; line-height: 1.6; }
.lead { color: var(--ink-2); max-width: 40em; margin-bottom: 40px; word-break: auto-phrase; }
.sec-body > .lead:last-child { margin-bottom: 0; }
h1, h2, h3, .lead, .card p, td, .flow li span, .rule p { word-break: auto-phrase; }

/* ---------- 3項目（理由） ---------- */
.grid { display: grid; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 36px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
.card { min-width: 0; }
.card .num { font-family: var(--latin); font-size: var(--t-xs); font-weight: 700; color: var(--accent); letter-spacing: .14em; margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; border-top: 2px solid var(--ink); padding-top: 16px; }
.card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }

/* ---------- 事業（主・従） ---------- */
.biz { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.biz .card { padding: 0; display: flex; flex-direction: column; gap: 10px; }
.biz .role { font-family: var(--latin); font-size: var(--t-xs); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; font-weight: 700; }
.biz .card.main .role { color: var(--accent); }
.biz .card h3 { font-size: 20px; border-top: 2px solid var(--ink); padding-top: 14px; margin: 0 0 4px; }
.biz .card.main h3 { border-top-color: var(--accent); }
.biz .card p { font-size: var(--t-b); }
.biz .card a.more { margin-top: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); align-self: flex-start; }
.biz .card a.more:hover { text-decoration: underline; }

/* ---------- 決めていること（見出し列＋本文列の定義リスト） ---------- */
.rules { border-top: 2px solid var(--ink); }
.rule { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.rule h3 { font-size: 16px; }
.rule p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }

/* ---------- 工程（本当に順序があるので番号を付ける） ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-2); }
.flow li { padding: 20px 20px 22px; font-size: 15px; font-weight: 700; counter-increment: s; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; background: var(--paper); }
.flow li::before { content: counter(s, decimal-leading-zero); display: inline-block; font-family: var(--latin); font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 7px; letter-spacing: .08em; margin-bottom: 12px; }
.flow li span { display: block; font-weight: 400; color: var(--ink-2); font-size: 13.5px; margin-top: 4px; line-height: 1.75; }

/* ---------- サービス ---------- */
.svc { border-top: 2px solid var(--ink); padding: 26px 0 30px; }
.svc + .svc { border-top: 1px solid var(--line-2); }
.svc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.svc-head h3 { font-size: 18px; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--tint); padding: 2px 10px; white-space: nowrap; }
.svc p { color: var(--ink-2); }
.svc ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14.5px; }
.svc ul li { margin-bottom: 4px; }
.exclude { margin-top: 36px; padding: 22px 26px; background: var(--paper-2); border-left: 3px solid var(--accent); }
section.alt .exclude, section.band .exclude { background: var(--paper); }
.exclude-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.exclude ul { margin: 0 0 10px; padding-left: 1.1em; font-size: 14px; color: var(--ink-2); }
.exclude ul li { margin-bottom: 2px; }
.exclude p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; border-top: 2px solid var(--ink); }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
th { width: 200px; font-weight: 700; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-2); }
.parts-table th { width: 220px; }

/* ---------- 許可の表示（臙脂の面：短く大きく） ---------- */
.license { background: var(--accent); color: #fff; padding: 36px 40px; display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: baseline; }
.license .l-label { font-family: var(--latin); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); font-weight: 700; grid-column: 1 / -1; }
.license .l-no { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.license .l-meta { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.8; }
.notice { border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); padding: 18px 0; font-size: 14.5px; color: var(--ink-2); }
.notice strong { color: var(--ink); font-weight: 700; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.8; }

/* ---------- 商品 ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.product img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); width: 100%; border: 1px solid var(--line); }
.product .p-body { padding: 10px 0 0; font-size: 13.5px; line-height: 1.7; }
.product .p-price { color: var(--accent); margin-top: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.products-empty { background: var(--paper-2); border: 1px solid var(--line); padding: 34px 24px; color: var(--ink-2); font-size: 14.5px; text-align: center; }
.products[hidden], .products-empty[hidden] { display: none; }

/* ---------- privacy ---------- */
.policy > * { max-width: 820px; }
.policy h2 { font-size: 18px; margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.policy p, .policy li { color: var(--ink-2); font-size: 14.5px; }
.policy p { margin-bottom: 10px; }
.policy ol, .policy ul { padding-left: 1.4em; margin: 8px 0 10px; }
.policy li { margin-bottom: 6px; }
.policy ol.paren { list-style: none; padding-left: 0; counter-reset: p; }
.policy ol.paren > li { counter-increment: p; padding-left: 2.6em; text-indent: -2.6em; }
.policy ol.paren > li::before { content: "（" counter(p) "）"; display: inline-block; width: 2.6em; text-indent: 0; }
.policy .law { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.policy table { min-width: 0; margin-top: 10px; }
.policy th { width: 180px; }

/* ---------- faq ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 15.5px; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--accent); font-family: var(--latin); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; padding: 0 0 20px; margin: 0; }

/* ---------- mini game ---------- */
/* ---------- 事業内容（トップのカードと一覧ページ） ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.biz { display: flex; flex-direction: column; gap: 0; min-width: 0; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-top: 3px solid var(--ink); padding: 22px 22px 20px; transition: border-color .15s, background .15s; }
.biz:hover { border-color: var(--accent); }
.biz-no { font-family: var(--latin); font-size: var(--t-xs); font-weight: 700; color: var(--accent); letter-spacing: .14em; margin: 0 0 8px; }
.biz h3 { font-size: 17px; margin-bottom: 10px; }
.biz p { color: var(--ink-2); font-size: 14px; line-height: 1.85; margin: 0 0 18px; flex: 1; }
.biz p.biz-no { flex: 0 0 auto; }
.biz-link { font-size: 13px; font-weight: 700; color: var(--accent); }
.biz-link::after { content: "　→"; }
.svc-list { display: grid; gap: 0; }
.svc-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px 48px; padding: 44px 0; border-top: 1px solid var(--line-2); }
.svc-item:first-child { border-top: 2px solid var(--ink); }
.svc-item-head h2 { font-size: 22px; line-height: 1.5; }
.svc-item-body ul { margin: 18px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14.5px; }
.svc-item-body ul li { margin-bottom: 6px; }
.svc-item-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 860px) { .biz-grid { grid-template-columns: 1fr; } .svc-item { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } }

/* ---------- レトロ携帯機（隠しゲーム） ---------- */
.handheld { max-width: 520px; background: #2a2426; padding: 18px 18px 22px; user-select: none; -webkit-user-select: none; }
.hh-screen { background: #0e0c0c; padding: 12px; position: relative; }
.hh-screen canvas { display: block; width: 100%; aspect-ratio: 4 / 3; background: #f4efe9; touch-action: none; }
.hh-screen::after { content: ""; position: absolute; inset: 12px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px); }
.hh-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.hh-controls button { appearance: none; border: 0; font: 700 14px var(--latin); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.dpad { display: grid; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); }
.dpad button, .dpad .c { background: #1a1617; color: #cfc3c5; }
.dpad button:active, .dpad button.on { background: #3a3335; color: #fff; }
.hh-mid { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hh-mark { color: #8a8183; }
.hh-full { background: #1a1617; color: #cfc3c5; padding: 6px 10px; font: 700 11px var(--sans) !important; letter-spacing: .04em; }
.hh-full:hover, .hh-full:active { background: #3a3335; color: #fff; }
/* 全画面：画面を縦に収め、操作ボタンを下に置く */
.handheld:fullscreen, .handheld.hh-fake-full { position: fixed; inset: 0; z-index: 1000; max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 16px; box-sizing: border-box; overflow: hidden; }
.handheld:fullscreen .hh-screen, .handheld.hh-fake-full .hh-screen { flex: 0 1 auto; min-height: 0; width: min(100%, calc((100vh - 170px) * 4 / 3)); }
.handheld:fullscreen .hh-controls, .handheld.hh-fake-full .hh-controls { width: min(100%, 520px); margin-top: 0; }
.ab { display: flex; gap: 14px; align-items: flex-end; }
.ab button { width: 50px; height: 50px; color: #fff; background: var(--accent); }
.ab button.b { background: #5a3f43; margin-bottom: 18px; }
.ab button:active, .ab button.on { filter: brightness(1.25); }
@media (max-width: 420px) { .handheld { padding: 12px 12px 16px; } .dpad { grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px); } .ab button { width: 44px; height: 44px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); border-top: none; padding: 52px 0 40px; }
.site-footer .brand, .site-footer .brand-text { color: #fff; }
.site-footer .copyright { color: rgba(255,255,255,.62); }
.footer-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { font-size: 12.5px; color: var(--ink-3); }
.footer-legal { font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sec { grid-template-columns: 1fr; gap: 24px; }
  .sec-head { position: static; }
    .grid-3, .grid-2, .biz { grid-template-columns: 1fr; gap: 28px; }
  .rule { grid-template-columns: 1fr; gap: 6px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .license { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .hero-brand { padding: 48px 0 44px; }
  .facts { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .page-head { padding: 44px 0 40px; }
  section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a.current { border-bottom-color: var(--line); color: var(--accent); }
  th { width: auto; display: block; padding-bottom: 0; border: none; }
  td { display: block; padding-top: 2px; }
  table { min-width: 0; }
    .flow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 隠しコマンドで出るゲーム（2026-11-09） */
.arcade { position: fixed; inset: 0; z-index: 900; background: rgba(31,26,27,.72); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.arcade-box { position: relative; width: min(100%, 520px); }
.arcade-box .handheld { max-width: none; }
.arcade-close { position: absolute; right: 0; top: -34px; appearance: none; border: 0; background: transparent; color: #fff; font: 600 13px var(--sans); cursor: pointer; padding: 6px 0; }
.arcade-note { color: #d9d0d1; font-size: 12px; line-height: 1.7; margin: 10px 0 0; text-align: left; }
body.arcade-open { overflow: hidden; }
@media (max-height: 640px) { .arcade { align-items: flex-start; } .arcade-box { margin-top: 36px; } }

/* 規格デコーダー（中古PC部品ページ、2026-11-09） */
.decoder { border: 1px solid var(--line); background: var(--paper); padding: 22px; }
.decoder form { display: flex; gap: 10px; flex-wrap: wrap; }
.decoder input { flex: 1 1 240px; min-width: 0; font: 15px var(--sans); padding: 11px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.decoder input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.decoder .btn { padding: 11px 20px; font-size: 14px; cursor: pointer; }
.decoder .samples { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.decoder .samples button { appearance: none; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; padding: 0 2px; text-decoration: underline; text-underline-offset: 3px; }
.decoder-out { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.decoder-out[hidden] { display: none; }
.decoder-out table { width: 100%; border-collapse: collapse; font-size: 14px; }
.decoder-out th { text-align: left; white-space: nowrap; color: var(--ink-2); font-weight: 600; padding: 7px 14px 7px 0; vertical-align: top; width: 9em; }
.decoder-out td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; text-align: left; }
.decoder-out tr:last-child td { border-bottom: 0; }
.decoder-out .miss { color: var(--ink-2); }
.decoder-out .caution { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; text-align: left; }

/* 部品えらび（2026-11-09） */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-h { margin: 34px 0 6px; font-size: 17px; }
.picker { border: 1px solid var(--line); background: var(--paper); padding: 22px; }
.pk-step { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pk-step:first-child { padding-top: 0; }
.pk-step-h { font-weight: 600; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.pk-n { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: var(--ink); color: #fff; font: 700 12px var(--latin); }
.pk-step.done .pk-n { background: var(--accent); }
.pk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-opts button { appearance: none; font: 14px var(--sans); padding: 9px 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.pk-opts button:hover { border-color: var(--ink); }
.pk-opts button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pk-out { margin-top: 18px; padding: 18px; background: var(--paper-2); }
.pk-out[hidden] { display: none; }
.pk-lead { font-weight: 600; margin: 0 0 12px; text-align: left; }
.pk-out table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pk-out th { text-align: left; white-space: nowrap; padding: 10px 14px 10px 0; vertical-align: top; width: 8em; color: var(--accent); font-weight: 700; border-top: 1px solid var(--line); }
.pk-out td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.pk-out td p { margin: 0 0 6px; line-height: 1.75; }
.pk-out td p:last-child { margin-bottom: 0; }
.pk-how { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.75; text-align: left; }
.pk-links { margin: 14px 0 0; font-size: 14px; }
.pk-links a { color: var(--accent); }
.pk-reset { appearance: none; border: 0; background: transparent; color: var(--ink-3); font: 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pk-out .caution { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; text-align: left; }
@media (max-width: 720px) { .picker, .decoder { padding: 16px; } .pk-out th, .decoder-out th { display: block; width: auto; padding-bottom: 2px; border-top: 0; } .pk-out td, .decoder-out td { display: block; border-top: 0; padding-top: 0; padding-bottom: 12px; } .pk-out tr, .decoder-out tr { display: block; border-top: 1px solid var(--line); padding-top: 8px; } }

/* スペック診断（2026-11-09） */
.spec { border: 1px solid var(--line); background: var(--paper); padding: 22px; }
.sp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sp-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.sp-f select { font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); max-width: 100%; }
.sp-out { margin-top: 20px; }
.sp-out[hidden] { display: none; }
.sp-power { background: var(--ink); color: #fff; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 20px; align-items: end; }
.sp-label { grid-column: 1; font: 700 12px var(--latin); letter-spacing: .14em; color: #cfc3c5; align-self: start; }
.sp-num { grid-column: 1; font: 700 48px/1 var(--latin); letter-spacing: -.02em; }
.sp-tier { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; line-height: 1.7; color: #e8e0e1; }
.sp-bar { grid-column: 1 / -1; height: 6px; background: #4e4648; margin-top: 16px; }
.sp-bar span { display: block; height: 100%; background: var(--accent); }
.sp-bal { padding: 14px 16px; border-left: 4px solid var(--line-2); background: var(--paper-2); margin-top: 14px; text-align: left; }
.sp-bal.ok { border-color: #3f6b4f; } .sp-bal.low { border-color: #c9a24a; } .sp-bal.high { border-color: var(--accent); }
.sp-bal strong { font-size: 14px; } .sp-bal p { margin: 4px 0 0; font-size: 14px; line-height: 1.75; }
.sp-out table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.sp-out th { text-align: left; white-space: nowrap; padding: 8px 14px 8px 0; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-out td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.sp-tips { margin: 14px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
.sp-out .caution { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; text-align: left; }
@media (max-width: 720px) { .spec { padding: 16px; } .sp-form { grid-template-columns: 1fr; } .sp-num { font-size: 40px; } }

/* 修理の簡易見積もり（2026-11-09） */
.estimate { border: 1px solid var(--line); background: var(--paper); padding: 22px; }
.es-step { padding: 12px 0; border-bottom: 1px solid var(--line); }
.es-step:first-child { padding-top: 0; }
.es-h { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.estimate input { width: 100%; box-sizing: border-box; font: 14px var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); margin-bottom: 10px; }
.estimate input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.es-out { margin-top: 18px; padding: 18px; background: var(--paper-2); }
.es-out[hidden] { display: none; }
.es-out table { width: 100%; border-collapse: collapse; font-size: 14px; }
.es-out th { text-align: left; white-space: nowrap; padding: 10px 14px 10px 0; vertical-align: top; width: 10em; color: var(--accent); font-weight: 700; border-top: 1px solid var(--line); }
.es-out td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.75; }
.es-out .caution { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; text-align: left; }
@media (max-width: 720px) { .estimate { padding: 16px; } .es-out th { display: block; width: auto; padding-bottom: 2px; border-top: 0; } .es-out td { display: block; border-top: 0; padding-top: 0; padding-bottom: 12px; } .es-out tr { display: block; border-top: 1px solid var(--line); padding-top: 8px; } }

/* 起動演出（トップページ、初回のみ。2026-11-09） */
/* 演出が始まる前に白いページが先に見えないよう、boot-pre.js が <html> に booting を付けているあいだは黒くしておく（2026-11-22） */
html.booting { background: #0e0c0c; }
html.booting body { visibility: hidden; }
.boot { position: fixed; inset: 0; z-index: 2000; background: #0e0c0c; color: #d9d0d1; font: 14px/1.7 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; padding: 28px 32px; box-sizing: border-box; cursor: pointer; transition: opacity 1.2s ease; }
.boot.out { opacity: 0; pointer-events: none; }
.boot .bt-logo { color: var(--accent); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.boot .bt-logo svg { display: block; }
.boot pre { margin: 0; white-space: pre-wrap; font: inherit; }
.boot .bt-ok { color: #9fcf9f; }
.boot .bt-skip { position: absolute; right: 24px; bottom: 20px; font-size: 12px; color: #8a8183; }
.boot .cur { display: inline-block; width: .6em; height: 1em; background: #d9d0d1; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 720px) { .boot { font-size: 12px; padding: 20px 16px; } }
@media (max-width: 720px) { .sp-out th { display: block; border-bottom: 0; padding: 10px 0 0; } .sp-out td { display: block; padding-top: 2px; } }

/* 起動演出：事業別（2026-11-09） */
.boot .bt-body { min-height: 0; }
.boot-console { display: flex; flex-direction: column; }
.boot-console .bt-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.bt-stage { text-align: center; color: #fff; font-family: var(--latin); }
.bt-mark { color: var(--accent); display: inline-block; animation: pop .45s ease-out; }
.bt-drop .bt-mark { animation: drop .8s cubic-bezier(.3,1.4,.5,1); }
.bt-word { font: 700 34px/1.2 var(--latin); letter-spacing: .08em; margin-top: 14px; animation: pop .4s ease-out; }
.bt-sub { font: 700 13px/1.6 var(--latin); letter-spacing: .18em; color: #cfc3c5; margin-top: 10px; animation: pop .4s ease-out; }
.bt-cart { width: 120px; height: 80px; margin: 0 auto 18px; background: #4e4648; position: relative; transform: translateY(-28px); transition: transform .5s; box-shadow: inset 0 -10px 0 #2a2426; }
.bt-cart::after { content: ""; position: absolute; left: 18px; right: 18px; top: 14px; height: 30px; background: var(--accent); }
.bt-cart.in { transform: translateY(0); }
.bt-ring { width: 72px; height: 72px; margin: 0 auto; border: 3px solid #4e4648; animation: ring 1.4s ease-out infinite; }
.bt-stage { position: relative; }
.bt-ringbox { position: relative; display: inline-block; }
.bt-ring.on { border-color: var(--accent); position: absolute; left: 50%; top: 50%; margin: -36px 0 0 -36px; }
.bt-mark.still, .bt-word.still { animation: none; }
.bt-sub.blink { animation: blink 1s steps(1) infinite; }
.bt-led { width: 14px; height: 14px; margin: 0 auto 16px; background: #3a3234; box-shadow: 0 0 0 3px #2a2426; }
.bt-led.on { background: var(--accent); box-shadow: 0 0 0 3px #2a2426, 0 0 18px rgba(140,47,57,.8); }
.bt-bat { display: inline-flex; gap: 4px; padding: 5px; border: 3px solid #4e4648; position: relative; margin-bottom: 6px; }
.bt-bat::after { content: ""; position: absolute; right: -9px; top: 50%; width: 6px; height: 14px; margin-top: -7px; background: #4e4648; }
.bt-bat i { display: block; width: 22px; height: 30px; background: #2a2426; }
.bt-bat i.on { background: var(--accent); }
.bt-gauge { display: inline-flex; gap: 4px; padding: 4px; border: 3px solid #4e4648; margin-bottom: 6px; }
.bt-gauge i { display: block; width: 18px; height: 22px; background: #2a2426; }
.bt-gauge i.on { background: var(--accent); }
.bt-test { display: grid; grid-template-columns: repeat(3, 56px); gap: 4px; margin: 0 auto 16px; width: max-content; }
.bt-test i { display: block; height: 56px; background: #2a2426; }
.bt-test i:nth-child(1) { background: #8C2F39; } .bt-test i:nth-child(2) { background: #a84b55; } .bt-test i:nth-child(3) { background: #d9d0d1; }
.bt-test i:nth-child(4) { background: #4e4648; } .bt-test i:nth-child(5) { background: #6b2a31; } .bt-test i:nth-child(6) { background: #fff; }
@media (max-width: 720px) { .bt-bat i { width: 18px; height: 24px; } .bt-gauge i { width: 12px; height: 18px; } .bt-test { grid-template-columns: repeat(3, 44px); } .bt-test i { height: 44px; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-120px); } 70% { transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ドット絵アイコン（2026-11-09）。各事業の印として、トップのカード・事業内容・各ページの見出しで同じ絵を使う */
.px-icon { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.biz-icon { width: 40px; height: 40px; margin: 0 0 12px; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.svc-item-head .px-icon { width: 48px; height: 48px; margin: 0 0 14px; }
.ph-icon { width: 48px; height: 48px; margin: 0 0 16px; }
.svc-item-sub { padding-top: 32px; padding-bottom: 32px; }
.svc-item-sub .svc-item-foot { margin-top: 14px; }

/* トップの起動演出：3本線が組み上がる（2026-11-09） */
.boot-brand { display: flex; flex-direction: column; }
.boot-brand .bt-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.bt-rows { display: flex; flex-direction: column; gap: 36px; align-items: flex-start; width: 240px; margin: 0 auto 22px; }
.bt-bar { height: 22px; background: #2a2426; }
.bt-bar.on { background: var(--accent); }
.bt-bar.new { animation: slide .45s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
