/* ===================================
   PT Core — style.css
   =================================== */

/* ---------- リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-navy:     #0f2c5c;
  --color-blue:     #1a56db;
  --color-blue-lt:  #3b82f6;
  --color-teal:     #0d9488;
  --color-emerald:  #059669;
  --color-sky:      #e8f4fd;
  --color-bg:       #f8fbff;
  --color-white:    #ffffff;
  --color-gray-50:  #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --color-text:     #1e293b;
  --color-text-sub: #64748b;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.14);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.sp-br { display: none; }
@media (max-width: 600px) { .sp-br { display: block; } }

/* ---------- アニメーション ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,.1); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue) 0%, #1646b0 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,86,219,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-blue-lt) 0%, var(--color-blue) 100%);
  box-shadow: 0 8px 30px rgba(26,86,219,.45);
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--color-navy);
  border-color: var(--color-navy);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-blue);
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: var(--color-sky);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 18px 36px; font-size: 1.05rem; }

.btn-icon { width: 18px; height: 18px; }
.btn-icon-right { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover .btn-icon-right { transform: translateX(4px); }

/* ---------- セクション共通 ---------- */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: rgba(26,86,219,.08);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.35;
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo-pt {
  color: var(--color-blue);
  background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-core { color: var(--color-navy); }
.logo--white .logo-core { color: #fff; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--color-gray-100); color: var(--color-navy); }
.nav-link--highlight {
  background: rgba(26,86,219,.08);
  color: var(--color-blue);
  font-weight: 700;
}
.nav-link--highlight:hover { background: var(--color-blue); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0f2c5c 0%, #1a56db 50%, #0d9488 100%);
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #60a5fa, transparent);
  top: -200px; right: -150px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #34d399, transparent);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #a78bfa, transparent);
  top: 40%; left: 30%;
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.95);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.8s ease 0.1s both;
}
.hero-title-accent {
  background: linear-gradient(90deg, #60d8d8, #a3e635);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  line-height: 1.8;
  animation: fadeSlideDown 0.8s ease 0.2s both;
}

.hero-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  animation: fadeSlideDown 0.8s ease 0.3s both;
}
.subject-tag {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.8s ease 0.4s both;
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  animation: fadeSlideDown 0.8s ease 0.5s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================
   FEATURES
   =================================== */
.features-section { background: var(--color-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-card--highlight {
  border-color: var(--color-emerald);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.feature-card--highlight::before {
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
  opacity: 1;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-icon--blue    { background: rgba(26,86,219,.1); color: var(--color-blue); }
.feature-icon--teal    { background: rgba(13,148,136,.1); color: var(--color-teal); }
.feature-icon--navy    { background: rgba(15,44,92,.1);  color: var(--color-navy); }
.feature-icon--emerald { background: rgba(5,150,105,.1); color: var(--color-emerald); }

.coming-soon-badge, .available-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.coming-soon-badge {
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-200);
}
.available-badge {
  background: rgba(5,150,105,.12);
  color: var(--color-emerald);
  border: 1px solid rgba(5,150,105,.25);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ===================================
   QUIZ
   =================================== */
.quiz-section {
  background: linear-gradient(160deg, var(--color-bg) 0%, #eef8f7 100%);
  padding: 80px 0;
}

.quiz-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
}
.quiz-card-label {
  position: absolute;
  top: 28px; left: 28px;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 50px;
}

.quiz-card-body {
  padding: 80px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.quiz-icon-wrap svg { width: 30px; height: 30px; color: #fff; }

.quiz-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-navy);
}
.quiz-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}
.quiz-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-emerald);
}
.quiz-features li svg { width: 16px; height: 16px; flex-shrink: 0; }

.quiz-card-mockup {
  background: linear-gradient(160deg, var(--color-navy) 0%, #1a4a8a 100%);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

.mockup-phone {
  background: var(--color-gray-800);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  width: 200px;
}
.mockup-screen {
  background: var(--color-white);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-question {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-sky);
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid var(--color-blue);
}
.mockup-choices { display: flex; flex-direction: column; gap: 5px; }
.mockup-choice {
  font-size: 0.62rem;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
}
.mockup-choice--correct {
  background: rgba(5,150,105,.12);
  color: var(--color-emerald);
  border-color: var(--color-emerald);
  font-weight: 700;
}

/* ===================================
   CONTENTS
   =================================== */
.contents-section { background: var(--color-white); }

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

.subject-card {
  position: relative;
  background: linear-gradient(135deg, #f8fbff, var(--color-sky));
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.subject-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
}

.subject-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-blue);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.subject-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.subject-desc {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}
.subject-status {
  display: inline-block;
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-200);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===================================
   PRICING
   =================================== */
.pricing-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, #eef4ff 100%);
}

.pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  max-width: 800px;
  margin-inline: auto;
}

.pricing-free, .pricing-paid {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-md);
}

.pricing-free-label, .pricing-paid-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}
.pricing-free-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 28px;
}

.pricing-paid {
  position: relative;
  border-color: var(--color-blue);
  background: linear-gradient(135deg, #fff 0%, #eef4ff 100%);
  box-shadow: 0 8px 40px rgba(26,86,219,.18);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,86,219,.35);
}
.pricing-paid-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-currency { font-size: 1.8rem; }
.price-period { font-size: 0.95rem; font-weight: 500; color: var(--color-text-sub); }
.pricing-paid-note {
  font-size: 0.78rem;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 24px;
  padding: 4px 12px;
  background: rgba(13,148,136,.08);
  border-radius: 50px;
  display: inline-block;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.pricing-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.pricing-item--available { color: var(--color-text); font-weight: 500; }
.pricing-item--available svg { color: var(--color-emerald); }
.pricing-item--unavailable { color: var(--color-gray-400); }
.pricing-item--unavailable svg { color: var(--color-gray-200); }

/* ===================================
   ROADMAP
   =================================== */
.roadmap-section { background: var(--color-white); }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.roadmap-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.roadmap-item--done {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-color: rgba(5,150,105,.25);
}

.roadmap-icon {
  width: 40px; height: 40px;
  background: rgba(26,86,219,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-blue);
}
.roadmap-icon svg { width: 20px; height: 20px; }
.roadmap-icon--done { background: rgba(5,150,105,.12); color: var(--color-emerald); }

.roadmap-content { flex: 1; min-width: 0; }
.roadmap-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.roadmap-content p {
  font-size: 0.82rem;
  color: var(--color-text-sub);
}

.roadmap-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-200);
  align-self: center;
}
.roadmap-badge--done {
  background: rgba(5,150,105,.12);
  color: var(--color-emerald);
  border-color: rgba(5,150,105,.25);
}

/* ===================================
   CTA
   =================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a56db 60%, var(--color-teal) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-inner { color: #fff; }
.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.35;
}
.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-navy);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  padding: 6px 12px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
}

/* ===================================
   RESPONSIVE — タブレット
   =================================== */
@media (max-width: 960px) {
  .subjects-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-wrapper { grid-template-columns: 1fr; max-width: 440px; }
  .roadmap-grid { grid-template-columns: 1fr; max-width: 560px; }
  .quiz-card { grid-template-columns: 1fr; }
  .quiz-card-mockup { display: none; }
}

/* ===================================
   RESPONSIVE — スマートフォン
   =================================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
    padding: 16px 0 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: 4px; padding: 0 16px; }
  .nav-link { width: 100%; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 1rem; }

  .hero { min-height: 100svh; padding: 90px 0 60px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }

  .quiz-card-body { padding: 56px 24px 32px; }

  .pricing-wrapper { padding: 0 4px; }
  .pricing-free, .pricing-paid { padding: 32px 24px; }

  .roadmap-item { padding: 16px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .btn-large { padding: 15px 24px; font-size: 0.95rem; }
  .pricing-paid-price { font-size: 2.2rem; }
}

/* ===================================
   SUBJECT CARDS — リンク対応
   =================================== */
a.subject-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.subject-status--link {
  background: rgba(26,86,219,.08);
  color: var(--color-blue);
  border-color: rgba(26,86,219,.2);
}
a.subject-card:hover .subject-status--link {
  background: var(--color-blue);
  color: #fff;
}

/* ===================================
   SYLLABUS PAGES（各科目シラバス）
   =================================== */

/* --- ヒーロー --- */
.syllabus-hero {
  padding: 104px 0 64px;
  background: linear-gradient(160deg, #0f2c5c 0%, #1a56db 55%, #0d9488 100%);
  position: relative;
  overflow: hidden;
}
.syllabus-hero--teal {
  background: linear-gradient(160deg, #134e4a 0%, #0d9488 55%, #1a56db 100%);
}
.syllabus-hero--indigo {
  background: linear-gradient(160deg, #1e1b4b 0%, #4338ca 55%, #0f2c5c 100%);
}

.syllabus-hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 7px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.back-link:hover { background: rgba(255,255,255,.22); color: #fff; }
.back-link svg { width: 16px; height: 16px; }

.subject-badge-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}

.syllabus-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.syllabus-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 36px;
}

.syllabus-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.syllabus-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.syllabus-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.syllabus-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

/* --- シラバスセクション --- */
.syllabus-section {
  padding: 72px 0 96px;
  background: var(--color-white);
}

.syllabus-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(5,150,105,.3);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: var(--color-emerald);
  font-weight: 600;
  line-height: 1.6;
}
.syllabus-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* --- 章カード --- */
.syllabus-chapter {
  margin-bottom: 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.syllabus-chapter:hover { box-shadow: var(--shadow-md); }
.syllabus-chapter--free { border-color: rgba(5,150,105,.35); }

.chapter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}
.syllabus-chapter--free .chapter-header {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-bottom-color: rgba(5,150,105,.2);
}

.chapter-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-blue);
  background: rgba(26,86,219,.1);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.syllabus-chapter--free .chapter-num {
  color: var(--color-emerald);
  background: rgba(5,150,105,.12);
}

.chapter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  flex: 1;
  margin: 0;
}

.chapter-free-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(5,150,105,.12);
  color: var(--color-emerald);
  border: 1px solid rgba(5,150,105,.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.chapter-lock-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-200);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- 項目リスト --- */
.topic-list { padding: 4px 0; }

.topic-subgroup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px 4px;
  border-top: 1px solid var(--color-gray-100);
}
.topic-subgroup:first-child { border-top: none; }
.topic-subgroup-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-gray-100);
}
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: var(--color-gray-50); }
.topic-item--free:hover { background: rgba(5,150,105,.05); }
.topic-item--sub { padding-left: 40px; }

.topic-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gray-300);
  flex-shrink: 0;
}
.topic-item--free .topic-dot { background: var(--color-emerald); }

.topic-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
}
.topic-item--locked .topic-name { color: var(--color-gray-600); }

.topic-free-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(5,150,105,.1);
  color: var(--color-emerald);
  border: 1px solid rgba(5,150,105,.2);
  flex-shrink: 0;
}

.topic-lock-icon {
  width: 14px; height: 14px;
  color: var(--color-gray-300);
  flex-shrink: 0;
}

/* --- 準備中モーダル --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,44,92,.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: none;
  background: var(--color-gray-100);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.modal-close-btn:hover { background: var(--color-gray-200); color: var(--color-navy); }

.modal-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-wrap svg { width: 30px; height: 30px; }
.modal-icon-wrap--free { background: rgba(5,150,105,.1); color: var(--color-emerald); }
.modal-icon-wrap--lock { background: rgba(26,86,219,.08); color: var(--color-blue); }

.modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.75;
  margin-bottom: 24px;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-ghost {
  background: none;
  color: var(--color-text-sub);
  border: 1px solid var(--color-gray-200);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-base);
}
.btn-ghost:hover { background: var(--color-gray-100); color: var(--color-navy); }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .syllabus-hero { padding: 80px 0 48px; }
  .chapter-header { padding: 14px 18px; gap: 10px; }
  .topic-item { padding: 11px 18px; }
  .topic-item--sub { padding-left: 30px; }
  .topic-subgroup { padding: 10px 18px 4px; }
  .modal { padding: 40px 24px 32px; }
  .syllabus-stats { gap: 10px; }
}
