/* ============================================================
   home.css — ホーム（EN /index.html・JA /ja/index.html）専用
   「シネマティック・ダイブ」演出（v4・2026-07-07 改修指示書v4.3に基づく）
   宇宙(ヒーロー) → カーマン・ライン → 大気圏 → 空(オービット節)
   → 生物圏・地殻(band-land) → 地上(本文) → 鉱脈(引用帯)
   → 海・海洋地殻・マントル(band-mantle) → 核(フッター)
   ヘッダー・フッター・層タグ基礎は global.css へ移管済み。
   ============================================================ */

/* ---------- ヘッダー: 大気ガラス状態（§1・ホームのみ） ---------- */
.c-header.is-glass {
  background: rgba(58, 80, 105, .45);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: 0 1px 0 rgba(248, 244, 236, .22);
}
@supports not (backdrop-filter: blur(1px)) {
  .c-header.is-glass { background: rgba(58, 80, 105, .78); }
}

/* ---------- 第一幕: ダイブ（sticky） ---------- */
.c-hero { position: relative; height: 380vh; background: #070B11; color: #F8F4EC; }
.c-hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; height: 100dvh; min-height: 600px; overflow: hidden; }
.c-hero-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c-atmo { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: linear-gradient(180deg, #22364B 0%, #4A6580 100%); }
.c-hero-veil { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(58% 40% at 50% 34%, rgba(7,11,17,.52), transparent 74%),
              linear-gradient(180deg, rgba(7,11,17,.45) 0%, rgba(7,11,17,0) 30%); }
.c-hero-inner {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 17vh 24px 0; will-change: opacity, transform;
}
.c-hero-inner .eyebrow { color: var(--gold-soft); margin-bottom: 20px; font-size: clamp(13px, 1.7vw, 18px); font-family: var(--serif); font-weight: 500; letter-spacing: 0.34em; text-indent: 0.34em; }
.c-hero-inner h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 63px); line-height: 1.15; letter-spacing: .015em; margin: 0; max-width: 17em; color: #F8F4EC; text-shadow: 0 2px 22px rgba(7,11,17,.8); }
.c-hero-inner .sub { max-width: 40em; margin: 26px auto 0; color: rgba(248,244,236,.94); font-size: clamp(16.5px, 1.7vw, 19.5px); line-height: 1.85; text-shadow: 0 2px 18px rgba(7,11,17,.85), 0 0 4px rgba(7,11,17,.7); }
/* デスクトップ: sub を SCROLL 直上へ（eyebrow+title を上部に集約し一体感） */
@media (min-width: 821px) { .c-hero-inner .sub { margin-top: auto; margin-bottom: clamp(104px, 14vh, 150px); } }
/* モバイル: 初期は sub 非表示（home.js がスクロール連動でフェードイン） */
@media (max-width: 820px) {
  /* タイトルと段落を同一グリッドセルに重ね、同位置クロスフェードを可能に（JS制御） */
  .c-hero-inner { display: grid; grid-template-rows: auto auto; align-content: start; justify-items: center; }
  .c-hero-inner .eyebrow { grid-area: 1 / 1; }
  .c-hero-inner h1 { grid-area: 2 / 1; align-self: start; font-size: clamp(20.5px, 5vw, 30px); line-height: 1.25; }
  .c-hero-inner .sub { grid-area: 2 / 1; align-self: start; margin: 0; opacity: 0; line-height: 1.55; }
}
.c-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: rgba(248,244,236,.5); }
.c-cue .c-line { width: 1px; height: 50px; background: linear-gradient(rgba(248,244,236,.65), rgba(248,244,236,0)); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { .c-cue .c-line { animation: cueDrop 2.8s ease-in-out infinite; } }
@keyframes cueDrop { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 820px) { .c-hero { height: 320vh; } .c-hero-inner { padding-top: 15vh; } }

/* ---------- カーマン・ライン（§2・DOMオーバーレイ、scroll駆動） ---------- */
.c-karman {
  position: absolute; left: 0; right: 0; top: 105%; height: 1px; z-index: 3;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(248,231,194,.9), transparent);
  box-shadow: 0 0 18px rgba(248,231,194,.55);
}
.c-karman .c-stratum { top: 0; }
/* 大気圏ラベル: ヘッダー衝突回避の既定top（JSがスクロール駆動で上書き） */
.c-stratum-hero { top: 62%; }

/* ---------- 空: オービット節（数値なし・拠点3都市のみ） ---------- */
.c-orbit { background: linear-gradient(180deg, #4A6580 0%, #587189 55%, #66809B 100%); color: var(--paper); padding: clamp(120px, 15vw, 220px) 0; text-align: center; }
.c-orbit .c-cities { font-size: 10.5px; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: #FBE3C8; }
.c-orbit h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3.5vw, 41px); line-height: 1.45; max-width: 24em; margin: 20px auto 0; color: var(--paper); }
.c-orbit .o-note { max-width: 44em; margin: 26px auto 0; color: rgba(248,244,236,.85); font-size: 18px; line-height: 2; }
.c-link-w { display: inline-block; margin-top: clamp(30px, 4.5vw, 48px); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid rgba(248,244,236,.5); padding-bottom: 6px; transition: color .25s, border-color .25s; }
.c-link-w:hover { color: #FBE3C8; border-color: #FBE3C8; }

/* ---------- 階層バンド: 大気圏 → 生物圏 → 地殻・地上 ---------- */
.c-band-land { position: relative; height: 100vh; min-height: 600px;
  background: linear-gradient(180deg, #66809B 0%, #6E8A96 14%, #79928A 26%, #7E9078 36%, #7E8A72 43%, #667650 53%, #55654A 60%, #6B7653 69%, #97A07E 80%, #C6C4A6 90%, #F8F4EC 100%); }
/* §6.2-1 空→大地の残照 */
.c-band-land::before { content: ""; position: absolute; left: 0; right: 0; top: 22%; height: 10%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 50%, rgba(251,227,200,.08), transparent 74%); }

/* ---------- 引用帯=鉱脈（§5） ---------- */
.quote-band { position: relative; background: linear-gradient(180deg, #241811 0%, #2E1B0F 100%); }
.quote-band blockquote { color: #F8E7C2; }

/* ---------- シーム修正（§6.1） ---------- */
.compliance { border-bottom: 0; }

/* ---------- 階層バンド: 地上 → 海 → 海洋地殻 → マントル ---------- */
.c-band-mantle { position: relative; height: 125vh; min-height: 760px;
  background: linear-gradient(180deg, #F0EADD 0%, #DFDCC8 8%, #93AAA8 20%, #4A707C 34%, #27454F 50%, #14232B 66%, #241811 78%, #6E3B14 90%, #2E180B 100%); }
/* §6.2-2 入水の水面線（16%位置に1px線＋直下ハイライト） */
.c-band-mantle::before { content: ""; position: absolute; left: 0; right: 0; top: 16%; height: 6%; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,35,43,.5) 0, rgba(20,35,43,.5) 1px, rgba(248,244,236,.18) 1px, transparent 100%); }
/* §6.2-3 熱源（フッターへ継ぎ目をまたいで連続） */
.c-band-mantle::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 40% at 50% 100%, rgba(239,115,40,.18), transparent 70%); }

/* ---------- 坑口リンク（§11.6）: aria-hidden帯の外の相対ラッパー上に絶対配置 ---------- */
.c-mantle-wrap { position: relative; }
.c-link-vein { display: inline-block; margin-top: clamp(40px, 6vh, 72px);
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: #F8E7C2;
  border-bottom: 1px solid rgba(248,231,194,.5); padding-bottom: 7px; transition: color .25s, border-color .25s; }
.c-link-vein:hover { color: #F8F4EC; border-color: #F8F4EC; }
.c-link-vein:focus-visible { outline: 2px solid #F8E7C2; outline-offset: 5px; }


/* sec-head: stacked-left (2026-07-09n) */
/* TOPのみ: 番号ラベルを上段、見出しを下段・左寄せ、罫線は見出し直下に全幅で。 */
.sec-head { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
.sec-head h2 { max-width: 22em; }
.sec-head .rule { flex: none; width: 100%; }


/* ============================================================
   Overview / Explore タイル — 3列化＋番号見出し一体化（2026-07-09o・item1）
   デスクトップ: 3列・「番号＋見出し」を .t-head で一体化・説明文あり。
   モバイル(<=820px): コンパクト3列・説明文は非表示（各リンク先に残る）・
   番号＋見出しは横並び（PCと同形「I 会社概要」）、矢印のみ最小アフォーダンス。
   style.css .tiles(1fr) / モバイル1fr フォールバックを上書き（読込順で本ファイルが後勝ち）。
   ============================================================ */
.tiles { grid-template-columns: repeat(3, 1fr); }
.tile { border-right: 1px solid var(--hairline); }
.tile .t-head { display: flex; align-items: baseline; gap: .55em; margin-bottom: 16px; }
.tile .t-head .t-num { margin: 0; }
.tile .t-head h3 { margin: 0; }
@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 0; padding: clamp(16px, 3.6vw, 26px) clamp(8px, 2.4vw, 15px);
          text-align: center; align-items: center; }
  .tile .t-head { display: flex; align-items: baseline; justify-content: center; gap: .4em; margin-bottom: 0; }
  .tile .t-head .t-num { margin: 0; font-size: 11px; }
  .tile .t-head h3 { font-size: clamp(12px, 3.2vw, 17px); line-height: 1.35; }
  .tile p { display: none; }
  .tile .t-link { margin-top: 10px; font-size: 0; letter-spacing: 0; }
  .tile .t-link span { font-size: 14px; }
}

/* ============================================================
   オービット節 段階リビール（都市→見出し→本文→リンク・2026-07-09o・item3b）
   site.js の .ef-in を流用。.wrap を観測トリガーにし、wrap自身の一括フェードは
   打ち消して4子要素を段階表示。JS無効/低減モーション時は常時表示（内容は常に見える）。
   ============================================================ */
.ef-reveal .c-orbit .wrap.ef-rv { opacity: 1; transform: none; }
.ef-reveal .c-orbit .wrap.ef-rv > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1);
}
.ef-reveal .c-orbit .wrap.ef-rv.ef-in > * { opacity: 1; transform: none; }
.ef-reveal .c-orbit .wrap.ef-rv > *:nth-child(1) { transition-delay: 0ms; }
.ef-reveal .c-orbit .wrap.ef-rv > *:nth-child(2) { transition-delay: 150ms; }
.ef-reveal .c-orbit .wrap.ef-rv > *:nth-child(3) { transition-delay: 320ms; }
.ef-reveal .c-orbit .wrap.ef-rv > *:nth-child(4) { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  .ef-reveal .c-orbit .wrap.ef-rv > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* JA 文節ユニット: 文節を割らず、<wbr> の位置でのみ改行（item3a・JAトップのみ使用） */
.jp-b { display: inline-block; }

/* 2026-07-09q F: quote-band モバイルは強制改行を解除し句読点で自然折返し
   （desktop の2行組みは維持）。home 限定CSS = index 3面のみ読込。 */
@media (max-width: 820px) {
  .quote-band blockquote br { display: none; }
}

/* 2026-07-09r I: JAトップのヒーローsubは3行が収まるようモバイルで字送りを最適化（JA限定・共有英見出しには不干渉） */
@media (max-width: 820px) {
  html[lang="ja"] .c-hero-inner .sub { font-size: clamp(13px, 3.6vw, 15px); line-height: 1.5; }
}

/* 2026-07-09s M: 鉱脈マーカーの上線をGTMリンクの下線と概ね同じ高さへ。
   引用の行数でリンク位置が変わるため desktop/mobile を個別指定（近似・微調整可）。 */
.quote-band .c-stratum { top: 73%; }
@media (max-width: 820px) { .quote-band .c-stratum { top: 80%; } }


/* ============================================================
   12b: 油層CTA — §11.6 坑口リンクの実装。
   aria-hidden の降下帯の外（.c-mantle-wrap 上）に絶対配置し、
   背景（青のグラデーション）はそのまま。油層マーカー(top:52%)と同じ深度に整列。
   ============================================================ */
.c-oil-cta { position: absolute; top: 52%; transform: translateY(-50%);
  left: clamp(24px, 8vw, 120px); right: clamp(140px, 22vw, 320px); z-index: 5; }
.c-oil-lede { margin: 0; font-family: "EB Garamond", "Noto Serif JP", "Noto Serif Thai", serif;
  color: #F8F4EC; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.45; letter-spacing: .04em; }
.c-oil-cta .c-link-vein { margin-top: clamp(14px, 2.2vh, 24px); }
@media (max-width: 820px) {
  .c-oil-cta { left: 20px; right: 96px; }
  .c-oil-lede { font-size: 19px; }
}


/* ============================================================
   12d: GTM鉱脈帯を油層CTA（.c-oil-cta）と同じ左寄せに統一。
   縦paddingは基礎CSSを維持し、水平だけ油層CTAの左オフセットに合わせる。
   右側は鉱脈マーカー（.c-stratum）の帯域を確保。
   ============================================================ */
.quote-band { text-align: left; padding-left: clamp(24px, 8vw, 120px); padding-right: clamp(140px, 22vw, 320px); }
.quote-band blockquote { margin: 0; max-width: 22em; }
@media (max-width: 820px) {
  .quote-band { padding-left: 20px; padding-right: 96px; }
}
