/* =========================================================
   NAXA — renewal sample
   Base: design A_2 (noir / smoke / ink / film) re-coloured to blue,
   applied on top of the current naxa.co.jp structure & copy.
   ========================================================= */
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/clash-display/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700; font-display: swap;
}

:root {
  --bg: #04060c;
  --bg-2: #070c18;
  --surface: #0b1426;
  --text: #eef3ff;
  --muted: #8d9ab8;
  --line: rgba(125, 180, 255, .22);
  --blue: #1e5bff;
  --blue-2: #38c8ff;
  --navy: #0b1e4a;
  --steel: #c8d6f0;
  --metal: linear-gradient(180deg, #ffffff 0%, #cfe0ff 38%, #6f9dff 62%, #dbe8ff 100%);
  --glow: 0 0 24px rgba(56, 160, 255, .45);
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", system-ui, "Hiragino Sans", sans-serif;
  --f-en: "Clash Display", "Oswald", var(--f-sans);
  --f-num: "Oswald", var(--f-sans);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 72px;

  /* sakuga-vfx controls, re-coloured to NAXA blue */
  --sk-card: #0b1426;
  --sk-ink: #eef3ff;
  --sk-dim: #7d8db0;
  --sk-soft: #1e5bff;
  --sk-pri: #1e5bff;
  --sk-pri-ink: #ffffff;
  --sk-on-pri: #ffffff;
  --sk-acc: #38c8ff;
  --sk-track: #1a2742;
  --sk-btn-line: #7db4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 15px; line-height: 1.9; letter-spacing: .04em;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.pc { display: inline; }
@media (max-width: 768px) { .pc { display: none; } }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* smoke */
.smoke { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.smoke i {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 180, 230, .16), rgba(150, 180, 230, 0) 70%);
  filter: blur(30px); animation: drift 26s ease-in-out infinite alternate;
}
.smoke i:nth-child(1) { left: -20vw; bottom: -30vw; }
.smoke i:nth-child(2) { right: -25vw; bottom: -35vw; animation-duration: 32s; animation-delay: -8s; }
.smoke i:nth-child(3) { left: 20vw; bottom: -45vw; animation-duration: 40s; animation-delay: -14s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, -6vw) scale(1.25); } }

/* ink splatter (deep blue / black, never red) */
.ink { position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: contain; opacity: .9; }
.ink--hero { left: -40px; top: 30%; width: 360px; height: 360px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23020409'><circle cx='90' cy='100' r='46'/><circle cx='140' cy='70' r='16'/><circle cx='150' cy='130' r='9'/><circle cx='40' cy='60' r='12'/><circle cx='60' cy='160' r='7'/><circle cx='170' cy='100' r='5'/><circle cx='120' cy='170' r='4'/><path d='M90 54 L100 10 L104 56Z'/><path d='M130 110 L190 150 L126 120Z'/><path d='M50 100 L4 120 L52 112Z'/></g></svg>"); }
.ink--works { right: -60px; top: 80px; width: 420px; height: 420px; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%230b1e4a'><circle cx='100' cy='100' r='50'/><circle cx='40' cy='50' r='14'/><circle cx='160' cy='40' r='10'/><circle cx='170' cy='150' r='18'/><circle cx='30' cy='150' r='8'/><path d='M100 50 L110 0 L116 54Z'/><path d='M60 120 L0 170 L70 128Z'/></g></svg>"); }

/* -------- loader -------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: #000;
}
.loader-logo { width: 150px; filter: drop-shadow(var(--glow)); }
.loader-text { margin: 0; font: 700 14px/1 var(--f-num); letter-spacing: .4em; color: var(--steel); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.loader-shutter { position: fixed; left: 0; right: 0; height: 50.5%; background: #000; z-index: -1; transition: transform .9s cubic-bezier(.77,0,.18,1); }
.loader-shutter--a { top: 0; } .loader-shutter--b { bottom: 0; }
.loader.is-done { background: transparent; pointer-events: none; }
.loader.is-done > :not(.loader-shutter) { opacity: 0; transition: opacity .3s; }
.loader.is-done .loader-shutter--a { transform: translateY(-101%) skewY(-4deg); }
.loader.is-done .loader-shutter--b { transform: translateY(101%) skewY(-4deg); }

/* -------- header -------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(4, 6, 12, .78); backdrop-filter: blur(10px); border-color: var(--line); }
.header-logo img { width: 128px; }
.gnav { display: flex; align-items: center; gap: 32px; font: 500 14px/1 var(--f-en); letter-spacing: .08em; }
.gnav-link { position: relative; padding: 8px 0; background: none; border: 0; color: var(--steel); font: inherit; cursor: pointer; }
.gnav-link span { margin-left: 4px; font-size: 10px; }
.gnav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.gnav-link:hover { color: #fff; } .gnav-link:hover::after { transform: scaleX(1); }
.gnav-item--drop { position: relative; }
.gnav-drop {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 240px; padding: 14px 0;
  background: rgba(7, 12, 24, .96); border: 1px solid var(--line); font: 500 13px/1 var(--f-sans);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s;
}
.gnav-item--drop:hover .gnav-drop, .gnav-item--drop:focus-within .gnav-drop { opacity: 1; visibility: visible; transform: none; }
.gnav-drop::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.gnav-drop a { display: block; padding: 11px 22px; color: var(--steel); }
.gnav-drop a:hover { color: #fff; background: rgba(30, 91, 255, .18); }
.gnav-cta {
  padding: 12px 22px; border: 1px solid var(--blue-2); color: #fff; font-family: var(--f-sans); font-weight: 700; letter-spacing: .1em;
  background: linear-gradient(135deg, rgba(30,91,255,.35), rgba(56,200,255,.1)); box-shadow: inset 0 0 12px rgba(56,200,255,.25);
  transition: .3s;
}
.gnav-cta:hover { background: var(--blue); box-shadow: var(--glow); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; z-index: 120; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.is-menu .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-menu .burger span:nth-child(2) { opacity: 0; }
.is-menu .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.spmenu {
  position: fixed; inset: 0; z-index: 99; display: grid; place-content: center; justify-items: center; gap: 36px;
  background: radial-gradient(ellipse at 70% 30%, rgba(30,91,255,.35), transparent 60%), #03050b;
  padding: var(--head-h) var(--gutter) 24px; align-content: safe center;
  overflow-y: auto; overscroll-behavior-y: contain;
  clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .6s cubic-bezier(.77,0,.18,1);
}
.is-menu .spmenu { clip-path: circle(150% at calc(100% - 40px) 36px); }
.spmenu-mark { position: absolute; width: 90vw; opacity: .06; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.spmenu ul { text-align: center; }
.spmenu li a { display: block; padding: 6px; font: 600 34px/1.3 var(--f-en); letter-spacing: .04em; }
.spmenu-cta { padding: 14px 40px; background: var(--blue); font-weight: 700; letter-spacing: .1em; }
@media (min-width: 961px) {
  .spmenu { display: none; }
}
@media (max-width: 960px) {
  .gnav { display: none; } .burger { display: block; }
}

/* -------- shared -------- */
section { position: relative; }
.sec-head { margin-bottom: 48px; }
.sec-en {
  margin: 0; font: 600 clamp(40px, 7vw, 88px)/1 var(--f-en); letter-spacing: .02em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-jp { margin: 10px 0 0; font: 800 clamp(22px, 3vw, 32px)/1.4 var(--f-mincho); letter-spacing: .12em; }
.brush {
  display: inline-block; padding: 2px 14px 4px; margin-right: 10px; font: 600 .7em/1.4 var(--f-en); letter-spacing: .06em; color: #fff;
  background: linear-gradient(100deg, transparent 0 2%, var(--blue) 3% 96%, transparent 97%);
  clip-path: polygon(1% 12%, 99% 0, 100% 86%, 0 100%);
}
.more {
  display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--f-en); letter-spacing: .12em; color: var(--steel);
  padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: .3s;
}
.more span { color: var(--blue-2); transition: transform .3s; }
.more:hover { color: #fff; border-color: var(--blue-2); } .more:hover span { transform: translateX(4px); }

.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-lines .fl { display: block; overflow: hidden; }
.fade-lines .fl > i { display: block; font-style: normal; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 70ms); }
.fade-lines.is-in .fl > i { transform: none; }
.fade-lines .gap { height: 1em; }

/* -------- hero -------- */
.hero { height: 100svh; min-height: 620px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
/* no CSS filter on the wall: iOS Safari can stop repainting videos under a filtered ancestor.
   The darkening is done with an overlay instead. */
.hero-wall { position: absolute; inset: -12% -6%; z-index: -3; display: grid; align-content: center; }
.hero-wall::after { content: ""; position: absolute; inset: 0; background: rgba(4, 6, 12, .4); pointer-events: none; }
.hero-wall .shorts-rows { transform: rotate(-6deg) scale(1.05); }
.hero-shade { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(4,6,12,.72), rgba(4,6,12,.35) 45%, rgba(4,6,12,.88) 85%),
    linear-gradient(180deg, rgba(4,6,12,.55), rgba(4,6,12,.1) 30%, rgba(4,6,12,.95)),
    linear-gradient(120deg, rgba(30,91,255,.28), transparent 55%); }
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px); }
.hero-copy { text-align: center; padding: 0 var(--gutter); }
.hero-title { margin: 0; font: 800 clamp(44px, 8.4vw, 128px)/1.15 var(--f-mincho); letter-spacing: .06em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
.hero-line { display: block; overflow: hidden; padding: 0 .1em; }
.hero-line > span { display: inline-block; transform: translateY(105%) skewY(6deg); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hero-line:nth-child(2) > span { transition-delay: .15s; }
.is-ready .hero-line > span { transform: none; }
.hero-sub { margin: 16px 0 0; font: 500 clamp(14px, 1.6vw, 20px)/1.4 var(--f-en); letter-spacing: .3em; color: var(--steel); opacity: 0; transition: opacity 1s .7s; }
.is-ready .hero-sub { opacity: 1; }
.hero-record { margin-top: clamp(28px, 5vh, 56px); display: inline-flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(20px); transition: 1s 1s; }
.is-ready .hero-record { opacity: 1; transform: none; }
.hero-record-label { margin: 0; display: flex; border: 1px solid var(--blue-2); font: 700 clamp(13px, 1.3vw, 16px)/1 var(--f-sans); letter-spacing: .2em; }
.hero-record-label span { padding: 8px 14px; }
.hero-record-label span + span { background: var(--blue); }
.hero-record-num { margin: 6px 0 0; line-height: 1; position: relative; }
.hero-record-num .count { font: 800 clamp(84px, 13vw, 180px)/1 var(--f-mincho); letter-spacing: -.02em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-record-num small { font: 800 clamp(26px, 3.6vw, 52px)/1 var(--f-mincho); margin-left: .15em; }
.hero-record-num::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: 4%; height: 14%; z-index: -1;
  background: linear-gradient(100deg, transparent, var(--blue) 12% 88%, transparent); transform: skewX(-12deg); opacity: .85; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--f-en); letter-spacing: .3em; color: var(--steel); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--blue-2), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 768px) { .ink--hero { width: 200px; height: 200px; } }

/* -------- sponsors -------- */
.sponsors { padding: 34px 0; border-block: 1px solid var(--line); background: #fff; overflow: hidden; margin-bottom: 72px; }
.sponsors-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.sponsors-track ul { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.sponsors-track img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------- vision -------- */
.vision { padding: clamp(110px, 16vw, 200px) 0; overflow: hidden; isolation: isolate; }
.vision-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: grayscale(.4) brightness(.35); }
.vision-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,6,12,.92) 0 40%, rgba(4,6,12,.55)), linear-gradient(180deg, var(--bg), transparent 20% 80%, var(--bg)); }
.vision-bg { position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: 2vw; pointer-events: none; opacity: .12; }
.vision-marquee { white-space: nowrap; font: 600 14vw/1 var(--f-en); color: transparent; -webkit-text-stroke: 1px var(--blue-2); animation: vm 60s linear infinite; }
.vision-marquee--rev { animation-direction: reverse; }
@keyframes vm { to { transform: translateX(-50%); } }
.vision-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; align-items: start; }
.vision-heading { margin: 0; font: 800 clamp(34px, 5vw, 64px)/1.35 var(--f-mincho); letter-spacing: .08em; writing-mode: vertical-rl; height: 9.5em; justify-self: center; }
.vision-lead { margin: 0 0 36px; font: 800 clamp(20px, 2.4vw, 30px)/1.7 var(--f-mincho); letter-spacing: .1em; }
.vision-text { margin: 0; color: #c9d3ea; font-size: clamp(14px, 1.1vw, 16px); line-height: 2.1; }
@media (max-width: 768px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-heading { writing-mode: horizontal-tb; height: auto; justify-self: start; }
}

/* -------- services / products -------- */
.services { padding: clamp(100px, 14vw, 180px) 0 0; background: radial-gradient(ellipse at 80% 0, rgba(30,91,255,.18), transparent 50%), var(--bg); }
.products { display: grid; gap: clamp(64px, 10vw, 120px); }
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product--rev .product-media { order: 2; }
.product-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%); }
.product--rev .product-media { clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%, 0 88%); }
.product-media img, .product-media video { width: 100%; height: 100%; object-fit: cover; background: #0b1426; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.85) saturate(.9); }
.product:hover .product-media img, .product:hover .product-media video { transform: scale(1.0); filter: none; }
.product-frame { position: absolute; inset: 10px; border: 1px solid rgba(125,180,255,.5); pointer-events: none; }
.product-frame::before, .product-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--blue-2); }
.product-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.product-frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.product-no { margin: 0; font: 600 64px/1 var(--f-en); color: transparent; -webkit-text-stroke: 1px var(--blue-2); opacity: .8; }
.product-title { margin: 6px 0 0; font: 600 clamp(28px, 3.2vw, 42px)/1.15 var(--f-en); letter-spacing: .02em; }
.product-sub { margin: 10px 0 18px; display: inline-block; padding: 4px 12px; background: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.product-desc { margin: 0 0 26px; color: #c9d3ea; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product--rev .product-media { order: 0; }
}

/* short video wall */
.shorts { padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 12vw, 150px); overflow: hidden; }
.shorts-head { margin-bottom: 48px; }
.shorts-head .sec-en { font-size: clamp(30px, 5vw, 64px); }
.shorts-lead { margin: 18px 0 8px; font: 800 clamp(18px, 2.2vw, 28px)/1.7 var(--f-mincho); letter-spacing: .08em; }
.shorts-text { margin: 0; color: #c9d3ea; }
.shorts-rows { display: grid; gap: 22px; }
.shorts-row { display: flex; width: max-content; gap: 22px; animation: marquee var(--dur, 70s) linear infinite; }
.shorts-row--rev { animation-direction: reverse; }
/* only real pointers pause the rows — on phones a tap left a sticky :hover that froze the row */
@media (hover: hover) and (pointer: fine) { .shorts-row:hover { animation-play-state: paused; } }
.phone { flex: none; width: clamp(150px, 15vw, 200px); aspect-ratio: 9 / 16; border-radius: 22px; padding: 6px; position: relative;
  background: linear-gradient(160deg, #8fb8ff, #1b2c52 30%, #0b1426 70%, #6f9dff); box-shadow: 0 18px 40px rgba(0,0,0,.6), var(--glow); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; background: #000; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 32%; height: 8px; border-radius: 8px; background: #000; transform: translateX(-50%); z-index: 1; }

/* -------- works -------- */
.works { padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.works-record { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.works-record-label { margin: 0 0 18px; padding: 8px 16px; border-left: 4px solid var(--blue-2); background: rgba(30,91,255,.16); font-weight: 700; letter-spacing: .16em; }
.works-record-num { margin: 0; line-height: 1; }
.works-record-num .count { font: 800 clamp(96px, 15vw, 220px)/.9 var(--f-mincho); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.works-record-num small { font: 800 clamp(28px, 4vw, 56px)/1 var(--f-mincho); }
.works-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 72px; }
.works-logos li { background: #fff; display: grid; place-items: center; padding: 22px 16px; }
.works-logos img { height: 40px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .3s; }
.works-logos li:hover img { filter: none; opacity: 1; }
.film { transform: rotate(-3deg); margin: 0 -4vw; padding: 26px 0; background: #000;
  --holes: repeating-linear-gradient(90deg, transparent 0 14px, #c8d6f0 14px 28px, transparent 28px 40px);
  border-block: 0 solid; position: relative; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--holes); opacity: .55; }
.film::before { top: 8px; } .film::after { bottom: 8px; }
.film-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.film-cell { margin: 0; flex: none; width: clamp(240px, 26vw, 380px); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #1d2a44; background: #0b1426; }
.film-cell img, .film-cell video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }

/* -------- company -------- */
.company { padding: clamp(110px, 14vw, 180px) 0; background: var(--bg-2); overflow: hidden; isolation: isolate; }
.company-bg { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); }
.company-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.55); }
.company-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7,12,24,.55), rgba(7,12,24,.9) 55%),
  linear-gradient(180deg, var(--bg), rgba(7,12,24,.2) 18% 82%, var(--bg)),
  linear-gradient(120deg, rgba(30,91,255,.25), transparent 60%); }
@media (max-width: 860px) { .company-bg { grid-template-columns: repeat(2, 1fr); } .company-bg::after { background: rgba(7,12,24,.82); } }
.company-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.company-visual { position: relative; aspect-ratio: 5 / 4; }
.cv-main { position: absolute; inset: 0 14% 14% 0; width: 86%; height: 86%; object-fit: cover; filter: grayscale(.2) brightness(.8); }
.cv-sub { position: absolute; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--bg-2); box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.cv-sub--a { right: 0; bottom: 0; } .cv-sub--b { right: 6%; top: -8%; width: 30%; }
.company-visual-copy { position: absolute; left: -10px; bottom: 6%; }
.company-visual-copy p { margin: 0; font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.company-visual-copy h2 { margin: 0; font: 600 clamp(48px, 7vw, 96px)/1 var(--f-en); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.company-lead { margin: 0 0 36px; font: 800 clamp(20px, 2.2vw, 28px)/1.8 var(--f-mincho); letter-spacing: .08em; }
.company-table { margin: 0 0 32px; border-top: 1px solid var(--line); }
.company-table div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--blue-2); font-weight: 700; font-size: 13px; letter-spacing: .16em; }
.company-table dd { margin: 0; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }

/* -------- recruit -------- */
.recruit { height: clamp(420px, 60vw, 640px); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.recruit-collage { position: absolute; inset: -10%; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; transform: rotate(-6deg); }
.recruit-collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.7); }
.recruit-collage img:nth-child(1) { grid-row: span 2; }
.recruit-collage img:nth-child(4) { grid-column: span 2; }
.recruit-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11,30,74,.55), rgba(4,6,12,.92) 75%); }
.recruit-copy { text-align: center; }
.recruit-copy h2 { margin: 0 0 24px; font: 600 clamp(64px, 12vw, 170px)/1 var(--f-en); letter-spacing: .04em; color: #fff; text-shadow: 0 0 40px rgba(56,160,255,.5); }
.more--light { color: #fff; border-color: #fff; }

/* -------- news -------- */
.news { padding: clamp(100px, 12vw, 160px) 0; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.news-head .sec-head { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { display: grid; min-width: 0; gap: 12px; align-content: start; }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); border-radius: 8px; }
.news-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font: 500 13px/1 var(--f-num); color: var(--muted); letter-spacing: .1em; }
.news-cat { padding: 4px 8px; border: 1px solid var(--line); font-family: var(--f-sans); font-size: 11px; color: var(--steel); }
.news-title { font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* -------- footer / cta -------- */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) var(--gutter); text-align: center; isolation: isolate;
  background: linear-gradient(120deg, #0b1e4a, #123c9e 50%, #0b1e4a); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.cta-text { margin: 0 0 36px; font: 800 clamp(20px, 2.6vw, 34px)/1.7 var(--f-mincho); letter-spacing: .08em; }
.cta sakuga-button { --sk-pri: #ffffff; --sk-on-pri: #0b1e4a; --sk-pri-ink: #0b1e4a; font-size: 18px; }
.cta sakuga-button::part(button) { padding: 18px 44px; font-weight: 700; letter-spacing: .14em; }
.footer { background: #000; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding: 72px 0 48px; }
.footer-logo img { width: 140px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer-cols p { margin: 0 0 14px; font: 600 13px/1 var(--f-en); letter-spacing: .2em; color: var(--blue-2); }
.footer-cols li a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; }
.footer-cols li a:hover { color: #fff; }
.copy { margin: 0; padding: 20px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* -------- touch / mobile richness --------
   Touch devices have no hover, so the hover looks are played by scroll instead:
   main.js adds .is-active to cards while they sit in the middle of the screen. */
.product.is-active .product-media img, .product.is-active .product-media video { transform: scale(1.0); filter: none; }
.product.is-active .product-frame::before, .product.is-active .product-frame::after { width: 34px; height: 34px; }
.product-frame::before, .product-frame::after { transition: width .5s, height .5s; }
.news-card.is-active .news-thumb img { transform: scale(1.05); }
.product-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(150, 210, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.product.is-in .product-media::after, .product.is-active .product-media::after { animation: sweep 1.4s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sweep { to { transform: translateX(120%); } }

/* parallax: main.js writes --py (px) on [data-parallax] */
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }

/* scroll progress */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: var(--glow); }

@media (max-width: 768px) {
  /* phones are narrower than on PC, so speed the rows up to keep the same feel */
  .shorts-row { animation-duration: calc(var(--dur, 70s) * .6); }
  .sponsors-track { animation-duration: 32s; }
  .film-track { animation-duration: 38s; }
  .vision-marquee { animation-duration: 36s; }
  .grain { inset: -20%; }
}

/* Reduced motion: the OS setting ("視差効果を減らす" / "アニメーションを削除") used to freeze the whole
   page. Keep the page alive (videos, fades, marquees) and only drop the jittery/aggressive effects. */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .loader-text { animation: none; }
  .hero-line > span { transform: translateY(40%); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s; }
  .is-ready .hero-line > span { transform: none; opacity: 1; }
  .shorts-row, .sponsors-track, .film-track, .vision-marquee { animation-duration: 90s; }
  [data-parallax] { translate: none; }
}
