/* ============================================
   STL Sleep Intelligence Labo - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0A0E27;
  --color-accent: #4FC3F7;
  --color-accent-dark: #0288D1;
  --color-secondary: #1A1F4E;
  --color-highlight: #F0C040;
  --color-bg: #F8F9FF;
  --color-text: #1A1A2E;
  --color-text-light: #6B7280;
  --color-white: #FFFFFF;
  --color-card-bg: rgba(255,255,255,0.03);
  --color-border: rgba(79,195,247,0.15);
  --shadow-sm: 0 2px 12px rgba(10,14,39,0.08);
  --shadow-md: 0 8px 32px rgba(10,14,39,0.14);
  --shadow-lg: 0 20px 60px rgba(10,14,39,0.2);
  --shadow-glow: 0 0 40px rgba(79,195,247,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-dark); }
ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; }

.text-accent { color: var(--color-accent); }
.text-gold { color: var(--color-highlight); }
.text-center { text-align: center; }
.text-light { color: var(--color-text-light); }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(79,195,247,0.35);
  border-radius: var(--radius-full);
}
.section-title { margin-bottom: 1.2rem; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* Dark sections */
.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }

/* ============ NAVIGATION ============ */
/* ============================================
   NAVIGATION — 完全リビルド版
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,11,32,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

/* コンテナ: ロゴ + メニュー + CTAを1行に */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
  overflow: visible;
}

/* ---- ロゴ ---- */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-main {
  font-family: var(--font-heading);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo-sub {
  font-size: 0.58rem;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* ---- メニューリスト（PC） ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 0.8rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
/* hover: 下線アニメーション */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 0.8rem;
  right: 0.8rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links > li > a:hover {
  color: var(--color-white);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}
.nav-links > li > a.active {
  color: var(--color-accent);
}

/* ---- CTAボタン ---- */
.nav-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)) !important;
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap;
  height: auto !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(79,195,247,0.45) !important;
}

/* ---- ドロップダウン「もっと見る」---- */
.nav-more {
  position: relative;
}
.nav-more-toggle {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 0.8rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  gap: 0.3rem;
  transition: color 0.2s ease;
}
.nav-more-toggle:hover { color: var(--color-white); }
.nav-more-toggle svg {
  width: 12px; height: 12px;
  transition: transform 0.2s ease;
}
.nav-more.open .nav-more-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  min-width: 180px;
  background: rgba(10,14,42,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79,195,247,0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 1100;
}
.nav-more.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown a:hover {
  color: var(--color-accent);
  background: rgba(79,195,247,0.08);
}

/* ---- ハンバーガーボタン ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* アニメーション: 開いた状態 */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(79,195,247,0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(79,195,247,0.55);
  color: var(--color-white);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--color-highlight), #E0A800);
  color: var(--color-primary);
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(240,192,64,0.45); }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #050818;
  overflow: hidden;
}
.stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: nebula-drift 20s ease-in-out infinite;
  max-width: 100%;
  pointer-events: none;
}
@keyframes nebula-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.97); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.3);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent), #B3E5FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
  margin-bottom: 4rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease 1s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(79,195,247,0.6));
  animation: scroll-grow 2s ease infinite;
}
@keyframes scroll-grow {
  0%, 100% { height: 20px; opacity: 0.3; }
  50% { height: 40px; opacity: 0.9; }
}

/* ============ AURORA ANIMATION ============ */
.aurora-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
}
.aurora-wave-1 {
  height: 320px;
  top: 10%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(72,199,247,0.22) 20%,
    rgba(130,100,255,0.28) 40%,
    rgba(72,199,247,0.20) 60%,
    rgba(80,220,180,0.18) 80%,
    transparent 100%
  );
  animation: aurora-flow-1 12s ease-in-out 0.5s infinite;
}
.aurora-wave-2 {
  height: 260px;
  top: 28%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(80,220,200,0.15) 15%,
    rgba(100,80,255,0.22) 45%,
    rgba(72,199,247,0.18) 70%,
    transparent 100%
  );
  animation: aurora-flow-2 15s ease-in-out 2s infinite;
}
.aurora-wave-3 {
  height: 200px;
  top: 42%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240,192,64,0.08) 20%,
    rgba(72,199,247,0.15) 50%,
    rgba(130,80,255,0.12) 75%,
    transparent 100%
  );
  animation: aurora-flow-3 18s ease-in-out 4s infinite;
}
@keyframes aurora-flow-1 {
  0%   { transform: translateX(0) translateY(0) scaleY(1);   opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translateX(8%) translateY(-25px) scaleY(1.08); opacity: 1; }
  90%  { opacity: 0.75; }
  100% { transform: translateX(0) translateY(0) scaleY(1);   opacity: 0; }
}
@keyframes aurora-flow-2 {
  0%   { transform: translateX(-5%) translateY(0) scaleY(1); opacity: 0; }
  15%  { opacity: 0.7; }
  55%  { transform: translateX(6%) translateY(20px) scaleY(1.1); opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translateX(-5%) translateY(0) scaleY(1); opacity: 0; }
}
@keyframes aurora-flow-3 {
  0%   { transform: translateX(3%) translateY(0); opacity: 0; }
  20%  { opacity: 0.55; }
  60%  { transform: translateX(-4%) translateY(-15px); opacity: 0.75; }
  80%  { opacity: 0.5; }
  100% { transform: translateX(3%) translateY(0); opacity: 0; }
}

/* ============ SHOOTING STAR ============ */
.shooting-star {
  position: absolute;
  top: 12%;
  left: -5%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.0) 10%, rgba(200,240,255,0.9) 60%, rgba(255,255,255,1) 100%);
  border-radius: 2px;
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(200,240,255,0.9));
}
.shooting-star::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px 4px rgba(200,240,255,0.8);
}
.shooting-star.fire {
  animation: shoot-once 1.4s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}
@keyframes shoot-once {
  0%   { opacity: 0; transform: rotate(25deg) translateX(0); }
  8%   { opacity: 1; }
  80%  { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(25deg) translateX(120vw); }
}

/* ============ DATA IMPACT SECTION ============ */
.data-impact {
  background: var(--color-primary);
  padding: 5rem 0;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.data-card {
  text-align: center;
  padding: 2.4rem 1.5rem 2rem;
  border: 1px solid rgba(79,195,247,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.data-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.55;
  transition: var(--transition);
}
.data-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.07), transparent 70%);
  pointer-events: none;
}
.data-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79,195,247,0.28);
  background: rgba(79,195,247,0.025);
  box-shadow: 0 10px 36px rgba(10,14,39,0.3), 0 0 0 1px rgba(79,195,247,0.08);
}
.data-card:hover::before { opacity: 1; }

/* 数値 — 高級ブランド版 */
.data-number {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.15rem;
  background: linear-gradient(135deg, #BAE6FD 0%, #4FC3F7 45%, #38BDF8 75%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(79,195,247,0.3));
}

/* 単位 */
.data-unit {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(79,195,247,0.65);
  margin-bottom: 1rem;
  margin-top: 0.2rem;
}

/* 説明 */
.data-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.data-label strong { color: var(--color-highlight); font-weight: 700; }

/* ============ RESEARCH CARDS ============ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.research-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,14,39,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.research-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79,195,247,0.2);
}
.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  width: fit-content;
}
.tag-sound { background: rgba(79,195,247,0.12); color: var(--color-accent-dark); }
.tag-tech { background: rgba(99,102,241,0.12); color: #6366F1; }
.tag-japan { background: rgba(239,68,68,0.1); color: #DC2626; }
.tag-science { background: rgba(16,185,129,0.1); color: #059669; }
.tag-ai { background: rgba(168,85,247,0.1); color: #9333EA; }
.tag-neuro { background: rgba(245,158,11,0.1); color: #D97706; }
.tag-pharma { background: rgba(236,72,153,0.1); color: #DB2777; }

.card-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-meta .sep { opacity: 0.4; }
.card-stars {
  color: var(--color-highlight);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.research-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  color: var(--color-text);
  line-height: 1.45;
}
.card-summary {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  flex: 1;
}
.card-insights {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--color-accent);
}
.card-insights li {
  font-size: 0.82rem;
  color: var(--color-text);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.card-insights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.card-source {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(10,14,39,0.06);
}
.card-link {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.card-link:hover { gap: 0.7rem; }
.stl-comment {
  background: linear-gradient(135deg, rgba(79,195,247,0.08), rgba(2,136,209,0.05));
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
}
.stl-comment strong { color: var(--color-accent-dark); font-style: normal; }

/* ============ FILTER BUTTONS ============ */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(10,14,39,0.12);
  background: transparent;
  color: var(--color-text-light);
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(160deg, #02030f 0%, #060a1f 30%, #0A0E27 60%, #0c1235 100%);
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .stars-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-header .aurora-layer { z-index: 1; }
.page-header > .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--color-white); margin-bottom: 1.2rem; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- Sleep Score page night sky section ---- */
.sleep-score-bg {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, #060a1f 0%, #0A0E27 40%, #0d1030 100%);
  overflow: hidden;
}
.sleep-score-bg .stars-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sleep-score-bg > .container {
  position: relative;
  z-index: 2;
}
/* Moonlight glow behind diagnosis card */
.sleep-score-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,195,247,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
/* Floating moon */
.sleep-moon {
  position: absolute;
  top: 4rem;
  right: 8%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, #f5f0e0, #d4c070);
  box-shadow:
    0 0 30px 12px rgba(240,210,80,0.25),
    0 0 80px 30px rgba(240,200,60,0.10);
  animation: moon-float 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.sleep-moon::before {
  content:'';
  position:absolute;
  top:15%;left:18%;
  width:18px;height:14px;
  border-radius:50%;
  background:rgba(180,160,40,0.3);
}
.sleep-moon::after {
  content:'';
  position:absolute;
  top:48%;left:55%;
  width:12px;height:10px;
  border-radius:50%;
  background:rgba(180,160,40,0.2);
}
@keyframes moon-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* Diagnosis card glassmorphism on dark bg */
.sleep-score-bg .diagnosis-wrapper {
  background: rgba(10,14,39,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(79,195,247,0.18);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5), 0 0 40px rgba(79,195,247,0.08);
}
.sleep-score-bg .diagnosis-screen {
  background: transparent;
  border: none;
  box-shadow: none;
}
/* WHY section on dark */
.sleep-score-bg .research-grid > div {
  background: rgba(15,20,55,0.7);
  border: 1px solid rgba(79,195,247,0.12);
  color: var(--color-white);
}
.sleep-score-bg .research-grid > div p {
  color: rgba(255,255,255,0.6);
}
.sleep-score-bg h2 { color: var(--color-white); }

/* ============ SLEEP SCORE TOOL ============ */
.diagnosis-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.diagnosis-screen {
  display: none;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
.diagnosis-screen.active { display: block; animation: fadeInUp 0.5s ease; }
.progress-bar-wrap {
  background: rgba(10,14,39,0.08);
  border-radius: var(--radius-full);
  height: 6px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.question-number {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.question-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.45;
}
.options-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.option-btn {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(10,14,39,0.1);
  background: var(--color-bg);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition);
}
.option-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); background: rgba(79,195,247,0.05); }
.option-btn.selected { border-color: var(--color-accent); background: rgba(79,195,247,0.1); color: var(--color-accent-dark); font-weight: 600; }
.nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Result Screen */
.score-circle-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
}
.score-circle svg {
  transform: rotate(-90deg);
}
.score-circle-bg { fill: none; stroke: rgba(10,14,39,0.08); stroke-width: 10; }
.score-circle-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 2s cubic-bezier(0.4,0,0.2,1);
}
.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}
.score-label { font-size: 0.85rem; color: var(--color-text-light); }
.grade-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.grade-A { background: linear-gradient(135deg, #10B981, #059669); color: white; }
.grade-B { background: linear-gradient(135deg, #4FC3F7, #0288D1); color: white; }
.grade-C { background: linear-gradient(135deg, #F0C040, #E0A800); color: white; }
.grade-D { background: linear-gradient(135deg, #F97316, #EA580C); color: white; }
.grade-E { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; }
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.breakdown-item {
  text-align: center;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}
.breakdown-label { font-size: 0.78rem; color: var(--color-text-light); margin-bottom: 0.4rem; }
.breakdown-score { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-text); }
.advice-list li {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.advice-list li::before {
  content: '✦';
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(10,14,39,0.06);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-image {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-image-placeholder {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.product-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--color-highlight);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}
.product-body { padding: 2.5rem; }
.product-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.product-price span { font-size: 1rem; color: var(--color-text-light); font-family: var(--font-body); }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(10,14,39,0.05);
  font-size: 0.9rem;
  color: var(--color-text);
}
.features-list li:last-child { border-bottom: none; }
.feature-icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.research-evidence {
  background: linear-gradient(135deg, rgba(10,14,39,0.04), rgba(79,195,247,0.06));
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.evidence-item {
  font-size: 0.82rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid rgba(10,14,39,0.05);
}
.evidence-item:last-child { border-bottom: none; }
.evidence-item::before {
  content: '📄';
  position: absolute;
  left: 0;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,14,39,0.06);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--color-highlight); margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-info .name { font-weight: 700; font-size: 0.9rem; }
.author-info .role { font-size: 0.8rem; color: var(--color-text-light); }

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid rgba(10,14,39,0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s ease; color: var(--color-accent); font-size: 1.2rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.5rem; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid rgba(10,14,39,0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  cursor: pointer;
}
.checkbox-wrap input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-accent); margin-top: 2px; }

/* ============ NEWSLETTER BANNER ============ */
.newsletter-banner {
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(5,10,40,0.45);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
/* 暗めのオーバーレイ */
/* コンテンツをオーバーレイの上に */
.newsletter-banner > *:not(img):not([style*="position:absolute"]) {
  position: relative;
  z-index: 2;
}
.newsletter-banner h2 { color: var(--color-white); margin-bottom: 0.75rem; }
.newsletter-banner p { color: rgba(255,255,255,0.65); }
.newsletter-form-inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter-form-inline .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--color-white);
}
.newsletter-form-inline .form-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form-inline .form-input:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.12);
}

/* ============ ABOUT SECTIONS ============ */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================
   IMAGE-BASED CARD — 絵文字廃止・背景画像版
   ============================================ */
.mission-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
/* 背景画像 */
.mission-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
/* hover: ズーム */
.mission-card:hover .card-bg {
  transform: scale(1.07);
}
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(10,14,39,0.35);
}
/* オーバーレイ */
.mission-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5,10,30,0.3) 0%,
    rgba(5,10,30,0.75) 60%,
    rgba(5,10,30,0.92) 100%
  );
  z-index: 1;
}
/* コンテンツ */
.mission-card .card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.6rem;
  text-align: left;
}
.mission-card .card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}
.mission-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.mission-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 後方互換: 旧mission-iconは非表示 */
.mission-icon { display: none !important; }
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.6rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.2);
}

/* ============ STATS GRID ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-number {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7DD3FC 0%, #4FC3F7 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(79,195,247,0.3));
  display: block;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* ============ TEAM GRID ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(79,195,247,0.4); }
.team-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.team-name { font-weight: 700; color: var(--color-white); margin-bottom: 0.4rem; }
.team-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ============ SOURCES GRID ============ */
.sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.source-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.source-tag:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, #050818 0%, #0A0E27 60%, #0D1442 100%);
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,195,247,0.1), transparent 70%);
}
.cta-section h2 { color: var(--color-white); margin-bottom: 1.2rem; position: relative; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 2.5rem; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============ FOOTER ============ */
.footer {
  background: #050818;
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(79,195,247,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}
.footer-tagline { font-size: 0.82rem; color: var(--color-accent); letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: var(--color-accent); }

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============ BUNDLES / HIGHLIGHT BOXES ============ */
.highlight-box {
  background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(240,192,64,0.04));
  border: 2px solid rgba(240,192,64,0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.highlight-box h3 { color: var(--color-highlight); margin-bottom: 0.8rem; }

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,195,247,0.3), transparent);
  margin: 0;
}

/* ============ CHIP / INFO TAGS ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(79,195,247,0.1);
  color: var(--color-accent-dark);
  border: 1px solid rgba(79,195,247,0.2);
}

/* ============ RESPONSIVE ============ */

/* ============================================
   TABLET NAV (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
  .navbar .container { padding: 0 1.2rem; gap: 0.8rem; }
  .nav-logo-main { font-size: 0.88rem; }
  .nav-logo-sub { display: none; }
  .nav-links > li > a { padding: 0 0.5rem; font-size: 0.72rem; }
  .nav-cta { padding: 0.4rem 0.9rem !important; font-size: 0.7rem !important; }
}

/* 900px以下: ハンバーガーに切り替え */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-links.open { display: flex !important; }
  .nav-hamburger { display: flex !important; }
}

/* ============================================
   MOBILE NAV (< 768px) — ハンバーガーのみ
   ============================================ */
@media (max-width: 767px) {
  .navbar .container { height: 60px; padding: 0 1.2rem; }
  .nav-logo-main { font-size: 0.95rem; }
  .nav-logo-sub { display: none; }
}

@media (max-width: 1023px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-banner { grid-template-columns: 1fr; text-align: left; }
  .mission-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  section { padding: 4rem 0; }
  /* ---- nav モバイル ---- */
  .nav-hamburger { display: flex !important; z-index: 1001; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,9,28,0.98);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-links.open { display: flex !important; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a {
    height: auto !important;
    padding: 1.1rem 2rem !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.08em !important;
    justify-content: center;
  }
  .nav-links > li > a::after { display: none !important; }
  .nav-more { width: 100%; }
  .nav-more-toggle { display: none !important; }
  .nav-dropdown {
    display: block !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  .nav-dropdown a {
    font-size: 1.1rem !important;
    padding: 1.1rem 2rem !important;
    text-align: center;
    justify-content: center;
  }
  .nav-cta {
    display: inline-flex !important;
    margin-top: 1.5rem;
    font-size: 1rem !important;
    padding: 0.8rem 2rem !important;
  }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .research-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .score-breakdown { grid-template-columns: 1fr 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .newsletter-banner { padding: 2.5rem 1.5rem; background-image: url('../images/newsletter-banner.webp') !important; background-size: cover !important; background-position: center !important; }
  .diagnosis-screen { padding: 2rem 1.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* ========================================
   モバイル対応追加パッチ (2026-03-17)
   ======================================== */

/* レスポンシブグリッドユーティリティ */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.grid-2col-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 767px) {
  /* ナビゲーション: モバイルではCTAはメニュー内に移動 */
  /* .nav-cta { display: none; } — モバイルメニュー内で表示するためコメントアウト */

  /* グリッド → 1カラム */
  .grid-2col,
  .grid-2col-wide {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* トップページ: プロダクトプレビュー */
  .products-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* プロダクトカード画像高さ調整 */
  .product-image { height: 220px !important; }

  /* research.html: ハイライトカード */
  .research-highlight-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .research-stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* about.html: ミッション・チーム */
  .about-mission-grid,
  .about-team-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* newsletter / media: フォームレイアウト */
  .newsletter-form-grid,
  .media-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .newsletter-checkbox-grid {
    grid-template-columns: 1fr !important;
  }

  /* セクション内テキスト */
  .section-title { font-size: clamp(1.4rem, 4.5vw, 2rem) !important; }
  .section-subtitle { font-size: 0.95rem !important; }

  /* ヒーロー */
  .hero { min-height: 85vh; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 3rem) !important; }
  .hero-subtitle { font-size: 0.95rem !important; }

  /* data-grid: モバイルでも2列維持（数字カードは小さくてOK）*/
  .data-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .data-grid .data-number { font-size: 2rem !important; }

  /* ブログカード */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card-img img { height: 200px; object-fit: cover; }

  /* フッター */
  .footer-grid { grid-template-columns: 1fr; }

  /* ボタン群 */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }

  /* テーブル横スクロール */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 記事ページ */
  .article-wrap { padding: 2rem 1rem !important; }
  .article-hero { min-height: 280px; }
  .article-hero h1 { font-size: clamp(1.3rem, 4.5vw, 2rem) !important; }
  .article-meta-bar { flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; }
  .action-checklist .action-item { flex-direction: column; gap: 0.5rem; }
  .action-item-num { width: 2rem; height: 2rem; min-width: 2rem; font-size: 0.85rem; }

  /* CTAボックス */
  .article-cta-box { padding: 2rem 1.2rem; }
  .article-cta-box .btn { width: 100%; text-align: center; justify-content: center; margin: 0.3rem 0; }

  /* 診断ページ */
  .score-breakdown { grid-template-columns: 1fr !important; }
  .diagnosis-screen { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  /* 極小画面 */
  .container { padding: 0 1rem; }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .article-toc { padding: 1rem 1.2rem; }
  .article-cta-box h3 { font-size: 1.1rem; }
  .product-card .product-body { padding: 1.5rem 1.2rem; }
  .footer { padding: 3rem 0 1.5rem; }
}

/* products-preview-grid: トップページ商品2列 → モバイルは1列 */
@media (max-width: 767px) {
  .products-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .products-preview-grid .product-card {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  /* products.html 横並び説明 → 縦並び */
  .grid-2col-wide {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  /* research ハイライト */
  .research-highlight-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1.5rem !important;
  }
  .research-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
  }
  /* about mission */
  .about-mission-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
  }
  .about-team-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  /* newsletter / media */
  .newsletter-form-grid,
  .media-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .newsletter-checkbox-grid {
    grid-template-columns: 1fr !important;
  }
  /* mission-grid（CSSクラスにあるもの）*/
  .mission-grid {
    gap: 1.5rem !important;
  }
  /* data-grid 数字 */
  .data-number {
    font-size: 2rem !important;
  }
  .data-label {
    font-size: 0.78rem !important;
  }
  /* section padding削減 */
  section {
    padding: 3.5rem 0 !important;
  }
  /* page-header */
  .page-header h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
  }
  .page-header p {
    font-size: 0.9rem !important;
  }
}

/* ========================================
   モバイル UI精度向上パッチ v2 (2026-03-17)
   ======================================== */

@media (max-width: 767px) {

  /* ---- 本文・可読性 ---- */
  body { font-size: 15px; line-height: 1.75; }
  p { font-size: 0.95rem; line-height: 1.85; }

  /* ---- data-grid: 数字カード余白・サイズ ---- */
  .data-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .data-card {
    padding: 1.2rem 1rem !important;
  }
  .data-number {
    font-size: 2rem !important;
    line-height: 1.1;
  }
  .data-label {
    font-size: 0.78rem !important;
    line-height: 1.4;
  }

  /* ---- research-grid: 1カラム、余白確保 ---- */
  .research-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .research-card {
    padding: 1.5rem !important;
  }

  /* ---- testimonials / レビューカード ---- */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }
  .testimonial-card {
    padding: 1.5rem 1.2rem !important;
  }
  .testimonial-text {
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
  }

  /* ---- mission-grid ---- */
  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .mission-item {
    padding: 1.5rem 1.2rem !important;
  }

  /* ---- CTAボタン: フルwidth、十分なタップ領域 ---- */
  .btn {
    min-height: 48px;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-gold, .btn-primary, .btn-outline {
    width: 100%;
    max-width: 380px;
    margin: 0.4rem auto;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  /* ---- 商品カード: 画像高さ最適化 ---- */
  .product-card {
    max-width: 100%;
  }
  .product-image {
    height: 240px !important;
  }
  .product-body {
    padding: 1.5rem 1.2rem !important;
  }
  .product-price {
    font-size: 1.3rem !important;
  }
  .product-body .btn {
    max-width: 100%;
    width: 100%;
  }

  /* ---- セクション余白 ---- */
  .container { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }

  /* ---- ページヘッダー ---- */
  .page-header { padding: 5rem 0 3rem; }
  .page-header h1 { font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important; margin-bottom: 1rem; }
  .page-header p { font-size: 0.92rem; }

  /* ---- research highlight card (背景グラデ) ---- */
  [style*="border-radius:var(--radius-lg)"][style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.5rem !important;
  }

  /* ---- フッター ---- */
  .footer { padding: 3rem 0 2rem; }
  .footer h4 { font-size: 0.9rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-brand { font-size: 1rem; }
  .footer-desc { font-size: 0.82rem; }
  .footer-bottom p { font-size: 0.78rem; }

  /* ---- newsletter section ---- */
  .newsletter-banner {
    padding: 2rem 1.2rem !important;
    text-align: left;
  }
  .newsletter-banner h2 { font-size: 1.3rem; }
  .newsletter-banner input[type="email"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  .newsletter-banner .btn { width: 100%; margin-top: 0.5rem; }

  /* ---- sleep-score 診断ページ ---- */
  .score-breakdown { grid-template-columns: 1fr !important; }
  .diagnosis-screen { padding: 1.5rem 1rem; }
  .question-option { padding: 0.9rem 1rem; font-size: 0.92rem; }
  .question-text { font-size: 1rem; }

  /* ---- nav-cta 非表示（ボタン数減らしてスッキリ） ---- */
  .nav-cta { display: none !important; }
}

@media (max-width: 480px) {
  .data-number { font-size: 1.7rem !important; }
  .product-image { height: 200px !important; }
  .hero h1 { font-size: 1.6rem !important; }
  .section-title { font-size: 1.4rem !important; }
}


/* ============================================================
   MOBILE OVERHAUL v3 — iPhone全面最適化 (2026-03-20)
   ============================================================ */

/* ---- 共通: overflow防止 ---- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 767px) {

  /* ---- 横スクロール完全禁止 ---- */
  body { overflow-x: hidden !important; }
  .container {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* ---- 基本タイポグラフィ ---- */
  body { font-size: 16px !important; line-height: 1.7 !important; }
  p { font-size: 0.95rem !important; line-height: 1.8 !important; }
  h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; }
  h3 { font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important; }

  /* ---- セクション余白 ---- */
  section { padding: 3.5rem 0 !important; }
  .page-header { padding: 5rem 0 3rem !important; }

  /* ---- インラインgrid → 1カラム強制上書き ---- */
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* ---- グリッドクラス → 1カラム ---- */
  .grid-2col,
  .grid-2col-wide,
  .about-mission-grid,
  .about-team-inner,
  .research-grid,
  .testimonials-grid,
  .media-kit-grid,
  .media-contact-grid,
  .newsletter-form-grid,
  .newsletter-checkbox-grid,
  .mission-grid,
  .stats-grid,
  .team-grid,
  .blog-grid,
  .products-preview-grid,
  .research-highlight-grid,
  .score-breakdown {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* ---- data-grid: 数字カードのみ2列維持 ---- */
  .data-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .data-card { padding: 1.2rem 0.8rem !important; }
  .data-number { font-size: 1.8rem !important; }
  .data-label { font-size: 0.72rem !important; line-height: 1.4 !important; }

  /* ---- footerのみ2列維持→1列 ---- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 0.5rem !important; }

  /* ---- research-stat-grid: 2列維持 ---- */
  .research-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
  }

  /* ---- ヒーロー ---- */
  .hero { min-height: 85vh !important; }
  .hero-badge { font-size: 0.72rem !important; }
  .hero-subtitle { font-size: 0.92rem !important; line-height: 1.7 !important; }
  .hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }
  .hero-cta .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* ---- ボタン: タップ領域48px以上 ---- */
  .btn {
    min-height: 48px !important;
    font-size: 0.95rem !important;
    padding: 0.9rem 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  /* ---- ボタングループ: 縦積み ---- */
  [style*="display:flex"][style*="gap:1rem"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  [style*="display:flex"][style*="flex-wrap:wrap"] .btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ---- カード内padding ---- */
  .research-card { padding: 1.5rem 1.2rem !important; }
  .testimonial-card { padding: 1.5rem 1.2rem !important; }
  .testimonial-text { font-size: 0.9rem !important; line-height: 1.8 !important; }
  .mission-card { padding: 1.5rem 1.2rem !important; }
  .product-card { max-width: 100% !important; }
  .product-image { height: 220px !important; object-fit: cover !important; }
  .product-body { padding: 1.5rem 1.2rem !important; }
  .product-price { font-size: 1.3rem !important; }
  .product-body .btn, .product-body [class*="btn"] { width: 100% !important; max-width: 100% !important; }

  /* ---- newsletter banner ---- */
  .newsletter-banner {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    padding: 2.5rem 1.5rem !important;
    gap: 1.5rem !important;
  }
  .newsletter-banner input[type="email"],
  .newsletter-form-inline input[type="email"] {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }
  .newsletter-banner .btn,
  .newsletter-form-inline .btn { width: 100% !important; margin-top: 0.5rem !important; }

  /* ---- story: インラインflexを縦に ---- */
  [style*="display:flex"][style*="gap:2.5rem"][style*="align-items:flex-start"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* ---- sections padding with inline style ---- */
  [style*="padding:6rem 0"],
  [style*="padding:7rem 0"],
  [style*="padding:5rem 0"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* ---- about mission cards 背景画像 min-height ---- */
  .about-mission-grid > div { min-height: 240px !important; }

  /* ---- section-title font size ---- */
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .section-subtitle { font-size: 0.92rem !important; line-height: 1.7 !important; }

  /* ---- timeline/chapter (story page) ---- */
  .timeline-item { flex-direction: column !important; gap: 1rem !important; }
  .chapter-num { margin: 0 auto !important; }

  /* ---- FAQ ---- */
  .faq-question { font-size: 0.92rem !important; padding: 1rem 1.2rem !important; min-height: 48px !important; }
  .faq-answer { font-size: 0.9rem !important; padding: 1rem 1.2rem !important; }

  /* ---- 診断ページ ---- */
  .question-option { padding: 0.9rem 1rem !important; font-size: 0.92rem !important; min-height: 48px !important; }
  .question-text { font-size: 1rem !important; line-height: 1.7 !important; }
  .diagnosis-screen { padding: 1.5rem 1rem !important; }
  .score-result-header { padding: 2rem 1.2rem !important; }
  .score-circle { width: 120px !important; height: 120px !important; }
  .score-number { font-size: 2.5rem !important; }

  /* ---- research evidence ---- */
  .research-evidence { padding: 1.5rem 1.2rem !important; }
  .evidence-item { font-size: 0.85rem !important; padding: 0.6rem 0 !important; }

  /* ---- media kit cards ---- */
  .media-kit-card { padding: 1.5rem 1.2rem !important; text-align: center !important; }

  /* ---- highlight-box ---- */
  .highlight-box { padding: 2rem 1.2rem !important; }

  /* ---- bundle section ---- */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* ---- 共通: 横にはみ出すpaddingのあるブロック ---- */
  [style*="padding:5rem 3rem"],
  [style*="padding: 5rem 3rem"] {
    padding: 2rem 1.5rem !important;
  }
  [style*="padding:3rem"],
  [style*="padding: 3rem"] {
    padding: 2rem 1.2rem !important;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px !important; }
  .data-number { font-size: 1.6rem !important; }
  .hero h1 { font-size: 1.7rem !important; }
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .btn { font-size: 0.9rem !important; }
}

/* ---- media-kit-grid & newsletter-benefits-grid モバイル ---- */
@media (max-width: 767px) {
  .media-kit-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .newsletter-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .media-kit-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ---- mission-card モバイル最適化 ---- */
@media (max-width: 767px) {
  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .mission-card {
    height: 220px !important;
  }
  .mission-card .card-content {
    padding: 1.4rem 1.2rem !important;
  }
  .mission-card h3 {
    font-size: 1rem !important;
  }
  .mission-card p {
    font-size: 0.8rem !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* ---- why-sleep-grid: 2x2カードグリッド ---- */
.why-sleep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .why-sleep-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
}

/* ---- ai-system-grid: 3列横並び ---- */
.ai-system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .ai-system-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
}

/* ============================================================
   HORIZONTAL SCROLL FIX — 横スクロール完全禁止 (2026-03-20)
   ============================================================ */
html {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  position: relative;
}

/* 星・ネビュラ・装飾要素のはみ出し防止 */
.stars-container,
.aurora-layer,
.page-header,
.hero {
  overflow: hidden !important;
}

/* absoluteな装飾divのはみ出し防止 */
.hero > *:not(.container):not(.hero-content),
.page-header > *:not(.container) {
  max-width: 100% !important;
}

/* コンテナのはみ出し防止 */
.container,
.container-narrow {
  max-width: 100% !important;
  overflow: visible;
}

/* 全画像 */
img {
  max-width: 100% !important;
  height: auto;
}

/* インラインstyleで width: 400px などが設定された装飾div */
section .container > div[style*="position:absolute"],
section .container > [style*="position: absolute"] {
  overflow: hidden;
}

/* research.html の featured highlight内のabsoluteデコ */
.research-highlight-grid [style*="position:absolute"],
[style*="position:absolute"][style*="width:400px"],
[style*="position:absolute"][style*="width: 400px"] {
  overflow: hidden;
  max-width: 100%;
}

/* ---- stars-container 横スクロール完全防止 ---- */
.stars-container {
  overflow: hidden !important;
  clip-path: inset(0);
}
.nebula {
  /* nebulaがcontainerからはみ出しても見えないようにする */
  will-change: transform;
}

/* ---- nebula 完全隠蔽 (clip強化) ---- */
.stars-container {
  contain: strict;
}

/* ---- story-benefit-grid ---- */
.story-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}
@media (max-width: 767px) {
  .story-benefit-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .story-benefit-grid .mission-card {
    height: 200px !important;
  }
}

/* ============================================================
   NEWSLETTER FORM CARD — ダークラグジュアリー版
   ============================================================ */
.nl-form-card {
  position: relative;
  background: linear-gradient(145deg, #0c1035 0%, #080c28 50%, #060920 100%);
  border: 1px solid rgba(79,195,247,0.18);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.4rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(5,10,40,0.5), inset 0 1px 0 rgba(79,195,247,0.1);
}
.nl-form-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.12), transparent 70%);
  pointer-events: none;
}
.nl-form-header {
  margin-bottom: 2rem;
}
.nl-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0.6rem 0 0.4rem;
  letter-spacing: 0.01em;
}
.nl-form-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  margin: 0;
}
.nl-form-body { display: flex; flex-direction: column; gap: 1.4rem; }
.nl-field { display: flex; flex-direction: column; gap: 0.5rem; }
.nl-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.nl-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--color-white);
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.nl-input::placeholder { color: rgba(255,255,255,0.25); }
.nl-input:focus {
  border-color: rgba(79,195,247,0.6);
  background: rgba(79,195,247,0.06);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.08);
}
/* チェックボックスグリッド */
.nl-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.nl-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79,195,247,0.1);
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.nl-check:hover { background: rgba(79,195,247,0.07); border-color: rgba(79,195,247,0.25); }
.nl-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.nl-privacy {
  font-size: 0.82rem;
  border: none !important;
  padding: 0 !important;
  background: none !important;
  color: rgba(255,255,255,0.5) !important;
}
/* 送信ボタン */
.nl-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.4rem;
}
.nl-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,195,247,0.4);
}
.nl-submit-btn:active { transform: translateY(0); }

/* モバイル最適化 */
@media (max-width: 767px) {
  .nl-form-card { padding: 2rem 1.4rem; }
  .nl-checkbox-grid { grid-template-columns: 1fr !important; }
  .nl-form-title { font-size: 1.3rem; }
}

/* ---- nl-benefits-grid: 2x2 ---- */
.nl-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 767px) {
  .nl-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .nl-benefits-grid .mission-card { height: 200px !important; }
}

/* ============================================================
   HERO STAT NUMBERS — 高級ブランド数値タイポグラフィ
   ============================================================ */
.hero-stat-item {
  text-align: center;
  min-width: 80px;
}
.hero-stat-num {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #BAE6FD 0%, #4FC3F7 45%, #38BDF8 75%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(79,195,247,0.28));
}
.hero-stat-sup {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: super;
  -webkit-text-fill-color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-stat-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
}

@media (max-width: 767px) {
  .hero-stat-num { font-size: 1.8rem !important; }
  .hero-stat-unit { font-size: 0.65rem !important; }
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* ============================================
   MEDIA PAGE — Press Release Cards
   ============================================ */
.press-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,14,39,0.06);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.press-card > div:last-child {
  flex: 1;
  min-width: 0;
}
.press-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 52px;
}
.press-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .press-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.4rem;
  }
  .press-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .press-card .btn {
    align-self: flex-start;
    width: auto;
  }
}

/* ============================================
   MEDIA PAGE — Contact Grid Mobile
   ============================================ */
.media-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 767px) {
  .media-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .media-kit-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
}

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

/* WHY IT MATTERS / sleep-score 専用: height固定解除 */
.mission-card.card-auto-height {
  height: auto !important;
  min-height: 280px;
}
