:root {
  --navy-900: #04101b;
  --navy-800: #0a1a2b;
  --navy-700: #12263d;
  --navy-600: #1d3654;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #3d8bff;
  --accent-hover: #2b74e6;
  --accent-soft: #8fbaff;
  --accent-text: #1f5fd1; /* 白背景上の青文字（コントラスト確保用） */
  --white: #ffffff;
  --tint: #f3f6fa;
  --line: #dde3eb;
  --text: #0b1622;
  --text-muted: #56657a;
  --text-on-dark: #e8eef6;
  --text-on-dark-muted: #9fb0c5;

  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  /* 英字ラベル用: 本文と同じ Inter を太字・大文字で使う */
  --font-label: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
/* 日本語の見出しを文節の切れ目で折り返す（対応ブラウザのみ） */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }

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

.sp-only { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: block; }
.logo { height: 26px; width: auto; }
.logo--navy { display: none; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* 言語切り替え（ドロップダウン） */
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark);
  cursor: pointer;
  list-style: none;
  border-radius: 2px;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgba(255,255,255,.08); }
.lang[open] .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 6px 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(4,16,27,.18);
  z-index: 10;
}
.nav .lang__menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}
.nav .lang__menu a::after { display: none; }
.nav .lang__menu a:hover { background: var(--tint); }
.nav .lang__menu a[aria-current="true"] { font-weight: 700; color: var(--accent-text); }
.header.is-scrolled .lang summary { color: var(--text); }
.header.is-scrolled .lang summary:hover { background: var(--tint); }

.header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .logo--white { display: none; }
.header.is-scrolled .logo--navy { display: block; }
.header.is-scrolled .nav a:not(.btn) { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  position: relative; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px;
  width: 22px; height: 2px;
  background: var(--white);
  transition: transform .25s, top .25s, background-color .3s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.header.is-scrolled .nav-toggle span { background: var(--navy-900); }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(120% 90% at 85% 20%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__city {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__city.is-ready { opacity: 1; }
.hero__city canvas { display: block; width: 100%; height: 100%; }
/* 文字側を暗くして可読性を確保 */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,16,27,.94) 0%, rgba(4,16,27,.82) 30%, rgba(4,16,27,.2) 58%, rgba(4,16,27,0) 70%),
    linear-gradient(0deg, rgba(4,16,27,.85) 0%, rgba(4,16,27,0) 22%),
    linear-gradient(180deg, rgba(4,16,27,.7) 0%, rgba(4,16,27,0) 18%);
}

/* HUD: 災害イベントのラベル */
.city-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font-label);
}
.hud-ev {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.hud-ev__dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 0 16px var(--c);
}
.hud-ev__leader {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 1px;
  background: var(--c);
  transform-origin: 0 0;
  transform: rotate(-45deg);
  opacity: .8;
}
.hud-ev__box {
  position: absolute;
  left: 28px; bottom: 28px;
  min-width: 190px;
  padding: 10px 12px 9px;
  background: rgba(4, 16, 27, .78);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-left: 2px solid var(--c);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .06em;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.hud-ev__type { color: var(--c); font-size: 12px; letter-spacing: .1em; }
.hud-ev__bar { height: 2px; margin: 8px 0 6px; background: rgba(255,255,255,.12); }
.hud-ev__bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.hud-ev__status { display: flex; justify-content: space-between; gap: 18px; font-variant-numeric: tabular-nums; }
.hud-ev__status b { color: var(--white); }
.hud-ev__status--sub { color: var(--text-on-dark-muted); }
.hud-ev.is-done .hud-ev__v { color: var(--c); }


.hero__inner {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 120px;
}
.hero__title {
  margin-top: 20px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.hero__lead {
  margin-top: 28px;
  max-width: 720px;
  font-size: 16px;
  line-height: 2;
  color: var(--text-on-dark-muted);
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-900); color: var(--white); }

.section__head { max-width: 880px; margin-bottom: 64px; }
.eyebrow {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--accent-soft); }

.section__title {
  margin-top: 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.section__lead {
  margin-top: 20px;
  color: var(--text-muted);
  text-wrap: pretty;
}
.section--dark .section__lead { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Challenges */
.card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy-900);
  background: var(--white);
}
.card__num {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.card__title {
  margin: 16px 0 16px;
  font-size: 19px;
  line-height: 1.6;
}
.card p { color: var(--text-muted); font-size: 15px; }

/* Services */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  padding: 48px;
  background: var(--white);
}
.service__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  background: var(--navy-900);
  color: var(--white);
}
.service__icon svg { width: 36px; height: 36px; }
.service__label {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.service__title { margin: 6px 0 14px; font-size: 22px; line-height: 1.5; }
.service p:not(.service__label) { color: var(--text-muted); max-width: 720px; }
.service__list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service__list li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--tint);
}

/* Technology */
/* 技術セクション: 背景のロケットエンジン */
#technology { position: relative; overflow: hidden; }
#technology > .container { position: relative; z-index: 1; }
#technology .section__title { max-width: 780px; }
#technology .section__lead { max-width: 640px; }
.tech-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: min(900px, 100%);
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.tech-bg.is-ready { opacity: .7; }
.tech-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4,16,27,.96) 0%, rgba(4,16,27,.82) 34%, rgba(4,16,27,.2) 62%, rgba(4,16,27,0) 78%);
}

/* 技術の出どころ → 応用先 */
.origin {
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.origin__group { display: flex; flex-direction: column; gap: 12px; }
.origin__label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.origin__group--to .origin__label { color: var(--accent-soft); }
.origin__items { display: flex; flex-wrap: wrap; gap: 8px; }
.origin__items span {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}
.origin__group--to .origin__items span {
  border-color: var(--accent);
  background: rgba(61, 139, 255, .14);
}
.origin__arrow {
  position: relative;
  flex: 0 0 72px;
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .3), var(--accent));
}
.origin__arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  border-left: 7px solid var(--accent);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 64px;
  counter-reset: step;
}
.pipeline__step {
  position: relative;
  padding: 28px 28px 28px 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipeline__step::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  background: var(--navy-900);
  border: 1px solid var(--accent-soft);
}
.pipeline__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 24px; right: 12px;
  font-family: var(--font-label);
  color: var(--text-on-dark-muted);
}
.pipeline__step--out::before { background: var(--accent); border-color: var(--accent); }
.pipeline__en {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.pipeline__ja { font-size: 18px; font-weight: 700; }
.pipeline__desc { font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.7; word-break: auto-phrase; }

.hazard {
  padding: 32px 28px;
  border: 1px solid var(--line-dark);
  background: var(--navy-800);
  transition: border-color .25s;
}
.hazard:hover { border-color: var(--accent); }
/* 背景のイメージ映像（hazard-fx.js） */
.hazard[data-fx] { position: relative; overflow: hidden; isolation: isolate; }
.hazard[data-fx] > * { position: relative; z-index: 1; }
.hazard__fx {
  position: absolute !important; inset: 0; z-index: 0 !important;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
.hazard__fx.is-ready { opacity: 1; }
/* 水害・大規模火災・爆発: 縦に並べ、文字は左・映像は右 */
.hazards.grid--3 { grid-template-columns: 1fr; gap: 20px; }
.hazards.grid--3 .hazard { padding: 44px 48px; min-height: 400px; }
.hazards.grid--3 .hazard > :not(canvas) { max-width: 540px; }
@media (max-width: 860px) {
  .hazards.grid--3 .hazard { padding: 36px 28px; min-height: 0; }
  .hazards.grid--3 .hazard > :not(canvas) { max-width: none; }
}
@media (max-width: 600px) {
  .hazards.grid--3 .hazard { padding: 32px 24px; }
  .hazards.grid--3 .hazard__list { grid-template-columns: 1fr; }
}
/* スライダー（main.js） */
.hazards.hz-slider { display: block; }
.hz-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark); border-bottom: 0;
  background: rgba(6,18,34,.6);
}
.hz-tab {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  padding: 20px 24px 18px; cursor: pointer; text-align: left;
  border: 0; border-left: 1px solid var(--line-dark); background: transparent;
  font: inherit; color: rgba(255,255,255,.45);
  transition: color .25s, background .25s;
}
.hz-tab:first-child { border-left: 0; }
.hz-tab em {
  font-family: var(--font-label); font-style: normal; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; color: rgba(143,186,255,.55); transition: color .25s;
}
.hz-tab span { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.hz-tab small {
  font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.28); transition: color .25s;
}
.hz-tab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.025); }
.hz-tab.is-active { color: var(--white); background: linear-gradient(180deg, rgba(61,139,255,.12), rgba(61,139,255,0)); }
.hz-tab.is-active em { color: var(--accent-soft); }
.hz-tab.is-active small { color: var(--accent-soft); }
.hz-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 上端のライン: 選択中のタブで自動切り替えまでの残り時間を示す */
.hz-tab i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.hz-tab.is-active i { background: rgba(255,255,255,.12); }
.hz-tab b { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px rgba(61,139,255,.8); }
/* タブに見出しがあるので、カード内の見出しは視覚的に隠す */
.hz-slider .hazard__tag { display: none; }
.hz-slider .hazard h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hz-slider .hazard > p:first-of-type { margin-top: 0; font-size: 16px; color: var(--text-on-dark); }
.hz-viewport { overflow: hidden; }
.hz-track { display: flex; transition: transform .8s cubic-bezier(.65,0,.35,1); }
.hz-track > .hazard { flex: 0 0 100%; }
@media (max-width: 860px) { .hz-tab small { display: none; } .hz-tab { grid-template-columns: auto 1fr; } }
@media (max-width: 600px) {
  .hz-tab { grid-template-columns: 1fr; gap: 4px; padding: 14px 12px 12px; }
  .hz-tab span { font-size: 14px; }
  .hz-tab em { font-size: 11px; }
}
/* 映像シナリオの進行表示（fire-fx.js / flood-fx.js） */
.fx-steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  margin-top: 24px; padding: 0; list-style: none;
  font-family: var(--font-label); font-size: 11px; font-weight: 600; line-height: 1.4;
}
.fx-steps span { word-break: keep-all; overflow-wrap: anywhere; }
.fx-steps li { display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,.38); transition: color .3s; }
.fx-steps i { display: block; height: 2px; background: rgba(255,255,255,.16); transition: background .3s; }
.fx-steps li.is-on { color: #ffb37a; }
.fx-steps li.is-on i { background: #ff7a2f; }
.fx-steps li.is-now { color: #fff; }
.fx-steps li.is-now i { background: #ffb020; box-shadow: 0 0 10px #ff8a2a; }
.fx-steps b { min-height: 1.4em; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.fx-steps--flood li.is-on { color: #9fd0ff; }
.fx-steps--flood li.is-on i { background: #3d8bff; }
.fx-steps--flood li.is-now i { background: #6fc3ff; box-shadow: 0 0 10px #3aa0ff; }
.hazard[data-fx]::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,18,34,.92) 0%, rgba(6,18,34,.8) 38%, rgba(6,18,34,.2) 62%, rgba(6,18,34,0) 100%);
}
.hazard__tag {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-soft);
}
.hazard h3 { margin: 10px 0 12px; font-size: 20px; }
.hazard { padding: 40px; }
.hazard h3 { font-size: 24px; }
.hazard p:not(.hazard__tag) { font-size: 15px; color: var(--text-on-dark-muted); }
.hazard__list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.hazard__list li {
  padding: 12px 0;
  font-size: 14px;
  border-top: 1px solid var(--line-dark);
}
.hazard__list li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  background: var(--accent);
  vertical-align: middle;
}

/* Other businesses */
.biz {
  padding: 40px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy-900);
}
.biz__num {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.biz__label {
  margin-top: 14px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.biz__title { margin: 6px 0 14px; font-size: 22px; line-height: 1.5; }
.biz__sub { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.biz p:not(.biz__label) { color: var(--text-muted); font-size: 15px; }
.biz p strong { color: var(--accent-text); font-weight: 700; }
.biz__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.biz__tags li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--tint);
}

/* Company */
.company {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.company__head { margin-bottom: 0; }
.company__table { margin: 0; border-top: 1px solid var(--navy-900); }
.company__table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.company__table dt { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.company__table dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%); border-top: 1px solid var(--line-dark); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.mail {
  padding: 44px 40px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
}
.mail__label {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.mail__address {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: border-color .2s, color .2s;
  overflow-wrap: anywhere;
}
.mail__address:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.mail__note { margin-top: 16px; font-size: 14px; color: var(--text-on-dark-muted); }

/* Footer */
.footer {
  padding: 56px 0 40px;
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__logo { height: 22px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 13px; }
.footer__nav a:hover { color: var(--white); }
.footer__copy { width: 100%; font-size: 12px; font-family: var(--font-label); letter-spacing: .02em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .company { grid-template-columns: 1fr; gap: 40px; }
  .tech-bg.is-ready { opacity: .45; }
  .tech-shade { background: rgba(4,16,27,.55); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; height: 48px; }
  .nav .lang { padding-top: 12px; }
  .nav .lang summary { color: var(--text); padding: 8px 0; }
  .nav .lang__menu { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .nav .lang__menu a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header.is-menu-open { background: var(--white); }
  .header.is-menu-open .logo--white { display: none; }
  .header.is-menu-open .logo--navy { display: block; }
  .header.is-menu-open .nav-toggle span { background: var(--navy-900); }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .pipeline__step:nth-child(2)::after { display: none; }
  .service { grid-template-columns: 1fr; gap: 20px; padding: 36px 28px; }
  .service__icon { width: 56px; height: 56px; }
  .service__icon svg { width: 28px; height: 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  /* 上部に都市、下部に文字 */
  .hero { justify-content: flex-end; }
  .hero__inner { padding-top: 0; padding-bottom: 56px; }
  .hero__title { margin-top: 14px; font-size: clamp(30px, 8.4vw, 36px); }
  .hero__lead { margin-top: 20px; font-size: 14px; line-height: 1.9; word-break: auto-phrase; }
  .hero__actions { margin-top: 28px; gap: 12px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4,16,27,.45) 0%, rgba(4,16,27,0) 14%, rgba(4,16,27,0) 34%, rgba(4,16,27,.86) 54%, rgba(4,16,27,.94) 100%);
  }
  .eyebrow { font-size: 12px; letter-spacing: .08em; gap: 10px; }
  .eyebrow::before { width: 18px; }
  .section__lead { word-break: auto-phrase; }
  .hud-ev__leader { width: 28px; }
  .hud-ev__box { left: 20px; bottom: 20px; min-width: 160px; padding: 8px 10px 7px; font-size: 10px; }
  .hud-ev__type { font-size: 11px; }
  .hud-ev__status { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .origin { flex-direction: column; align-items: flex-start; gap: 14px; }
  .origin__arrow { flex: 0 0 28px; width: 1px; height: 28px; margin: 0 0 0 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .3), var(--accent)); }
  .origin__arrow::after { right: auto; top: auto; left: -4px; bottom: -1px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
  .logo { height: 22px; }

  .hazard { padding: 32px 24px; }
  .hazard[data-fx]::after { background: linear-gradient(180deg, rgba(6,18,34,.82) 0%, rgba(6,18,34,.7) 60%, rgba(6,18,34,.55) 100%); }
  .hazard__list { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__step::after { display: none; }
  .card { padding: 32px 24px; }
  .biz { padding: 32px 24px; }
  .company { gap: 28px; }
  .company__table > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .mail { padding: 32px 20px; }
}

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

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 24px;
  padding: 24px 8px; color: inherit; text-decoration: none; transition: background .2s, color .2s;
}
.news-list a:hover { background: var(--tint); color: var(--accent-text); }
.news-list time { font-family: var(--font-label); font-size: 14px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.news-tag {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--accent-text);
  font-size: 12px; font-weight: 600; color: var(--accent-text); line-height: 1.5; white-space: nowrap;
}
.news-title { font-weight: 600; }
.news-list svg { color: var(--accent-text); transition: transform .2s; }
.news-list a:hover svg { transform: translateX(4px); }
@media (max-width: 600px) {
  .news-list a { grid-template-columns: auto 1fr auto; gap: 10px 14px; padding: 20px 4px; }
  .news-title { grid-column: 1 / 3; }
  .news-list svg { grid-row: 1 / 3; grid-column: 3; }
}

/* ---------- Article ---------- */
/* 本文が短くてもフッターを画面下端に置く */
body.page-article { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.page-article .article { flex: 1 0 auto; }
.article { padding: calc(var(--header-h) + 80px) 0 120px; }
.article__inner { max-width: 820px; }
.article__meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.article__meta time { font-family: var(--font-label); font-size: 14px; color: var(--text-muted); }
.article__title { margin-top: 16px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.article__body { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.article__body p { margin: 0 0 1.4em; font-size: 16px; line-height: 2; }
.article__back {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 48px;
  font-weight: 600; color: var(--accent-text); text-decoration: none;
}
.article__back:hover { text-decoration: underline; }
@media (max-width: 600px) { .article { padding: calc(var(--header-h) + 48px) 0 88px; } .article__body p { font-size: 15px; } }

/* ---------- Korean page ---------- */
html[lang="ko"] { --font-sans: "Inter", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
.is-ko .hero__title,
.is-ko .section__title { letter-spacing: -0.01em; }

/* ---------- English page ---------- */
.is-en .hero__title,
.is-en .section__title { letter-spacing: -0.01em; }

/* Validation callout (technology) */
.validated {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 640px; margin-top: 24px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.16); border-left: 3px solid #5b9bff;
  background: rgba(10,22,48,.55); border-radius: 4px;
}
.validated + .validated { margin-top: 12px; }
.validated svg { flex: none; width: 26px; height: 26px; color: #8fbaff; margin-top: 2px; }
.validated p { margin: 0; color: #fff; font-size: 15px; line-height: 1.75; }
.validated__label {
  display: block; margin-bottom: 4px;
  font-family: var(--font-label); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #8fbaff;
}
