/* ==========================================================================
   ぼうけんメダル (Medaldex) Marketing Website Stylesheet
   ========================================================================== */

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --secondary: #10B981;
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --bg-main: #FAFAFD;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-base: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background-color: #E0E7FF;
  color: #3730A3;
}
.btn-secondary:hover {
  background-color: #C7D2FE;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lang {
  background: #F1F5F9;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
}
.btn-lang:hover {
  background: #E2E8F0;
}

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-xl { padding: 20px 40px; font-size: 1.25rem; }
.btn-block { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 253, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* アプリと同じ絵にする。絵文字だと、入れている端末ごとに形が変わる */
.logo-icon {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
}
.logo-text small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
}
.shape-1 { top: -50px; left: -50px; width: 400px; height: 400px; background: #C7D2FE; }
.shape-2 { top: 200px; right: -100px; width: 500px; height: 500px; background: #FDE68A; }
.shape-3 { bottom: -100px; left: 30%; width: 350px; height: 350px; background: #A7F3D0; }

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: #E0E7FF;
  color: #4338CA;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(120deg, #4F46E5, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Sections Global */
section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 56px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
}
.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}
.bg-gold { background: #FEF3C7; color: #D97706; }
.bg-rainbow { background: linear-gradient(135deg, #FDE68A, #A7F3D0, #C7D2FE); }
.bg-blue { background: #E0E7FF; color: #4338CA; }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Deep Dive Features */
.deep-dive {
  background: #FFF;
}
.deep-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.deep-item:last-child { margin-bottom: 0; }
.deep-item.reverse {
  grid-template-columns: 1fr 1fr;
}
.deep-item.reverse .deep-text {
  order: 2;
}
.deep-item.reverse .deep-visual {
  order: 1;
}

.deep-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #FEF3C7;
  color: #B45309;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.deep-text h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.deep-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.deep-visual {
  display: flex;
  justify-content: center;
}

/* Medals Showcase Section */
.medals-showcase {
  background: #F1F5F9;
}
/* 実物のスクリーンショット。
   端末の枠だけ CSS で描き、中身は加工しない画像をそのまま置く */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.deep-visual {
  display: flex;
  justify-content: center;
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
/* iPhone。角丸と影だけ */
.shot-phone img {
  width: 250px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg), 0 0 0 8px #0f172a, 0 0 0 10px #334155;
}
/* Apple Watch。四角に近い角丸 */
.shot-watch img {
  width: 200px;
  border-radius: 34px;
  box-shadow: var(--shadow-lg), 0 0 0 10px #1e293b, 0 0 0 12px #475569;
}
.shot-row {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Pricing Section */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-gold);
  color: #FFF;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.plan-header h3 { font-size: 1.5rem; font-weight: 900; }
.plan-header h3 small { font-size: 0.9rem; color: var(--text-muted); }
.price { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin: 12px 0 4px; }
.price small { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

.plan-features {
  list-style: none;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.plan-features li { font-size: 0.95rem; }

/* FAQ Section */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #4F46E5, #3730A3);
  color: #FFF;
}
.cta-title { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; }
.cta-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-version { margin-top: 16px; font-size: 0.85rem; opacity: 0.8; }

/* Footer */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 24px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 32px;
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand .logo-text { color: #FFF; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: #FFF; }
.footer-bottom { font-size: 0.85rem; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .deep-item, .deep-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .deep-item.reverse .deep-text { order: 1; }
  .deep-item.reverse .deep-visual { order: 2; }
  .shot-phone img { width: 220px; }
  .shot-watch img { width: 170px; }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* 携帯では上の帯が3行ぶんの高さになっていた。名前もボタンも入りきらず、
     それぞれの中で折り返していたため。折り返させず、小さくして1行に収める */
  .navbar {
    padding: 10px 0;
  }
  .brand-logo {
    gap: 7px;
    min-width: 0;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  .logo-text {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  /* 「Medaldex」の添え書きは、狭いところでは名前を折り返させるだけ */
  .logo-text small {
    display: none;
  }
  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .btn-lang {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .nav-actions .btn-sm {
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* ボタンが2つ横に並ぶと、狭いところでは文字が1文字ずつ折り返す。
     縦に積んで、幅いっぱいに置く */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 36px;
  }
  .hero-buttons .btn-lg {
    padding: 14px 20px;
    font-size: 1rem;
    justify-content: center;
  }
  .badge-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* いちばん狭いところ。上の帯に3つ並べると、どれも読めない大きさになる。
   App Store のボタンは、すぐ下の見出しにも同じものがあるので落とす */
@media (max-width: 430px) {
  .nav-actions .btn-primary {
    display: none;
  }
  .logo-text {
    font-size: 1rem;
  }
}
