/* =====================================================
   RESPONSIVE BASE（responsive-base.css 準拠）
   ===================================================== */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: auto-phrase;
  font-family: "Noto Sans JP", sans-serif;
  background: #0a0e1a;
  color: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:root {
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --navy: #0a0e1a;
  --navy-deep: #060911;
  --blue: #3ba7ff;
  --blue-soft: #7cc3ff;
  --line: rgba(124, 195, 255, 0.25);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

/* =====================================================
   ローディング画面
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%);
}
.loader-corner {
  position: absolute;
  width: clamp(60px, 8vw, 120px);
  height: clamp(60px, 8vw, 120px);
  border: 1px solid var(--blue-soft);
  opacity: .5;
}
.loader-corner-tl { top: clamp(16px, 3vw, 40px); left: clamp(16px, 3vw, 40px); border-right: none; border-bottom: none; }
.loader-corner-br { bottom: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); border-left: none; border-top: none; }

.loader-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 40px);
}
.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 16px);
  margin-bottom: clamp(28px, 5vw, 44px);
  animation: loaderFadeUp .8s ease both;
}
.loader-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 5vw, 52px);
  height: clamp(38px, 5vw, 52px);
  border: 1px solid var(--blue);
  color: var(--blue-soft);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0;
  transform: rotate(45deg);
  position: relative;
}
.loader-logo-mark::before {
  content: "C";
  display: block;
  transform: rotate(-45deg);
  font-size: clamp(18px, 2.4vw, 24px);
}
.loader-logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: .28em;
  color: #fff;
}
.loader-bar-track {
  width: min(320px, 60vw);
  height: 2px;
  background: rgba(255,255,255,.12);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.loader-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  box-shadow: 0 0 12px var(--blue);
  transition: width .15s ease-out;
}
.loader-percent {
  margin-top: clamp(14px, 2vw, 18px);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .2em;
  color: var(--blue-soft);
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   ヘッダー
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: clamp(14px, 2vw, 20px) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: clamp(15px, 1.6vw, 18px);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
  color: var(--blue-soft);
  font-size: 0;
  position: relative;
}
.brand-mark::before {
  content: "C";
  transform: rotate(-45deg);
  font-size: 14px;
}
.main-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
}
.main-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(255,255,255,.85);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--blue-soft);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: #fff;
}

/* =====================================================
   ヒーロー
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(59,167,255,.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(59,167,255,.12), transparent 50%),
    linear-gradient(150deg, #0d1424 0%, #060911 60%, #0a1220 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .25;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.hero-scan {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(59,167,255,.08), transparent);
  animation: scanMove 7s linear infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0% { top: -120px; }
  100% { top: 100%; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(90px, 10vw, 120px);
  padding-bottom: clamp(60px, 8vw, 90px);
}
.hero-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .28em;
  color: var(--blue-soft);
  margin-bottom: clamp(18px, 2.4vw, 26px);
  opacity: 0;
  animation: fadeUp .8s ease .1s forwards;
}
.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 128px);
  line-height: .96;
  letter-spacing: -.01em;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: .25s; }
.hero-title .line:nth-child(2) { animation-delay: .42s; }
.hero-dot { color: var(--blue-soft); }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  margin-top: clamp(24px, 3.4vw, 34px);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  opacity: 0;
  animation: fadeUp .8s ease .6s forwards;
}
.hero-actions {
  margin-top: clamp(32px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 18px);
  opacity: 0;
  animation: fadeUp .8s ease .75s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 clamp(24px, 3vw, 34px);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--blue);
  color: #061020;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-soft); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--blue-soft); color: var(--blue-soft); }

/* --- 右下 採用CTA --- */
.hero-side-cta {
  position: absolute;
  right: 0;
  bottom: clamp(20px, 4vw, 40px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #2f6fe0, #6f4be0);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 14px 26px 14px 22px;
  border-radius: 999px 0 0 999px;
}
.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
}

/* --- HUDパネル（デジタル演出） --- */
.hud {
  position: absolute;
  z-index: 3;
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(124,195,255,.75);
  border: 1px solid var(--line);
  background: rgba(10,14,26,.35);
  backdrop-filter: blur(2px);
  padding: 10px 14px;
  opacity: 0;
  animation: fadeUp .8s ease .9s forwards;
}
.hud-2 { top: clamp(90px, 12vw, 130px); right: clamp(16px, 4vw, 64px); text-align: right; }
.hud-2 .hud-clock { font-size: 20px; font-weight: 700; color: #fff; }
.hud-2 .hud-date { margin-top: 2px; }
.hud-3 { bottom: clamp(110px, 14vw, 160px); right: clamp(16px, 4vw, 64px); }
.hud-bars { display: flex; gap: 3px; margin-top: 6px; align-items: flex-end; }
.hud-bars span {
  display: block;
  width: 4px;
  background: var(--blue-soft);
  animation: barPulse 1.6s ease-in-out infinite;
}
.hud-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.hud-bars span:nth-child(2) { height: 12px; animation-delay: .15s; }
.hud-bars span:nth-child(3) { height: 8px; animation-delay: .3s; }
.hud-bars span:nth-child(4) { height: 16px; animation-delay: .45s; }
.hud-bars span:nth-child(5) { height: 10px; animation-delay: .6s; }
@keyframes barPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

.hero-scroll {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  bottom: clamp(20px, 3vw, 32px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255,255,255,.5);
  opacity: 0;
  animation: fadeUp .8s ease 1.1s forwards;
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: -40px; top: 0;
  width: 40px; height: 1px;
  background: var(--blue-soft);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -40px; }
  100% { left: 40px; }
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media screen and (max-width: 1023px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--navy-deep);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex;
    align-items: center;
    z-index: 600;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 28px);
    padding: 0 clamp(24px, 6vw, 40px);
    width: 100%;
  }
  .main-nav a { font-size: 14px; }
  .nav-toggle { display: flex; position: relative; z-index: 601; }
  .hud-3 { display: none; }
  .hero-side-cta { border-radius: 999px; right: clamp(12px, 3vw, 20px); }
}

@media screen and (max-width: 767px) {
  .hud-2 { top: auto; bottom: clamp(96px, 20vw, 130px); right: clamp(16px, 5vw, 24px); }
  .hud-2 .hud-clock { font-size: 16px; }
  .hero-side-cta {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: clamp(14px, 3vw, 20px);
    font-size: 12px;
    padding: 12px 20px;
  }
  .hero-scroll { display: none; }
  .hero-actions .btn { width: 100%; }
}

@media screen and (max-width: 480px) {
  .hero-inner { padding-top: 100px; }
  .hero-lead br { display: none; }
}
