/* 中国 軍民融合エクスポージャー・データベース — public LP (V2.1 + screenshot minor fixes).
   Japanese-first, institutional/editorial — tuned toward a modern research product:
   cooler off-white, quieter grain, upright English accents, tabular numerals.
   Self-contained: system fonts, inline SVG grain only.
   Static; fetches nothing; no external assets; no protected data. */

:root {
  /* palette — deep navy · cool off-white · restrained brass · a single vermilion accent */
  --navy:        #0c1a2b;
  --navy-2:      #091320;
  --washi:       #f4f2ec;
  --washi-2:     #edeae1;
  --ink:         #1b2431;
  --ink-soft:    #4e5666;
  --paper:       #e9e5d8;
  --paper-soft:  #9aa5b6;
  --brass:       #c1a066;
  --brass-deep:  #a8853f;
  --vermilion:   #b5432f;
  --hair-d:      rgba(27, 36, 49, .14);   /* hairline on light ground */
  --hair-l:      rgba(233, 229, 216, .16); /* hairline on navy */

  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
            "Noto Serif JP", "MS PMincho", serif;
  --gothic: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
            "Meiryo", system-ui, sans-serif;
  --figs:   Georgia, "Times New Roman", "Yu Mincho", serif;

  --wrap: 1080px;
  --col: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--gothic);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(22px, 6vw, 64px); }
a { color: inherit; text-decoration: none; }

/* very subtle grain overlay — kept below decorative threshold */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 26, 43, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair-l);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.wordmark-ja { font-family: var(--mincho); color: var(--paper); font-size: 17px; letter-spacing: .06em; }
.wordmark-en { font-family: var(--figs); color: var(--paper-soft); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
.topnav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); flex-shrink: 0; }
.topnav a { color: #aab4c4; font-size: 13.5px; letter-spacing: .12em; transition: color .2s; }
.topnav a:hover { color: var(--paper); }
.topnav-cta { color: var(--brass) !important; }
.topnav-cta:hover { color: #e2c489 !important; }
.cta-short { display: none; } /* compact CTA label, shown only on small screens */

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  background: radial-gradient(120% 90% at 78% 8%, #12283f 0%, var(--navy) 46%, var(--navy-2) 100%);
  color: var(--paper);
  padding: clamp(96px, 17vh, 190px) 0 clamp(120px, 20vh, 210px);
  overflow: hidden;
}
.hero-inner { position: relative; max-width: var(--col); }
.eyebrow {
  font-family: var(--gothic); font-size: 12.5px; letter-spacing: .2em; color: var(--paper-soft);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 30px;
}
.eyebrow .eyebrow-en { color: rgba(154,165,182,.66); font-family: var(--figs); letter-spacing: .16em; text-transform: uppercase; font-size: 10.5px; }
.tick { width: 3px; height: 15px; background: var(--vermilion); display: inline-block; }
h1 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(34px, 6.4vw, 74px); line-height: 1.24; letter-spacing: .02em;
  margin: 0 0 20px; color: #f3eede;
}
h1 .kw { display: inline-block; } /* keeps データベース unbroken on narrow screens */
.hero-en { font-family: var(--figs); color: var(--paper-soft); letter-spacing: .26em; text-transform: uppercase; font-size: clamp(11px, 1.6vw, 13px); margin: 0 0 34px; }
.lede { font-family: var(--mincho); font-size: clamp(16px, 2.3vw, 20px); line-height: 2.1; color: #d8d3c3; max-width: 40ch; margin: 0 0 42px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* vertical rail — a quiet Japanese accent on the hero edge (kept short and restrained) */
.v-rail {
  position: absolute; top: 0; bottom: 0; right: clamp(18px, 5vw, 60px);
  writing-mode: vertical-rl; text-orientation: mixed;
  display: flex; align-items: center;
  font-family: var(--gothic); font-size: 11.5px; letter-spacing: .38em;
  color: rgba(193,160,102,.34);
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: linear-gradient(to bottom, rgba(244,242,236,0), var(--washi)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--gothic); font-size: 14.5px; letter-spacing: .06em;
  padding: 15px 30px; border-radius: 2px; transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.btn-lg { padding: 18px 44px; font-size: 15.5px; }
.btn-primary { background: var(--paper); color: var(--navy); }
.btn-primary:hover { background: var(--brass); color: #1a1206; transform: translateY(-1px); }
.btn-line { border: 1px solid rgba(233,229,216,.48); color: var(--paper); }
.btn-line:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- bands / sections ---------- */
.band { position: relative; z-index: 2; background: var(--washi); border-top: 1px solid var(--hair-d); }
.band.alt { background: var(--washi-2); }
.sec { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(56px, 9vw, 110px); align-items: start; }
.sec-head { position: sticky; top: 90px; }
.idx { font-family: var(--figs); font-size: 15px; color: var(--brass-deep); letter-spacing: .16em; display: block; margin-bottom: 12px; }
.idx::after { content: ""; display: block; width: 34px; height: 1px; background: var(--brass); margin-top: 14px; opacity: .7; }
h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(23px, 3.4vw, 33px); letter-spacing: .04em; margin: 0; line-height: 1.4; }
.h2-en { display: block; font-family: var(--figs); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; font-weight: 400; }
.sec-body p { max-width: 60ch; margin: 0 0 16px; }
.lead-body p { font-family: var(--mincho); font-size: clamp(16px, 2vw, 19px); line-height: 2.15; color: #2a3340; }
.lead-body em { font-style: normal; color: var(--brass-deep); border-bottom: 1px solid rgba(168,133,63,.4); padding-bottom: 1px; }

/* coverage list */
.cover { list-style: none; margin: 0; padding: 0; }
.cover li { display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--hair-d); }
.cover li:first-child { border-top: 1px solid var(--hair-d); }
.cover-k { font-family: var(--gothic); font-size: 12.5px; letter-spacing: .16em; color: var(--brass-deep); }

/* figures / scale — 871 is the single primary figure; the rest read as context */
.figures { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.fig { border-top: 1px solid rgba(27, 36, 49, .3); padding-top: 16px; }
.fig-lead { border-top: 2px solid var(--vermilion); }
.fig-n { display: block; font-family: var(--figs); font-variant-numeric: tabular-nums; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.05; color: var(--ink-soft); letter-spacing: -.01em; white-space: nowrap; }
.fig-lead .fig-n { color: var(--brass-deep); font-size: clamp(52px, 8.4vw, 88px); line-height: 1; }
.fig-approx { font-size: .52em; margin-right: 3px; letter-spacing: .04em; }
.fig-c { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-top: 14px; }
.fig-en { color: #848d9c; font-family: var(--figs); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fig-note { color: #7d8695; font-size: 12px; letter-spacing: .02em; }

/* access tiers — preview leads; the evaluation sample reads as a controlled sample, not scale */
.access-lead { font-family: var(--mincho); font-size: clamp(15.5px, 2vw, 18px); line-height: 2.1; color: #2a3340; max-width: 52ch; margin-bottom: 36px !important; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); }
.tier { border: 1px solid var(--hair-d); border-top: 2px solid var(--brass); padding: 26px 28px 30px; background: rgba(255,255,255,.28); }
.tier-tag { font-family: var(--gothic); font-size: 11.5px; letter-spacing: .18em; color: var(--brass-deep); }
.tier-n { font-family: var(--figs); font-variant-numeric: tabular-nums; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.1; margin: 10px 0 12px; color: var(--ink); }
.tier-d { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.tier-sub { border-top: 1px solid var(--hair-d); background: rgba(255,255,255,.16); }
.tier-sub .tier-tag { color: var(--ink-soft); }
.tier-sub .tier-n { font-size: clamp(22px, 3.6vw, 30px); color: var(--ink-soft); }

/* ---------- inquiry (navy bookend) ---------- */
.inquiry { position: relative; z-index: 2; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--paper); text-align: center; padding: clamp(80px, 13vw, 140px) 0; }
.inquiry-inner { max-width: 640px; margin: 0 auto; }
.inquiry .eyebrow { justify-content: center; margin-bottom: 26px; }
.inquiry-h { font-family: var(--mincho); font-weight: 600; font-size: clamp(24px, 4vw, 40px); line-height: 1.5; letter-spacing: .04em; color: #f3eede; margin: 0 0 16px; }
.inquiry-lede { font-family: var(--mincho); color: #d3cebe; font-size: clamp(15px, 2vw, 18px); margin: 0 0 40px; }
.fine { font-size: 13px; color: var(--paper-soft); margin: 28px auto 0; max-width: 46ch; line-height: 1.8; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--navy-2); color: var(--paper-soft); border-top: 1px solid var(--hair-l); padding: 46px 0 56px; }
.foot-inner { max-width: 760px; }
.caveat { font-size: 13.5px; line-height: 1.9; color: #b1bac8; margin: 0 0 8px; }
.caveat-en { font-family: var(--figs); font-size: 12px; letter-spacing: .04em; color: #7b8698; margin: 0 0 26px; }
.colophon { font-family: var(--figs); font-size: 11.5px; letter-spacing: .14em; color: #626d80; margin: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .95s cubic-bezier(.2,.7,.15,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .sec { grid-template-columns: 1fr; gap: 20px; }
  .sec-head { position: static; }
  .idx::after { display: none; }
  .figures { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .v-rail { display: none; }
  .topnav a:not(.topnav-cta) { display: none; }
  /* collapsed-nav zone: compact CTA label — header can never clip */
  .cta-full { display: none; }
  .cta-short { display: inline; }
  /* tighter first view on phones — calm, but content arrives earlier */
  .hero { padding: 76px 0 108px; }
  .eyebrow { margin-bottom: 24px; }
  .inquiry { padding: 72px 0 88px; }
}
@media (max-width: 460px) {
  .figures { grid-template-columns: 1fr; }
  .cover li { grid-template-columns: 58px 1fr; gap: 12px; }
  /* smaller EN wordmark line so the bar stays clear on the narrowest phones */
  .wordmark-en { font-size: 8.5px; letter-spacing: .12em; }
  /* buttons read naturally on narrow screens */
  .btn { letter-spacing: .04em; padding: 14px 24px; }
  .btn-lg { padding: 16px 30px; font-size: 15px; }
  .cta-row { gap: 12px; }
}

@media (max-width: 380px) {
  /* the longer 中国軍民融合エクスポージャー wordmark stays on one line on the narrowest phones */
  .wordmark-ja { font-size: 14.5px; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}
