/* Defentia — corporate site (static, dependency-free) */

:root {
  --bg: #07090B;
  --bg-2: #0C0F12;
  --panel: #0F1317;
  --fg: #F2F4F5;
  --fg-2: #C5CBCF;
  --muted: #9AA3A9;          /* 7.6:1 on --bg */
  --rule: rgba(242, 244, 245, 0.12);
  --rule-strong: rgba(242, 244, 245, 0.28);
  --accent: #FF5A36;         /* vermilion signal; 6.3:1 on --bg */

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI",
             "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", "IPAPGothic", sans-serif;
  --font-display: "Inter Tight", var(--font-jp);
  --font-body: "Inter Tight", var(--font-jp);
  --font-mono: "JetBrains Mono", "Consolas", "Menlo", "DejaVu Sans Mono",
               "Noto Sans Mono CJK JP", "Noto Sans CJK JP", "Noto Sans JP", monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }
img, svg, canvas { display: block; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.mono, .micro { font-family: var(--font-mono); }
.micro {
  font-size: 12px; line-height: 1.5; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.accent { color: var(--accent); }
.acc-fill { fill: var(--accent); }
.acc-stroke { stroke: var(--accent); }

/* keep Japanese phrases together; let lines break between them */
.nb { display: inline-block; }

/* ---------- background column lines ---------- */
.gridlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.gridlines span { border-left: 1px solid rgba(242, 244, 245, 0.04); }
.gridlines span:last-child { border-right: 1px solid rgba(242, 244, 245, 0.04); }
.gridlines span:nth-child(5) { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; }
.wordmark { width: 122px; height: 18px; color: var(--fg); }
.wordmark-lg { width: 220px; height: 32px; }

.site-nav ul { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  display: inline-flex; gap: 8px; align-items: baseline;
  padding: 8px 12px; text-decoration: none;
  font-size: 14px; letter-spacing: 0.04em; color: var(--fg-2);
  transition: color .2s;
}
.site-nav a .mono { font-size: 11px; color: var(--muted); }
.site-nav a:hover { color: var(--fg); }
.site-nav .nav-cta { border: 1px solid var(--rule-strong); margin-left: 8px; color: var(--fg); }
.site-nav .nav-cta:hover { border-color: var(--fg); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--fg); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons / tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0.06em; font-weight: 500;
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { border-color: var(--fg); }

.tag {
  display: inline-block; vertical-align: 0.1em; margin-left: 8px;
  padding: 1px 7px; border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.6;
  text-transform: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero::after { /* legibility vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,9,11,.55) 0%, rgba(7,9,11,0) 30%, rgba(7,9,11,0) 55%, rgba(7,9,11,.92) 100%),
    linear-gradient(90deg, rgba(7,9,11,.7) 0%, rgba(7,9,11,0) 60%);
}
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,90,54,.55) 30%, rgba(255,90,54,.55) 70%, transparent);
  animation: scan 9s linear infinite; opacity: .5;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }

.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 96px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: clamp(24px, 4vw, 40px); }
.hero-meta .sep { opacity: .5; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.dot { width: 6px; height: 6px; background: var(--accent); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 9.2vw, 148px); line-height: 0.96; letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-title .line { display: block; }
.hero-title .line + .line { color: var(--fg-2); }

.hero-lead {
  max-width: 36em; font-family: var(--font-jp);
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.85; color: var(--fg-2);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 22px;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.hero-foot .scroll-cue { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { display: block; width: 1px; height: 18px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
  background: var(--accent); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- sections ---------- */
.section {
  position: relative; z-index: 1;
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .h2 { max-width: 16em; }
.label {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 18px; margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--rule); max-width: 100%;
}
.label .num { color: var(--accent); }
.label::after { content: ""; flex: 1; }

.h2 {
  font-family: var(--font-jp); font-weight: 700;
  font-size: clamp(32px, 5.4vw, 76px); line-height: 1.22; letter-spacing: -0.01em;
}
.lead {
  margin-top: clamp(24px, 3vw, 36px); max-width: 40em;
  font-size: clamp(16px, 1.35vw, 18px); line-height: 2; color: var(--fg-2);
}
.section-head .lead { margin-top: clamp(24px, 3vw, 32px); }

h3 { font-family: var(--font-jp); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; letter-spacing: 0.01em; }

/* mission */
.mission-body .lead { margin-top: 0; margin-bottom: clamp(56px, 7vw, 88px); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.pillar { padding: 32px 32px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--rule); }
.pillar-icon { width: 48px; height: 48px; color: var(--fg); margin-bottom: 28px; }
.pillar .micro { margin-bottom: 10px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p:last-child { color: var(--fg-2); font-size: 15px; }

/* capabilities */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule);
}
.card {
  position: relative; padding: 32px 32px 40px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: transparent; min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 2px; width: 0;
  background: var(--accent); transition: width .6s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card:hover::before { width: calc(100% + 1px); }
.card-focus { background: rgba(255, 255, 255, 0.015); }
.card-tag { margin-bottom: 18px; }
.card h3 { font-size: clamp(19px, 1.6vw, 22px); }
.card p:last-child { color: var(--fg-2); font-size: 15px; line-height: 1.95; }
.card::after { /* corner tick */
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 8px; height: 8px;
  border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 48em; }

/* approach */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.split .h2 { font-size: clamp(32px, 3.9vw, 56px); }
.sticky { position: sticky; top: 108px; }
.trace { width: 100%; height: 120px; margin-top: 48px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rows { border-top: 1px solid var(--rule-strong); }
.row {
  display: grid; grid-template-columns: 200px 1fr; column-gap: 32px; row-gap: 8px;
  padding: 36px 0; border-bottom: 1px solid var(--rule);
}
.row .micro { grid-row: span 2; padding-top: 6px; }
.row p:last-child { color: var(--fg-2); font-size: 15px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.principle {
  position: relative; padding: 40px 40px 44px 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 10px;
}
.principle:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--rule); }
.principle .idx { grid-row: span 2; color: var(--accent); padding-top: 6px; }
.principle p { color: var(--fg-2); font-size: 15px; }

/* contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-meta { margin-top: 44px; border-top: 1px solid var(--rule); }
.contact-meta div, .footer-meta div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.contact-meta dd, .footer-meta dd { font-size: 15px; color: var(--fg-2); overflow-wrap: anywhere; }

.form { border: 1px solid var(--rule-strong); padding: clamp(24px, 3.5vw, 40px); background: rgba(12, 15, 18, 0.7); }
.form-head { margin-bottom: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 8px; letter-spacing: 0.04em; }
.opt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 0;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--rule-strong);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(242,244,245,.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.form-status { margin-top: 18px; min-height: 1.9em; font-size: 14px; color: var(--accent); }

/* footer */
.site-footer { position: relative; z-index: 1; padding: clamp(72px, 10vw, 128px) 0 0; }
.footer-inner { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 64px; }
.footer-tag { margin-top: 20px; text-transform: none; letter-spacing: 0.06em; }
.footer-meta { border-top: 1px solid var(--rule); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { text-decoration: none; color: var(--fg-2); font-size: 14px; }
.footer-nav a:hover { color: var(--fg); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--rule);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--fg); }

/* ---------- reveal (only when JS has opted in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scan, .scroll-cue i::after { animation: none; display: none; }
  .dot { animation: none; }
  .card::before, .btn span[aria-hidden] { transition: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 1100px) {
  .gridlines { grid-template-columns: repeat(5, 1fr); }
  .gridlines span:nth-child(5) { display: block; }
}

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .trace { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0;
    background: rgba(7, 9, 11, 0.97); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: flex; padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--rule); }
  .site-nav .nav-cta { border: 0; border-bottom: 1px solid var(--rule); margin-left: 0; }
  .site-header.menu-open { background: rgba(7, 9, 11, 0.97); border-bottom-color: var(--rule); }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 32px 0; border-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .gridlines { grid-template-columns: repeat(2, 1fr); }
  .gridlines span:nth-child(n+3) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px 22px 34px; }
  .row { grid-template-columns: 1fr; padding: 28px 0; }
  .row .micro { grid-row: auto; padding-top: 0; }
  .principle { grid-template-columns: 1fr; }
  .principle .idx { grid-row: auto; padding-top: 0; }
  .hero-foot span:not(.scroll-cue) { display: none; }
  .hero-foot .scroll-cue { margin-left: 0; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .contact-meta div, .footer-meta div { grid-template-columns: 90px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .label { margin-bottom: 24px; }
}

/* team (2026-12-01) */
.card-org { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); }
.experience { margin-top: clamp(72px, 9vw, 128px); }
.trust-head { margin-top: clamp(80px, 10vw, 140px); }
.trust-head .h2, .experience .h2 { font-size: clamp(30px, 3.6vw, 52px); }
/* team 2x2 (2026-12-01) */
.cards.cards-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .cards.cards-2x2 { grid-template-columns: 1fr; } }

/* ---------- bilingual EN/JA (2026-12-02) ---------- */
/* English pages: Latin display face for headings (Inter Tight is loaded at 400–600) */
html[lang="en"] { --font-jp-head: "Inter Tight", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
html[lang="en"] .h2, html[lang="en"] h3 { font-family: var(--font-jp-head); font-weight: 600; }
html[lang="en"] .h2 { letter-spacing: -0.02em; line-height: 1.12; }
html[lang="en"] h3 { letter-spacing: -0.005em; line-height: 1.35; }
html[lang="en"] .hero-lead { font-family: var(--font-body); }
html[lang="en"] body { line-height: 1.7; letter-spacing: 0.005em; }
html[lang="en"] .lead { line-height: 1.75; }
html[lang="en"] .card p:last-child, html[lang="en"] .row p:last-child, html[lang="en"] .principle p { line-height: 1.7; }

/* language switch */
.header-tools { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: inline-flex; align-items: center; margin-left: 12px; border: 1px solid var(--rule-strong); }
.lang-switch a, .lang-switch span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; line-height: 1;
  padding: 9px 10px; text-decoration: none; color: var(--muted);
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch [aria-current="page"] { color: var(--bg); background: var(--fg); }

/* longer hero headline */
.hero-title.is-long { font-size: clamp(34px, 6.6vw, 108px); line-height: 1.02; }
html[lang="ja"] .hero-title.is-long { font-family: var(--font-jp); font-weight: 700; font-size: clamp(30px, 5.8vw, 92px); line-height: 1.18; letter-spacing: -0.01em; }

/* key figures */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule);
}
.stat { padding: 28px 28px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.stat-v { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.stat-v small { font-size: 0.42em; letter-spacing: 0; color: var(--fg-2); margin-left: 4px; }
.stat-v .accent { color: var(--accent); }
.stat p:last-child { color: var(--fg-2); font-size: 14px; line-height: 1.75; }
.src { margin-top: 20px; font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 64em; }
.why-body .lead { margin-top: 0; margin-bottom: clamp(48px, 6vw, 72px); }

/* service cards */
.card .for { font-size: 14px; color: var(--muted); }
.deliv { display: grid; gap: 8px; margin-top: 4px; }
.deliv li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.deliv li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--accent); }
.card .fmt { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 13.5px; color: var(--muted); }
.card .fmt b { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 8px; color: var(--fg-2); }

/* sample deliverable */
.sample { margin-top: clamp(72px, 9vw, 128px); }
.sample-panel { border: 1px solid var(--rule-strong); background: rgba(12, 15, 18, 0.7); padding: clamp(24px, 3.5vw, 40px); }
.sample-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; margin: 10px 0 24px; }
.toc { counter-reset: toc; border-top: 1px solid var(--rule); }
.toc li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.toc li::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.toc strong { display: block; font-weight: 600; color: var(--fg); font-size: 15.5px; }
.toc span { display: block; font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.appendix-head { margin-top: 32px; }

/* engagement terms */
.terms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.terms li { border: 1px solid var(--rule-strong); padding: 6px 12px; font-size: 13.5px; color: var(--fg-2); }

/* contact: first-email checklist */
.checklist { counter-reset: chk; border-top: 1px solid var(--rule); margin-bottom: 24px; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.checklist li::before { counter-increment: chk; content: counter(chk, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.checklist strong { display: block; color: var(--fg); font-weight: 600; }
.checklist span { display: block; font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.contact-meta a { color: var(--fg); text-underline-offset: 3px; }
.contact-meta a:hover { color: var(--accent); }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-nav a { padding: 8px 9px; }
}
@media (max-width: 860px) {
  .lang-switch { margin-left: 0; margin-right: 8px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 22px 28px; }
  .toc li, .checklist li { grid-template-columns: 34px 1fr; }
}
.site-nav { margin-left: auto; }
@media (max-width: 1180px) and (min-width: 861px) { .site-nav a .mono { display: none; } }

/* ---------- links from company top to purpose pages (2026-12-02) ---------- */
.card p:not(.micro):not(.card-org) { color: var(--fg-2); font-size: 15px; line-height: 1.95; }
.card-more { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); border-bottom: 1px solid transparent; align-self: flex-start; }
.card-more:hover { border-bottom-color: var(--accent); }
.routes { margin-top: 56px; }
.routes .label { margin-bottom: 16px; }
.route, .card-more { text-decoration: none; }
.route { position: relative; display: grid; gap: 10px; padding: 28px 64px 28px 28px; border: 1px solid var(--rule-strong); background: var(--panel); transition: border-color .3s var(--ease); }
.route:hover { border-color: var(--accent); }
.route-tag { color: var(--accent); }
.route-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--fg); line-height: 1.6; }
.route-desc { font-size: 15px; color: var(--fg-2); line-height: 1.9; }
.route-arrow { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); transition: transform .3s var(--ease); }
.route:hover .route-arrow { transform: translate(4px, -50%); }
@media (max-width: 640px) { .route { padding: 24px 52px 24px 20px; } .route-arrow { right: 18px; } }

/* insights (2026-12-02) */
.article { position: relative; z-index: 1; padding: calc(68px + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--rule); }
.article-head { max-width: 54rem; margin-bottom: clamp(36px, 5vw, 56px); }
.article-head .label { margin-bottom: 20px; }
.article-title { font-family: var(--font-jp-head, var(--font-display)); font-weight: 600; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -0.02em; }
.article-dek { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--fg-2); max-width: 44em; }
.byline { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.byline a { color: var(--fg); text-underline-offset: 3px; }
.byline a:hover { color: var(--accent); }
.article .stats { margin-bottom: clamp(40px, 6vw, 64px); }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > .status-note, .prose > .placeholder { max-width: 70ch; }
.prose > figure, .prose > .cta-box, .prose > .sources { max-width: 64rem; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose h2 { font-family: var(--font-jp-head, var(--font-display)); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); margin-top: 2.4em; }
.prose h3 { font-size: 18px; margin-top: 1.8em; color: var(--fg); }
.prose .bullets li { position: relative; padding-left: 20px; }
.prose .bullets li + li { margin-top: 8px; }
.prose .bullets li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 9px; height: 1px; background: var(--accent); }
.prose .steps { counter-reset: st; border-top: 1px solid var(--rule); }
.prose .steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.prose .steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 5px; }
.status-note { border-left: 2px solid var(--accent); padding: 12px 18px; background: var(--panel); font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.placeholder { border: 1px dashed var(--rule-strong); padding: 14px 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.prose figure { margin: 2em 0 0; }
.takeaway { font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule-strong); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .ja { display: block; font-size: 12.5px; color: var(--muted); }
table.data tr.hl td { color: var(--fg); }
table.data .up { color: var(--accent); }
.prose figure .src { margin-top: 12px; }
.cta-box { margin-top: 3em; border: 1px solid var(--rule-strong); background: var(--panel); padding: clamp(24px, 3.5vw, 36px); }
.cta-box h2 { margin-top: 0; }
.cta-box p { max-width: 64ch; }
.cta-box .btn { margin-top: 20px; }
.sources { margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--rule); }
.sources li { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--fg-2); word-break: break-all; }
.insight-list { border-top: 1px solid var(--rule-strong); max-width: 64rem; }
.insight-item { padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.insight-item h2 { font-family: var(--font-jp-head, var(--font-display)); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.insight-item h2 a { text-decoration: none; color: var(--fg); }
.insight-item h2 a:hover { color: var(--accent); }
.insight-item p:not(.micro) { color: var(--fg-2); font-size: 16px; line-height: 1.7; max-width: 64ch; }
.site-nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 640px) {
  .prose p, .prose li { font-size: 16px; }
  table.data { font-size: 13.5px; }
  table.data th, table.data td { padding: 9px 8px; }
}
