/* ========================================================================
   Design Tokens
   ======================================================================== */
:root {
  /* カラー */
  --c-bg: #000;
  --c-bg-surface: #0a0a0a;
  --c-bg-elevated: #111;
  --c-bg-card: #1a1a1a;
  --c-text-primary: #f5f5f7;
  --c-text-secondary: #a1a1a6;
  --c-text-tertiary: #6e6e73;
  --c-accent: #0071e3;
  --c-accent-hover: #0077ed;
  --c-accent-light: rgba(0, 113, 227, 0.15);
  --c-gold: #c8a97a;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-white: #fff;

  /* タイポグラフィ */
  --font-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;
  --text-hero: clamp(3rem, 8vw, 6rem);

  /* スペーシング */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* アニメーション */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-enter: 600ms;

  /* ボーダー半径 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========================================================================
   Reset & Base
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--c-bg);
  color: var(--c-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

/* 日本語禁則処理 */
p, li, h1, h2, h3, h4, span {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* フォーカス */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================================================
   ナビゲーション
   ======================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-base) var(--ease-out);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-text-primary);
  letter-spacing: -0.01em;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav__logo:hover { opacity: 0.7; }

.nav__logo svg { fill: var(--c-text-primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__links a:hover { color: var(--c-text-primary); }

.nav__cta {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  padding: var(--sp-2) var(--sp-4) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  transition: background var(--dur-fast) var(--ease-out) !important;
}

.nav__cta:hover { background: var(--c-accent-hover) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ========================================================================
   ボタン
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  min-width: 44px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
}

.btn--primary:hover { background: var(--c-accent-hover); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-text-primary);
  border: 1px solid var(--c-border);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }

.btn--secondary {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

.btn--secondary:hover { background: var(--c-accent-light); }

.btn--white {
  background: var(--c-white);
  color: #000;
}

.btn--white:hover { opacity: 0.9; }

/* ========================================================================
   共通レイアウト
   ======================================================================== */
.section-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
}

.section-body {
  font-size: var(--text-lg);
  color: var(--c-text-secondary);
  max-width: 65ch;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 113, 227, 0.8);
}

/* ========================================================================
   Reveal アニメーション
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.1s; }
.reveal-text:nth-child(2) { animation-delay: 0.25s; }
.reveal-text:nth-child(3) { animation-delay: 0.4s; }
.reveal-text:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   ヒーローセクション
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 48px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6);
  width: 100%;
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* 3Dスマホ */
.hero__phone-wrap {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero__phone {
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(4deg); }
  50% { transform: translateY(-20px) rotateY(-8deg) rotateX(4deg); }
}

.phone-3d {
  perspective: 1000px;
}

.phone-3d__body {
  position: relative;
  width: 240px;
  height: 490px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 40%, #222 100%);
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 2px rgba(0,0,0,0.5),
    20px 40px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(0, 113, 227, 0.2),
    inset 0 1px 1px rgba(255,255,255,0.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.phone-3d__screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #000;
  border-radius: 38px;
  overflow: hidden;
}

.phone-3d__wallpaper {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, #1a3a6b 0%, #0d1b35 40%, #050a14 100%);
  animation: wallpaperShift 8s ease-in-out infinite alternate;
}

@keyframes wallpaperShift {
  0% { background: radial-gradient(ellipse at 30% 40%, #1a3a6b 0%, #0d1b35 40%, #050a14 100%); }
  100% { background: radial-gradient(ellipse at 70% 60%, #2d1a5e 0%, #0d1b35 40%, #050a14 100%); }
}

.phone-3d__ui {
  position: absolute;
  inset: 0;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
}

.phone-3d__time {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.phone-3d__date {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: auto;
}

.phone-3d__icons {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.phone-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  display: block;
}

.phone-icon:nth-child(1) { background: linear-gradient(135deg, #4FC3F7, #0288D1); }
.phone-icon:nth-child(2) { background: linear-gradient(135deg, #A5D6A7, #388E3C); }
.phone-icon:nth-child(3) { background: linear-gradient(135deg, #FFB74D, #E65100); }
.phone-icon:nth-child(4) { background: linear-gradient(135deg, #CE93D8, #7B1FA2); }

.phone-3d__camera-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: var(--radius-full);
  width: 80px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--sp-2);
  gap: var(--sp-1);
}

.phone-3d__camera-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.phone-3d__camera-dot--sm {
  width: 8px;
  height: 8px;
}

.phone-3d__side-button {
  position: absolute;
  background: linear-gradient(90deg, #1e1e1e, #2a2a2a);
  border-radius: 2px;
}

.phone-3d__side-button--power {
  right: -3px;
  top: 120px;
  width: 3px;
  height: 60px;
  border-radius: 0 2px 2px 0;
}

.phone-3d__side-button--vol-up {
  left: -3px;
  top: 100px;
  width: 3px;
  height: 40px;
  border-radius: 2px 0 0 2px;
}

.phone-3d__side-button--vol-down {
  left: -3px;
  top: 155px;
  width: 3px;
  height: 40px;
  border-radius: 2px 0 0 2px;
}

.phone-3d__side-button--action {
  left: -3px;
  top: 68px;
  width: 3px;
  height: 24px;
  border-radius: 2px 0 0 2px;
}

/* スクロールヒント */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-tertiary);
  font-size: var(--text-xs);
  animation: scrollHintFade 2s ease-in-out infinite alternate;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0.3; }
}

@keyframes scrollHintFade {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@media (max-width: 768px) {
  .hero__phone-wrap { display: none; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .br-desktop { display: none; }
}

/* ========================================================================
   カラーセクション
   ======================================================================== */
.colors-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--c-bg-surface);
  overflow: hidden;
}

.colors-section__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-24) var(--sp-8) var(--sp-24) max(var(--sp-8), calc((100% - 600px) / 2 + var(--sp-8)));
}

.color-swatches {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
}

.swatch:hover, .swatch.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--c-bg-surface), 0 0 0 4px rgba(255,255,255,0.5);
}

.swatch--desert { background: linear-gradient(135deg, #c8a97a, #b8936a); }
.swatch--natural { background: linear-gradient(135deg, #b8b4aa, #a8a49a); }
.swatch--black { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.swatch--white { background: linear-gradient(135deg, #f5f5f0, #e8e8e0); }

.color-name-display {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  min-height: 24px;
}

.colors-section__phone-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12);
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 100%);
}

.preview-phone {
  transition: all 0.5s var(--ease-out);
}

.preview-phone__body {
  position: relative;
  width: 200px;
  height: 410px;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--phone-color-light, #c8a97a) 0%, var(--phone-color-dark, #b8936a) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    20px 30px 60px rgba(0,0,0,0.8),
    0 0 40px rgba(0,0,0,0.4);
  transition: all 0.5s var(--ease-out);
}

.preview-phone__screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #050510;
  border-radius: 30px;
}

.preview-phone__camera-bump {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 80px;
  height: 80px;
  background: rgba(0,0,0,0.6);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  padding: var(--sp-2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
}

.camera-lens {
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, #1a1a2e, #000);
  border: 1px solid rgba(255,255,255,0.15);
}

.camera-lens--1, .camera-lens--2, .camera-lens--3 {
  aspect-ratio: 1;
}

.camera-lens--flash {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, #fff9c4, #f9a825);
}

@media (max-width: 768px) {
  .colors-section {
    grid-template-columns: 1fr;
  }
  .colors-section__inner {
    padding: var(--sp-16) var(--sp-6);
    order: 2;
  }
  .colors-section__phone-preview {
    order: 1;
    min-height: 400px;
  }
}

/* ========================================================================
   カメラセクション
   ======================================================================== */
.camera-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.camera-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.camera-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

#camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.camera-section__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-6);
  width: 50%;
}

.camera-specs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.camera-spec {
  border-left: 2px solid var(--c-accent);
  padding-left: var(--sp-6);
}

.spec-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--c-text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.spec-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--c-text-secondary);
  letter-spacing: 0;
}

.spec-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-2);
}

.spec-desc {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
}

/* カメラレンズビジュアル */
.camera-showcase {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.camera-lens-big {
  position: relative;
  width: 300px;
  height: 300px;
  animation: lensSpin 20s linear infinite;
}

@keyframes lensSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lens-ring {
  position: absolute;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lens-ring--1 { width: 100%; height: 100%; }
.lens-ring--2 { width: 78%; height: 78%; border-color: rgba(255,255,255,0.12); }
.lens-ring--3 { width: 56%; height: 56%; border-color: rgba(255,255,255,0.16); }

.lens-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 35%, #1a1a3e, #000);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 40px rgba(0, 113, 227, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
}

.lens-iris {
  position: absolute;
  inset: 20%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 40% 40%, #0a0a1a, #000);
  border: 1px solid rgba(255,255,255,0.1);
}

.lens-flare {
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  filter: blur(6px);
  animation: lensFlare 3s ease-in-out infinite;
}

@keyframes lensFlare {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@media (max-width: 768px) {
  .camera-section__content { width: 100%; }
  .camera-showcase { display: none; }
}

/* ========================================================================
   チップセクション
   ======================================================================== */
.chip-section {
  background: #000;
  padding: var(--sp-32) 0;
  overflow: hidden;
}

.chip-section__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  text-align: center;
}

.chip-visual {
  position: relative;
  margin: var(--sp-12) auto;
  width: 240px;
  height: 240px;
}

#chip-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
}

.chip-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-text-primary);
  letter-spacing: -0.01em;
  pointer-events: none;
}

.chip-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  text-align: left;
}

.chip-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent), #5ac8fa);
  border-radius: var(--radius-full);
  transition: width 1.2s var(--ease-out);
}

.stat-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}

.stat-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-accent);
}

/* ========================================================================
   バッテリーセクション
   ======================================================================== */
.battery-section {
  background: var(--c-bg-surface);
  padding: var(--sp-32) 0;
}

.battery-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.battery-detail {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.battery-hours {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #a0a0a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.battery-unit {
  font-size: var(--text-xl);
  color: var(--c-text-secondary);
  line-height: 1.4;
}

.battery-unit small {
  font-size: var(--text-sm);
  display: block;
}

.battery-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.battery-icon {
  position: relative;
  width: 140px;
  height: 260px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.battery-icon::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px 4px 0 0;
}

.battery-icon__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #30d158 0%, #25a244 100%);
  height: 0%;
  transition: height 2s var(--ease-out);
  border-radius: 0 0 16px 16px;
}

.battery-icon__level {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-white);
  z-index: 1;
}

.charge-animation {
  animation: chargeFloat 2s ease-in-out infinite;
}

@keyframes chargeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .battery-section__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .battery-detail { justify-content: center; }
  .battery-visual { order: -1; }
}

/* ========================================================================
   スペックセクション
   ======================================================================== */
.specs-section {
  background: #000;
  padding: var(--sp-32) 0;
}

.specs-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  text-align: center;
}

.specs-section .section-title {
  margin-bottom: var(--sp-12);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.spec-item {
  background: var(--c-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  text-align: left;
  border: 1px solid var(--c-border);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.spec-item:hover {
  border-color: rgba(255,255,255,0.2);
  background: #222;
}

.spec-icon {
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.spec-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.spec-item__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.spec-item__desc {
  font-size: var(--text-sm);
  color: var(--c-text-tertiary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .specs-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   購入セクション
   ======================================================================== */
.buy-section {
  background: var(--c-bg-surface);
  padding: var(--sp-32) 0;
}

.buy-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  text-align: center;
}

.buy-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.buy-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  text-align: left;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.buy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.buy-card__badge {
  position: absolute;
  top: -1px;
  left: var(--sp-6);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.buy-card__model {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.buy-card__size {
  font-size: var(--text-sm);
  color: var(--c-text-tertiary);
  margin-bottom: var(--sp-4);
}

.buy-card__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
}

.buy-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.buy-card__features li {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  padding-left: var(--sp-4);
  position: relative;
}

.buy-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

.buy-card__btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .buy-cards { grid-template-columns: 1fr; }
}

/* ========================================================================
   フッターCTAバナー
   ======================================================================== */
.footer-cta {
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1b35 50%, #1a1a2a 100%);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}

.footer-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.footer-cta p {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-text-primary);
}

/* ========================================================================
   グリッチエフェクト
   ======================================================================== */
.glitch {
  animation: glitch 0.2s steps(2) forwards;
}

@keyframes glitch {
  0%   { text-shadow: 2px 0 #ff003c, -2px 0 #00f3ff; }
  25%  { text-shadow: -3px 2px #ff003c, 3px -2px #00f3ff; clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
  50%  { text-shadow: 3px -2px #ff003c, -3px 2px #00f3ff; clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  75%  { text-shadow: -2px 0 #ff003c, 2px 0 #00f3ff; }
  100% { text-shadow: none; clip-path: none; }
}

/* ========================================================================
   フッター
   ======================================================================== */
.footer {
  background: #111;
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-6);
}

.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__col li a {
  font-size: var(--text-sm);
  color: var(--c-text-tertiary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__col li a:hover { color: var(--c-text-secondary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--c-text-tertiary);
}

.footer__legal {
  display: flex;
  gap: var(--sp-4);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--c-text-tertiary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__legal a:hover { color: var(--c-text-secondary); }

@media (max-width: 768px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}
