/* ============================================================
   AGAMI — shared stylesheet
   Structure: PPC + RPL (APC retired)
   Draft 1 · September 2026
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0C1D3F;
  --cyan:        #12A9C9;
  --gold:        #C6A15B;

  /* Neutrals derived from navy */
  --navy-900:    #071429;
  --navy-700:    #16305C;
  --ink:         #0C1D3F;
  --muted:       #5A6A85;
  --line:        #DCE3ED;
  --mist:        #F3F6FA;
  --paper:       #FFFFFF;

  /* Type */
  --display: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --body:    "Inter", "Noto Sans JP", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .16vw, 1.04rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + .7vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.8rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.8vw, 4.2rem);

  /* Layout */
  --gutter:  clamp(1.25rem, 4vw, 3.5rem);
  --maxw:    1240px;
  --radius:  4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  color: var(--cyan);
  margin-bottom: .9rem;
}
.eyebrow-jp { color: var(--muted); }

.lede { color: var(--muted); max-width: 64ch; font-size: var(--step-1); }
.note { color: var(--muted); font-size: var(--step--1); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 500; font-size: var(--step-0);
  padding: .85rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: #0E8FA9; }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-weight: 500;
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.link-arrow:hover { border-bottom-color: var(--cyan); }

/* Icon slots — replaceable per AGAMI_icon_inventory.md */
.icn { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; }
.icn-lg { width: 32px; height: 32px; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 68px;
}
.masthead-logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  font-size: var(--step--1); text-decoration: none; color: var(--ink);
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cyan); }
.masthead-utils { display: flex; align-items: center; gap: 1rem; font-size: var(--step--1); }
.lang { font-family: var(--mono); color: var(--muted); text-decoration: none; }
.lang strong { color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: var(--step--1); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; margin-left: auto; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .masthead-utils { margin-left: 0; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .lede,
.section-navy .note { color: rgba(255,255,255,.72); }
.section-navy .eyebrow { color: var(--gold); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }

/* ============================================================
   HERO — two-column, tagline as structure
   ============================================================ */
/* Hero background image.
   `cover` left almost no room to pan — the image (2.10) and the hero are
   nearly the same aspect ratio, so background-position barely moved
   anything. The image is now scaled past cover, which creates real
   overflow to pan within.

   Two knobs, both on this rule:
     --hero-zoom   larger = more overflow = more room to move
     --hero-focus  which part of the image is shown.
                   LOWER first value  -> artwork sits further RIGHT
                   HIGHER second value -> artwork sits further UP
*/
.hero {
  --hero-image: url("../img/hero/hero-banner.jpg");
  --hero-zoom: 150%;
  --hero-focus: 22% 74%;
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg,
      rgba(12,29,63,.93) 0%,
      rgba(12,29,63,.86) 38%,
      rgba(12,29,63,.66) 100%),
    linear-gradient(180deg,
      rgba(12,29,63,.45) 0%,
      rgba(12,29,63,.25) 45%,
      rgba(12,29,63,.75) 100%),
    var(--hero-image);
  background-size: auto, auto, var(--hero-zoom) auto;
  background-position: center, center, var(--hero-focus);
  background-repeat: no-repeat;
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
/* Hairline so the image reads as a deliberate band, not a bleed */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(255,255,255,.16);
}
.hero .eyebrow { color: var(--gold); }

/* Mobile: quarter-size file, cover rather than zoom (there is no room to
   pan at that width), and a heavier veil since the crop pushes the bright
   corner glows straight under the text. */
@media (max-width: 700px) {
  .hero {
    --hero-image: url("../img/hero/hero-banner-mobile.jpg");
    background-image:
      linear-gradient(180deg,
        rgba(12,29,63,.90) 0%,
        rgba(12,29,63,.86) 50%,
        rgba(12,29,63,.94) 100%),
      var(--hero-image);
    background-size: auto, cover;
    background-position: center, center;
  }
}

/* Fall back to flat navy. */
.hero.no-image { background-image: none; }

.hero-title {
  font-size: var(--step-4);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.hero-title .clause { display: block; }
.hero-title .clause-build { color: var(--cyan); }
.hero-sub { color: rgba(255,255,255,.75); max-width: 52ch; font-size: var(--step-1); }

.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-door {
  padding: 2.25rem 2.5rem 2.25rem 0;
  display: flex; flex-direction: column; gap: .9rem;
}
.hero-door + .hero-door {
  padding-left: 2.5rem;
  border-left: 1px solid rgba(255,255,255,.18);
}
.door-label {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .14em; color: var(--gold);
}
.hero-door:last-child .door-label { color: var(--cyan); }
.door-title { font-size: var(--step-2); }
.door-acronym { color: rgba(255,255,255,.55); font-weight: 400; }
.door-body { color: rgba(255,255,255,.78); font-size: var(--step-0); max-width: 46ch; }
.hero-door .link-arrow { margin-top: auto; padding-top: .5rem; }
.hero-door:first-child .link-arrow { color: var(--gold); }
.hero-door:first-child .link-arrow:hover { border-bottom-color: var(--gold); }
.door-meta { font-family: var(--mono); font-size: var(--step--1); color: rgba(255,255,255,.5); }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-door { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero-door + .hero-door { padding-left: 0; border-left: 0; }
}

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 2rem; margin-top: 0;
}
.stat-value { font-family: var(--display); font-size: var(--step-3); line-height: 1; }
.stat-label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; color: rgba(255,255,255,.55); margin-top: .5rem; }


/* ============================================================
   PROOF STRIP
   ============================================================ */
.proof-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.proof-item { background: var(--paper); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.proof-item .icn { color: var(--cyan); }
.proof-tag { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .06em; }
.proof-item h3 { font-size: var(--step-1); }
.proof-item p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

/* ============================================================
   PILLARS — asymmetric 60 / 40
   ============================================================ */
.pillars { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 940px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pillar-lab { border-top: 3px solid var(--cyan); }
.pillar-consult { border-top: 3px solid var(--gold); }
.pillar h3 { font-size: var(--step-2); }
.pillar-jp { font-size: var(--step--1); color: var(--muted); font-family: var(--body); display: block; margin-top: .4rem; }
.pillar p { color: var(--muted); }

.domain-list { display: grid; gap: .85rem; }
.domain-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--step--1); }
.domain-list .icn { color: var(--cyan); width: 20px; height: 20px; margin-top: 2px; }

.pillar-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.pillar-images figure { margin: 0; }
.pillar-images img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pillar-images figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: .5rem; }

.ladder { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ladder li {
  display: grid; grid-template-columns: 2.5rem 1fr auto;
  gap: .75rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}
.ladder .tier { font-family: var(--mono); color: var(--gold); }
.ladder .price { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

.pillar .link-arrow { margin-top: auto; }
.pillar-consult .link-arrow { color: var(--gold); }
.pillar-consult .link-arrow:hover { border-bottom-color: var(--gold); }

/* ============================================================
   ENTRY ROUTER — re-axised on readiness
   ============================================================ */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .entry-grid { grid-template-columns: 1fr; } }

.entry-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .18s ease;
}
.entry-card:hover { border-color: var(--navy); }
.entry-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em;
  color: var(--cyan);
}
.entry-card-consult .entry-tag { color: var(--gold); }
.entry-card h3 { font-size: var(--step-2); }
.entry-card p { color: var(--muted); }
.entry-meta { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }

/* ============================================================
   PROCESS — genuinely a sequence, so numbering is earned
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--cyan); padding-top: 1.25rem; }
.step-index { font-family: var(--mono); font-size: var(--step--1); color: var(--cyan); letter-spacing: .1em; }
.step h3 { font-size: var(--step-1); margin: .75rem 0 .65rem; }
.step p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.steps-note { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--paper); border-left: 3px solid var(--gold); font-size: var(--step--1); color: var(--muted); }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta-inner { max-width: 60ch; }
.cta-inner h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo-plate {
  display: inline-block;
  background: #FFFFFF;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  line-height: 0;
}
.footer-brand .logo-plate img { height: 26px; width: auto; margin: 0; display: block; }
.footer-brand p { font-size: var(--step--1); max-width: 42ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .08em; color: #fff; margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; text-decoration: none; font-size: var(--step--1); padding: .35rem 0; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--cyan); }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: var(--step--1); color: rgba(255,255,255,.45);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(3rem, 5vw, 4.5rem); }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; margin-bottom: 1rem; }
.page-head p { color: rgba(255,255,255,.75); max-width: 60ch; }
.crumb { font-family: var(--mono); font-size: var(--step--1); color: rgba(255,255,255,.5); text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }

.include-list { display: grid; gap: .75rem; margin: 1.25rem 0 1.75rem; }
.include-list li { display: flex; gap: .75rem; font-size: var(--step--1); color: var(--muted); }
.include-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-top: .55rem; flex: none; }

.assurances { display: grid; gap: 1.25rem; margin-top: 2rem; }
.assurance { display: flex; gap: .9rem; }
.assurance .icn { color: var(--gold); margin-top: 2px; }
.assurance h3 { font-size: var(--step-0); margin-bottom: .25rem; }
.assurance p { font-size: var(--step--1); color: var(--muted); }

.form-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field .req { color: var(--cyan); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: var(--step-0); color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(18,169,201,.15); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.consent input { margin-top: .3rem; accent-color: var(--cyan); }
.form-footnote { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Japanese ---------- */
html[lang="ja"] body { font-family: "Noto Sans JP", var(--body); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  font-family: "Noto Sans JP", var(--display); letter-spacing: 0; line-height: 1.4;
}
html[lang="ja"] .hero-title { max-width: 22ch; }

/* ============================================================
   PILLAR PAGE SHARED
   ============================================================ */
.page-head .eyebrow { color: var(--gold); }
.page-head .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.page-head .stats { margin-top: 2.75rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 700px) { .page-head .stats { grid-template-columns: repeat(2, 1fr); } }

/* Generic card grid */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem;
}
.card .icn { color: var(--cyan); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.card-jp { font-family: var(--body); font-size: var(--step--1); color: var(--muted); font-weight: 400; display: block; margin-top: .3rem; }

/* Callout — exclusions, cautions */
.callout {
  margin-top: 2rem; padding: 1.5rem 1.75rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); font-size: var(--step--1); color: var(--muted); line-height: 1.65;
}
.callout strong { color: var(--ink); }

/* ============================================================
   TIER LADDER (full, PPC page)
   ============================================================ */
.tiers { border-top: 1px solid var(--line); }
.tier-row {
  display: grid; grid-template-columns: 3.5rem 1.6fr 1fr 1.4fr;
  gap: 1.5rem; align-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) {
  .tier-row { grid-template-columns: 3rem 1fr; gap: .75rem 1rem; }
  .tier-row .tier-price, .tier-row .tier-desc { grid-column: 2; }
}
.tier-num { font-family: var(--mono); font-size: var(--step-2); color: var(--gold); line-height: 1; }
.tier-name h3 { font-size: var(--step-1); }
.tier-price { font-family: var(--mono); font-size: var(--step-1); color: var(--ink); }
.tier-duration { display: block; font-size: var(--step--1); color: var(--muted); margin-top: .35rem; }
.tier-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* ============================================================
   STARTING POINTS (PPC)
   ============================================================ */
.start-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1000px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .start-grid { grid-template-columns: 1fr; } }
.start-item { background: var(--paper); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.start-item .icn { color: var(--gold); }
.start-item h3 { font-size: var(--step-0); }
.start-item p { font-size: var(--step--1); color: var(--muted); line-height: 1.55; }

/* ============================================================
   SUBSIDY (PPC)
   ============================================================ */
.subsidy-list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.subsidy-list li { display: flex; gap: 1rem; font-size: var(--step-0); }
.subsidy-list .icn { color: var(--gold); margin-top: 3px; }
.subsidy-list strong { display: block; margin-bottom: .2rem; }
.subsidy-list span { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* ============================================================
   PROCESS FLOW (RPL — 4 stages)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 940px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow-step { border-top: 2px solid var(--cyan); padding-top: 1.25rem; }
.flow-step .step-index { font-family: var(--mono); font-size: var(--step--1); color: var(--cyan); }
.flow-step h3 { font-size: var(--step-1); margin: .7rem 0 .6rem; }
.flow-step p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* ============================================================
   SELECTED WORK (RPL)
   ============================================================ */
.work-list { border-top: 1px solid var(--line); }
.work-item {
  display: grid; grid-template-columns: 10rem 1fr 1.2fr; gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
@media (max-width: 860px) { .work-item { grid-template-columns: 1fr; gap: .6rem; } }
.work-tag { font-family: var(--mono); font-size: var(--step--1); color: var(--cyan); letter-spacing: .06em; }
.work-item h3 { font-size: var(--step-1); }
.work-client { font-size: var(--step--1); color: var(--muted); margin-top: .3rem; }
.work-item > p:last-child { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* ============================================================
   HANDOFF CROSS-LINKS
   ============================================================ */
.handoff { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.handoff-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .handoff-2 { grid-template-columns: 1fr; } }
.handoff-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: inherit;
  transition: border-color .18s ease;
}
.handoff-card:hover { border-color: var(--navy); }
.handoff-card h3 { font-size: var(--step-1); }
.handoff-card p { color: var(--muted); font-size: var(--step--1); }
.section-mist .handoff-card { background: var(--paper); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-item { background: var(--paper); padding: 1.6rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.approach-item .icn { color: var(--cyan); margin-top: 2px; }
.approach-item p { font-size: var(--step-0); line-height: 1.6; }

/* Two-pillar anchor */
.structure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .structure { grid-template-columns: 1fr; } }
.structure-card {
  padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .18s ease;
}
.structure-card:hover { border-color: var(--navy); }
.structure-card.is-build { border-top: 3px solid var(--cyan); }
.structure-card.is-find { border-top: 3px solid var(--gold); }
.structure-card h3 { font-size: var(--step-1); }
.structure-card p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; }
@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; gap: .75rem; }
.person-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
  border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line);
}
.person-role { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .06em; color: var(--gold); }
.person h3 { font-size: var(--step-1); }
.person p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.person-lead .person-role { color: var(--cyan); }

/* Company facts */
.facts { border-top: 1px solid var(--line); max-width: 720px; }
.facts div {
  display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1);
}
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: .25rem; } }
.facts dt { font-family: var(--mono); color: var(--muted); letter-spacing: .04em; }
.facts dd { margin: 0; }
.facts .todo { color: var(--gold); font-family: var(--mono); }

/* Company facts — extended (会社概要 style) */
.facts div { align-items: start; }
.facts dd ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.facts dd ol li { list-style: decimal; }
.facts dd ul { display: grid; gap: .35rem; }
.facts dd ul li { padding-left: 1rem; position: relative; }
.facts dd ul li::before { content: "・"; position: absolute; left: 0; color: var(--muted); }
.facts dd .sub { display: block; color: var(--muted); margin-top: .2rem; }
.facts .todo {
  color: var(--gold); font-family: var(--mono);
  background: rgba(198,161,91,.08); padding: .1rem .4rem; border-radius: 2px;
}

/* ============================================================
   SELF-CHECK WIZARD
   ============================================================ */
.sc-shell { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); padding-block: clamp(2rem,5vw,4rem); }
.sc-bar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.sc-bar-in { max-width: 720px; margin-inline: auto; padding: .9rem var(--gutter); display: flex; align-items: center; gap: 1rem; }
.sc-bar-in img { height: 22px; }
.sc-bar-title { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.sc-bar-in .lang { margin-left: auto; }

.sc-prog { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.sc-track { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sc-fill { height: 100%; background: var(--cyan); transition: width .25s ease; }
.sc-count { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.sc-section { font-family: var(--mono); font-size: var(--step--1); color: var(--gold); letter-spacing: .08em; margin-bottom: .75rem; }

.sc-q { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; margin-bottom: .6rem; }
.sc-help { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.5rem; }

.sc-opts { display: grid; gap: .65rem; margin-bottom: 2rem; }
.sc-opt {
  display: flex; gap: .9rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.sc-opt:hover { border-color: var(--navy); }
.sc-opt.on { border-color: var(--cyan); background: rgba(18,169,201,.05); }
.sc-opt .mark {
  width: 20px; height: 20px; flex: none; border: 1px solid var(--line);
  border-radius: 4px; display: grid; place-items: center; margin-top: 1px; background: var(--paper);
}
.sc-opt.on .mark { background: var(--cyan); border-color: var(--cyan); }
.sc-opt .mark svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.sc-opt.on .mark svg { opacity: 1; }
.sc-opt .lbl { font-size: var(--step-0); }
.sc-opt .lbl small { display: block; color: var(--muted); font-size: var(--step--1); margin-top: .2rem; }

.sc-input { width: 100%; font-family: var(--body); font-size: var(--step-0); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
textarea.sc-input { min-height: 90px; resize: vertical; }
.sc-input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(18,169,201,.15); }
.sc-err { color: #B3261E; font-size: var(--step--1); margin-top: .5rem; }

.sc-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.sc-nav .sp { flex: 1; }
.sc-back { background: none; border: 0; color: var(--muted); font-family: var(--body); font-size: var(--step--1); cursor: pointer; padding: .5rem 0; }
.sc-back:hover { color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.sc-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.75rem 0; font-size: var(--step--1); color: var(--muted); }
.sc-meta span { display: flex; align-items: center; gap: .5rem; }
.sc-meta .icn { color: var(--cyan); width: 18px; height: 18px; }

/* Result */
.sc-tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; color: var(--cyan); margin-bottom: 1.25rem; }
.sc-tag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.sc-block { margin-bottom: 2rem; }
.sc-block h3 { font-size: var(--step-1); margin-bottom: .75rem; }
.sc-block p { color: var(--muted); line-height: 1.65; margin-bottom: .75rem; }
.sc-block p strong, .sc-block p b { color: var(--ink); font-weight: 500; }
.sc-examine { display: grid; gap: .85rem; }
.sc-examine li { display: flex; gap: .85rem; align-items: flex-start; font-size: var(--step-0); }
.sc-examine .icn { color: var(--cyan); width: 20px; height: 20px; margin-top: 3px; }
.sc-examine b { font-weight: 500; }
.sc-examine span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: .15rem; }

.sc-tierbox { border: 1px solid var(--cyan); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); margin-bottom: 1.5rem; }
.sc-tierbox .tk { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .08em; color: var(--cyan); margin-bottom: .5rem; }
.sc-tierbox h3 { font-size: var(--step-2); }
.sc-tierbox .jp { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin: .25rem 0 .5rem; }
.sc-tierbox .price { font-family: var(--mono); font-size: var(--step-0); }
.sc-deliver { display: grid; gap: .5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.sc-deliver li { display: flex; gap: .6rem; font-size: var(--step--1); color: var(--muted); }
.sc-deliver li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: .6rem; flex: none; }

.sc-nofit { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem; background: var(--mist); margin-bottom: 1.5rem; }
.sc-nofit h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.sc-nofit p { color: var(--muted); font-size: var(--step--1); line-height: 1.65; margin-bottom: .6rem; }

.sc-alt { font-size: var(--step--1); color: var(--muted); padding: 1rem 1.15rem; background: var(--mist); border-radius: var(--radius); margin-bottom: 1.5rem; }
.sc-hook { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--mist); margin-top: 2rem; }
.sc-hook h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.sc-hook .sub { color: var(--muted); font-size: var(--step--1); margin-bottom: 1rem; }
.sc-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); margin: .9rem 0; }
.sc-consent input { margin-top: .25rem; accent-color: var(--cyan); }
.sc-sent { display: flex; gap: .6rem; align-items: center; color: var(--cyan); font-size: var(--step--1); }
.sc-fine { font-size: var(--step--1); color: var(--muted); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); line-height: 1.6; }
.sc-linklike { background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: inherit; font-family: inherit; padding: 0; text-decoration: underline; }

/* ============================================================
   LEGAL / POLICY PAGES
   ============================================================ */
.legal { max-width: 74ch; }
.legal section { margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--step-1); margin-bottom: .85rem; }
.legal h2 .num { font-family: var(--mono); color: var(--cyan); margin-right: .6rem; font-weight: 400; }
.legal p { color: var(--muted); line-height: 1.7; margin-bottom: .85rem; }
.legal ul { display: grid; gap: .55rem; margin: .85rem 0; }
.legal ul li { display: flex; gap: .8rem; color: var(--muted); line-height: 1.65; }
.legal ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin-top: .65rem; flex: none; }
.legal dl.contactblock { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--mist); }
.legal dl.contactblock div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .5rem 0; }
@media (max-width: 560px) { .legal dl.contactblock div { grid-template-columns: 1fr; gap: .2rem; } }
.legal dl.contactblock dt { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.legal dl.contactblock dd { margin: 0; font-size: var(--step--1); }
.legal .updated { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal .todo { color: var(--gold); font-family: var(--mono); background: rgba(198,161,91,.08); padding: .1rem .4rem; border-radius: 2px; }
