/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #ffffff;
  --surface: #f7f7f5;
  --border:  #e5e5e3;
  --text:    #1a1a1a;
  --muted:   #888888;
  --accent:  #2d2d2d;
  --radius:  6px;
  --font:    'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --max:     720px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: 0.65; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

main { padding: 40px 0 80px; }

/* ===== Hero ===== */
.hero { padding: 24px 0 24px; text-align: center; }

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CTA ===== */
.cta {
  display: inline-block;
  padding: 15px 48px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity 0.15s;
  min-height: 48px;
  line-height: 1.4;
}

.cta:hover { opacity: 0.82; }

.cta--large {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 24px auto 0;
  padding: 18px 24px;
  text-align: center;
  font-size: 1rem;
}

/* ===== Divider ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ===== Section ===== */
.section { padding: 8px 0; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-lead {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.9;
}

/* ===== Prose ===== */
.prose { font-size: 0.95rem; line-height: 2; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ===== TOC List ===== */
.toc-list { list-style: none; }

.toc-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.toc-list li:first-child { border-top: 1px solid var(--border); }

/* Multi-line items (bonus) align to top so the label sits with the title */
.toc-list li:has(.toc-body) { align-items: flex-start; }

/* Curriculum grouping */
.curriculum-group-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.toc-list + .toc-list { margin-top: 36px; }

.toc-label {
  font-size: 0.7rem;
  color: #fff;
  background: var(--text);
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.08em;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
  box-sizing: border-box;
}

/* For multi-line items, nudge label down to align with the title row */
.toc-list li:has(.toc-body) .toc-label { margin-top: 3px; }

.toc-label--bonus {
  color: #a8882e;
  background: #fdf6e3;
  border-color: #c9a84c;
  font-weight: 700;
}

.toc-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.toc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Check List ===== */
.check-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.check-list li {
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  position: relative;
  line-height: 1.8;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 1px;
  background: var(--text);
}

/* ===== About ===== */
.about {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.about-body { flex: 1; font-size: 0.9rem; line-height: 1.9; }

.about-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.about-body p { margin-bottom: 12px; }
.about-body p:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--border); }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 0;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

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

.faq summary::before {
  content: 'Q. ';
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--text), var(--text)),
    linear-gradient(var(--text), var(--text));
  background-size: 11px 1.5px, 1.5px 11px;
  background-position: center;
  background-repeat: no-repeat;
  transition: border-color 0.15s, background-color 0.15s, background-size 0.2s ease;
}

.faq summary:hover::after {
  border-color: var(--text);
  background-color: var(--surface);
}

.faq details[open] summary::after {
  border-color: var(--text);
  background-color: var(--text);
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-size: 11px 1.5px, 1.5px 0;
}

.faq-answer {
  padding: 0 0 22px 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.9;
}

.faq-answer p { margin-bottom: 14px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===== Video ===== */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 14px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Price ===== */
.price-section { text-align: center; }

.price-bubble {
  display: inline-block;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 20px;
  margin-bottom: 18px;
}

.price-bubble::before,
.price-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.price-bubble::before {
  bottom: -8px;
  border-top: 8px solid var(--text);
}

.price-bubble::after {
  bottom: -7px;
  border-top: 8px solid var(--bg);
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-top: 4px;
}

.price-unit {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.price-note {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.price-reason {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 18px;
  letter-spacing: 0.05em;
  text-align: center;
}

.cta-micro {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.3;
}

.cta-micro + .cta--large { margin-top: 2px; }

.price-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0.03em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.site-footer p { margin-bottom: 6px; }
.site-footer p:last-child { margin-bottom: 0; }

.social-links {
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 0;
}

.social-links li { display: flex; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.social-links a:hover {
  color: var(--text);
  background: var(--surface);
  opacity: 1;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
}

.site-footer a:hover { color: var(--text); opacity: 1; }

/* ===== Mobile ===== */
@media (max-width: 480px) {
  main { padding: 24px 0 64px; }

  .hero { padding: 16px 0 16px; }
  .thumb { margin-bottom: 36px; }

  .divider { margin: 44px 0; }

  .section-title { font-size: 1.15rem; }

  .about { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .about-photo { width: 104px; height: 104px; }

  .price { font-size: 2.1rem; }

  .cta { padding: 14px 32px; }
}
