:root {
  /* Light Mode Tokens */
  --bg-top: #f1f8ff; /* Lighter, clearer blue */
  --bg-mid: #f8fafc;
  --bg-bottom: #ffffff;
  --ink: #102038;
  --ink-soft: #2d3b4e;
  --text-muted: #445671; /* Re-defined to be dark for light mode visibility */
  --line: #d4deee;
  --card: rgba(255, 255, 255, 0.88);
  --primary: #0b7a62;
  --primary-2: #1168a6;
  --shadow: 0 16px 34px rgba(16, 34, 60, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(30, 144, 255, 0.1);
  --hero-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(232, 244, 255, 0.9));
  --card-light: #fbfdff;
  --note-bg: #f2f8ff;
  --note-border: #4a83be;
  --note-text: #355477;
  --warn-bg: #fff8ed;
  --warn-border: #e18a00;
  --warn-text: #7d4c00;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: 
    linear-gradient(160deg, #ffffff 0%, #b3d9ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cpath d='M100 100 L300 250 L200 600 Z M500 150 L750 350 L650 700 L400 500 Z M50 700 L350 750 M600 50 L750 150' stroke='rgba(0,102,255,0.35)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Geometric Elements (Global) */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}

.shape {
  position: absolute;
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(1px);
}

.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 4px; }
.shape-line {
    background: rgba(56, 189, 248, 0.1);
    width: 2px;
}

/* Force Header Integration - Use ultra-high specificity to win over global styles */
html body #main-header,
html body #main-header.scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(0, 102, 255, 0.15) !important;
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

html body #main-header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  height: 70px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Ensure header text/logo is dark enough for the light background */
html body #main-header .logo,
html body #main-header .logo span,
html body #main-header .nav-links a {
  color: #102038 !important; /* var(--ink) value directly to ensure visibility */
}

html body #main-header .nav-links a:hover,
html body #main-header .nav-links a.active {
  color: #1168a6 !important; /* var(--primary-2) */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink); /* var(--ink-soft)から変更して視認性アップ */
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  opacity: 0.85;
}

.site-nav a:hover {
  color: var(--primary-2);
  opacity: 1;
}

.nav-parent {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.nav-parent::after {
  content: '↗';
  font-size: 0.7em;
  opacity: 0.6;
}

.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Hero Section Upgrade */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  z-index: 2;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-container {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: #111;
  border-radius: 36px;
  box-shadow: 0 40px 80px -15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.mockup-container::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  bottom: -15px;
  left: -15px;
  background: radial-gradient(circle at center, var(--primary-2), transparent 70%);
  opacity: 0.3;
  filter: blur(30px);
  z-index: -1;
}

.mockup-img {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.hero-points {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points li {
  font-size: 0.9rem;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s, filter 0.2s;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:not(.disabled):hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-store {
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.btn-ghost {
  padding: 12px 24px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.btn-ghost.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost:not(.disabled):hover {
    background: var(--line);
}

/* Sections */
.section {
  max-width: 1140px;
  margin: 100px auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Feature Showcase */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-showcase.reverse {
  direction: rtl;
}

.feature-showcase.reverse .feature-copy {
  direction: ltr;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-2);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-copy h3 {
  font-size: 2rem;
  margin: 0 0 16px;
  line-height: 1.2;
}

.feature-copy ul {
  padding-left: 20px;
  margin-top: 24px;
}

.feature-copy li {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.15);
  border: 4px solid #111;
}

.feature-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: transform 0.3s;
}

.support-card:hover {
  transform: translateY(-8px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.support-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.support-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* Scene Grid */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.scene-card {
  padding: 24px;
  background: var(--card);
  border-left: 4px solid var(--primary-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scene-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-2);
  margin-bottom: 8px;
}

.scene-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 24px 20px;
  color: var(--ink-soft);
}

/* CTA Section */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 100px;
}

.cta .kicker { color: rgba(255,255,255,0.8); }
.cta h2 { font-size: 2.5rem; margin-bottom: 32px; color: #fff; }

/* Force Footer Integration */
html body footer {
  border-top: 1px solid rgba(0, 102, 255, 0.1) !important;
  padding: 80px 0 40px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  position: relative !important;
  z-index: 10 !important;
}

html body footer .logo,
html body footer .logo span,
html body footer p,
html body footer h4,
html body footer li a {
  color: #102038 !important; /* Forced dark text */
}

html body footer .footer-bottom {
  border-top: 1px solid rgba(0, 102, 255, 0.08) !important;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer-copy {
  display: flex;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible,
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Mobile Adjustments */
@media (max-width: 1080px) { /* 項目数多いため 900px -> 1080px に拡大 */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-points {
    justify-content: center;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
    direction: ltr !important;
  }

  .feature-showcase .feature-copy {
    direction: ltr !important;
  }

  .feature-copy h3 {
    font-size: 1.5rem;
  }

  .menu-btn {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-top);
    padding: 20px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 12px;
    z-index: 100;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 1.25rem;
  }

  .nav-cta {
    margin-top: 20px;
    background: var(--primary);
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* --- Theme Component Overrides: Glass & Text --- */

html body .glass {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(0, 102, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(16, 34, 60, 0.05) !important;
  color: #102038 !important; /* var(--ink) */
}

html body .glass h3, 
html body .glass h4, 
html body .glass p {
  color: #102038 !important;
}

/* Global Text Visibility Force for White-based background */
html body p, 
html body li, 
html body summary, 
html body .faq-content, 
html body .hero-copy {
  color: #445671 !important; /* var(--text-muted) */
}

html body h1, 
html body h2, 
html body h3, 
html body h4,
html body .section-title {
  color: #102038 !important; /* var(--ink) */
}

/* Feature tags contrast */
html body .feature-tag {
  background: rgba(17, 104, 166, 0.1) !important;
  color: #1168a6 !important; /* var(--primary-2) */
}
