@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=DM+Serif+Display:ital@0;1&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Background */
  --bg-base:    #0d0a1e;
  --bg-mid:     #130d2e;
  --bg-surface: #1a1040;

  /* iPhone Glass */
  --glass-bg:         rgba(255,255,255,0.08);
  --glass-bg-hover:   rgba(255,255,255,0.13);
  --glass-bg-strong:  rgba(255,255,255,0.14);
  --glass-border:     rgba(255,255,255,0.18);
  --glass-border-top: rgba(255,255,255,0.50);
  --glass-shadow:     0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.15);
  --glass-shadow-lg:  0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2);

  /* Accent */
  --accent:       #7c6fff;
  --accent-blue:  #4f9fff;
  --accent-pink:  #ff6eb0;
  --accent-glow:  rgba(124,111,255,0.4);
  --accent-shine: rgba(255,255,255,0.9);

  /* Text */
  --text-primary:   #f0eeff;
  --text-secondary: rgba(220,215,255,0.72);
  --text-muted:     rgba(170,160,220,0.55);
}

*  { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 背景 ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(100, 60, 220, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%,  rgba(50,  80, 240, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 40%,  rgba(180, 60, 255, 0.15) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* ── iPhone ガラス ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  position: relative; z-index: 1;
  transition: box-shadow 0.3s, background 0.3s;
}

.glass:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-lg);
}

/* ナビ用ガラス */
.glass-nav {
  background: rgba(13,10,30,0.72);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
}

/* ヒーロー用ガラス */
.glass-hero {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border: 1px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.55);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* ── Typography ── */
.font-serif   { font-family: 'DM Serif Display', serif; }
.font-mono    { font-family: 'Space Mono', monospace; }

.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shine {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 14px 48px;
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(124,111,255,0.35), rgba(79,159,255,0.25));
  border: 1px solid rgba(255,255,255,0.30);
  border-top-color: rgba(255,255,255,0.60);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,111,255,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  font-size: 1.3rem;
}

.logo-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.2rem; font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.52rem; font-family: 'Space Mono', monospace;
  color: var(--text-muted); letter-spacing: 0.15em;
  display: block;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem; color: var(--text-secondary);
  text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.2s; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }
.nav-links a.nav-active { color: #fff; }

.nav-cta {
  background: linear-gradient(135deg, rgba(124,111,255,0.35), rgba(79,159,255,0.25)) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-top-color: rgba(255,255,255,0.50) !important;
  border-radius: 10px !important;
  padding: 8px 20px !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(124,111,255,0.25), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, rgba(124,111,255,0.55), rgba(79,159,255,0.40)) !important;
  box-shadow: 0 6px 24px rgba(124,111,255,0.45), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
.nav-cta::after { display: none !important; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(124,111,255,0.45), rgba(79,159,255,0.35));
  border: 1px solid rgba(255,255,255,0.28);
  border-top-color: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 15px 36px;
  color: #fff; font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 28px rgba(124,111,255,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(124,111,255,0.65), rgba(79,159,255,0.55));
  box-shadow: 0 12px 40px rgba(124,111,255,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.20);
  border-top-color: rgba(255,255,255,0.38);
  border-radius: 14px; padding: 15px 36px;
  color: var(--text-secondary);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.25s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ── Section ── */
.section {
  padding: 96px 48px;
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; color: #a78bfa;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}

.section-tag::before {
  content: '';
  display: inline-block; width: 18px; height: 1px;
  background: linear-gradient(90deg, #a78bfa, transparent);
}

.section-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.9; max-width: 540px;
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,111,255,0.18);
  border: 1px solid rgba(124,111,255,0.35);
  border-top-color: rgba(255,255,255,0.25);
  border-radius: 100px; padding: 4px 14px;
  font-size: 0.78rem; color: #c4b5fd;
  font-family: 'Space Mono', monospace;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.badge-green {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.35);
  color: #6ee7b7;
}

.badge-orange {
  background: rgba(251,146,60,0.15);
  border-color: rgba(251,146,60,0.35);
  color: #fcd34d;
}

/* ── Accent dot ── */
.accent-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ── Pack cards ── */
.pack-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem; line-height: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(196,181,253,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* ── Form ── */
.form-label {
  display: block; font-size: 0.875rem;
  color: var(--text-secondary); margin-bottom: 7px;
  font-weight: 500;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.28);
  border-radius: 12px; padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: rgba(124,111,255,0.6);
  box-shadow: 0 0 0 3px rgba(124,111,255,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-group { margin-bottom: 20px; }

/* ── Responsive grids ── */
.r-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.r-grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.r-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(13,10,30,0.8);
  backdrop-filter: blur(20px);
  padding: 48px 48px 28px;
}

/* ── Nav toggle ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.animate-fadein  { animation: fadeIn   0.7s ease forwards; }
.animate-fadeup  { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .r-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 20px; }
  .r-grid-2, .r-grid-3, .r-grid-1-2 { grid-template-columns: 1fr; gap: 20px; }
  .page-header { padding: 110px 20px 40px !important; }
  footer { padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column !important; gap: 12px !important; }
}

@media (max-width: 480px) {
  .section { padding: 48px 16px; }
}
