/* 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; }
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; }
.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; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 48px 0 36px; }
.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: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 12.5px; color: var(--ink-3); }
.footer-legal { font-size: 12.5px; color: var(--ink-3); 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, .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; } }
