/* =========================================================
   子ども向け 日本の歴史講座 LP ／ 再利用テンプレート用 CSS
   ---------------------------------------------------------
   デザイン: 水彩の空色 × 洗練（参照イメージ準拠 2026-07-03）
   第二弾以降も原則このままでOK。色を変えたい場合は
   :root の変数（--c-xxx）だけ調整してください。
   ========================================================= */

:root {
  --c-sky-50:  #f5fbff;
  --c-sky-100: #e6f4fd;
  --c-sky-200: #c9e7fa;
  --c-sky-500: #4aa3dd;
  --c-sky-700: #2b7bb5;
  --c-ink:     #4a3f35;      /* 参照イメージの茶系の文字色 */
  --c-ink-soft:#7a6f63;
  --c-cream:   #fffdf6;
  --c-yellow:  #ffd75e;
  --c-yellow-soft: #fff3c9;
  --c-red:     #e94f47;      /* 参照イメージのCTA赤 */
  --c-red-deep:#d43b33;
  --c-green:   #8fc98f;
  --c-white:   #ffffff;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 36px rgba(74, 163, 221, 0.16);
  --shadow-card: 0 5px 20px rgba(74, 100, 130, 0.10);
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --max-w: 1000px;
  --max-w-narrow: 780px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  line-height: 1.9;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(199, 231, 250, 0.65) 0%, transparent 65%),
    radial-gradient(900px 420px at 88% 4%, rgba(255, 243, 201, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-sky-100) 0%, var(--c-sky-50) 560px, var(--c-white) 1100px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.pc-only { display: inline; }
.sp-only { display: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-sky-200);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--c-sky-500);
  color: #fff;
  font-size: 1rem;
}

.header-cta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--c-red);
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.header-cta:hover { background: var(--c-red-deep); transform: translateY(-1px); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: 34px 20px 30px;
  overflow: hidden;
}

.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-star {
  position: absolute;
  color: var(--c-yellow);
  opacity: 0.85;
}
.deco-star.s1 { top: 8%;  left: 6%;  font-size: 1.4rem; }
.deco-star.s2 { top: 20%; right: 8%; font-size: 1.1rem; color: var(--c-sky-500); }
.deco-star.s3 { top: 55%; left: 3%;  font-size: 1rem;   color: var(--c-sky-500); }
.deco-star.s4 { top: 70%; right: 5%; font-size: 1.3rem; }
.deco-star.s5 { top: 38%; left: 12%; font-size: 0.9rem; }

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* メインバナー（タイトル・イラスト込みの完成画像） */
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.hero-banner img { width: 100%; height: auto; }

/* 上部のコースリボン */
.ribbon-course {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 6px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 215, 94, 0.5);
  margin-bottom: 14px;
}

.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--c-sky-700);
  padding: 6px 24px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(43, 123, 181, 0.35);
}

.hero-lead {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-ink);
  background: linear-gradient(transparent 58%, var(--c-yellow-soft) 58%);
  padding: 0 6px;
  margin-bottom: 8px;
}

/* 開催情報カード（4つ） */
.hero-facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px auto 26px;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--c-white);
  border: 1.5px solid var(--c-sky-200);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  min-width: 118px;
  box-shadow: var(--shadow-card);
}

.fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-sky-700);
  letter-spacing: 0.08em;
}

.fact-value {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--c-ink);
  line-height: 1.3;
}
.fact-value small { font-size: 0.75rem; font-weight: 700; }

/* CTA ボタン（参照イメージの赤・横長） */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  text-decoration: none;
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-deep) 100%);
  color: #fff;
  font-family: var(--font-head);
  padding: 18px 54px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(233, 79, 71, 0.38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233, 79, 71, 0.48);
}
.cta-main  {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cta-flag  { font-size: 1.2rem; }
.cta-arrow { font-size: 1.5rem; font-weight: 700; line-height: 1; }

.cta-button.large { padding: 20px 64px; }
.cta-button.large .cta-main { font-size: 1.3rem; }

.cta-button.compact {
  width: 100%;
  padding: 14px 20px;
  font-weight: 900;
  font-size: 1rem;
  gap: 8px;
}

.cta-note {
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-red);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c-sky-700);
  background: var(--c-white);
  border: 1.5px solid var(--c-sky-200);
  text-decoration: none;
  padding: 9px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: background .15s ease;
}
.mail-link:hover { background: var(--c-sky-100); }

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

.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner.narrow { max-width: var(--max-w-narrow); }

.block-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.6;
  color: var(--c-ink);
  margin-bottom: 26px;
}
.block-title.center { text-align: center; }
.deco-mini { color: var(--c-yellow); margin-right: 4px; }

/* ---------- ② ご案内 ---------- */
.guide-section { padding-top: 30px; }

.guide-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  box-shadow: var(--shadow-soft);
}

.guide-head {
  margin-bottom: 30px;
}
.guide-head--text-only {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.guide-copy { color: var(--c-ink-soft); font-size: 1rem; }
.guide-copy strong {
  color: var(--c-ink);
  background: linear-gradient(transparent 60%, var(--c-yellow-soft) 60%);
  font-weight: 700;
}

/* テーマカード */
.theme-card {
  background: linear-gradient(150deg, var(--c-cream) 0%, var(--c-yellow-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1.5px solid rgba(255, 215, 94, 0.55);
}

.theme-ribbon {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-ink);
  background: var(--c-green);
  color: #fff;
  padding: 4px 22px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.theme-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: 0.12em;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.theme-copy { color: var(--c-ink-soft); font-size: 1rem; }

/* ---------- ③ 体験できること ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-sky-200);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-card.vc-blue   { border-top: 4px solid var(--c-sky-500); }
.value-card.vc-green  { border-top: 4px solid var(--c-green); }
.value-card.vc-yellow { border-top: 4px solid var(--c-yellow); }
.value-card.vc-sky    { border-top: 4px solid var(--c-sky-200); }

.value-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: #fff;
  box-shadow: 0 8px 20px rgba(74, 100, 130, 0.12);
  font-size: 2.25rem;
  line-height: 1;
}
.value-card.vc-blue .value-icon {
  color: var(--c-sky-500);
  background: linear-gradient(145deg, #fff, #eaf7ff);
}
.value-card.vc-green .value-icon {
  color: var(--c-green);
  background: linear-gradient(145deg, #fff, #edf9ed);
}
.value-card.vc-yellow .value-icon {
  color: #e0a83f;
  background: linear-gradient(145deg, #fff, #fff6d8);
}
.value-card.vc-sky .value-icon {
  color: var(--c-sky-500);
  background: linear-gradient(145deg, #fff, #eef9ff);
}

.value-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--c-ink);
}

.value-card p { font-size: 0.85rem; color: var(--c-ink-soft); }

/* ---------- ④ おすすめ（ノート風） ---------- */
.note-list {
  list-style: none;
  background:
    repeating-linear-gradient(
      transparent 0px, transparent 47px,
      var(--c-sky-100) 47px, var(--c-sky-100) 48px
    ),
    var(--c-white);
  border-radius: var(--radius-lg);
  padding: 30px 38px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--c-sky-200);
  display: flex;
  flex-direction: column;
}

.note-list li {
  position: relative;
  padding: 9px 0 9px 40px;
  font-size: 1rem;
  line-height: 30px;
}
.note-list li::before {
  content: "✅";
  position: absolute;
  left: 4px;
  font-size: 1.05rem;
}

/* ---------- ⑤ 講師 ---------- */
.teacher-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--c-sky-200);
  align-items: start;
}

.teacher-photo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.teacher-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.teacher-photo figcaption {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--c-ink);
  text-align: center;
}
.teacher-photo figcaption span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink-soft);
}

.teacher-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.teacher-tags li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--c-sky-700);
  background: var(--c-sky-100);
  padding: 4px 14px;
  border-radius: 999px;
}

.teacher-bio {
  font-size: 0.92rem;
  color: var(--c-ink);
  background: var(--c-sky-50);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 18px;
  text-align: justify;
}

.sub-button {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--c-sky-500);
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(74, 163, 221, 0.35);
  transition: background .15s ease, transform .15s ease;
}
.sub-button:hover { background: var(--c-sky-700); transform: translateY(-1px); }

/* ---------- ⑥ 開催概要 ---------- */
.overview-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--c-sky-200);
  text-align: center;
}

.overview-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  text-align: left;
}

.overview-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1.5px dashed var(--c-sky-200);
  align-items: baseline;
}
.overview-list > div:last-child { border-bottom: none; }
.overview-list dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-sky-700);
}
.overview-list dd { font-size: 0.98rem; }
.overview-list dd strong { color: var(--c-red); font-size: 1.08rem; }

.overview-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}
.overview-note a { color: var(--c-sky-700); font-weight: 700; }

/* ---------- ⑦ 今後の展開 ---------- */
.future-copy {
  text-align: center;
  color: var(--c-ink-soft);
  margin-bottom: 26px;
}

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

.future-grid article {
  background: var(--c-white);
  border: 1.5px solid var(--c-sky-200);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}
.future-grid article.now {
  border: 2px solid var(--c-yellow);
  background: var(--c-yellow-soft);
}

.f-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-sky-700);
}
.f-theme {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--c-ink);
}
.f-status { font-size: 0.78rem; color: var(--c-ink-soft); }
.future-grid article.now .f-status { color: var(--c-red); font-weight: 700; }

/* ---------- ⑧ 最終CTA ---------- */
.bottom-cta { padding-bottom: 90px; }

.bottom-cta-card {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(600px 220px at 85% 10%, rgba(255, 243, 201, 0.8) 0%, transparent 65%),
    linear-gradient(160deg, var(--c-sky-100) 0%, var(--c-cream) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--c-sky-200);
}

.bottom-lead {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-sky-700);
  margin-bottom: 8px;
}

.bottom-cta-card h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--c-ink);
}

.bottom-cta-card h2 span {
  display: inline-block;
  margin-top: 0.25rem;
}

.bottom-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 30px;
}
.bottom-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-white);
  border: 1.5px solid var(--c-sky-200);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
}
.bottom-facts span { color: var(--c-sky-700); font-weight: 700; font-size: 0.75rem; }
.bottom-facts strong { font-family: var(--font-head); font-weight: 700; color: var(--c-ink); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-ink);
  color: #fff;
  text-align: center;
  padding: 34px 20px 110px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 10px;
}
.site-footer a { color: var(--c-sky-200); font-size: 0.9rem; }

/* ---------- スマホ追従CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-sky-200);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  div.sp-only, .sticky-cta.sp-only { display: block; }

  .hero { padding-top: 24px; }

  .section { padding: 44px 18px; }

  .guide-card { padding: 28px 22px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value-card { padding: 20px 12px; }

  .note-list { padding: 24px 20px; }

  .teacher-card {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }
  .teacher-photo { max-width: 300px; margin: 0 auto; }
  .teacher-profile { text-align: center; }
  .teacher-tags { justify-content: center; }
  .teacher-bio { text-align: left; }

  .overview-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .future-grid { grid-template-columns: 1fr; }

  .cta-button {
    width: min(100%, 340px);
    min-height: 68px;
    padding: 16px 20px;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-main {
    font-size: clamp(1rem, 4.7vw, 1.15rem);
    letter-spacing: 0.01em;
  }

  .cta-flag {
    font-size: 1rem;
  }

  .cta-arrow {
    font-size: 1.25rem;
  }

  .bottom-facts { flex-direction: column; align-items: stretch; }
  .bottom-facts li { justify-content: space-between; }
}

@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .sticky-cta { display: none; }
}
