/* ============================================================
   lp-common.css — 講座LP共通スタイル
   使用ページ: terakoya.html / workshop.html / ai-taikenkai.html
   ※ ai-sagyokai.html は自己完結型のまま（同じ配色・同じ骨格）
   フォントは各ページで Noto Sans JP + Zen Maru Gothic を読み込む
   ============================================================ */

:root {
  --cream: #fbf8f2;
  --paper: #fffdf8;
  --green: #244f41;
  --green-dark: #193b31;
  --sage: #8da399;
  --sage-light: #e7eeea;
  --gold: #b8924a;
  --gold-light: #f3ead6;
  --red: #d84b4b;
  --ink: #293630;
  --muted: #64716b;
  --line: #dce4df;
  --shadow: 0 10px 30px rgba(36, 79, 65, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 84px; /* 追従CTA分。700px以上で解除 */
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
a { color: inherit; }

.container { width: min(100% - 40px, 760px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-alt { background: rgba(255, 255, 255, .5); }

h1, h2, h3 {
  margin-top: 0;
  color: var(--green);
  font-family: "Zen Maru Gothic", sans-serif;
  letter-spacing: .015em;
}
h1 { margin-bottom: 24px; font-size: clamp(30px, 8vw, 50px); line-height: 1.4; font-weight: 900; }
h2 { margin-bottom: 30px; font-size: clamp(26px, 6.6vw, 36px); line-height: 1.5; font-weight: 700; }
h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.55; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 7px 13px;
  border: 1px solid rgba(36, 79, 65, .20); border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: var(--green); font-size: 13px; font-weight: 700; line-height: 1.55;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 58px 0 70px;
  background:
    radial-gradient(circle at 92% 9%, rgba(184, 146, 74, .16) 0 90px, transparent 91px),
    radial-gradient(circle at 6% 92%, rgba(141, 163, 153, .18) 0 120px, transparent 121px),
    var(--cream);
  border-bottom: 1px solid rgba(36, 79, 65, .11);
}
.hero::before {
  content: ""; display: block; width: 54px; height: 4px;
  margin-bottom: 26px; border-radius: 4px; background: var(--gold);
}
.hero .lead { margin-bottom: 28px; font-size: 18px; font-weight: 500; }
.hero .lead em { font-style: normal; border-bottom: 3px solid var(--gold-light); font-weight: 700; }
.hero-img { display: block; width: 100%; margin: 4px 0 26px; border-radius: 16px; box-shadow: var(--shadow); }
.date-badge {
  display: inline-block; margin-bottom: 18px; padding: 8px 18px;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-family: "Zen Maru Gothic", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- 概要カード（チケット風） ---------- */
.ticket {
  position: relative; margin: 28px 0 8px; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
}
.ticket::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(36, 79, 65, .16); border-radius: 10px; pointer-events: none;
}
.ticket-rows { margin: 0; padding: 0; list-style: none; }
.ticket-rows li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.7;
}
.ticket-rows li:first-child { padding-top: 0; }
.ticket-rows li:last-child { border-bottom: none; padding-bottom: 0; }
.ticket-rows .k { flex: 0 0 4.8em; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.ticket-rows .v { flex: 1; font-weight: 500; }
.ticket-rows .v b { color: var(--green); font-weight: 700; }
.price-old { color: var(--muted); text-decoration: line-through; }
.price-now { color: #c2266e; font-weight: 700; }
.price-free {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-wrap { margin-top: 30px; text-align: center; }
.cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 68px; padding: 15px 22px;
  border: none; border-radius: 12px; background: var(--green); color: #fff;
  box-shadow: 0 8px 20px rgba(36, 79, 65, .22);
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.55;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cta:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 11px 25px rgba(36, 79, 65, .26); }
.cta:focus-visible { outline: 3px solid rgba(184, 146, 74, .55); outline-offset: 4px; }
.cta-note { display: block; margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.outline-button {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px; margin-top: 14px; padding: 13px 20px;
  border: 2px solid var(--green); border-radius: 10px;
  color: var(--green); font-weight: 700; text-align: center; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.outline-button:hover { background: var(--green); color: #fff; }

/* ---------- リスト・カード ---------- */
.check-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .plain-list li {
  position: relative; margin-bottom: 15px; padding: 17px 18px 17px 48px;
  border-radius: 10px; background: var(--paper); box-shadow: 0 3px 14px rgba(36, 79, 65, .055);
}
.check-list li::before {
  content: "✔"; position: absolute; top: 17px; left: 19px; color: var(--gold); font-weight: 900;
}
.caution .plain-list li::before {
  content: "✖"; position: absolute; top: 17px; left: 19px; color: var(--red); font-weight: 900;
}
.closing-line {
  margin-top: 28px; padding-left: 18px; border-left: 4px solid var(--gold);
  color: var(--green); font-weight: 700;
}
.cards { display: grid; gap: 18px; }
.card {
  padding: 25px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); box-shadow: var(--shadow);
}
.card-icon { display: block; margin-bottom: 8px; font-size: 32px; line-height: 1; }
.card p { color: #46544e; font-size: 15.5px; }
.aside-note {
  margin-top: 26px; padding: 20px; border-radius: 12px;
  background: var(--sage-light); color: var(--green-dark); font-size: 15px;
}
.aside-note.warm { background: #fdf9f0; border: 1.5px solid rgba(184, 146, 74, .45); }

/* ---------- 回ごとの案内（週次開催用） ---------- */
.sessions { display: grid; gap: 18px; }
.session {
  position: relative; padding: 24px 22px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
}
.session .when {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px;
  border-radius: 999px; background: var(--gold-light); color: #8a6a2a;
  font-family: "Zen Maru Gothic", sans-serif; font-size: 14px; font-weight: 700;
}
.session h3 { margin-bottom: 8px; font-size: 21px; }
.session p { color: #46544e; font-size: 15.5px; }
.session ul { margin: 12px 0 0; padding-left: 1.3em; color: #46544e; font-size: 15px; }
.session li { margin-bottom: 5px; }

/* ---------- 暗転セクション ---------- */
.reason { background: var(--green); color: #f7f4ed; }
.reason h2 { position: relative; color: #fff; }
.reason h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  margin-top: 22px; border-radius: 4px; background: var(--gold);
}
.reason-copy {
  padding: 25px 22px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px; background: rgba(255, 255, 255, .07);
}
.reason-copy p { margin-bottom: 1.05em; }
.reason-copy p:last-child { margin-bottom: 0; }
.reason-copy .hl { color: #f0dcae; font-weight: 700; }

/* ---------- ステップ ---------- */
.steps { display: grid; gap: 14px; counter-reset: steps; }
.step {
  position: relative; padding: 21px 18px 21px 68px;
  border-radius: 12px; background: var(--paper); box-shadow: 0 3px 14px rgba(36, 79, 65, .055);
  counter-increment: steps;
}
.step::before {
  content: counter(steps); position: absolute; top: 19px; left: 18px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; line-height: 1;
}

/* ---------- FAQ ---------- */
.faq details {
  margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); overflow: hidden;
}
.faq summary {
  position: relative; padding: 17px 46px 17px 20px;
  color: var(--green); font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16.5px; font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; top: 17px; right: 20px; color: var(--gold); font-weight: 900; }
.faq details[open] summary::after { content: "－"; }
.faq .faq-body { padding: 0 20px 20px; color: #46544e; font-size: 15.5px; }

/* ---------- 講師・フッター ---------- */
.profile-box {
  padding: 25px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); box-shadow: var(--shadow);
}
.profile-name {
  margin-bottom: 10px; color: var(--green);
  font-family: "Zen Maru Gothic", sans-serif; font-size: 23px; font-weight: 700;
}
address { margin-top: 25px; font-style: normal; }
address p { margin-bottom: 10px; }
address a { color: var(--green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.final-cta { padding: 72px 0 78px; background: #eef2ed; text-align: center; }
.final-cta h2 { margin-bottom: 26px; }
.limit { color: var(--red); white-space: nowrap; }
.phone-note { margin-top: 17px; color: var(--muted); font-size: 14px; }
.phone-note a { color: var(--green); font-weight: 700; }

footer { padding: 28px 20px; background: var(--green-dark); color: rgba(255, 255, 255, .78); font-size: 13px; text-align: center; }
footer a { color: rgba(255, 255, 255, .9); }
footer .links { margin: 0 0 6px; }

/* ---------- 追従CTA（スマホ） ---------- */
.sticky-cta {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 242, .94);
  border-top: 1px solid rgba(36, 79, 65, .14);
  backdrop-filter: blur(6px);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
}

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .container { width: min(100% - 72px, 860px); }
  .section { padding: 92px 0; }
  .hero { padding: 84px 0 92px; }
  .hero .lead { font-size: 20px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 27px 23px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sessions { grid-template-columns: 1fr 1fr; }
  .cta { width: min(100%, 560px); margin-inline: auto; }
  .outline-button { width: min(100%, 560px); margin-inline: auto; }
  .reason-copy { padding: 34px; }
  .ticket { padding: 30px; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
