/* ==========================================================================
   DOUBELL corporate site — style.css
   Palette: ink #0E1A24 / accent (logo blue) #467088 / light accent #9DBBD0
   ========================================================================== */

:root {
  --ink: #0E1A24;
  --ink-2: #3E4A54;
  --muted: #5A6670;
  --muted-2: #7A848C;
  --muted-3: #9AA3AA;
  --line: #E4E7EA;
  --line-2: #EEF0F2;
  --line-3: #C9CFD4;
  --gray: #F3F5F7;
  --white: #ffffff;
  --accent: #467088;
  --accent-light: #9DBBD0;
  --on-ink: #B8C2C9;
  --on-ink-2: #C9D3DB;
  --on-ink-3: #8A96A0;

  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, system-ui, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', system-ui, sans-serif;

  --container: 1320px;
  --gutter: 56px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 0; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow--light { color: var(--accent-light); }
.label {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.label--light { color: var(--accent-light); }
.note { font-size: 12px; color: var(--muted-2); line-height: 1.8; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 22px;
  font-size: 13px; letter-spacing: 0.1em; font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--lg { height: 58px; padding: 0 30px; font-size: 14px; letter-spacing: 0.12em; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line-3); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; color: #fff; }

.more {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: 0.14em; font-weight: 500;
  white-space: nowrap;
}
.more .icon { transition: transform .2s; }
.more:hover .icon { transform: translateX(4px); }

.cta {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 32px;
  background: #fff; color: var(--ink);
  font-size: 15px; letter-spacing: 0.12em; font-weight: 500;
  border: 1px solid #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.cta .icon { width: 18px; height: 18px; }
.cta:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
.cta--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); font-weight: 400; }
.cta--ghost:hover { background: transparent; border-color: #fff; color: #fff; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: var(--on-ink-2); }
.utility__inner {
  height: 36px; display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; letter-spacing: 0.1em;
}
.utility__tag { font-family: var(--font-en); color: var(--accent-light); }
.utility__nav { display: flex; align-items: center; gap: 28px; }
.utility__nav a { color: var(--on-ink-2); }
.utility__nav a:hover { color: #fff; }
.utility__sep { width: 1px; height: 14px; background: rgba(255,255,255,.25); }
.lang { font-family: var(--font-en); display: inline-flex; gap: 10px; }
.lang a { color: var(--on-ink-3); }
.lang a.is-active { color: #fff; }
.lang span { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(14,26,36,.25); }
.site-header__inner {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { height: 24px; width: auto; }
.global-nav ul { display: flex; gap: 36px; }
.global-nav a {
  display: inline-block; padding: 30px 0;
  font-size: 13.5px; letter-spacing: 0.08em; font-weight: 500;
  position: relative;
}
.global-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.global-nav ul a:hover::after { transform: scaleX(1); }
.global-nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-3);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Sections (shared) ---------- */
.section { padding: 136px 0; border-bottom: 1px solid var(--line); }
.section--gray { background: var(--gray); }
.section--ink { background: var(--ink); color: #fff; border-bottom: 0; }
.section__head { margin-bottom: 64px; }
.section__head--2col {
  display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end;
}
.section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px;
}
.section__title { font-size: 42px; line-height: 1.4; font-weight: 500; letter-spacing: -0.005em; }
.section__title--sm { font-size: 38px; }
.section__lead { font-size: 15px; line-height: 2; color: var(--ink-2); font-weight: 300; max-width: 520px; }
.section--ink .section__lead { color: var(--on-ink); max-width: 560px; margin-top: 40px; font-size: 15.5px; line-height: 2.1; }
.section__note { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.9; }
.section__foot {
  margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.section__foot--right { justify-content: flex-end; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__visual {
  position: absolute; right: 0; top: 0; bottom: 76px; width: 58%;
  background: linear-gradient(180deg, var(--gray) 0%, #fff 100%);
  overflow: hidden;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero__lines { stroke: var(--line-3); stroke-width: 1; }
.hero__lines--light { stroke: #DCE1E5; }
.hero__scope { stroke: var(--accent); stroke-width: 1.2; animation: drift 12s ease-in-out infinite alternate; }
.hero__scope circle:first-child { stroke-dasharray: 4 6; }
.hero__scope-dot { fill: var(--accent); stroke: none; }
.hero__visual-note {
  position: absolute; right: 24px; bottom: 24px;
  font-family: var(--font-en); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted-2);
  background: rgba(255,255,255,.9); padding: 6px 10px;
}
.hero__inner { position: relative; padding-top: 140px; padding-bottom: 120px; }
.hero__inner > * { max-width: 60%; }
.hero__inner .eyebrow {
  margin-bottom: 36px; letter-spacing: 0.26em;
  display: flex; align-items: center; gap: 14px;
}
.hero__inner .eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.hero__title { font-size: 68px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.hero__title strong { font-weight: 700; }
.hero__lead { margin-top: 40px; max-width: 580px; font-size: 16px; line-height: 2.1; color: var(--ink-2); font-weight: 300; }
.hero__actions { margin-top: 48px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero__foot {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-bottom: 28px; flex-wrap: wrap;
}
.scroll-hint {
  font-family: var(--font-en); font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted-2);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::before { content: ""; width: 1px; height: 28px; background: var(--line-3); }
.hero__tags { display: flex; gap: 0; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }
.hero__tags li + li::before { content: "｜"; color: var(--line-3); margin: 0 10px; }

/* ---------- News ---------- */
.news { border-bottom: 1px solid var(--line); }
.news__inner {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 40px; align-items: center; padding-top: 22px; padding-bottom: 22px;
}
.news__head { display: flex; align-items: baseline; gap: 16px; }
.news__head .label { color: var(--accent); font-size: 11px; letter-spacing: 0.22em; }
.news__title { font-size: 14px; font-weight: 500; }
.news__list { min-width: 0; }
.news__list a {
  display: grid; grid-template-columns: 110px 96px 1fr; gap: 24px; align-items: center;
  padding: 10px 8px; font-size: 13.5px; transition: background .2s;
}
.news__list a:hover { background: var(--gray); color: var(--ink); }
.news__list time { font-family: var(--font-en); color: var(--muted-2); letter-spacing: 0.06em; }
.tag {
  font-size: 10.5px; letter-spacing: 0.14em; border: 1px solid var(--line-3); padding: 3px 0; text-align: center; color: var(--muted);
}
.news__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news__more { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; }

/* ---------- Figures ---------- */
.figures { padding: 112px 0; }
.figures__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figure {
  background: #fff; border: 1px solid var(--line); padding: 40px 28px;
  display: flex; flex-direction: column; gap: 18px; min-height: 236px;
}
.figure--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.figure--ink .label { color: var(--accent-light); }
.figure--ink .figure__desc { color: var(--on-ink-2); }
.figure__num {
  font-family: var(--font-en); font-size: 48px; font-weight: 400; line-height: 1; letter-spacing: -0.03em;
  font-feature-settings: "tnum"; white-space: nowrap;
}
.figure__num small { font-family: var(--font-jp); font-size: 20px; font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.figure__desc { font-size: 13px; color: var(--ink-2); line-height: 1.8; flex: 1; }

/* ---------- Solutions ---------- */
.sol-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-left: 1px solid var(--line);
}
.sol {
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s; color: var(--ink);
}
.sol:hover { background: var(--gray); color: var(--ink); }
.sol--more { background: var(--gray); }
.sol--more:hover { background: #E9EDF0; }
.sol__num { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.sol__title { font-size: 20px; font-weight: 600; line-height: 1.4; }
.sol__desc { font-size: 13px; line-height: 1.9; color: var(--muted); font-weight: 300; }

/* ---------- Business segments ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); }
.seg-grid li + li { border-left: 1px solid var(--ink); }
.seg {
  display: flex; flex-direction: column; gap: 24px; min-height: 380px; height: 100%;
  padding: 40px 24px 36px; background: #fff; color: var(--ink);
  transition: background .25s, color .25s;
}
.seg__num { font-family: var(--font-en); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; transition: color .25s; }
.seg__title { font-size: 20px; font-weight: 600; line-height: 1.4; }
.seg__sub { font-family: var(--font-en); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted-2); margin-top: -16px; transition: color .25s; }
.seg__body { font-size: 13px; line-height: 1.9; color: var(--muted); font-weight: 300; flex: 1; transition: color .25s; }
.seg__more { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; }
.seg__more .icon { width: 12px; height: 12px; }
.seg:hover { background: var(--ink); color: #fff; }
.seg:hover .seg__num, .seg:hover .seg__sub { color: var(--accent-light); }
.seg:hover .seg__body { color: var(--on-ink-2); }

/* ---------- Value chain ---------- */
.chain__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phase {
  background: #fff; border: 1px solid var(--line); border-right: 0;
  padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 320px;
}
.phase:last-child { border-right: 1px solid var(--line); }
.phase--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.phase__head { display: flex; justify-content: space-between; align-items: center; }
.phase__num { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.phase__icon {
  width: 32px; height: 32px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
}
.phase--ink .phase__num, .phase--ink .phase__icon { color: var(--accent-light); }
.phase--ink .phase__icon { border-color: rgba(255,255,255,.25); }
.phase__title { font-size: 26px; font-weight: 600; line-height: 1.3; }
.phase__body { font-size: 13.5px; line-height: 1.95; color: var(--muted); font-weight: 300; flex: 1; }
.phase--ink .phase__body { color: var(--on-ink); }
.phase__foot { font-size: 11.5px; color: var(--muted-2); border-top: 1px solid var(--line-2); padding-top: 14px; letter-spacing: 0.04em; }
.phase--ink .phase__foot { color: var(--on-ink-3); border-color: rgba(255,255,255,.15); }

/* ---------- MRPS ---------- */
.mrps { padding: 150px 0; }
.mrps__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.mrps .section__title { font-size: 46px; }
.dash-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: #D5DCE1; }
.dash-list li { display: flex; gap: 14px; align-items: flex-start; }
.dash-list li::before { content: "—"; color: var(--accent-light); flex-shrink: 0; }
.mrps__actions { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
.mrps__actions .btn { height: 54px; padding: 0 28px; font-size: 13.5px; letter-spacing: 0.12em; }
.mrps__actions .icon { width: 12px; height: 12px; }

.pipeline { border: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; }
.pipeline__bar {
  padding: 20px 28px; border-bottom: 1px solid rgba(255,255,255,.18);
  display: flex; justify-content: space-between;
  font-family: var(--font-en); font-size: 10.5px; letter-spacing: 0.2em; color: var(--on-ink-3);
}
.pipeline__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(255,255,255,.18); }
.pipeline__step { padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.pipeline__step + .pipeline__step { border-left: 1px solid rgba(255,255,255,.18); }
.pipeline__step strong { font-size: 16px; font-weight: 500; }
.pipeline__step > span:last-child { font-size: 12px; color: var(--on-ink-3); line-height: 1.7; }
.pipeline__step--out { background: rgba(255,255,255,.06); }
.pipeline__sample { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.pipeline__sample-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-ink-3); letter-spacing: 0.1em; }
.pipeline__sample-head span:last-child { font-family: var(--font-en); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: 96px 1fr 40px; gap: 14px; align-items: center; font-size: 12.5px; }
.bar { height: 6px; background: rgba(255,255,255,.12); }
.bar i { display: block; height: 100%; background: var(--accent-light); }
.bar i.is-low { background: rgba(255,255,255,.55); }
.bars b { font-family: var(--font-en); font-weight: 400; color: var(--accent-light); text-align: right; }
.bars b.is-low { color: #D5DCE1; }

/* ---------- Results ---------- */
.result-list { border-top: 1px solid var(--ink); }
.result {
  display: grid; grid-template-columns: 160px 1fr 1fr 180px; gap: 40px; align-items: center;
  padding: 44px 8px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.result:hover { background: var(--gray); }
.result__phase { font-size: 11px; letter-spacing: 0.18em; color: var(--accent); line-height: 1.8; display: flex; flex-direction: column; }
.result__phase small { font-family: var(--font-en); color: var(--muted-2); font-size: 11px; }
.result__num { font-family: var(--font-en); font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -0.035em; font-feature-settings: "tnum"; }
.result__num small { font-family: var(--font-jp); font-size: 22px; font-weight: 500; margin-left: 10px; letter-spacing: 0; }
.result__text h3 { font-size: 19px; font-weight: 500; line-height: 1.6; }
.result__text p { margin-top: 10px; font-size: 13.5px; line-height: 1.9; color: var(--muted); font-weight: 300; }
.result__cat { font-size: 12px; color: var(--muted-2); letter-spacing: 0.06em; }

/* ---------- Group ---------- */
.group__parent {
  background: #fff; border: 1px solid var(--line); padding: 44px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 16px;
}
.group__parent-id { display: flex; align-items: center; gap: 28px; }
.group__parent-id img { height: 30px; width: auto; }
.group__parent-sep { width: 1px; height: 32px; background: var(--line); }
.group__parent-name { font-size: 14px; color: var(--ink-2); line-height: 1.7; display: flex; flex-direction: column; }
.group__parent-name small { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.06em; }
.group__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gcard {
  background: #fff; border: 1px solid var(--line); padding: 40px 32px; height: 100%;
  display: flex; flex-direction: column; gap: 20px; min-height: 300px; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gcard:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(14,26,36,.35); color: var(--ink); }
.gcard__name { font-size: 24px; font-weight: 600; letter-spacing: 0.02em; }
.gcard__name--en { font-family: var(--font-en); }
.gcard__name small { font-size: 14px; font-weight: 400; color: var(--muted-2); margin-left: 8px; }
.gcard__desc { font-size: 13px; line-height: 1.9; color: var(--muted); font-weight: 300; flex: 1; }
.gcard__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; }
.gcard__link .icon { width: 11px; height: 11px; }

/* ---------- Company ---------- */
.company__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.company__lead { margin-top: 28px; font-size: 14px; line-height: 2; color: var(--muted); font-weight: 300; }
.company__links { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.profile { border-top: 1px solid var(--ink); }
.profile > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 8px;
  border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.9;
}
.profile dt { color: var(--muted-2); letter-spacing: 0.06em; }

/* ---------- Contact ---------- */
.contact { padding: 150px 0; }
.contact__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.contact__logo { height: 26px; width: auto; margin-bottom: 40px; opacity: .92; }
.contact .section__title { font-size: 44px; }
.contact .section__lead { margin-top: 36px; font-size: 15px; }
.contact__actions { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__brand img { height: 24px; width: auto; }
.footer__brand p { font-size: 12px; color: var(--muted-2); line-height: 1.9; }
.lang--footer { font-size: 11px; letter-spacing: 0.12em; }
.lang--footer a { color: var(--muted-2); }
.lang--footer a.is-active { color: var(--ink); }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 12.5px; }
.footer__col .label { margin-bottom: 4px; }
.footer__bottom {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-en); font-size: 11px; color: var(--muted-3); letter-spacing: 0.1em;
}
.footer__bottom { max-width: var(--container); }

/* ---------- Motion ---------- */
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-24px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scope { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg-grid li + li { border-left: 0; }
  .seg-grid li { border: 1px solid var(--ink); margin: -1px 0 0 -1px; }
  .seg-grid { border: 0; padding: 1px 0 0 1px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero__title { font-size: 60px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .utility { display: none; }
  .site-header__inner { min-height: 68px; }
  .site-header__logo img { height: 20px; }
  .btn--line { display: none; }
  .site-header__actions .btn--ink { height: 40px; padding: 0 16px; font-size: 12px; }
  .menu-toggle { display: inline-flex; }

  .global-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 24px var(--gutter) 40px; overflow-y: auto;
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .3s var(--ease), visibility 0s .3s;
    border-top: 1px solid var(--line);
  }
  .global-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .3s var(--ease), visibility 0s; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a { display: block; padding: 18px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .global-nav ul a::after { display: none; }
  .global-nav__mobile-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; font-size: 13px; color: var(--muted); }
  body.nav-open { overflow: hidden; }

  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .section__head--2col, .section__head--row { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; gap: 20px; }
  .section__title { font-size: 27px; }
  .section__title--sm { font-size: 26px; }

  .hero__visual { position: relative; width: 100%; height: 260px; order: 2; bottom: auto; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { padding-top: 72px; padding-bottom: 56px; order: 1; }
  .hero__inner > * { max-width: none; }
  .hero__title { font-size: 34px; }
  .hero__lead { margin-top: 28px; font-size: 15px; }
  .hero__foot { order: 3; padding: 20px var(--gutter) 24px; }
  .hero__tags { display: none; }

  .news__inner { grid-template-columns: 1fr; gap: 12px; padding: 20px var(--gutter); }
  .news__list a { grid-template-columns: 100px 80px 1fr; gap: 12px; padding: 10px 0; font-size: 13px; }
  .news__text { white-space: normal; }
  .news__more { justify-self: end; }

  .figures { padding: 72px 0; }
  .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .figure { padding: 28px 22px; min-height: 0; }
  .figure__num { font-size: 40px; }

  .sol-grid { grid-template-columns: 1fr; border-left: 0; }
  .sol { border-right: 0; min-height: 0; padding: 28px 0; }

  .seg-grid { grid-template-columns: 1fr; border: 0; padding: 0; }
  .seg-grid li { border: 0; border-top: 1px solid var(--ink); margin: 0; }
  .seg-grid li:last-child { border-bottom: 1px solid var(--ink); }
  .seg { min-height: 0; padding: 32px 0; }

  .chain__grid { grid-template-columns: 1fr; }
  .phase { border-right: 1px solid var(--line); border-bottom: 0; min-height: 0; }
  .phase:last-child { border-bottom: 1px solid var(--ink); }

  .mrps { padding: 96px 0; }
  .mrps__inner { grid-template-columns: 1fr; gap: 48px; }
  .mrps .section__title { font-size: 27px; }
  .pipeline__steps { grid-template-columns: 1fr; }
  .pipeline__step + .pipeline__step { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }

  .result { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .result__num { font-size: 48px; }
  .result__cat { display: none; }

  .group__parent { padding: 28px 24px; }
  .group__parent-id { gap: 16px; flex-wrap: wrap; }
  .group__parent-id img { height: 22px; }
  .group__parent-sep { display: none; }
  .group__parent-name { flex-basis: 100%; }
  .group__grid { grid-template-columns: 1fr; gap: 12px; }
  .gcard { min-height: 0; padding: 28px 24px; }

  .company__inner { grid-template-columns: 1fr; gap: 40px; }
  .profile > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }

  .contact { padding: 96px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact .section__title { font-size: 27px; }
  .cta { height: 64px; padding: 0 20px; font-size: 14px; }

  .site-footer { padding: 56px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .figures__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .mrps__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- WordPress admin bar offset ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .global-nav { top: 100px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .global-nav { top: 114px; }
}

/* ---------- Narrow desktop (961-1200px) ---------- */
.global-nav ul a { white-space: nowrap; }
.global-nav li { flex-shrink: 0; }
@media (max-width: 1200px) {
  :root { --gutter: 28px; }
  .global-nav ul { gap: 20px; }
  .global-nav a { font-size: 12.5px; letter-spacing: 0.04em; }
  .btn--line { display: none; }
  .hero__title { font-size: 52px; }
  .hero__inner > * { max-width: 62%; }
}

/* ---------- Group holding block ---------- */
.group__parent-holding { font-size: 24px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.group__parent-holding small { font-size: 11.5px; font-weight: 400; color: var(--muted-2); letter-spacing: 0.06em; }
@media (max-width: 960px) { .group__parent-holding { flex-basis: 100%; } }

/* ---------- Header tagline ---------- */
.site-header__logo { display: flex; align-items: center; }
.site-header__tag { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line-3); font-size: 12px; letter-spacing: 0.12em; font-weight: 500; color: var(--ink-2); white-space: nowrap; line-height: 1; }
@media (max-width: 960px) { .site-header__tag { font-size: 11px; margin-left: 12px; padding-left: 12px; } }
@media (max-width: 420px) { .site-header__tag { display: none; } }
@media (max-width: 1200px) and (min-width: 961px) { .site-header__tag { display: none; } }
