/* ==========================================================
   GTIE — 案"ECO"(コンステレーション / 生態系)
   コンセプト: 点が、線になる。参加大学=6色スペクトラムをブランドの背骨に。
   Type: Zen Kaku Gothic New(見出し) + Space Mono(ラベル/数字/英字)
   配色: 淡色地 + インク + 参加大学6色。グラデ/オーブ/角丸ピル/影装飾は一切不使用。
   ========================================================== */

:root {
  --paper: #f8f7f3;
  --paper-2: #ffffff;
  --ink: #161318;
  --ink-2: #57535c;
  --ink-3: #8b8790;
  --hair: #e4e1d8;
  --ink-deep: #131015;

  /* 参加大学スペクトラム */
  --c-waseda: #a4123a;
  --c-tsukuba: #6a2c91;
  --c-chiba: #e09400;
  --c-tuat: #1c8c4c;
  --c-ynu: #1466b0;
  --c-gtie: #ff4a1c;

  --disp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1180px;
  --gut: 6vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--disp); font-weight: 400; color: var(--ink);
  background: var(--paper); line-height: 1.85; font-size: 16px;
  font-feature-settings: "palt" 1; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--c-gtie); color: #fff; }
:focus-visible { outline: 2.5px solid var(--c-gtie); outline-offset: 3px; }
.sec, .eco, .cta, .stat-band, .apply-box, .dt-related { scroll-margin-top: 80px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- 共通: モノラベル ---------- */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .08em; }
.eyebrow {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-gtie); }

/* ---------- 6色スペクトラム(構造モチーフ) ---------- */
.spectrum { display: flex; width: 100%; height: 6px; }
.spectrum > i { flex: 1; transform: scaleX(0); transform-origin: left; }
.spectrum > i:nth-child(1) { background: var(--c-waseda); }
.spectrum > i:nth-child(2) { background: var(--c-tsukuba); }
.spectrum > i:nth-child(3) { background: var(--c-chiba); }
.spectrum > i:nth-child(4) { background: var(--c-tuat); }
.spectrum > i:nth-child(5) { background: var(--c-ynu); }
.spectrum > i:nth-child(6) { background: var(--c-gtie); }
.spectrum.is-in > i { animation: growX .5s cubic-bezier(.2,.8,.2,1) forwards; }
.spectrum.is-in > i:nth-child(2) { animation-delay: .07s; }
.spectrum.is-in > i:nth-child(3) { animation-delay: .14s; }
.spectrum.is-in > i:nth-child(4) { animation-delay: .21s; }
.spectrum.is-in > i:nth-child(5) { animation-delay: .28s; }
.spectrum.is-in > i:nth-child(6) { animation-delay: .35s; }

/* ---------- ボタン ---------- */
.btn {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn .ar { transition: transform .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ar { transform: translate(3px, -3px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--c-gtie); border-color: var(--c-gtie); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 19px 34px; font-size: 14px; }

/* ---------- タグ / ステータス ---------- */
.utag {
  font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
}
.utag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc, var(--ink-3)); flex: none; }
.u-waseda { --tc: var(--c-waseda); } .u-tsukuba { --tc: var(--c-tsukuba); }
.u-chiba { --tc: var(--c-chiba); } .u-tuat { --tc: var(--c-tuat); }
.u-ynu { --tc: var(--c-ynu); } .u-gtie { --tc: var(--c-gtie); }
.status {
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status.open { color: var(--c-gtie); } .status.open::before { background: var(--c-gtie); box-shadow: 0 0 0 0 var(--c-gtie); animation: ping 1.8s ease-out infinite; }
.status.soon { color: var(--ink-2); } .status.soon::before { background: var(--ink-2); }
.status.prep { color: var(--ink-3); } .status.prep::before { background: var(--ink-3); }

/* ---------- モック注記 ---------- */
.mock-note { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; padding: 9px var(--gut); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.mock-note b { color: var(--c-gtie); font-weight: 700; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.hdr { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; }
.brand .bm { font-family: var(--disp); font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.brand .bs { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--ink-2); }
.brand .bn { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); border: 1px solid var(--hair); padding: 1px 6px; border-radius: 2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--c-gtie); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 9px 18px; border-radius: 2px; white-space: nowrap; transition: background .2s ease; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--c-gtie); }

/* ハンバーガー(SP) — 案CONSTELLATION の直線・インク・角丸2pxに合わせた鋭いバー */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 38px; padding: 0 8px; margin-left: 14px; background: none; border: 0; cursor: pointer; }
.nav-toggle .bar { display: block; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   ファーストビュー(シグネチャー: 生きた星座)
   ========================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 40px; align-items: center; min-height: min(76vh, 720px); }

.hero-kick { margin-bottom: 30px; }
.hero-sub-kick { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }

.hero-title { font-family: var(--disp); font-weight: 900; font-size: clamp(44px, 6.6vw, 88px); line-height: 1.0; letter-spacing: -.03em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: block; transform: translateY(116%); }
.is-lit .hero-title .line > span { animation: rise 1s cubic-bezier(.2,.85,.24,1) forwards; }
.is-lit .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.is-lit .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title em { color: var(--c-gtie); }

.hero-lead { max-width: 30em; margin-top: 28px; font-size: 16px; line-height: 1.95; color: var(--ink-2); opacity: 0; }
.is-lit .hero-lead { animation: fadeUp .8s ease .55s forwards; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.is-lit .hero-cta { animation: fadeUp .8s ease .68s forwards; }
.hero-flags { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; opacity: 0; }
.is-lit .hero-flags { animation: fadeUp .8s ease .8s forwards; }
.hero-flags span { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.hero-flags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gtie); }

/* 星座(SVG) */
.hero-viz { position: relative; align-self: stretch; min-height: 420px; }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cn-field { animation: drift 14s ease-in-out infinite; transform-origin: center; }
.cn-line { stroke: var(--ink); stroke-width: 1.2; opacity: .22; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-lit .cn-line { animation: draw 1.1s ease forwards; }
.is-lit .cn-line.l2 { animation-delay: .12s; } .is-lit .cn-line.l3 { animation-delay: .2s; }
.is-lit .cn-line.l4 { animation-delay: .28s; } .is-lit .cn-line.l5 { animation-delay: .36s; }
.is-lit .cn-line.l6 { animation-delay: .44s; } .is-lit .cn-line.l7 { animation-delay: .5s; }
.is-lit .cn-line.l8 { animation-delay: .56s; } .is-lit .cn-line.l9 { animation-delay: .62s; }
.cn-node { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.is-lit .cn-node { animation: pop .6s cubic-bezier(.2,1.5,.5,1) forwards; }
.is-lit .cn-node.n2 { animation-delay: .5s; } .is-lit .cn-node.n3 { animation-delay: .58s; }
.is-lit .cn-node.n4 { animation-delay: .66s; } .is-lit .cn-node.n5 { animation-delay: .74s; }
.is-lit .cn-node.n6 { animation-delay: .82s; } .is-lit .cn-node.n7 { animation-delay: .9s; }
.cn-hub { transform-box: fill-box; transform-origin: center; }
.cn-pulse { transform-box: fill-box; transform-origin: center; fill: none; stroke: var(--c-gtie); stroke-width: 1.5; opacity: 0; }
.is-lit .cn-pulse { animation: pulse 2.6s ease-out infinite; animation-delay: 1.1s; }
.cn-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; fill: var(--ink-2); opacity: 0; }
.is-lit .cn-label { animation: fadeIn .6s ease forwards; animation-delay: 1s; }

/* FV下部: スペクトラム + 大学ティッカー */
.hero-foot { margin-top: clamp(40px, 6vw, 72px); }
.hero-foot .spectrum { height: 8px; }
.ticker { overflow: hidden; border-bottom: 1px solid var(--hair); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker-row { display: flex; white-space: nowrap; padding: 14px 0; }
.ticker-row .t-track { display: inline-flex; gap: 38px; padding-right: 38px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--ink); animation: marquee 30s linear infinite; }
.ticker:hover .t-track { animation-play-state: paused; }
.ticker-row .t-track span { display: inline-flex; align-items: center; gap: 38px; }
.ticker-row .t-track span::after { content: "✱"; color: var(--c-gtie); }

/* ==========================================================
   WHY / コンセプト
   ========================================================== */
.sec { padding: clamp(72px, 11vw, 132px) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.why-h { font-family: var(--disp); font-weight: 900; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.28; letter-spacing: -.02em; margin-top: 22px; }
.why-h em { color: var(--c-gtie); }
.why-body p { color: var(--ink-2); font-size: 16px; margin-bottom: 18px; }
.why-body p strong { color: var(--ink); font-weight: 700; box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--c-gtie) 18%, transparent); }
.why-points { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.why-points li { padding: 22px 0 22px 16px; border-bottom: 1px solid var(--hair); position: relative; }
.why-points li::before { content: ""; position: absolute; left: 0; top: 28px; width: 5px; height: 5px; border-radius: 50%; background: var(--pc, var(--ink)); }
.why-points li:nth-child(1) { --pc: var(--c-waseda); } .why-points li:nth-child(2) { --pc: var(--c-tuat); } .why-points li:nth-child(3) { --pc: var(--c-gtie); }
.why-points b { font-family: var(--disp); font-weight: 700; font-size: 19px; display: block; }
.why-points span { color: var(--ink-2); font-size: 14.5px; }
.why-points .pn { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

/* ==========================================================
   EVENTS(signals: 行リスト)
   ========================================================== */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--disp); font-weight: 900; font-size: clamp(30px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; margin-top: 16px; }
.sec-head .sh-link { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 9px; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.sec-head .sh-link:hover { color: var(--c-gtie); border-color: var(--c-gtie); }

.ev-list { border-top: 1px solid var(--ink); }
.ev-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 30px; align-items: center; padding: 28px 18px; border-bottom: 1px solid var(--hair); position: relative; transition: padding-left .3s ease, color .25s ease; }
.ev-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rc, var(--c-gtie)); transition: width .3s cubic-bezier(.2,.8,.2,1); }
.ev-row:hover { padding-left: 30px; }
.ev-row:hover::before { width: 5px; }
.ev-row .e-date { font-family: var(--mono); font-weight: 700; line-height: 1; }
.ev-row .e-date .d { display: block; font-size: 34px; letter-spacing: -.02em; }
.ev-row .e-date .ym { display: block; font-size: 12px; color: var(--ink-2); margin-top: 5px; letter-spacing: .06em; }
.ev-row .e-main { min-width: 0; }
.ev-row .e-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 9px; }
.ev-row .e-title { font-family: var(--disp); font-weight: 700; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.ev-row:hover .e-title { color: var(--c-gtie); }
.ev-row .e-info { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); letter-spacing: .01em; display: flex; gap: 18px; flex-wrap: wrap; }
.ev-row .e-go { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--ink-3); transition: transform .25s ease, color .25s ease; }
.ev-row:hover .e-go { color: var(--c-gtie); transform: translate(4px, -4px); }
.ev-row.is-muted { opacity: .5; }
.ev-row.is-muted:hover { padding-left: 18px; } .ev-row.is-muted:hover::before { width: 0; } .ev-row.is-muted:hover .e-title { color: inherit; }

/* 注目イベント(先頭・画像つき) */
.ev-feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--ink); margin-bottom: 8px; }
.ev-feat .f-photo { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.ev-feat .f-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ev-feat:hover .f-photo img { transform: scale(1.04); }
.ev-feat .f-photo .f-flag { position: absolute; left: 0; top: 0; display: flex; }
.ev-feat .f-photo .f-flag i { width: 34px; height: 8px; } /* 6色帯 */
.ev-feat .f-body { padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.ev-feat .f-tag { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gtie); }
.ev-feat .f-date { font-family: var(--mono); font-weight: 700; font-size: 15px; margin: 16px 0 10px; letter-spacing: .02em; }
.ev-feat .f-title { font-family: var(--disp); font-weight: 900; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.32; letter-spacing: -.02em; }
.ev-feat .f-meta { margin: 18px 0 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ev-feat .f-info { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); display: grid; gap: 6px; margin-bottom: 28px; }

/* ==========================================================
   REPORTS(エディトリアル写真)
   ========================================================== */
.sec-reports { background: var(--paper-2); }
.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.rep { position: relative; }
.rep .r-photo { position: relative; overflow: hidden; aspect-ratio: 5/4; border-bottom: 3px solid var(--rc, var(--ink)); }
.rep .r-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.rep:hover .r-photo img { transform: scale(1.05); }
.rep .r-no { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-weight: 700; font-size: 12px; color: #fff; mix-blend-mode: difference; letter-spacing: .06em; }
.rep .r-meta { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.rep .r-date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.rep .r-title { font-family: var(--disp); font-weight: 700; font-size: 18px; line-height: 1.55; letter-spacing: -.01em; }
.rep:hover .r-title { color: var(--c-gtie); }

/* ==========================================================
   THE ECOSYSTEM(インク地・参加大学)
   ========================================================== */
.eco { background: var(--ink-deep); color: var(--paper); padding: clamp(80px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.eco .eyebrow { color: #b8b3bd; } .eco .eyebrow::before { background: var(--c-gtie); }
.eco-h { font-family: var(--disp); font-weight: 900; font-size: clamp(30px, 5.4vw, 68px); line-height: 1.1; letter-spacing: -.025em; margin: 20px 0 14px; max-width: 16em; }
.eco-h em { color: var(--c-gtie); }
.eco-lead { color: #b8b3bd; max-width: 34em; font-size: 16px; }
.eco-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2a2530; border: 1px solid #2a2530; }
.eco-uni { background: var(--ink-deep); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 150px; transition: background .25s ease; }
.eco-uni:hover { background: #1c1820; }
.eco-uni .u-bar { width: 46px; height: 8px; background: var(--tc, var(--c-gtie)); }
.eco-uni .u-name { font-family: var(--disp); font-weight: 700; font-size: 20px; }
.eco-uni .u-en { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-top: auto; }
.eco-uni .u-role { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--c-gtie); }

/* ==========================================================
   CTA
   ========================================================== */
.cta { padding: clamp(80px, 12vw, 150px) 0; text-align: center; position: relative; }
.cta .spectrum { max-width: 220px; margin: 0 auto 36px; height: 6px; }
.cta h2 { font-family: var(--disp); font-weight: 900; font-size: clamp(34px, 6.6vw, 84px); line-height: 1.04; letter-spacing: -.03em; }
.cta h2 em { color: var(--c-gtie); }
.cta p { margin: 24px auto 38px; max-width: 30em; color: var(--ink-2); }

/* ==========================================================
   フッター
   ========================================================== */
.ftr { border-top: 1px solid var(--ink); padding: 64px 0 36px; }
.ftr-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr-brand .bm { font-family: var(--disp); font-weight: 900; font-size: 26px; }
.ftr-brand p { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 12px; letter-spacing: .02em; }
.ftr-nav { display: grid; grid-auto-flow: column; gap: 56px; }
.ftr-nav .col span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 14px; }
.ftr-nav .col a { display: block; font-size: 14px; padding: 5px 0; }
.ftr-nav .col a:hover { color: var(--c-gtie); }
.ftr-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

/* ==========================================================
   スクロール出現
   ========================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* JS無効フォールバック: 出現アニメ前提で隠している要素を、スクリプトが無い時は確実に表示する */
html:not(.js) .reveal,
html:not(.js) .hero-lead,
html:not(.js) .hero-cta,
html:not(.js) .hero-flags,
html:not(.js) .hero-title .line > span { opacity: 1 !important; transform: none !important; }
html:not(.js) .spectrum > i { transform: scaleX(1) !important; }
html:not(.js) .cn-line { stroke-dashoffset: 0 !important; }
html:not(.js) .cn-node { transform: scale(1) !important; }
html:not(.js) .cn-label { opacity: 1 !important; }
.stagger > .reveal.is-in { } /* delays below */
.stagger > *:nth-child(2) .reveal, .stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) .reveal, .stagger > .reveal:nth-child(3) { transition-delay: .16s; }

/* ==========================================================
   キーフレーム
   ========================================================== */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes growX { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-gtie) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 940px) {
  :root { --gut: 5vw; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-viz { min-height: 320px; order: 2; margin-top: 8px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .ev-feat { grid-template-columns: 1fr; }
  .ev-feat .f-photo { aspect-ratio: 16/9; }
  .rep-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .eco-list { grid-template-columns: 1fr 1fr; }
  .ftr-nav { grid-auto-flow: row; gap: 22px; }
}

/* ハンバーガー展開(SP) — 原案では ECOSYSTEM にSPから到達不能だった箇所を修正 */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gut) 20px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 24px 30px -24px rgba(22,19,24,.55);
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav a { font-size: 14px; padding: 16px 2px; border-bottom: 1px solid var(--hair); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav a.hide-sp { display: block; }
  .nav .nav-cta { margin-top: 18px; align-self: flex-start; padding: 12px 22px; border-bottom: 0; }
}
@media (max-width: 600px) {
  .brand .bs, .brand .bn { display: none; }
  .hero { padding-top: 30px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 64px); }
  .hero-viz { min-height: 260px; }
  .ev-row { grid-template-columns: 70px 1fr; gap: 16px; }
  .ev-row .e-go { display: none; }
  .ev-row .e-date .d { font-size: 26px; }
  .rep-grid { grid-template-columns: 1fr; }
  .eco-list { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; }
}

/* ==========================================================
   モーション抑制
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero-lead, .hero-cta, .hero-flags { opacity: 1 !important; transform: none !important; }
  .hero-title .line > span { transform: none !important; }
  .spectrum > i { transform: scaleX(1) !important; }
  .cn-line { stroke-dashoffset: 0 !important; opacity: .22 !important; }
  .cn-node { transform: scale(1) !important; }
  .cn-label { opacity: 1 !important; }
}
