/* ==========================================================================
   語彙トレあそび - Official Website Stylesheet
   Theme: Ocean / Deep Blue Aquarium & Ultra-Clear High-Legibility Typography
   ========================================================================== */

:root {
  --color-ocean-deep: #050f1c;
  --color-ocean-dark: #091c36;
  --color-ocean-blue: #0f3563;
  --color-ocean-mid: #164e8a;
  --color-ocean-cyan: #00b4d8;
  --color-ocean-light: #70d6ff;
  --color-ocean-foam: #e0f7fa;
  --color-coral-pink: #ff6b81;
  --color-coral-gold: #ffd166;
  
  /* Ultra-clear, high-contrast typography colors */
  --color-text-main: #ffffff;
  --color-text-sub: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-text-dark: #0f172a;
  
  --bg-glass: rgba(8, 22, 45, 0.85);
  --bg-glass-card: rgba(11, 31, 62, 0.78);
  --bg-glass-bright: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(112, 214, 255, 0.28);
  --border-glass-bright: rgba(112, 214, 255, 0.65);
  
  --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.45);
  --shadow-card: 0 10px 30px rgba(2, 10, 24, 0.65);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Clear, universal modern fonts with comfortable letter-spacing */
  --font-base: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', Meiryo, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  background: linear-gradient(180deg, #050f1c 0%, #081a33 25%, #0b2545 60%, #040e1a 100%);
  min-height: 100vh;
  line-height: 1.85;
  letter-spacing: 0.03em;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Animated Bubbles */
.bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30; /* Floats beautifully over all backgrounds */
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -70px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(144, 224, 239, 0.4) 50%, rgba(0, 180, 216, 0.2) 80%, rgba(255, 255, 255, 0.5));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 213, 255, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-120vh) translateX(60px) scale(1.1);
    opacity: 0;
  }
}

/* Light ray effect */
.light-rays {
  position: fixed;
  top: -100px;
  left: 10%;
  width: 80%;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

a {
  color: var(--color-ocean-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 15, 28, 0.92);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-main);
}

.logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 216, 0.45));
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-icon {
  transform: scale(1.08) rotate(-3deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px; /* Reduced gap to prevent 2-line wrapping on small PCs */
}

.nav-link {
  font-size: 1.0rem; /* Slightly smaller to fit 1 line */
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0%;
  height: 2.5px;
  background: var(--color-ocean-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 180, 216, 0.7);
  color: #fff;
}

.nav-btn-coming-soon {
  cursor: default;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.75), rgba(0, 119, 182, 0.75));
  opacity: 0.95;
  user-select: none;
}

.nav-btn-coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0px;
  flex-direction: column;
  gap: 6px;
  margin-right: 0;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 85px 0 105px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.18);
  border: 1px solid var(--border-glass-bright);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 2.9rem;
  line-height: 1.4;
  margin-bottom: 22px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-sub);
  margin-bottom: 36px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-download-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-download-note {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 4px;
  margin-top: 4px;
}

.appstore-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 11px 26px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.appstore-badge-btn:hover {
  transform: translateY(-3px);
  border-color: var(--color-ocean-light);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.coming-soon-badge-btn {
  cursor: default;
  opacity: 0.92;
  background: rgba(5, 18, 38, 0.9);
  border: 1.5px solid var(--border-glass-bright);
  user-select: none;
}

.coming-soon-badge-btn:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--border-glass-bright);
}

.appstore-icon {
  font-size: 2rem;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.appstore-text-sub {
  font-size: 0.72rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.appstore-text-main {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--border-glass-bright);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  color: #fff;
}

/* Phone Mockup */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 320px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.4) 0%, rgba(13, 37, 76, 0) 70%);
  filter: blur(50px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.iphone-frame {
  position: relative;
  z-index: 1;
  width: 290px;
  max-width: 100%;
  border-radius: 46px;
  padding: 8px;
  background: linear-gradient(145deg, #4b5866, #141920);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.22);
  transition: border-radius 0.3s ease;
}

.iphone-frame.android-mode {
  border-radius: 34px;
}

.iphone-inner {
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 1284 / 2778;
  transition: border-radius 0.3s ease;
}

.iphone-frame.android-mode .iphone-inner {
  border-radius: 38px;
  aspect-ratio: 472 / 1024;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

/* Hero Mockup OS Switcher */
.mockup-display-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.mockup-switcher {
  display: inline-flex;
  background: rgba(5, 15, 28, 0.85);
  border: 1.5px solid var(--border-glass-bright);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mockup-tab {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.mockup-tab:hover {
  color: #ffffff;
}

.mockup-tab.active {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.45);
}

.floating-card {
  position: absolute;
  z-index: 2;
  background: rgba(8, 22, 45, 0.94);
  border: 1.5px solid var(--border-glass-bright);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatCard 5s ease-in-out infinite alternate;
}

.floating-card-1 {
  bottom: 20px;
  left: -30px;
}

.floating-card-2 {
  top: 76px;
  right: -25px;
  animation-delay: 2.5s;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.floating-card-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.floating-card-img-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 180, 216, 0.4));
  flex-shrink: 0;
}

.floating-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 2px;
}

.floating-card-desc {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 350;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 65px;
}

.section-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ocean-light);
  background: rgba(0, 180, 216, 0.16);
  border: 1.5px solid var(--border-glass-bright);
  padding: 5px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-sub);
  font-weight: 400;
  line-height: 1.7;
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-5px);
  box-shadow: 0 16px 45px rgba(0, 180, 216, 0.3);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ocean-cyan), var(--color-ocean-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.3), rgba(15, 53, 99, 0.7));
  border: 1.5px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.feature-desc {
  font-size: 1.02rem;
  color: var(--color-text-sub);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   How It Works (Gameplay Flow)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 30px;
  background: linear-gradient(135deg, var(--color-ocean-cyan), #0077b6);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.step-image-wrap {
  margin: 18px auto 22px;
  max-width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--border-glass);
  cursor: pointer;
}

.step-image {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.step-card:hover .step-image {
  transform: scale(1.05);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.step-desc {
  font-size: 1.02rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  font-weight: 400;
}

/* ==========================================================================
   Screenshots Showcase (Gallery)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-ocean-light);
  box-shadow: var(--shadow-glow);
}

.gallery-thumb-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
  aspect-ratio: 1284 / 2778;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f8fafc;
  margin-top: 14px;
}

/* ==========================================================================
   App Specs & Info Box
   ========================================================================== */
.app-specs-box {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ocean-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-value {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #f8fafc;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  font-family: var(--font-heading);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--color-ocean-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: #ffffff;
  border-top: none;
}

.faq-item.active .faq-answer {
  border-top: 1.5px solid rgba(0, 180, 216, 0.25);
}

.faq-answer-inner {
  padding: 20px 26px 24px;
  color: #1a2a3a;
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.faq-answer-inner a {
  color: #0077b6 !important;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.faq-answer-inner a:hover {
  color: #0096c7 !important;
}

/* FAQ OS Comparison Images */
.faq-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}

.faq-compare-card {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.faq-compare-badge {
  display: inline-block;
  text-align: center;
  line-height: 1.35;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
  color: #ffffff;
}

.faq-compare-badge.ios {
  background: #0f172a;
}

.faq-compare-badge.android {
  background: #0077b6;
}

.faq-compare-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #000;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-compare-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.25);
}

.faq-compare-img {
  width: 100%;
  height: auto;
  display: block;
}

.faq-compare-hint {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .faq-compare-grid {
    gap: 12px;
  }
  .faq-compare-card {
    padding: 8px;
  }
  .faq-compare-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   Support & Contact Section (Required for App Store Review)
   ========================================================================== */
.support-container {
  max-width: 880px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-sub);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-info-icon {
  color: var(--color-ocean-light);
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: #ffffff;
}

.form-control {
  width: 100%;
  background: rgba(4, 14, 28, 0.75);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-ocean-light);
  box-shadow: 0 0 12px rgba(112, 214, 255, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--color-ocean-cyan) 0%, #0077b6 100%);
  color: #fff;
  border: none;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 180, 216, 0.6);
}

.form-status {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  line-height: 1.7;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.25);
  border: 1.5px solid #2ecc71;
  color: #e8f8f0;
}

/* ==========================================================================
   Static / Policy Pages Layout
   ========================================================================== */
.policy-page {
  padding: 60px 0 100px;
}

.policy-content {
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.policy-title {
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.policy-date {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 18px;
  font-weight: 500;
}

.policy-section {
  margin-bottom: 36px;
}

.policy-section h2 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.policy-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--color-ocean-light);
  border-radius: 3px;
}

.policy-section p {
  color: var(--color-text-sub);
  margin-bottom: 14px;
  line-height: 1.9;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.policy-section ul {
  color: var(--color-text-sub);
  margin-left: 26px;
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}

.policy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--color-ocean-light);
  font-weight: 600;
  font-size: 1.02rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #030a14;
  border-top: 1.5px solid var(--border-glass);
  padding: 65px 0 35px;
  margin-top: 80px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 14px;
  font-size: 0.98rem;
  max-width: 330px;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--color-ocean-light);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

/* ==========================================================================
   Image Modal (Lightbox)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 10, 20, 0.94);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-glass-bright);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .store-download-wrap {
    align-items: center;
    width: 100%;
  }
  
  .store-badges-row {
    justify-content: center;
  }
  
  .store-download-note {
    padding-left: 0;
    text-align: center;
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-mockup-wrapper {
    margin-top: 20px;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .site-header .container,
  .site-header .container.nav-wrap,
  .site-header .nav-wrap {
    padding-left: 10px !important;
    padding-right: 0px !important;
    max-width: 100% !important;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: rgba(5, 15, 28, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-150%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid var(--border-glass);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
    margin-right: 0 !important;
    padding: 6px 0px !important;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-header .container,
  .site-header .container.nav-wrap,
  .site-header .nav-wrap {
    padding-left: 8px !important;
    padding-right: 0px !important;
    max-width: 100% !important;
  }

  .mobile-toggle {
    display: flex;
    margin-right: 0 !important;
    padding: 6px 2px !important;
  }

  .mobile-toggle span {
    width: 24px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.9rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .policy-content {
    padding: 26px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   Wave Dividers & Ocean Coral Decorative Lines
   ========================================================================== */
.wave-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.wave-divider {
  width: 100%;
  height: 90px;
  position: relative;
}

@media (min-width: 768px) {
  .wave-divider {
    height: 140px;
  }
}

.wave-svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
}

/* Organic Flowing Waves Animation */
.parallax-wave > use {
  animation: moveWave 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax-wave > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 9s;
}
.parallax-wave > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 13s;
}
.parallax-wave > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 18s;
}
.parallax-wave > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 24s;
}

@keyframes moveWave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Wave Banner with Corals */
.wave-banner {
  position: relative;
  width: 100%;
  padding: 40px 0;
  margin: 30px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coral-accent {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
}

.coral-left {
  left: 3%;
  width: 90px;
  height: auto;
}

.coral-right {
  right: 3%;
  width: 80px;
  height: auto;
  transform: scaleX(-1);
}

@media (min-width: 768px) {
  .coral-left {
    width: 130px;
  }
  .coral-right {
    width: 120px;
  }
}

.wave-line-organic {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  margin-top: -20px;
  margin-bottom: -20px;
  z-index: 2;
}

.wave-line-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Section Distinct Ocean Background Colors
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #050f1c 0%, #0a2142 100%);
  position: relative;
  z-index: 1;
}

.section-ocean-mid {
  background-color: #3db7cc;
  position: relative;
  z-index: 1;
}

/* Harmonized styles for the vibrant #3db7cc cyan section */
.section-ocean-mid .section-tag {
  color: #04254e;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 18px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(4, 37, 78, 0.15);
}

.section-ocean-mid .section-title {
  color: #041f42;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

.section-ocean-mid .section-subtitle {
  color: #063166;
  font-weight: 600;
}

/* Deep ocean glass cards that pop crisp and readable on #3db7cc */
.section-ocean-mid .glass-card,
.section-ocean-mid .step-card {
  background: rgba(6, 25, 52, 0.86);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 36px rgba(4, 28, 60, 0.45);
}

.section-ocean-mid .glass-card:hover,
.section-ocean-mid .step-card:hover {
  border-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(4, 28, 60, 0.6);
}

.section-ocean-mid .feature-title,
.section-ocean-mid .step-title {
  color: #ffffff;
}

.section-ocean-mid .feature-desc,
.section-ocean-mid .step-desc {
  color: #f1f5f9;
}

.section-ocean-mid .step-number {
  background: linear-gradient(135deg, #051d3b, #0d3870);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(5, 29, 59, 0.5);
}

.section-ocean-deep {
  background-color: #091f3d;
  position: relative;
  z-index: 1;
}

.wave-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100px;
}

@media (min-width: 768px) {
  .wave-svg {
    height: 150px;
  }
}

/* ==========================================================================
   PlayStation Style Organic Ribbon Wave Animations
   ========================================================================== */
.ps-wave-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.ps-waves {
  position: relative;
  width: 100%;
  height: 110px;
  margin-bottom: -1px;
}

@media (min-width: 768px) {
  .ps-waves {
    height: 155px;
  }
}

.ps-parallax > use {
  animation: psWaveFlow 22s cubic-bezier(.55, .5, .45, .5) infinite;
}

.ps-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.ps-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 12s;
}

.ps-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 16s;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.ps-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 21s;
}

.ps-parallax > use:nth-child(5) {
  animation-delay: -6s;
  animation-duration: 27s;
}

@keyframes psWaveFlow {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  50% {
    transform: translate3d(85px, 2px, 0);
  }
  100% {
    transform: translate3d(-90px, 0, 0);
  }
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: rgba(8, 26, 52, 0.88);
  border: 1.5px solid var(--border-glass-bright);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .contact-card {
    padding: 28px 20px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required-mark {
  color: #ff5252;
  font-size: 1.15rem;
  font-weight: 700;
  margin-left: 2px;
  line-height: 1;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(4, 15, 30, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-ocean-light);
  background: rgba(4, 18, 38, 0.9);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2390e0ef' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

.form-select option {
  background: #091f3d;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy-agree {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  color: var(--color-text-sub);
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-ocean-light);
  cursor: pointer;
}

.form-submit-wrap {
  text-align: center;
  margin-top: 10px;
}

.submit-btn {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff;
  padding: 14px 44px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.8);
}

.form-feedback-box {
  background: rgba(46, 204, 113, 0.15);
  border: 1.5px solid rgba(46, 204, 113, 0.6);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 15px;
  animation: fadeIn 0.4s ease;
}

.form-feedback-icon {
  font-size: 2.4rem;
  color: #2ecc71;
  margin-bottom: 10px;
}

.form-feedback-box h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-feedback-box p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0;
}


/* ==========================================================================
   Hamburger Menu Absolute Positioning Override (iPad & Mobile)
   ========================================================================== */
@media (max-width: 1023px) {
  .site-header .nav-wrap {
    position: relative; /* 子要素の absolute 配置の基準とする */
    justify-content: flex-start !important; /* 中央寄せを防止 */
    padding-left: 20px !important;
  }
  
  .mobile-toggle {
    display: flex !important;
    position: absolute !important;
    right: 25px !important; /* 右側から約25px〜50pt（視覚的なバランス）の位置に確実固定 */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 10px !important;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    right: 20px !important; /* スマホ時は少しだけ右に寄せる */
  }
}

/* ==========================================================================
   Responsive Text Switcher for Nav Menu
   ========================================================================== */
.mobile-text {
  display: none;
}
@media (max-width: 1023px) {
  .pc-text {
    display: none;
  }
  .mobile-text {
    display: inline;
  }
}

/* ==========================================================================
   Hide on Mobile Helper
   ========================================================================== */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile Global Font Size Adjustment (Large Smartphones <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px !important; /* Reduces all rem-based sizes by ~12.5% on all mobile devices */
  }
}

/* ==========================================================================
   Mobile Break Helper
   ========================================================================== */
.mobile-break {
  display: none;
}
@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

/* ==========================================================================
   PC Inline Element (Hide on Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .pc-inline {
    display: none;
  }
}

/* ==========================================================================
   App Specs Layout Overrides
   ========================================================================== */
.spec-full {
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .app-specs-box {
    grid-template-columns: 1fr 1fr; /* タブレット時は2列に逃がす */
  }
}

@media (max-width: 600px) {
  .app-specs-box {
    grid-template-columns: 1fr; /* スマホ時は1列に逃がす */
  }
}
