/* Bridge Co., Ltd. — global styles */

:root {
  --primary: #0B2A4A;         /* deep navy — used as background of buttons + dark sections */
  --primary-700: #081E36;     /* deeper navy — hover + dark section bg */
  --primary-fg: #0B2A4A;      /* primary as foreground text on light surfaces; flips in dark mode */
  --primary-050: #EEF2F8;
  --accent: #D14B2F;
  --ink: #111418;
  --ink-70: #3A3F47;
  --ink-50: #6B7078;
  --ink-30: #A6ABB3;
  --line: #E3E1DB;
  --line-strong: #D0CEC7;
  --canvas: #F7F6F2;          /* page background */
  --surface: #FFFFFF;         /* card / panel / nav / .section.alt background */
  --surface-elev: #FFFFFF;
  --white: #FFFFFF;
  --ok: #1F7A4C;
  --radius: 2px;
  --radius-lg: 6px;
  --container: 1280px;
  /* Watermark / shadow tints. Dark-mode overrides in @media block below. */
  --watermark-tint: rgba(11, 42, 74, 0.05);
  --watermark-tint-strong: rgba(11, 42, 74, 0.11);
  --watermark-icon: rgba(11, 42, 74, 0.28);
  --watermark-icon-strong: rgba(11, 42, 74, 0.45);
  --shadow-color: rgba(11, 42, 74, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090C;        /* deep page bg */
    --surface: #14181F;       /* card surface — clearly elevated above canvas */
    --surface-elev: #1A1F27;
    --ink: #E6E8EB;
    --ink-70: #B5BAC1;
    --ink-50: #8A9099;
    --ink-30: #5A6068;
    --line: #232932;
    --line-strong: #2E3540;
    --primary-050: #16202F;
    --primary: #1A2D52;       /* navy block (cta-band, btn) — elevated saturated panel */
    --primary-700: #14233E;   /* navy block (section.dark, footer) — slightly less lifted */
    --primary-fg: #88AEDC;    /* light blue for FG text on dark canvas */
    --watermark-tint: rgba(255,255,255,0.10);
    --watermark-tint-strong: rgba(255,255,255,0.16);
    --watermark-icon: rgba(255,255,255,0.5);
    --watermark-icon-strong: rgba(255,255,255,0.72);
    --shadow-color: rgba(0,0,0,0.45);
  }
}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.7;
}

.lang-en, .lang-zh {
  font-family: "Inter", "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Type ---------- */
.mono { font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace; font-feature-settings: "tnum" 1; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--primary);
}

.section-label {
  display: flex; align-items: baseline; gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 40px;
}
.section-label .num { color: var(--primary-fg); font-weight: 600; }
.section-label .bar { flex: 1; height: 1px; background: var(--line); }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; font-weight: 500; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 600; }

p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--primary);
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--primary-700); }
.btn.btn-ghost { background: transparent; color: var(--primary-fg); }
.btn.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn.btn-accent:hover { background: #B43E26; border-color: #B43E26; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--primary-fg); border-bottom: 1px solid var(--primary-fg);
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px; position: relative;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: -0.04em;
}
.brand-mark::after {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 10px; height: 10px; background: var(--accent);
}
.brand-name-jp { font-family: "Noto Sans JP", sans-serif; }
.brand-name-sub { font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-50); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.nav-links a {
  padding: 8px 10px; font-size: 13px; font-weight: 500;
  color: var(--ink-70);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary-fg); }
.nav-links a.active { color: var(--primary-fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 1px; background: var(--primary);
}
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language popup (details-based dropdown) */
.lang-popup { position: relative; }
.lang-popup summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-70);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  user-select: none;
}
.lang-popup summary::-webkit-details-marker { display: none; }
.lang-popup summary::marker { content: ''; }
.lang-popup summary:hover { border-color: var(--primary-fg); color: var(--primary-fg); }
.lang-popup[open] summary { border-color: var(--primary-fg); color: var(--primary-fg); background: var(--surface); }
.lang-chevron { transition: transform .2s ease; }
.lang-popup[open] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -8px var(--shadow-color);
  padding: 6px 0;
  z-index: 60;
}
.lang-menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 16px;
  font-size: 13px; color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lang-menu a .lang-code {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--ink-50);
}
.lang-menu a:hover { background: var(--primary-050); color: var(--primary-fg); }
.lang-menu a:hover .lang-code { color: var(--primary-fg); }
.lang-menu a.active {
  color: var(--primary-fg); font-weight: 500;
  background: var(--primary-050);
}
.lang-menu a.active .lang-code { color: var(--accent); }

/* Hamburger + mobile menu (CSS-only via checkbox hack) */
.nav-toggle { display: none; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px;
    gap: 5px;
    cursor: pointer;
    margin-left: 6px;
    background: transparent; border: 0;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
  }
  .nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--canvas);
    padding: 8px 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-links a {
    padding: 16px 32px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--primary-fg); background: var(--primary-050); }
}

@media (max-width: 540px) {
  .nav-inner { height: 64px; }
  .brand-name-jp { font-size: 13px; }
  .brand-name-sub { font-size: 9px; }
  .lang-popup summary { padding: 6px 10px; font-size: 10px; }
  .nav-right { gap: 10px; }
}
@media (max-width: 400px) {
  .brand-name-sub { display: none; }
  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .brand { gap: 8px; }
  .nav-toggle { width: 36px; height: 36px; margin-left: 2px; }
  .nav-right { gap: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--primary-700);
  padding-bottom: 120px; /* reserve space for ticker */
}
.hero-photo {
  position: absolute; inset: 0;
  background: var(--primary-700);
}
.hero-photo::before, .hero-photo::after { display: none; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,30,0.45) 0%, rgba(8,20,30,0.15) 40%, rgba(8,20,30,0.85) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-keywords .hk-item,
  .hero-keywords .hk-dot { animation: none !important; }
  .hero-slide:first-child { opacity: 1; }
  .hero-keywords .hk-item:first-of-type { opacity: 1; transform: translateY(0); }
  .hero-keywords .hk-dot:first-of-type { background: var(--accent); }
}

.photo-placeholder-tag {
  position: absolute;
  top: 32px; right: 32px;
  padding: 8px 12px;
  border: 1px dashed rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.25);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 120px 0 40px;
}
.hero h1 { color: #fff; letter-spacing: -0.025em; max-width: 15ch; }
.hero-sub { max-width: 48ch; margin-top: 28px; color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero .btn { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); color: #fff; backdrop-filter: blur(6px); }
.hero .btn:hover { background: rgba(255,255,255,0.15); }
.hero .btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.hero .btn.btn-accent:hover { background: #B43E26; }

.hero-ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.hero-ticker-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.hero-ticker-item {
  padding: 18px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-ticker-item:last-child { border-right: 0; }
.hero-ticker-item .k { font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.hero-ticker-item .v { font-family: "Inter", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 860px) {
  .hero { padding-bottom: 200px; min-height: auto; }
  .hero-inner { padding: 96px 0 40px; }
  .hero .container { padding-left: 28px; padding-right: 28px; }
  .hero-ticker { padding: 0; }
  .hero-ticker .container { padding-left: 0; padding-right: 0; }
  .hero-ticker-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-ticker-item { padding: 14px 18px; }
  .hero-ticker-item .v { font-size: 15px; }
  .hero-ticker-item:nth-child(2) { border-right: 0; }
  .hero-ticker-item:nth-child(1), .hero-ticker-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
  .hero-sub { font-size: 15px; margin-top: 22px; }
  .hero-ctas { gap: 10px; margin-top: 32px; }
  .hero-ctas .btn { padding: 12px 18px; font-size: 13px; }
  .hero-keywords { margin-top: 32px; padding-top: 18px; gap: 12px; }
  .hero-keywords .hk-track { min-width: 0; flex-basis: 100%; }
  .hero-keywords .hk-item { font-size: 15px; }
}

/* ---------- Sections ---------- */
/* ---------- Hero keyword rotator ---------- */
.hero-keywords {
  margin-top: 44px;
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 680px;
  flex-wrap: wrap;
}
.hero-keywords .hk-label {
  font-size: 10px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}
.hero-keywords .hk-track {
  position: relative; flex: 1; min-width: 260px; height: 28px;
}
.hero-keywords .hk-item {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  font-size: 16px; font-weight: 500; letter-spacing: 0.01em;
  color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.hero-keywords .hk-item.active { opacity: 1; transform: translateY(0); }
.hero-keywords .hk-dots { display: flex; gap: 6px; }
.hero-keywords .hk-dot {
  width: 18px; height: 2px; background: rgba(255,255,255,0.2);
  transition: background .25s ease;
}
.hero-keywords .hk-dot.active { background: var(--accent); }

/* ---------- Positioning ---------- */
.positioning-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: start;
}
.positioning-grid h2 {
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.015em; line-height: 1.25; max-width: 14ch;
}
.positioning-body p {
  color: var(--ink-70); font-size: 15px; line-height: 1.9;
  max-width: 52ch;
}
.positioning-pillars {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  background: var(--surface);
}
.positioning-pillars .p-pillar {
  padding: 36px 44px 40px 36px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.positioning-pillars .p-pillar:last-child { border-right: 0; }
.positioning-pillars .p-pillar:not(:last-child)::after {
  content: "→";
  position: absolute; right: -10px; top: 44px;
  width: 20px; text-align: center;
  background: var(--surface);
  font-family: "Inter", sans-serif; font-size: 16px; color: var(--accent);
}
.positioning-pillars .p-num {
  font-family: "Inter", sans-serif;
  font-size: 40px; font-weight: 300; letter-spacing: -0.02em;
  color: var(--accent); line-height: 1;
}
.positioning-pillars h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.positioning-pillars p { font-size: 14px; color: var(--ink-70); line-height: 1.75; max-width: 32ch; }
@media (max-width: 860px) {
  .positioning-grid { grid-template-columns: 1fr; gap: 32px; }
  .positioning-pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .positioning-pillars .p-pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .positioning-pillars .p-pillar:last-child { border-bottom: 0; }
  .positioning-pillars .p-pillar:not(:last-child)::after { display: none; }
}

/* ---------- Case detail ---------- */
/* ---------- Case sections (chapter-style) ---------- */
.case-section { position: relative; overflow: hidden; }
.case-bg-num {
  position: absolute;
  top: -40px; right: -20px;
  font-family: "Inter", sans-serif;
  font-size: clamp(180px, 32vw, 420px);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.85;
  color: var(--watermark-tint);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.section.alt .case-bg-num { color: var(--watermark-tint); }
.case-section > .container { position: relative; z-index: 1; }

.case-header {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 28px;
}
.case-eyebrow { display: flex; align-items: center; gap: 14px; }
.case-eyebrow .case-no {
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 600;
}
.case-eyebrow .case-sep {
  width: 24px; height: 1px; background: var(--ink-30);
}
.case-eyebrow .case-industry {
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-50);
}
.case-title {
  margin-top: 20px; max-width: 22ch;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.02em; line-height: 1.15;
}
.case-kpi-hero {
  font-family: "Inter", sans-serif;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 300; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--primary-fg);
  white-space: nowrap;
}

.case-photo {
  margin-top: 40px;
  aspect-ratio: 21 / 9;
  background: #e9e7e0 center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px var(--shadow-color);
}

.case-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr;
  gap: 28px;
}
.case-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.section.alt .case-block { background: var(--canvas); }
.case-k {
  font-family: "Inter", sans-serif; font-size: 11px;
  letter-spacing: 0.15em; color: var(--accent);
  font-weight: 600; margin-bottom: 12px;
}
.case-block p { font-size: 14px; line-height: 1.85; color: var(--ink-70); }
.case-results { display: flex; flex-direction: column; gap: 0; }
.case-res {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.case-res:last-child { border-bottom: 0; }
.case-res .rv {
  font-family: "Inter", sans-serif;
  font-size: 22px; font-weight: 500;
  color: var(--primary-fg); letter-spacing: -0.02em;
}
.case-res .rk {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-50);
  text-align: right;
}

@media (max-width: 860px) {
  .case-header { grid-template-columns: 1fr; align-items: start; gap: 20px; padding-bottom: 20px; }
  .case-kpi-hero { font-size: clamp(44px, 14vw, 72px); }
  .case-photo { margin-top: 28px; aspect-ratio: 16 / 9; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .case-bg-num { font-size: clamp(160px, 50vw, 280px); top: -20px; right: -30px; }
}

/* ---------- Flow page: 5-column phase cards ---------- */
.phase-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.phase-cell {
  padding: 28px 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background .2s ease;
}
.phase-cell:last-child { border-right: 0; }
.phase-cell:hover { background: var(--primary-050); }
.phase-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.phase-num {
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--accent);
}
.phase-icon { color: var(--primary-fg); }
.phase-title {
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; margin-top: 4px;
}
.phase-sub {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-50);
}
.phase-desc { font-size: 13px; color: var(--ink-70); line-height: 1.75; flex: 1; }
.phase-sla {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.phase-sla .k {
  font-family: "Inter", sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--ink-50); text-transform: uppercase;
}
.phase-sla .v {
  font-size: 13px; font-weight: 500; color: var(--primary-fg);
}
@media (max-width: 1040px) {
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .phase-cell:nth-child(2n) { border-right: 0; }
  .phase-cell:nth-last-child(-n+1) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .phase-grid { grid-template-columns: 1fr; }
  .phase-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .phase-cell:last-child { border-bottom: 0; }
}

/* ---------- Flow page: custom-design timeline ---------- */
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
  padding: 48px 0 12px;
}
.timeline-line {
  position: absolute;
  top: 72px;
  left: 24px;
  right: calc(20% - 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--ink-30) 0%, var(--ink-30) 78%, var(--accent) 78%, var(--accent) 100%);
  z-index: 0;
}
.timeline-node {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 16px 8px 0;
  z-index: 1;
}
.timeline-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 18px; font-weight: 500; color: var(--primary-fg);
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--canvas);
  transition: transform .2s ease, border-color .2s ease;
}
.timeline-dot-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline-node:hover .timeline-dot { transform: scale(1.06); border-color: var(--primary-fg); }
.timeline-when {
  font-size: 11px; letter-spacing: 0.12em; color: var(--ink-50);
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.timeline-body {
  font-size: 13px; color: var(--ink-70); line-height: 1.75;
  max-width: 26ch;
}

.timeline-ribbon {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--primary);
  color: #fff;
  padding: 28px 0;
  border-radius: var(--radius);
}
.ribbon-item {
  padding: 4px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 6px;
}
.ribbon-item:last-child { border-right: 0; }
.ribbon-v {
  font-family: "Inter", sans-serif;
  font-size: 40px; font-weight: 300; letter-spacing: -0.03em;
  line-height: 1;
}
.ribbon-k {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; padding: 20px 0; gap: 36px; }
  .timeline-line { display: none; }
  .timeline-node { flex-direction: row; align-items: flex-start; gap: 18px; padding: 0; }
  .timeline-dot { margin-bottom: 0; flex-shrink: 0; }
  .timeline-node > :not(.timeline-dot) { /* everything but the dot stacks on the right */ }
  .timeline-node {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 4px;
  }
  .timeline-dot { grid-row: 1 / span 3; box-shadow: none; }
  .timeline-when { grid-column: 2; margin-bottom: 0; }
  .timeline-title { grid-column: 2; margin-bottom: 4px; }
  .timeline-body { grid-column: 2; max-width: none; }
  .timeline-ribbon { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 20px 0; }
  .ribbon-item { padding: 4px 16px; }
  .ribbon-item:nth-child(2) { border-right: 0; }
}
@media (max-width: 480px) {
  .timeline-ribbon { grid-template-columns: 1fr; }
  .ribbon-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 12px; }
  .ribbon-item:last-child { border-bottom: 0; }
  .ribbon-v { font-size: 32px; }
}

/* ---------- Contact page ---------- */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-channels { margin-top: 32px; display: flex; flex-direction: column; }
.ch-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ch-row:first-child { border-top: 1px solid var(--ink); }
.ch-label { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-50); font-weight: 500; }
.ch-value { font-family: "Inter", sans-serif; font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.ch-sub { font-size: 13px; color: var(--ink-70); margin-top: 4px; }
.contact-page-meta { margin-top: 40px; }
.contact-page-meta .meta-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-page-meta .meta-k { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-50); font-weight: 500; }
.contact-page-meta .meta-v { font-size: 14px; color: var(--ink-70); line-height: 1.7; }
.contact-note { margin-top: 32px; padding: 20px 22px; background: var(--canvas); border-left: 2px solid var(--primary-fg); }
.contact-note .note-k { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.contact-note p { font-size: 13px; color: var(--ink-70); line-height: 1.75; }
.form-light { margin-top: 24px; }
.form-light label { color: var(--ink-70); font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; display: block; margin-bottom: 8px; }
.form-light input, .form-light textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: inherit; font-size: 14px; padding: 12px 14px; transition: border-color .2s ease; }
.form-light input:focus, .form-light textarea:focus { border-color: var(--primary-fg); outline: none; }
.form-light textarea { min-height: 140px; resize: vertical; }
.form-light .field { margin-bottom: 20px; }
.form-light .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-light .category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-light .chip { background: var(--surface); border: 1px solid var(--line); color: var(--ink-70); padding: 8px 14px; font-family: inherit; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.form-light .chip.active { background: var(--primary); border-color: var(--primary-fg); color: #fff; }
.form-light .submit { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 16px; flex-wrap: wrap; }
.form-light .success { color: var(--primary-fg); font-size: 13px; }
.form-light .error { color: #c13; font-size: 12px; margin-top: 6px; }
@media (max-width: 860px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
  .ch-row, .contact-page-meta .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .form-light .row-2 { grid-template-columns: 1fr; }
}

.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--primary-700); color: #fff; }
.section.dark h2, .section.dark .eyebrow { color: #fff; }
.section.dark .eyebrow::before { background: rgba(255,255,255,0.5); }
.section.dark .section-label { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
.section.dark .section-label .num { color: var(--accent); }
.section.dark .section-label .bar { background: rgba(255,255,255,0.15); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; align-items: end; }
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--ink-70); max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Service quick grid ---------- */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.quick-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 32px 36px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--surface);
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  position: relative;
}
.quick-cell:hover { background: var(--primary); color: #fff; }
.quick-cell:hover .quick-num,
.quick-cell:hover .quick-arrow { color: var(--accent); }
.quick-cell:hover .quick-body { color: rgba(255,255,255,0.7); }
.quick-cell .quick-num {
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; font-weight: 600; color: var(--accent);
}
.quick-cell h3 { font-size: 22px; line-height: 1.3; }
.quick-cell .quick-body { color: var(--ink-50); font-size: 13px; }
.quick-cell .quick-arrow {
  font-family: "Inter", sans-serif; font-size: 18px; color: var(--ink-30);
  align-self: flex-end;
}
@media (max-width: 860px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.strength {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.strength .stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.strength .stat {
  font-family: "Inter", sans-serif;
  font-size: 44px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--primary-fg); line-height: 1;
}
.strength .num { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; color: var(--ink-50); font-weight: 500; }
.strength h3 { font-size: 17px; margin-top: 6px; }
.strength .body { color: var(--ink-50); font-size: 13px; }
.section.dark .strength { border-color: var(--accent); }
.section.dark .strength .stat { color: #fff; }
.section.dark .strength .num { color: rgba(255,255,255,0.6); }
.section.dark .strength h3 { color: #fff; }
.section.dark .strength .body { color: rgba(255,255,255,0.7); }
@media (max-width: 860px) { .strengths { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- News ---------- */
.news-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 60px;
}
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 110px 110px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .15s ease;
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item:hover { padding-left: 8px; }
.news-item:hover .news-title { color: var(--primary-fg); }
.news-item .date { font-family: "Inter", sans-serif; font-size: 13px; color: var(--ink-50); }
.news-item .tag {
  justify-self: start;
  font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.1em;
  padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--ink-70);
}
.news-item .news-title { font-size: 15px; }
.news-item .arrow { color: var(--ink-30); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; gap: 24px; } .news-item { grid-template-columns: 90px 90px 1fr; } .news-item .arrow { display: none; } }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
}
.cta-band-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px; align-items: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.72); margin-top: 16px; max-width: 40ch; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn { border-color: rgba(255,255,255,0.3); background: transparent; color: #fff; }
.cta-band .btn:hover { background: #fff; color: #0B2A4A; }
.cta-band .btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.cta-band .btn.btn-accent:hover { background: #B43E26; color: #fff; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; gap: 28px; } .cta-band .cta-actions { justify-content: flex-start; } }

/* ---------- Page header (about / services) ---------- */
.page-head {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-head-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: end;
}
.page-num {
  font-family: "Inter", sans-serif;
  font-size: 13px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600;
}
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.page-head .lead { font-size: 18px; color: var(--ink-70); line-height: 1.7; max-width: 44ch; }
@media (max-width: 860px) { .page-head-inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) {
  .page-head { padding: 64px 0 40px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 40px); }
  .page-head .lead { font-size: 16px; }
}
.page-head-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px dashed var(--line-strong);
}
.page-head-meta .meta-tag { display: flex; flex-direction: column; gap: 6px; }
.page-head-meta .meta-tag .k {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 500;
}
.page-head-meta .meta-tag .v {
  font-family: "Inter", sans-serif;
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 720px) {
  .page-head-meta { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin-top: 40px; }
  .page-head-meta .meta-tag .v { font-size: 17px; }
}

/* ---------- CEO message ---------- */
.ceo-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.ceo-photo {
  aspect-ratio: 3/4;
  background: url('/ceo.jpg') center/cover no-repeat, var(--primary-050);
  border: 1px solid var(--line);
  position: relative;
}
.ceo-text h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; letter-spacing: -0.01em; }
.ceo-body { margin-top: 32px; color: var(--ink-70); font-size: 15px; line-height: 1.9; }
.ceo-body p { margin-bottom: 18px; }
.ceo-sign { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-50); }
.ceo-sign strong { color: var(--ink); font-weight: 500; font-family: inherit; margin-left: 8px; }
@media (max-width: 860px) { .ceo-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Philosophy ---------- */
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.phil-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface);
}
.phil-cell:last-child { border-right: 0; }
.phil-glyph { color: var(--accent); opacity: 0.85; }
.phil-roman { font-family: "Inter", sans-serif; font-size: 36px; font-weight: 300; letter-spacing: 0; color: var(--accent); line-height: 1; }
.phil-cell h3 { font-size: 18px; }
.phil-cell p { color: var(--ink-70); font-size: 14px; }
@media (max-width: 860px) { .phil-grid { grid-template-columns: 1fr; } .phil-cell { border-right: 0; border-bottom: 1px solid var(--line); } .phil-cell:last-child { border-bottom: 0; } }

/* ---------- Profile table ---------- */
.profile-table {
  border-top: 1px solid var(--ink);
}
.profile-row {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 32px; padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.profile-row .k {
  display: flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-50); padding-top: 4px;
}
.profile-row .k .profile-icon { color: var(--accent); flex-shrink: 0; opacity: 0.9; }
.profile-row .v { color: var(--ink); }
@media (max-width: 720px) {
  .profile-row { grid-template-columns: 1fr; gap: 4px; }
  .profile-row .k { padding-top: 0; }
}

/* ---------- License tiles ---------- */
.license-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.license {
  aspect-ratio: 3/4;
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer; position: relative;
}
.license:hover { transform: translateY(-2px); border-color: var(--primary-fg); }
.license .stamp {
  align-self: flex-start;
  font-family: "Noto Sans JP", sans-serif; font-weight: 600;
  background: var(--accent); color: #fff;
  padding: 4px 8px; font-size: 11px; letter-spacing: 0.08em;
}
.license .cert-title { font-size: 13px; line-height: 1.4; margin-top: 12px; font-weight: 500; }
.license .cert-auth { font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-50); margin-top: 4px; }
.license .cert-mark {
  align-self: flex-end;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--primary);
  background: rgba(255,255,255,0.85);
  display: grid; place-items: center;
  color: var(--primary); font-size: 9px; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: 0.08em; text-align: center;
  position: relative; z-index: 1;
}
.license-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-weight: 900;
  font-size: clamp(72px, 9vw, 116px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--watermark-tint);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.license:hover .license-watermark { color: var(--watermark-tint-strong); }
.license-icon {
  position: absolute;
  top: 20px; right: 18px;
  color: var(--watermark-icon);
  z-index: 1;
  transition: color .2s ease, transform .2s ease;
}
.license:hover .license-icon {
  color: var(--accent);
  transform: translateY(-2px);
}
a.license-link { text-decoration: none; color: inherit; }
a.license-link:hover { border-color: var(--primary-fg); }
.license-pdf-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: "Inter", sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--watermark-icon-strong);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1;
}
a.license-link:hover .license-pdf-tag { opacity: 1; color: var(--accent); }
@media (max-width: 520px) {
  .license { padding: 16px 14px; }
  .license-watermark { font-size: clamp(44px, 14vw, 72px); }
  .license-icon { top: 14px; right: 12px; }
  .license .stamp { padding: 3px 6px; font-size: 10px; }
  .license .cert-mark { width: 38px; height: 38px; font-size: 8px; border-width: 1.5px; }
  .license .cert-title { font-size: 12px; }
  .license .cert-auth { font-size: 9px; }
}
@media (max-width: 860px) { .license-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Facility ---------- */
.facility-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.facility-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: url('/facility.jpg') center/cover no-repeat, #DFDDD6;
  border: 1px solid var(--line);
  overflow: hidden;
}
.facility-info h3 { font-size: 24px; margin-bottom: 10px; }
.facility-info .lead { color: var(--ink-70); margin-bottom: 24px; font-size: 14px; line-height: 1.8; }
.facility-specs { border-top: 1px solid var(--ink); }
.facility-specs .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.facility-specs .row .k { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-50); }
.facility-specs .row .v { font-weight: 500; color: var(--ink); }
@media (max-width: 860px) { .facility-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Service modules (alternating L/R + bg watermark + dense bullets) ---------- */
.module {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  padding: 96px 0;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.module:not(:last-child) { border-bottom: 1px solid var(--line); }

.module-bg-num {
  position: absolute;
  top: 36px; right: -32px;
  font-family: "Inter", sans-serif;
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 900; letter-spacing: -0.06em; line-height: 0.85;
  color: var(--watermark-tint);
  pointer-events: none; user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.module:nth-child(even) .module-bg-num {
  right: auto; left: -32px;
}

.module > .m-photo, .module > .m-content { position: relative; z-index: 1; }

.module .m-photo {
  aspect-ratio: 4 / 3;
  background: #EEECE6 center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -28px var(--shadow-color);
}

.module:nth-child(even) .m-photo { grid-column: 2; grid-row: 1; }
.module:nth-child(even) .m-content { grid-column: 1; grid-row: 1; }

.m-content { display: flex; flex-direction: column; gap: 18px; }
.m-eyebrow { display: flex; align-items: center; gap: 14px; }
.m-eyebrow .m-num {
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--accent);
}
.m-eyebrow .m-sep { width: 24px; height: 1px; background: var(--ink-30); }
.m-eyebrow .m-code {
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-50);
}
.m-content h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em; line-height: 1.15;
  max-width: 16ch;
}
.m-lead {
  color: var(--ink-70); max-width: 44ch;
  font-size: 15px; line-height: 1.8;
}
.m-bullets {
  list-style: none; padding: 0; margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.m-bullets li {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.m-bullets .k {
  font-family: "Inter", sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--accent);
}
.m-bullets .v {
  font-size: 14px; color: var(--ink); line-height: 1.5;
}

#warehouse   .m-photo { background-image: url('/service-warehouse.jpg'); }
#compliance  .m-photo { background-image: url('/service-compliance.jpg'); }
#transport   .m-photo { background-image: url('/service-transport.jpg'); }
#fulfillment .m-photo { background-image: url('/service-fulfillment.jpg'); }

@media (max-width: 860px) {
  .module { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; align-items: start; }
  .module:nth-child(even) .m-photo { grid-column: 1; grid-row: auto; }
  .module:nth-child(even) .m-content { grid-column: 1; grid-row: auto; }
  .module-bg-num { font-size: clamp(100px, 32vw, 160px); top: 12px; right: -20px; }
  .module:nth-child(even) .module-bg-num { right: -20px; left: auto; }
}

/* ---------- Value-added ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.value-col { padding: 32px; border-right: 1px solid var(--line); background: var(--surface); }
.value-col:last-child { border-right: 0; }
.value-col h3 { font-size: 13px; font-family: "Inter", sans-serif; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 20px; font-weight: 500; }
.value-col ul { list-style: none; padding: 0; margin: 0; }
.value-col li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.value-col li::before { content: "+"; color: var(--accent); font-family: "Inter", sans-serif; font-weight: 500; }
.value-col li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } .value-col { border-right: 0; border-bottom: 1px solid var(--line); } .value-col:last-child { border-bottom: 0; } }

/* ---------- Services: case teaser cards (linked, with thumbnail) ---------- */
.cases-teaser-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-teaser {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.case-teaser:hover {
  transform: translateY(-3px);
  border-color: var(--primary-fg);
  box-shadow: 0 24px 50px -24px var(--shadow-color);
}
.case-teaser-photo {
  aspect-ratio: 16 / 9;
  background: #EEECE6 center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.case-teaser-body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.case-teaser-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.case-teaser-no {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 600;
}
.case-teaser-kpi {
  font-family: "Inter", sans-serif;
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--primary-fg); line-height: 1;
}
.case-teaser h3 {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.35;
}
.case-teaser p {
  font-size: 13px; color: var(--ink-70); line-height: 1.7;
}
.case-teaser-arrow {
  margin-top: auto; padding-top: 8px;
  font-size: 12px; color: var(--ink-50);
  letter-spacing: 0.02em;
  transition: color .2s ease;
}
.case-teaser:hover .case-teaser-arrow { color: var(--accent); }
@media (max-width: 720px) {
  .cases-teaser-grid { grid-template-columns: 1fr; }
  .case-teaser-kpi { font-size: 24px; }
}

/* ---------- Footer & Contact ---------- */
.contact-section {
  padding: 120px 0;
  background: var(--primary-700); color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-section h2 { color: #fff; max-width: 18ch; }
.contact-section .sub { color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 44ch; }
.contact-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: rgba(255,255,255,0.85); }
.contact-meta .row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-meta .row .k { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 36px;
}
.form label { display: block; font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.form .field { margin-bottom: 22px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 14px; font-family: inherit;
  border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip {
  padding: 8px 14px; font-size: 13px; font-family: inherit;
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
}
.form .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form textarea { min-height: 110px; resize: vertical; }
.form .submit {
  margin-top: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 20px;
}
.form .error { color: #FFB59E; font-size: 12px; margin-top: 6px; }
.form .success { color: #8EE0B3; font-size: 13px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .form .row-2 { grid-template-columns: 1fr; } }

.footer {
  background: var(--primary-700);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 72px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col { min-width: 0; }
.footer-h {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 22px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .brand { color: #fff; font-size: 15px; }
.footer-brand .brand-name-sub { color: rgba(255,255,255,0.45); }
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.8);
  line-height: 1.7; max-width: 32ch;
  margin: 0;
}
.footer-address {
  font-size: 13px; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 34ch;
  margin: 0;
}
.footer-cta {
  align-self: flex-start;
  padding: 12px 20px;
  font-size: 13px;
  margin-top: 8px;
}
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 14px; color: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s ease, transform .15s ease;
}
.footer-nav a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact li {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 14px; align-items: baseline;
  font-size: 14px;
}
.footer-contact li .k {
  font-family: "Inter", sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-contact li .v { color: rgba(255,255,255,0.88); }
.footer-contact li .v.mono { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.02em; }
.footer-contact li a.v { text-decoration: none; transition: color .15s ease; }
.footer-contact li a.v:hover { color: var(--accent); }

.footer-bottom {
  padding: 22px 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .mono { letter-spacing: 0.18em; font-size: 10px; text-transform: uppercase; }

@media (max-width: 860px) {
  .footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 24px; }
  .footer-contact li { grid-template-columns: 56px 1fr; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  width: 280px;
  padding: 18px 20px 20px;
  font-family: "Inter", sans-serif;
}
.tweaks-panel h4 {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-50); margin-bottom: 14px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel h4 .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.tweaks-panel .opt-row { display: flex; gap: 8px; }
.tweaks-panel .opt {
  flex: 1; padding: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-70);
}
.tweaks-panel .opt.active { border-color: var(--ink); color: var(--ink); }
.tweaks-panel .opt .swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Contact page (dark-on-primary) overrides for unified look ---------- */
.contact-section .contact-channels { margin-top: 32px; display: flex; flex-direction: column; }
.contact-section .ch-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: baseline;
}
.contact-section .ch-row:first-child { border-top: 1px solid rgba(255,255,255,0.28); }
.contact-section .ch-label {
  font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.contact-section .ch-value {
  font-family: "Inter", sans-serif; font-size: 18px; font-weight: 500;
  color: #fff; letter-spacing: -0.01em;
}
.contact-section .ch-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.contact-section .contact-page-meta { margin-top: 36px; }
.contact-section .contact-page-meta .meta-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-section .contact-page-meta .meta-k {
  font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.contact-section .contact-page-meta .meta-v { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.7; }

.contact-section .contact-note {
  margin-top: 32px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.05);
  border-left: 2px solid var(--accent);
}
.contact-section .contact-note .note-k {
  font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.contact-section .contact-note p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.75; }

@media (max-width: 860px) {
  .contact-section .ch-row,
  .contact-section .contact-page-meta .meta-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- SSR form additions (chip radios, notices, lang switch links) ---------- */
.chip { display: inline-flex; align-items: center; }
.chip input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.form .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-light .chip:has(input:checked) { background: var(--primary); border-color: var(--primary-fg); color: #fff; }

.notice {
  padding: 14px 18px; border-radius: 2px;
  font-size: 14px; margin-bottom: 20px;
  border: 1px solid;
}
.notice-success { background: #E8F4EC; border-color: #B9D9C4; color: var(--ok); }
.notice-error   { background: #FBECE8; border-color: #F0CABD; color: #A5381E; }

.dark .notice-success { background: rgba(31,122,76,0.12); color: #8EE0B3; border-color: rgba(142,224,179,0.4); }
.dark .notice-error   { background: rgba(209,75,47,0.12);  color: #FFB59E; border-color: rgba(255,181,158,0.35); }
.contact-section .notice-success { background: rgba(31,122,76,0.15); color: #8EE0B3; border-color: rgba(142,224,179,0.4); }
.contact-section .notice-error   { background: rgba(209,75,47,0.15);  color: #FFB59E; border-color: rgba(255,181,158,0.35); }

/* Dark-mode component overrides (placed at end so source order beats earlier rules). */
@media (prefers-color-scheme: dark) {
  .positioning-pillars { border-top-color: rgba(230,232,235,0.22); }
}

/* ==========================================================================
   2026-06 IA additions — nav dropdowns, breadcrumbs, block primitives,
   solutions/services/cases/logistics/contact patterns.
   Everything below uses the semantic tokens so dark mode self-applies.
   ========================================================================== */

/* ---------- Nav: grouped items + dropdowns ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-chevron { opacity: 0.55; margin-top: 1px; }
.nav-sub {
  position: absolute; top: 100%; left: 8px; min-width: 240px;
  background: var(--surface-elev); border: 1px solid var(--line);
  box-shadow: 0 14px 34px var(--shadow-color);
  padding: 8px; z-index: 60; border-radius: var(--radius-lg);
  display: none; flex-direction: column;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub { display: flex; }
.nav-sub a {
  padding: 10px 14px; font-size: 13px; color: var(--ink-70);
  border-radius: var(--radius); white-space: nowrap;
}
.nav-sub a:hover { background: var(--primary-050); color: var(--primary-fg); }
.nav-cta { padding: 9px 16px; font-size: 12px; white-space: nowrap; }
@media (max-width: 1200px) { .nav-links { gap: 0; } .nav-links .nav-item > a { padding: 8px 10px; font-size: 13px; } }
@media (max-width: 1040px) {
  /* Hamburger panel: groups stacked, children always visible. */
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item > a { border-bottom: 1px solid var(--line); font-weight: 600; }
  .nav-chevron { display: none; }
  .nav-sub {
    display: flex; position: static; min-width: 0; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 6px;
  }
  .nav-sub a { padding: 9px 16px 9px 28px; font-size: 13px; border-bottom: 0; font-weight: 400; }
  .nav-item:last-child > a { border-bottom: 0; }
}
@media (max-width: 720px) { .nav-cta { display: none; } }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--ink-50); padding-top: 24px;
}
.crumbs a { color: var(--ink-50); }
.crumbs a:hover { color: var(--primary-fg); }
.crumbs span[aria-current] { color: var(--ink-70); }
.crumb-sep { color: var(--ink-30); }

/* ---------- Shared bits ---------- */
.section-sub { color: var(--ink-70); max-width: 68ch; line-height: 1.9; margin-top: 18px; }
.section.dark .section-sub { color: rgba(255,255,255,0.72); }
.block-note { font-size: 12.5px; color: var(--ink-50); margin-top: 20px; }
.section.dark .block-note { color: rgba(255,255,255,0.55); }

/* Dark strip under hero / CTA strip on detail pages */
.ticker { background: var(--primary-700); color: #fff; }
.ticker-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.ticker-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 24px; border-right: 1px solid rgba(255,255,255,0.12);
}
.ticker-item:last-child { border-right: 0; }
.ticker-item .tk { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ticker-item .tv { font-size: 15px; font-weight: 500; }
.ticker-ctas { display: flex; align-items: center; gap: 14px; padding: 22px 0; flex-wrap: wrap; }
.ticker .btn { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); color: #fff; }
.ticker .btn:hover { background: rgba(255,255,255,0.15); }
.ticker .btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.ticker .btn.btn-accent:hover { background: #B43E26; }
@media (max-width: 860px) {
  .ticker-inner { grid-template-columns: repeat(2, 1fr); }
  .ticker-item { padding: 14px 18px; }
  .ticker-item:nth-child(2) { border-right: 0; }
  .ticker-item:nth-child(1), .ticker-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* Big-number strip */
.bignum-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px;
}
.section.dark .bignum-strip { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.bignum { background: var(--surface); padding: 28px 24px; }
.section.dark .bignum { background: var(--primary-700); }
.bn-v { font-family: "Inter", sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--primary-fg); }
.section.dark .bn-v { color: #fff; }
.bn-k { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-50); margin-top: 6px; text-transform: uppercase; font-family: "Inter", sans-serif; }
.section.dark .bn-k { color: rgba(255,255,255,0.6); }
.bn-sub { font-size: 12px; color: var(--ink-50); margin-top: 8px; }
.section.dark .bn-sub { color: rgba(255,255,255,0.55); }
@media (max-width: 520px) { .bignum { padding: 20px 16px; } }

/* Flow chain (工程 A → B → C) */
.flow-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.fc-step {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: var(--radius-lg);
}
.section.dark .fc-step { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.contact-section .fc-step { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.fc-num { font-size: 10px; color: var(--accent); font-weight: 600; }
.fc-label { font-size: 13.5px; font-weight: 500; }
.fc-arrow { color: var(--ink-30); font-size: 15px; }
.section.dark .fc-arrow, .contact-section .fc-arrow { color: rgba(255,255,255,0.4); }
@media (max-width: 720px) {
  .flow-chain { flex-direction: column; align-items: stretch; }
  .fc-arrow { transform: rotate(90deg); align-self: center; }
}

/* FAQ */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq-q { display: flex; gap: 14px; font-weight: 600; font-size: 15px; }
.faq-a { display: flex; gap: 14px; margin-top: 10px; color: var(--ink-70); font-size: 14px; line-height: 1.85; }
.faq-mark { flex: 0 0 auto; font-size: 12px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.faq-mark-a { color: var(--primary-fg); }

/* Related links */
.related-links { margin-top: 36px; }
.related-title { font-weight: 600; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.related-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 16px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-lg); transition: border-color .15s ease, transform .15s ease;
}
.related-card:hover { border-color: var(--primary-fg); transform: translateY(-2px); }
.related-card .arrow { color: var(--accent); }

/* Bottom CTA */
.cta-section .cta-inner { text-align: center; padding: 24px 0; }
.cta-section h2 { color: #fff; max-width: 26ch; margin: 0 auto; }
.cta-body { color: rgba(255,255,255,0.75); margin-top: 18px; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.cta-section .btn, .contact-section .cta-buttons .btn { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); color: #fff; }
.cta-section .btn:hover, .contact-section .cta-buttons .btn:hover { background: rgba(255,255,255,0.15); }
.cta-section .btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.cta-section .btn.btn-accent:hover { background: #B43E26; }
.cta-note { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 22px; }

/* Mini case block (課題→対応→成果) */
.mini-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.mini-case {
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px; border-radius: var(--radius-lg); margin-top: 20px;
}
.mini-case-grid .mini-case { margin-top: 0; }
.mc-client { font-weight: 700; font-size: 16px; margin-bottom: 18px; color: var(--primary-fg); }
.mc-row { margin-bottom: 14px; }
.mc-row p { margin: 4px 0 0; color: var(--ink-70); font-size: 14px; line-height: 1.8; }
.mc-k {
  display: inline-block; font-family: "Inter", sans-serif; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.mc-results { margin: 6px 0 0; padding: 0 0 0 2px; list-style: none; }
.mc-results li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink); margin-top: 4px; }
.mc-results li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- Home ---------- */
.positioning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; align-items: start; }
.positioning-title { max-width: 22ch; }
.positioning-body { color: var(--ink-70); line-height: 1.95; }
@media (max-width: 860px) { .positioning-grid { grid-template-columns: 1fr; gap: 20px; } }
.pillar { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar-num { color: var(--accent); font-weight: 600; font-size: 12px; }
.pillar h3 { margin: 12px 0 8px; font-size: 16px; }
.pillar p { margin: 0; color: var(--ink-70); font-size: 13.5px; line-height: 1.8; }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.industry-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px; border-radius: var(--radius-lg); color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.industry-card:hover { border-color: var(--primary-fg); transform: translateY(-3px); }
.industry-card h3 { margin: 0; font-size: 17px; color: var(--primary-fg); }
.industry-pains { margin: 0; padding: 0; list-style: none; }
.industry-pains li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-70); margin-top: 4px; }
.industry-pains li::before { content: '·'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.industry-gain { font-size: 14px; font-weight: 600; color: var(--accent); }
.industry-card .btn-link { margin-top: auto; align-self: flex-start; }

.lineup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; }
.lineup-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.lineup-card:hover { border-color: var(--primary-fg); transform: translateY(-3px); }
.lineup-photo { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.lineup-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.lineup-num { color: var(--accent); font-size: 11px; font-weight: 600; }
.lineup-body h3 { margin: 0; font-size: 16px; }
.lineup-body p { margin: 0; color: var(--ink-70); font-size: 13.5px; line-height: 1.75; }
.lineup-body .btn-link { margin-top: auto; align-self: flex-start; padding-top: 8px; }

.structure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; }
.structure-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); padding: 28px 24px; border-radius: var(--radius-lg); color: #fff; }
.st-stat { font-family: "Inter", sans-serif; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.st-title { font-weight: 600; margin-top: 10px; }
.st-sub { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 6px; letter-spacing: 0.04em; }
.structure-card p { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.8; }

.home-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.home-case {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.home-case:hover { border-color: var(--primary-fg); transform: translateY(-3px); }
.hc-num { color: var(--accent); font-weight: 600; font-size: 12px; }
.hc-industry { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-50); }
.hc-client { font-weight: 700; font-size: 16px; color: var(--primary-fg); }
.hc-row p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-70); line-height: 1.75; }
.hc-row ul { margin: 4px 0 0; padding: 0; list-style: none; }
.hc-row ul li { position: relative; padding-left: 18px; font-size: 13.5px; margin-top: 3px; }
.hc-row ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.hc-k { font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.home-case .btn-link { margin-top: auto; align-self: flex-start; }

/* ---------- Solutions / service details ---------- */
.pain-list { margin: 32px 0 0; padding: 0; list-style: none; max-width: 760px; }
.pain-list li {
  position: relative; padding: 14px 4px 14px 34px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
.pain-list li:first-child { border-top: 1px solid var(--line); }
.pain-list li::before { content: '!'; position: absolute; left: 8px; top: 13px; color: var(--accent); font-weight: 800; font-family: "Inter", sans-serif; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.sol-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.sol-num { color: var(--accent); font-weight: 600; font-size: 12px; }
.sol-card h3 { margin: 0; font-size: 16.5px; color: var(--primary-fg); }
.sol-card p { margin: 0; color: var(--ink-70); font-size: 13.5px; line-height: 1.85; }
.sol-card ul { margin: 0; padding: 0; list-style: none; }
.sol-card ul li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-70); margin-top: 6px; line-height: 1.75; }
.sol-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.sol-effect { font-size: 13.5px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }
.sol-card .btn-link { margin-top: auto; align-self: flex-start; }
.sol-record { margin-top: 28px; font-weight: 600; color: var(--primary-fg); max-width: 60ch; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; padding: 7px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-70);
}
.badge-row-lg { margin-top: 36px; gap: 10px; }
.badge-row-lg .badge { padding: 10px 20px; font-size: 13.5px; }
a.badge-link { color: var(--ink-70); transition: all .15s ease; }
a.badge-link:hover { border-color: var(--primary-fg); color: var(--primary-fg); }
.section.dark .badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }

.effect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.effect-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 22px 22px 48px; font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.effect-card::before { content: '✓'; position: absolute; left: 20px; top: 20px; color: var(--ok); font-weight: 800; }

/* Services hub rows */
.service-sections { display: flex; flex-direction: column; gap: 28px; margin-top: 44px; }
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.service-row:hover { border-color: var(--primary-fg); transform: translateY(-2px); }
.service-row-photo { min-height: 260px; background-size: cover; background-position: center; }
.service-row.reverse .service-row-photo { order: 2; }
.service-row-body { display: flex; flex-direction: column; gap: 12px; padding: 40px; justify-content: center; }
.service-row-num { color: var(--accent); font-weight: 600; font-size: 12px; }
.service-row-body h3 { margin: 0; font-size: 22px; }
.service-row-body .btn-link { align-self: flex-start; margin-top: 6px; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-row-photo { order: 0; }
  .service-row-photo { min-height: 200px; }
  .service-row-body { padding: 26px 24px 30px; }
}

.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 36px; }
.reason-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.reason-card h3 { margin: 0; font-size: 15.5px; color: var(--primary-fg); }
.reason-card p { margin: 8px 0 0; font-size: 13px; color: var(--ink-70); line-height: 1.8; }

.facility-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; align-items: center; }
.facility-split .facility-photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: var(--radius-lg); }
.facility-list { margin: 0; padding: 0; list-style: none; }
.facility-list li { padding: 12px 4px 12px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 14.5px; }
.facility-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
@media (max-width: 860px) { .facility-split { grid-template-columns: 1fr; gap: 24px; } }

.flow-block { margin-top: 36px; }
.flow-block-title { font-size: 15px; color: var(--primary-fg); margin: 0 0 4px; }
.flow-block .flow-chain { margin-top: 16px; }

/* ---------- Cases hub / details ---------- */
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.explore-h { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-family: "Inter", sans-serif; color: var(--ink-50); margin: 0 0 4px; }
@media (max-width: 860px) { .explore-grid { grid-template-columns: 1fr; gap: 28px; } }

.featured-case {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; margin-top: 36px; color: var(--ink); transition: border-color .15s ease;
}
.featured-case:hover { border-color: var(--primary-fg); }
.featured-case .fc-tag { display: inline-block; color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; }
.fc-problem { margin-top: 14px; }
.fc-problem p { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.featured-case .flow-chain { margin-top: 22px; }
.featured-case .btn-link { margin-top: 20px; display: inline-block; }

.small-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.small-case {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.small-case:hover { border-color: var(--primary-fg); transform: translateY(-2px); }
.sc-industry { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-50); }
.small-case h3 { margin: 0; font-size: 16px; color: var(--primary-fg); }
.sc-points { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-70); }
.small-case .btn-link { margin-top: auto; align-self: flex-start; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 36px; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; text-align: center; }
.story-step { padding: 10px 12px; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.story-before { background: var(--primary-050); color: var(--ink-70); }
.story-via { background: var(--primary); color: #fff; }
.story-after { background: var(--accent); color: #fff; }
.story-arrow { color: var(--ink-30); padding: 4px 0; }

.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.voice {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 26px 44px; position: relative; color: var(--ink-70); font-size: 14px; line-height: 1.85;
}
.voice::before { content: '“'; position: absolute; left: 18px; top: 12px; font-size: 32px; color: var(--accent); font-family: Georgia, serif; }

.container-photo {
  max-width: var(--container); margin: 28px auto 0; border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9; background-size: cover; background-position: center;
}
@media (max-width: 1320px) { .container-photo { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 720px) { .container-photo { margin-left: 20px; margin-right: 20px; aspect-ratio: 16 / 9; } }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 36px; background: var(--surface); border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 220px; color: var(--ink-50); font-weight: 500; background: var(--primary-050); }
.spec-table .spec-sub { color: var(--ink-50); font-size: 13px; }
@media (max-width: 720px) {
  .spec-table th { width: 120px; padding: 12px 14px; }
  .spec-table td { padding: 12px 14px; }
}

.did-list { margin: 32px 0 0; padding: 0; list-style: none; max-width: 760px; }
.did-list li { position: relative; padding: 12px 4px 12px 32px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.did-list li:first-child { border-top: 1px solid var(--line); }
.did-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* ---------- About ---------- */
.phil-single { max-width: 720px; margin-top: 36px; }
.phil-note { font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.org-chart { margin-top: 44px; display: flex; flex-direction: column; align-items: center; }
.org-top { background: var(--primary); color: #fff; padding: 14px 36px; border-radius: var(--radius-lg); font-weight: 600; }
.org-line { width: 1px; height: 28px; background: var(--line-strong); }
.org-units { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.org-unit { background: var(--surface); border: 1px solid var(--line); padding: 12px 26px; border-radius: var(--radius-lg); font-weight: 500; font-size: 14px; }
.history-line { margin: 40px 0 0; padding: 0; list-style: none; position: relative; max-width: 640px; }
.history-line::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.history-line li { position: relative; padding: 0 0 26px 36px; }
.history-line li:last-child { padding-bottom: 0; }
.history-line li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--primary-fg);
}
.history-line li:last-child::before { border-color: var(--accent); }
.hist-when { display: block; font-size: 12px; color: var(--accent); font-weight: 600; }
.hist-what { font-size: 15px; font-weight: 500; }

/* ---------- Contact / plan forms ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.entry-card {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.entry-card:hover { border-color: var(--primary-fg); transform: translateY(-2px); }
.entry-num { color: var(--accent); font-weight: 600; font-size: 12px; }
.entry-card h3 { margin: 0; font-size: 16.5px; color: var(--primary-fg); }
.entry-card p { margin: 0; font-size: 13px; color: var(--ink-70); line-height: 1.75; flex: 1; }
@media (max-width: 1040px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .entry-grid { grid-template-columns: 1fr; } }

.form select {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 14px; font-family: inherit; border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form select:focus { outline: none; border-color: var(--accent); }
.form select option { background: #14181F; color: #fff; }
.form .req {
  display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 9px;
  background: var(--accent); color: #fff; border-radius: 2px; letter-spacing: 0.08em; vertical-align: 1px;
}
.form .field-consent label.consent {
  display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0;
  font-size: 13px; color: rgba(255,255,255,0.8); cursor: pointer;
}
.form .field-consent input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.form .check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.form .chip { cursor: pointer; }
.form .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 3-step plan form */
.form-step { border: 0; padding: 0; margin: 0 0 8px; }
.form-step legend {
  font-family: "Inter", "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; color: #fff; padding: 0; margin-bottom: 20px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.form-step + .form-step { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15); }
.step-progress { display: flex; gap: 8px; margin-bottom: 28px; }
.sp-item {
  flex: 1; text-align: center; font-size: 11px; letter-spacing: 0.12em;
  padding: 8px 4px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.45);
  border-radius: var(--radius);
}
.sp-item.active { border-color: var(--accent); color: #fff; background: rgba(209,75,47,0.18); }
.sp-item.done { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.4); }
.js-steps .form-step { display: none; }
.js-steps .form-step.active { display: block; }
.js-steps .form-step + .form-step { margin-top: 0; padding-top: 0; border-top: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-nav .step-next:only-child { margin-left: auto; }
.step-nav .btn.btn-ghost { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); background: transparent; }
.step-nav .btn.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
#plan .form { margin-top: 28px; }

/* Thanks page */
.thanks-section { padding-top: 120px; padding-bottom: 120px; }
.thanks-mark {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ok); color: #fff; font-size: 32px; font-weight: 700;
}

/* ---------- Footer sitemap (top-level groups only) ---------- */
.footer-nav-top { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 40px; }
.footer-nav-top a { font-size: 13px; }
@media (max-width: 520px) { .footer-nav-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion layer — cross-document view transitions, load bar, scroll reveal,
   hero entrance, menu transitions. All gated on prefers-reduced-motion.
   ========================================================================== */

html { scroll-behavior: smooth; }

/* ---------- Cross-document View Transitions (MPA page transitions) ---------- */
@view-transition { navigation: auto; }
/* Nav stays put across navigations; the rest of the page fades/rises. */
.nav { view-transition-name: site-nav; }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vt-out { from { opacity: 1; } to { opacity: 0; } }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.22,.9,.34,1) both; }
::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; }

/* ---------- Top loading bar (shown while the next page loads) ---------- */
.load-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #F0885F);
  z-index: 999; opacity: 0; pointer-events: none;
}
.load-bar.loading {
  opacity: 1;
  width: 85%;
  transition: width 5s cubic-bezier(.08,.82,.17,1), opacity .2s ease;
}

/* ---------- Scroll reveal (classes added by app.js; html.js gate = no-JS safe) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.9,.34,1), transform .6s cubic-bezier(.22,.9,.34,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero entrance (staggered fade-up on load) ---------- */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: hero-rise .7s cubic-bezier(.22,.9,.34,1) both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }
.hero-inner > *:nth-child(5) { animation-delay: .5s; }
@keyframes head-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-head .crumbs { animation: head-rise .5s ease both; }
.page-head .page-head-inner { animation: head-rise .6s cubic-bezier(.22,.9,.34,1) .08s both; }
.page-head .page-head-meta { animation: head-rise .6s cubic-bezier(.22,.9,.34,1) .18s both; }

/* ---------- Nav dropdown: animated open (desktop) ---------- */
@media (min-width: 1041px) {
  .nav-sub {
    display: flex;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s cubic-bezier(.22,.9,.34,1), visibility 0s linear .22s;
  }
  .nav-item.has-sub:hover .nav-sub,
  .nav-item.has-sub:focus-within .nav-sub {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s cubic-bezier(.22,.9,.34,1), visibility 0s;
  }
  .nav-item.has-sub:hover .nav-chevron,
  .nav-item.has-sub:focus-within .nav-chevron { transform: rotate(180deg); }
  .nav-chevron { transition: transform .2s ease; }
}

/* ---------- Mobile menu: animated slide-down (replaces display toggle) ---------- */
@media (max-width: 1040px) {
  .nav-links {
    display: flex;
    visibility: hidden; opacity: 0;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,.9,.34,1), visibility 0s linear .28s;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-toggle-input:checked ~ .nav-links {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,.9,.34,1), visibility 0s;
  }
}

/* ---------- Lang popup: pop-in ---------- */
@keyframes menu-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.lang-popup[open] .lang-menu { animation: menu-pop .18s cubic-bezier(.22,.9,.34,1) both; }

/* ---------- Micro-interactions ---------- */
.btn { transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease; }
.btn:hover { box-shadow: 0 6px 18px var(--shadow-color); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.industry-card, .lineup-card, .home-case, .related-card, .entry-card, .small-case, .service-row, .license {
  transition: border-color .18s ease, transform .22s cubic-bezier(.22,.9,.34,1), box-shadow .22s ease;
}
.industry-card:hover, .lineup-card:hover, .home-case:hover, .related-card:hover,
.entry-card:hover, .small-case:hover, .service-row:hover { box-shadow: 0 14px 34px var(--shadow-color); }
.badge { transition: border-color .15s ease, color .15s ease, transform .15s ease; }
a.badge-link:hover { transform: translateY(-1px); }

/* ==========================================================================
   Page-head "freight manifest" decoration — blueprint grid, outline
   watermark, corner registration ticks, duotone photo panel, animated
   freight-route line. All layers use semantic tokens (dark-mode safe).
   ========================================================================== */

.page-head { position: relative; overflow: hidden; }
.page-head > .container, .page-head > .container.page-head-inner { position: relative; z-index: 1; }
.ph-deco { position: absolute; inset: 0; pointer-events: none; }

/* Blueprint grid, fading out toward the bottom-left */
.ph-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(120% 130% at 85% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 130% at 85% 0%, #000 30%, transparent 75%);
}

/* Soft navy glow behind the watermark */
.ph-glow {
  position: absolute; top: -30%; right: -8%; width: 55%; height: 130%;
  background: radial-gradient(closest-side, var(--primary-050), transparent 72%);
  opacity: 0.9;
}

/* Giant outline watermark (the page code word) */
.ph-watermark {
  position: absolute; top: 8px; right: -0.06em;
  font-family: "Inter", sans-serif;
  font-size: clamp(90px, 13vw, 190px);
  font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--watermark-tint-strong);
  user-select: none; white-space: nowrap;
  animation: wm-drift 1.1s cubic-bezier(.22,.9,.34,1) both;
}
@keyframes wm-drift { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* Corner registration ticks (print crop marks) */
.ph-corners { position: absolute; inset: 20px 24px; }
.ph-corners::before, .ph-corners::after,
.ph-corners { --tick: var(--line-strong); }
.ph-corners {
  background:
    linear-gradient(var(--tick), var(--tick)) top left    / 18px 1px,
    linear-gradient(var(--tick), var(--tick)) top left    / 1px 18px,
    linear-gradient(var(--tick), var(--tick)) top right   / 18px 1px,
    linear-gradient(var(--tick), var(--tick)) top right   / 1px 18px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 18px 1px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 1px 18px,
    linear-gradient(var(--tick), var(--tick)) bottom right/ 18px 1px,
    linear-gradient(var(--tick), var(--tick)) bottom right/ 1px 18px;
  background-repeat: no-repeat;
}

/* ---------- Duotone photo panel (opt-in via `photo` prop) ---------- */
.ph-inner-photo { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.ph-inner-photo .lead { max-width: 52ch; }
.ph-photo {
  position: relative; margin: 0; min-height: 320px;
  border: 1px solid var(--line-strong);
  animation: head-rise .7s cubic-bezier(.22,.9,.34,1) .25s both;
}
.ph-photo-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(35%) contrast(1.04);
}
.ph-photo::before { /* navy duotone wash */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(11,42,74,0.38), rgba(11,42,74,0.06) 55%, rgba(209,75,47,0.10));
  mix-blend-mode: multiply;
}
.ph-photo::after { /* accent tab, top-left */
  content: ''; position: absolute; top: -1px; left: -1px; width: 56px; height: 5px;
  background: var(--accent); z-index: 2;
}
.ph-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 7px 12px; font-size: 9.5px; letter-spacing: 0.12em;
  background: var(--surface); color: var(--ink-70);
  border: 1px solid var(--line-strong);
  box-shadow: 4px 4px 0 var(--shadow-color);
  max-width: calc(100% - 28px);
}
@media (max-width: 860px) {
  .ph-inner-photo { grid-template-columns: 1fr; }
  .ph-photo { min-height: 220px; }
}

/* ---------- Freight-route line (opt-in via `route` prop) ---------- */
.ph-route {
  display: flex; align-items: center; gap: 14px;
  margin-top: 52px; padding: 18px 4px 0;
}
.ph-node { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.ph-mark {
  width: 9px; height: 9px; flex: 0 0 auto;
  border: 1.5px solid var(--primary-fg); background: var(--canvas);
  transform: rotate(45deg);
  animation: node-pulse 3.2s ease infinite;
  animation-delay: var(--d, 0s);
}
.ph-mark-dest { background: var(--accent); border-color: var(--accent); border-radius: 50%; transform: none; }
@keyframes node-pulse {
  0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(209,75,47,0); }
  8% { box-shadow: 0 0 0 6px rgba(209,75,47,0.22); }
}
.ph-lab { font-size: 9.5px; letter-spacing: 0.18em; color: var(--ink-50); white-space: nowrap; }
.ph-seg {
  flex: 1; height: 1px; min-width: 20px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  animation: seg-flow 1s linear infinite;
}
@keyframes seg-flow { to { background-position-x: 12px; } }
@media (max-width: 720px) {
  .ph-route { flex-wrap: nowrap; gap: 8px; margin-top: 36px; overflow: hidden; }
  .ph-lab { font-size: 8px; letter-spacing: 0.1em; }
}
@media (max-width: 460px) { .ph-node:nth-child(3) .ph-lab { display: none; } }

/* Dark mode: photo wash reads differently on dark canvas */
@media (prefers-color-scheme: dark) {
  .ph-grid { opacity: 0.75; }
  .ph-photo::before { mix-blend-mode: normal; background: linear-gradient(160deg, rgba(8,9,12,0.45), rgba(8,9,12,0.05) 55%, rgba(209,75,47,0.12)); }
  .ph-mark { background: var(--canvas); }
}

/* ---------- Reduced motion: switch the whole layer off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero-inner > *,
  .page-head .crumbs, .page-head .page-head-inner, .page-head .page-head-meta { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .nav-links, .nav-sub, .lang-popup[open] .lang-menu { transition: none; animation: none; }
  .ph-watermark, .ph-photo { animation: none; }
  .ph-seg { animation: none; }
  .ph-mark { animation: none; }
}
