/* 054 NAGI ― 色はここだけ触れば差し替わる（暗いページ） */
:root {
  --c-bg: #0b0912;
  --c-panel: #15111f;
  --c-accent: #8b5cf6;
  --c-accent-2: #ec4899;
  --c-accent-text: #c4b5fd;
  --c-head: #f5f3ff;
  --c-text: #d4d4d8;
  --c-sub: #a1a1aa;
  --c-line: rgba(196, 181, 253, .22);
  --light: 0deg;
  --font: "Noto Sans JP", sans-serif;
  --font-en: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --n-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M15 90V10h17l36 52V10h17v80H68L32 38v52z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.95; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

.label { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 12px; }
.h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; color: var(--c-head); }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-accent-text); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none; background: var(--c-head); color: var(--c-bg); border: 1px solid var(--c-head); transition: background-color .3s, color .3s, box-shadow .3s; }
.btn:hover, .btn:focus-visible { background: var(--c-accent-text); box-shadow: 0 0 32px rgba(139, 92, 246, .6); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--c-head); border-color: rgba(245, 243, 255, .5); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(245, 243, 255, .1); }

/* 金属の印（D05）：N の形に切り抜いた、光る金属のグラデ。--light を JS が動かす */
.metal { display: block; aspect-ratio: 1; -webkit-mask: var(--n-mask) center / contain no-repeat; mask: var(--n-mask) center / contain no-repeat;
  background: linear-gradient(calc(var(--base, 30deg) + var(--light)), #2a2438 0%, #8f86a8 28%, #f4f1ff 44%, #9a86d6 52%, #3a3150 70%, #c9bff0 86%, #2a2438 100%); }
.metal--logo { width: 26px; --base: 35deg; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 20px; background: rgba(11, 9, 18, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-en); font-weight: 800; font-size: 22px; letter-spacing: .14em; color: var(--c-head); text-decoration: none; white-space: nowrap; flex: none; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
@media (min-width: 1080px) {
  .header__inner { padding: 0 48px; }
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-decoration: none; color: var(--c-text); }
  .gnav a:hover { color: var(--c-head); }
  .header__btn { margin-left: 8px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-head); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-panel); border-bottom: 1px solid var(--c-line); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: var(--c-head); text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A11）：破片の文字 ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px 20px 64px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #241a3d, var(--c-bg) 70%); }
.hero__smoke { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 動かない版の文字：かすれ（feTurbulence）だけ付けて、静かに置く */
.hero__word { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font-family: var(--font-en); font-weight: 800; font-size: 21vw; line-height: 1; letter-spacing: 0;
  background: linear-gradient(100deg, #b59cf8, #f0abfc 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; filter: url(#rough); opacity: .9; }
.is-shards .hero__word { visibility: hidden; }
.hero__copy { position: relative; z-index: 1; }
.hero__en { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); }
.hero__title { font-weight: 700; font-size: clamp(32px, 5vw, 64px); line-height: 1.4; color: var(--c-head); margin: 12px 0 16px; text-shadow: 0 2px 24px rgba(11, 9, 18, .9); }
.hero__lead { max-width: 34em; text-shadow: 0 1px 12px rgba(11, 9, 18, .9); }
@media (min-width: 1080px) {
  .hero { padding: 120px 6vw 88px; }
  .hero__word { top: 16%; font-size: 19vw; }
}

/* ===== 演出②（F06）：リボン ===== */
.ribbon-zone { position: relative; overflow: hidden; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; pointer-events: none; }
.ribbon path { stroke-width: 56px; }
@media (min-width: 1080px) { .ribbon path { stroke-width: 96px; } }
.ribbon-zone > section { position: relative; z-index: 1; }

/* ===== 使命 ===== */
.mission { padding: 120px 20px 96px; }
.mission__title { font-weight: 700; font-size: clamp(36px, 7vw, 96px); line-height: 1.3; color: var(--c-head); margin-bottom: 32px; text-shadow: 0 2px 30px rgba(11, 9, 18, .8); }
.mission__text { max-width: 38em; font-size: 17px; background: rgba(11, 9, 18, .72); padding: 20px; border-left: 2px solid var(--c-accent); }
@media (min-width: 1080px) { .mission { padding: 200px 6vw 160px; } .mission__text { margin-left: auto; padding: 28px 32px; } }

/* ===== 製品 ===== */
.product { padding: 96px 20px; }
.product__list { display: grid; gap: 20px; margin-top: 40px; }
.card { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 24px; }
.card__no { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--c-accent-text); }
.card h3 { font-size: 20px; color: var(--c-head); margin: 4px 0 8px; }
@media (min-width: 900px) { .product__list { grid-template-columns: repeat(3, 1fr); } .card:nth-child(2) { margin-top: 48px; } .card:nth-child(3) { margin-top: 96px; } }
@media (min-width: 1080px) { .product { padding: 160px 6vw; } }

/* ===== 数字 ===== */
.numbers { padding: 96px 20px 120px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.nums li { background: rgba(21, 17, 31, .9); border: 1px solid var(--c-line); border-radius: 16px; padding: 20px; }
.nums__v { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; color: var(--c-head); }
.nums__v small { font-family: var(--font); font-weight: 700; font-size: 16px; margin-left: 4px; color: var(--c-accent-text); }
@media (min-width: 1080px) { .numbers { padding: 160px 6vw 200px; } .nums { grid-template-columns: repeat(4, 1fr); } }

/* ===== チーム ===== */
.team { display: grid; gap: 32px; padding: 96px 20px; }
.team__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.team__text p:not(.label) { margin-top: 16px; }
@media (min-width: 1080px) { .team { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; padding: 160px 6vw; } }

/* ===== 演出③（D05）：結び ===== */
.closing { position: relative; overflow: hidden; padding: 96px 20px; min-height: 100svh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 60%, #1d1530, #050408 75%); }
.closing__smoke { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scaleX(-1); }
.closing__grid { position: absolute; inset: -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6vw; padding: 6vw; align-content: center; opacity: .9; }
.closing__grid .metal:nth-child(n+10) { display: none; }
.closing__grid .metal { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); }
@media (min-width: 768px) { .closing__grid { grid-template-columns: repeat(6, 1fr); gap: 4vw; } .closing__grid .metal:nth-child(n+10) { display: block; } }
.closing__box { position: relative; z-index: 1; max-width: 640px; text-align: center; background: rgba(11, 9, 18, .86); border: 1px solid var(--c-line); border-radius: 24px; padding: 40px 24px; backdrop-filter: blur(6px); }
.closing__title { font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.5; color: var(--c-head); margin-bottom: 16px; }
.closing__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (min-width: 1080px) { .closing__box { padding: 56px 56px; } }

/* ===== フッター ===== */
.footer { padding: 56px 20px 28px; font-size: 15px; border-top: 1px solid var(--c-line); }
.footer__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 800; font-size: 24px; letter-spacing: .14em; color: var(--c-head); margin-bottom: 12px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 12px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; text-align: center; color: var(--c-sub); }
@media (min-width: 1080px) { .footer { padding: 72px 6vw 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
