/* =============================================================================
 * hr-frameworks — Prototype Final / Stylesheet
 * -----------------------------------------------------------------------------
 * 構成（論理レイヤー、上から下に依存）:
 *   1. Tokens         デザイントークン（色・タイポ・余白・モーション）
 *   2. Reset & Base   ボックスモデル・タイポ基礎
 *   3. Layout         サイト全体の枠（ヘッダー/コンテナ/フッター/グリッドガイド）
 *   4. Components     ボタン・セクション骨格・モジュール・比較表 等
 *   5. Sections       Hero（立方体）/ Issue / Evidence / Solution / Service / WhyUs / Proof / FinalCTA
 *   6. Animations     キーフレーム集約
 *   7. Utilities      スコープ局所のヘルパー
 *   8. Media Queries  レスポンシブ
 *
 * 命名規約:
 *   - BEM: block__element--modifier
 *   - 1ブロック1セクション、横断ヘルパーは utilities/* に集約
 *
 * @author  hr-frameworks
 * @version 0.4.0  (2026-04-29)
 * ============================================================================= */

/* ============================================================================
 * 1. Tokens
 * ============================================================================ */
:root {
  /* --- Engineering Minimal: steel + single amber accent ---------------- */
  --steel-50: hsl(215, 11%, 97%);
  --steel-100: hsl(215, 11%, 92%);
  --steel-200: hsl(215, 11%, 82%);
  --steel-300: hsl(215, 11%, 70%);
  --steel-400: hsl(215, 11%, 55%);
  --steel-500: hsl(215, 11%, 40%);
  --steel-600: hsl(215, 11%, 28%);
  --steel-700: hsl(215, 11%, 18%);
  --steel-800: hsl(215, 11%, 10%);
  --steel-900: hsl(215, 11%, 6%);
  --brand-teal-100: #d7ebe7;
  --brand-teal-500: #16685e;
  --brand-teal-700: #0f4f47;
  --brand-teal-800: #0a3d37;

  /* --- Color: surfaces ------------------------------------------------ */
  --bg: var(--steel-50);
  --bg-raised: #ffffff;
  --bg-subtle: var(--steel-100);
  --bg-panel: var(--steel-100);

  /* --- Color: ink (text) ---------------------------------------------- */
  --ink: var(--steel-800);
  --ink-secondary: var(--steel-600);
  --ink-muted: var(--steel-400);

  /* --- Color: borders / grid lines ------------------------------------ */
  --grid: var(--steel-200);
  --grid-subtle: var(--steel-100);
  --grid-strong: var(--steel-400);

  /* --- Color: functional accent --------------------------------------- */
  --accent: var(--brand-teal-700);
  --accent-strong: var(--brand-teal-800);
  --accent-soft: var(--brand-teal-100);

  /* --- Color: status (single-accent policy) --------------------------- */
  --status-good: var(--ink);
  --status-bad: var(--steel-300);
  --status-amber: var(--brand-teal-500);

  /* --- Typography ----------------------------------------------------- */
  --f-sans:
    "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  --f-mono:
    "JetBrains Mono", "SF Mono", "Menlo", "Source Han Code JP", monospace;

  /* --- Spacing -------------------------------------------------------- */
  --section-pad: 96px;
  --content-max: 1600px;

  /* --- Motion --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
 * 2. Reset & Base
 * ============================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Forms / Buttons / Links: minimal reset */
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================================
 * 3. Layout
 * ============================================================================ */

/* 3.1 Header / Footer は src/components/layout/* + src/styles/components/*.css に移行
   （標準コンポーネント `<Header />` `<Footer />` でサブページと表示を統一） */

/* 3.3 Container -------------------------------------------------------- */
.container {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
}

/* 3.4 Footer は src/components/layout/Footer.astro + footer.css に統一済み */

/* ============================================================================
 * 4. Components
 * ============================================================================ */

/* 4.1 Button ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.btn--primary {
  background: var(--accent-strong);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--grid-strong);
}
.btn--ghost:hover {
  background: var(--bg-panel);
}
.btn--inverse-primary {
  background: var(--bg);
  color: var(--ink);
}
.btn--inverse-primary:hover {
  background: var(--steel-100);
}
.btn--inverse-ghost {
  background: transparent;
  color: var(--bg);
  border-color: var(--steel-600);
}
.btn--inverse-ghost:hover {
  background: var(--steel-700);
  border-color: var(--steel-400);
}

/* 4.2 Section (汎用セクション骨格) ------------------------------------- */
.section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--grid);
  background: var(--bg);
}
.section--subtle {
  background: var(--bg-subtle);
}
.section__title {
  max-width: 18em;
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section__lead {
  max-width: 40em;
  margin-bottom: 56px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--ink-secondary);
}

/* 4.3 Modules (汎用 2/3 列カード) -------------------------------------- */
.modules {
  display: grid;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.modules--2 {
  grid-template-columns: 1fr 1fr;
}
.modules--3 {
  grid-template-columns: repeat(3, 1fr);
}
.module {
  position: relative;
  padding: 32px;
  background: var(--bg-raised);
  transition: background 0.2s var(--ease-out);
}
.module:hover {
  background: var(--bg-subtle);
}
.module__title {
  margin-bottom: 14px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.module__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-secondary);
}

/* 4.4 Compare table (RPO/Consulting/RecruitingOS) --------------------- */
.compare-panel {
  background: var(--bg-raised);
  border: 1px solid var(--grid);
  border-radius: 2px;
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--grid);
}
.compare__row:last-child {
  border-bottom: none;
}
.compare__rowlabel {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-subtle);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.compare__cell {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-left: 1px solid var(--grid);
  font-size: 14px;
  color: var(--ink-secondary);
}
.compare__cell--head {
  background: var(--bg-subtle);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.compare__cell--our {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--ink);
}
.compare__cell--our::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--accent);
}
.compare-pull {
  margin-top: 40px;
  padding: 32px;
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.65;
}

/* ============================================================================
 * 5. Sections
 * ============================================================================ */

/* 5.1 Hero --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--grid);
  background: var(--bg-raised);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  min-height: calc(100svh - 160px);
}
.hero__col-text {
  max-width: 660px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 4px 8px;
  background: var(--accent-strong);
  color: var(--bg-raised);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.hero__col-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68svh, 640px);
}
.hero__headline {
  margin-bottom: 32px;
  max-width: 14em;
  font-size: clamp(44px, 6.2vw, 78px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__headline span {
  white-space: nowrap;
}
.hero__deck {
  margin-bottom: 40px;
  max-width: 38em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--ink-secondary);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 5.2 Hero Cube (3D 6-face)
 *
 * 構造:
 *   .cube-stage (perspective)
 *     └ .cube-shadow (床面シャドウ)
 *     └ .cube       (transform-style: preserve-3d、JSで rotation 制御)
 *           └ .face × 6 (front/back/right/left/top/bottom)
 *
 * 演出:
 *   1. ロード時:
 *      - FRONT: 画面外から大きく飛び込む (build-front)
 *      - 他5面: 各々の rotation を保ったまま外側からsnap-in (build-snap)
 *   2. 組み立て完了 (~2.2s) 後、JS が自動回転 + マウス/ドラッグ追従を始動
 *   3. 床のシャドウはステージに固定
 * --------------------------------------------------------------------- */
.cube-stage {
  position: relative;
  width: min(500px, 94%);
  aspect-ratio: 1;
  perspective: 1900px;
  perspective-origin: 50% 38%;
}
.cube-shadow {
  position: absolute;
  left: 50%;
  top: 112%;
  width: 50%;
  height: 9%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    hsl(215 11% 10% / 0.18),
    transparent 65%
  );
  border-radius: 50%;
  filter: blur(22px);
  z-index: 1;
  animation: none;
}
.cube {
  --csz: 320px;
  --chf: 160px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--csz);
  height: var(--csz);
  margin-left: calc(-1 * var(--chf));
  margin-top: calc(-1 * var(--chf));
  transform-style: preserve-3d;
  will-change: transform;
}
.cube .face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--grid);
  box-shadow:
    inset 0 0 0 1px var(--grid-subtle),
    inset -10px -10px 0 var(--steel-100);
  overflow: hidden;
}
.cube .face::before,
.cube .face::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}
.cube .face::before {
  top: 0;
}
.cube .face::after {
  bottom: 0;
}

/* 各面の配置 + 組み立てアニメ
   @reason: 静止時の transform を translate3d で書いて、@keyframes と関数構成を揃える */
.cube .face--front {
  transform: translate3d(0, 0, var(--chf));
  animation: build-front 1.7s var(--ease-out) 0.1s backwards;
}
.cube .face--right {
  --snap-rot: rotateY(90deg);
  transform: rotateY(90deg) translateZ(var(--chf));
  animation: build-snap 0.95s var(--ease-snap) 0.95s backwards;
}
.cube .face--top {
  --snap-rot: rotateX(90deg);
  transform: rotateX(90deg) translateZ(var(--chf));
  animation: build-snap 0.95s var(--ease-snap) 1s backwards;
}
.cube .face--left {
  --snap-rot: rotateY(-90deg);
  transform: rotateY(-90deg) translateZ(var(--chf));
  animation: build-snap 0.95s var(--ease-snap) 1.05s backwards;
}
.cube .face--bottom {
  --snap-rot: rotateX(-90deg);
  transform: rotateX(-90deg) translateZ(var(--chf));
  animation: build-snap 0.95s var(--ease-snap) 1.1s backwards;
}
.cube .face--back {
  --snap-rot: rotateY(180deg);
  transform: rotateY(180deg) translateZ(var(--chf));
  animation: build-snap 0.95s var(--ease-snap) 1.15s backwards;
}

/* 各面のテキスト */
.face__corner-tl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.face__corner-br {
  align-self: flex-end;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
}
.face__display {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.face__glyph {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
}
.face__glyph .em {
  color: var(--accent);
}
.face__meta {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* 4/29版で作り込まれていた、箱の面内ラベルとマイクロコピー */
.face .corner-tl,
.face .corner-br {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.face .corner-tl {
  top: 18px;
  left: 20px;
}
.face .corner-br {
  right: 20px;
  bottom: 18px;
  color: var(--accent);
  text-transform: none;
}
.face .display {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}
.face .accent-dot {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.face--front .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.face--front .brand-jp {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.face--front .brand-jp .accent {
  color: var(--accent);
}
.face--front .brand-en {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.face--front .brand-line {
  width: 36px;
  height: 1px;
  margin: 14px 0;
  background: var(--grid-strong);
}
.face--front .brand-tagline {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.face .pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.face .pillar-jp {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}
.face .pillar-en {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.face .pillar-line {
  width: 32px;
  height: 1px;
  margin: 12px 0;
  background: var(--grid-strong);
}
.face .pillar-cap {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.face .origin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.face .origin-mark {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.face .origin-line {
  width: 32px;
  height: 1px;
  background: var(--grid-strong);
}
.face .origin-loc {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* 5.3 Issue Panels ---------------------------------------------------- */
.issue-system {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-items: stretch;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.issue-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 540px;
  padding: 32px;
  background: var(--bg-raised);
  overflow: hidden;
}
.issue-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 1px;
  background: var(--accent);
}
.issue-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.issue-card__index {
  display: block;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.issue-card__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.issue-card__state::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.issue-card__title {
  max-width: 9em;
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.issue-card__body {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-secondary);
}
.issue-card__signals {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--grid);
  border: 1px solid var(--grid);
  list-style: none;
}
.issue-card__signals li {
  padding: 10px 12px;
  background: var(--bg-subtle);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}
.issue-icon3d {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 72px;
}
.issue-icon3d span {
  position: absolute;
  display: block;
}
.issue-icon3d--ops span {
  width: 28px;
  height: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--grid-strong);
  box-shadow:
    8px 8px 0 hsl(216 12% 78% / 0.68),
    inset 0 0 0 1px var(--bg);
}
.issue-icon3d--ops span:nth-child(1) {
  left: 0;
  top: 30px;
}
.issue-icon3d--ops span:nth-child(2) {
  left: 29px;
  top: 18px;
}
.issue-icon3d--ops span:nth-child(3) {
  right: 0;
  top: 2px;
  background: var(--accent-soft);
  border-color: var(--accent);
}
.issue-icon3d--ops::before,
.issue-icon3d--ops::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--grid-strong);
}
.issue-icon3d--ops::before {
  left: 23px;
  top: 36px;
  width: 20px;
  transform: rotate(-22deg);
}
.issue-icon3d--ops::after {
  left: 52px;
  top: 22px;
  width: 10px;
  border-top: 2px dashed var(--accent);
  background: transparent;
}
.issue-icon3d--design {
  perspective: 420px;
}
.issue-icon3d--design span:nth-child(1) {
  left: 14px;
  top: 8px;
  width: 52px;
  height: 60px;
  background: var(--bg-raised);
  border: 1px solid var(--grid-strong);
  box-shadow: 10px 10px 0 hsl(216 12% 78% / 0.68);
  transform: rotateX(10deg) rotateY(-12deg);
}
.issue-icon3d--design span:nth-child(2) {
  left: 26px;
  top: 0;
  width: 28px;
  height: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  box-shadow: 6px 6px 0 hsl(180 24% 78% / 0.8);
}
.issue-icon3d--design span:nth-child(3) {
  left: 28px;
  top: 30px;
  width: 24px;
  height: 24px;
  border: 2px dashed var(--accent);
  background: var(--bg);
}
.issue-diagram {
  position: relative;
  min-height: 190px;
  margin-bottom: 28px;
  border: 1px solid var(--grid);
  background: var(--bg);
  overflow: hidden;
}
.flow-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 34px 28px 58px;
  list-style: none;
}
.flow-chart li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 16px 14px;
  border: 1px solid var(--grid);
  background: var(--bg-raised);
}
.flow-chart li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 26px;
  border-top: 2px dashed var(--grid-strong);
}
.flow-chart strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.flow-chart span {
  font-size: 11px;
  color: var(--ink-muted);
}
.flow-breaks {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.flow-breaks span {
  display: grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid hsl(0 62% 48% / 0.28);
  background: hsl(0 74% 97%);
  color: hsl(0 48% 38%);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.standard-board {
  display: grid;
  padding: 18px;
}
.standard-board__row {
  display: grid;
  grid-template-columns: minmax(72px, 0.78fr) 72px minmax(0, 1.45fr);
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--grid);
}
.standard-board__row:first-child {
  border-top: 1px solid var(--grid);
}
.standard-board__row span {
  font-weight: 600;
  color: var(--ink);
}
.standard-board__row strong {
  justify-self: start;
  padding: 3px 8px;
  background: hsl(0 74% 97%);
  color: hsl(0 48% 38%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.standard-board__row em {
  justify-self: end;
  color: var(--ink-muted);
  font-style: normal;
  font-size: 12px;
}

.evidence-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.evidence-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 300px;
  padding: 34px;
  background: var(--bg-raised);
}
.evidence-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
}
.evidence-card__head span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.evidence-card__head h3 {
  max-width: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  color: var(--ink);
}
.metric-lines {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px 0;
}
.metric-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
}
.metric-line__label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-muted);
}
.metric-line__track {
  position: relative;
  height: 10px;
  background: var(--bg-panel);
  overflow: hidden;
}
.metric-line__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
}
.metric-line--good .metric-line__fill {
  background: var(--accent);
}
.metric-line--bad .metric-line__fill {
  background: var(--steel-400);
}
.metric-line strong {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}
.metric-gap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--grid);
}
.metric-gap strong {
  color: var(--accent-strong);
  font-family: var(--f-mono);
  font-size: 18px;
}
.metric-gap span {
  color: var(--ink-secondary);
  font-family: var(--f-mono);
  font-size: 11px;
}
.evidence-card p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
}
.evidence__conclusion {
  max-width: 38em;
  margin: 56px auto 0;
  padding: 32px 0 0;
  border-top: 2px solid var(--ink);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.85;
  color: var(--ink);
  text-align: center;
}

/* 5.4 Solution (実務 / 設計 の 2モジュール) --------------------------- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.gear-module {
  padding: 40px;
  background: var(--bg-raised);
}
.gear-module__title {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gear-module__cycle-text {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.gear-module__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  list-style: none;
}
.gear-module__tasks li {
  padding: 5px 10px;
  background: var(--bg-panel);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}
.gear-module__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-secondary);
}

/* 5.5 Service (3 PHASE timeline) -------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.phase-node {
  padding: 32px;
  background: var(--bg-raised);
  transition: background 0.2s var(--ease-out);
}
.phase-node:hover {
  background: var(--bg-subtle);
}
.phase-node__period-top {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  background: var(--accent-soft);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.phase-node__title {
  margin-bottom: 14px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.phase-node__body {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-secondary);
}

/* 5.6 Proof (3 ドキュメントカード) ------------------------------------ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.proof-item {
  position: relative;
  display: block;
  padding: 28px;
  background: var(--bg-raised);
  color: var(--ink);
  transition: background 0.15s var(--ease-out);
}
.proof-item:hover {
  background: var(--bg-subtle);
}
.proof-item__title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.proof-item__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-secondary);
}
.proof-item__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--f-mono);
  color: var(--ink-muted);
  transition: all 0.15s var(--ease-out);
}
.proof-item:hover .proof-item__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* 5.7 Final CTA ------------------------------------------------------- */
.final-cta {
  padding: 120px 0;
  background: var(--steel-800);
  color: var(--bg);
  text-align: center;
}
.final-cta .container {
  text-align: center;
}
.final-cta__title {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.final-cta__body {
  max-width: 36em;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--steel-200);
}
.final-cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.final-cta__note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel-400);
}

/* ============================================================================
 * 6. Animations (一元管理)
 * ============================================================================ */
@keyframes cube-shadow-breathe {
  0%,
  100% {
    width: 50%;
    opacity: 1;
  }
  50% {
    width: 42%;
    opacity: 0.72;
  }
}
/* @reason: 0% と 100% で transform 関数構成を揃えないと Blink/WebKit は
   補間できずアニメが破綻する (translate3d と translateZ は別関数扱い)。
   両端を translate3d で揃える。 */
@keyframes build-front {
  0% {
    opacity: 0;
    transform: translate3d(-1700px, 0, 600px) scale(1.5);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, var(--chf, 140px)) scale(1);
  }
}
@keyframes build-snap {
  0% {
    opacity: 0;
    transform: var(--snap-rot) translateZ(1500px);
  }
  100% {
    opacity: 1;
    transform: var(--snap-rot) translateZ(var(--chf));
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ============================================================================
 * 7. Utilities (横断ヘルパー)
 * ============================================================================ */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================================
 * 8. Media Queries (一元管理)
 * ============================================================================ */
@media (max-width: 900px) {
  .header__nav {
    display: none;
  }
  .hero .container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__col-visual {
    min-height: 420px;
    order: -1;
	  }
	  .modules--2,
	  .modules--3,
	  .solution-grid,
	  .timeline,
	  .evidence-map,
	  .proof-grid,
	  .issue-system {
	    grid-template-columns: 1fr;
	  }
	  .issue-card {
	    min-height: 520px;
	    padding: 28px;
	  }
	  .issue-diagram {
	    min-height: 210px;
	    margin-bottom: 30px;
	  }
	  .evidence-card {
	    min-height: 320px;
	  }
	  .compare__row {
	    grid-template-columns: 1fr 1fr;
	  }
  .compare__row--header .compare__cell:first-of-type {
    grid-column: 1;
  }
  .compare__rowlabel {
    grid-column: 1 / -1;
    padding: 12px 16px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--grid);
  }
  .compare__cell {
    padding: 14px;
    font-size: 13px;
  }

  /* Cube smaller on mobile */
  .cube {
    --csz: 240px;
    --chf: 120px;
  }
	  .face__glyph {
	    font-size: 48px;
	  }
	}

@media (max-width: 640px) {
  .issue-card__head {
    gap: 16px;
  }
  .issue-icon3d {
    transform: scale(0.82);
    transform-origin: top right;
  }
  .flow-chart {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 16px 120px;
  }
  .flow-chart li {
    min-height: auto;
  }
  .flow-chart li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    width: 1px;
    height: 10px;
    border-top: 0;
    border-left: 2px dashed var(--grid-strong);
  }
  .flow-breaks {
    left: 16px;
    right: 16px;
    bottom: 14px;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .standard-board {
    padding: 14px;
  }
  .standard-board__row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
  }
  .standard-board__row em {
    justify-self: start;
  }
}

/* ============================================================================
 * 9. Reduced Motion (アクセシビリティ)
 * ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cube .face {
    animation: none !important;
  }
	  .cube-shadow {
	    animation: none !important;
	  }
	}
