/* ============================================================
   株の勉強会 LP — warm, calm palette for women in their 30s
   ============================================================ */
:root {
  --bg: #faf8f5;
  --bg-soft: #f4f1ec;
  --bg-peach: #f9e9dc;
  --card: #ffffff;
  --card-soft: #f5f2ed;
  --ink: #2b2926;
  --ink-soft: #6f6a63;
  --line: #e4ded6;
  --accent: #e08e5c;
  --accent-deep: #d07b46;
  --accent-soft: #f5d9c3;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(90, 70, 50, .10);
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif-en: "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
}

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

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}
.container-narrow { width: min(760px, 92%); }
.center { text-align: center; }

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-bg { background: var(--bg-soft); }

/* ---------- typography helpers ---------- */
.eyebrow-en {
  font-family: var(--font-serif-en);
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #a39c92;
  margin-bottom: 14px;
}
.eyebrow-en.center { text-align: center; }
.eyebrow-en.accent { color: var(--accent); }

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.5;
  margin-bottom: 18px;
}
.section-lead { color: var(--ink-soft); margin-bottom: 40px; }

.accent-text { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  border: none;
  border-radius: 6px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224, 142, 92, .35);
}
.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 46px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-header { padding: 10px 24px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 248, 245, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(250, 248, 245, .95); }
.header-inner {
  width: min(1200px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.brand-ja { font-weight: 900; font-size: 17px; letter-spacing: .06em; }
.brand-en {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: .34em;
  color: #a39c92;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center right / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0) 0%, var(--bg) 100%);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(250, 248, 245, .97) 0%,
    rgba(250, 248, 245, .92) 30%,
    rgba(250, 248, 245, .55) 52%,
    rgba(250, 248, 245, .05) 78%);
}
.hero-inner {
  position: relative;
  width: min(1080px, 92%);
  margin-inline: auto;
}
.hero-content { max-width: 520px; }
.hero-lead-accent {
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero-copy {
  font-size: clamp(15px, 2vw, 17px);
  color: #504b44;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-cta-note { font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }
.hero-en-serif, .closing-en-serif {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .16em;
  color: #b0a89d;
}

/* ---------- worries ---------- */
.worries .section-title { margin-bottom: 48px; }
.worry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.worry-card {
  background: var(--card-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  font-size: 14.5px;
  color: #47433d;
}
.worry-card .worry-num {
  display: block;
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}
.worries-answer {
  text-align: center;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
}

/* ---------- curriculum ---------- */
.curriculum-table { border-top: 2px solid var(--ink); }
.cur-row {
  display: grid;
  grid-template-columns: 110px 250px 1fr;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cur-head {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .1em;
  border-bottom: 1px solid var(--ink);
}
.cur-time { color: var(--accent); font-weight: 700; font-size: 14px; }
.cur-head .cur-time { color: var(--ink-soft); font-weight: 400; }
.cur-theme { font-weight: 700; font-size: 15.5px; }
.cur-head .cur-theme { font-weight: 400; }
.cur-desc { color: var(--ink-soft); font-size: 14px; }

/* ---------- instructor ---------- */
.instructor { background: var(--bg-peach); }
.instructor-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.instructor-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.instructor-name {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 900;
  letter-spacing: .08em;
}
.instructor-name-en {
  font-family: var(--font-serif-en);
  font-style: italic;
  color: #b39a83;
  margin: 4px 0 22px;
  font-size: 14px;
  letter-spacing: .12em;
}
.instructor-bio { color: #55504a; font-size: 15.5px; }

/* ---------- price ---------- */
.price .section-title { margin-bottom: 52px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 26px;
}
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card-featured { background: var(--accent-soft); }
.price-name { font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.price-sub { font-size: 13px; color: var(--ink-soft); margin: 4px 0 22px; }
.price-amount { margin-bottom: 20px; }
.price-amount strong {
  font-size: clamp(36px, 5vw, 44px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .02em;
}
.price-unit { font-size: 14px; color: var(--ink-soft); margin-left: 6px; }
.price-features { list-style: none; margin-bottom: 30px; flex: 1; }
.price-features li {
  padding: 12px 2px;
  border-bottom: 1px solid rgba(120, 100, 80, .14);
  font-size: 14.5px;
}
.price-note {
  text-align: center;
  margin-top: 34px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 40px 22px 2px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-q {
  font-family: var(--font-serif-en);
  font-style: italic;
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0;
}
.faq-a {
  padding: 0 2px 24px 33px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- closing ---------- */
.closing { background: var(--bg-peach); }
.closing-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.closing-copy { color: #55504a; margin-bottom: 34px; }
.closing .btn { margin-bottom: 30px; }
.closing-en-serif { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(43, 41, 38, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(14px);
  transition: transform .3s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  font-size: 30px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.modal-title { font-size: 24px; font-weight: 900; margin-bottom: 26px; letter-spacing: .06em; }

.plan-select { border: none; margin-bottom: 24px; }
.plan-select legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.plan-option { display: block; margin-bottom: 10px; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "detail price";
  gap: 0 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.plan-option input:checked + .plan-option-body {
  border-color: var(--accent);
  background: #fdf3ea;
}
.plan-option input:focus-visible + .plan-option-body { outline: 2px solid var(--accent); }
.plan-option-name { grid-area: name; font-weight: 700; font-size: 15px; }
.plan-option-detail { grid-area: detail; font-size: 12px; color: var(--ink-soft); }
.plan-option-price {
  grid-area: price;
  align-self: center;
  font-weight: 900;
  color: var(--accent);
  font-size: 17px;
}
.plan-option-price small { font-size: 11px; font-weight: 400; color: var(--ink-soft); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input,
.form-field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-error {
  color: #c0492f;
  font-size: 13px;
  margin-bottom: 14px;
}
.modal-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.8;
}

/* ---------- scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .worry-grid { grid-template-columns: 1fr; }
  .instructor-inner { grid-template-columns: 1fr; }
  .instructor-photo { max-width: 420px; margin-inline: auto; }
  .price-grid { grid-template-columns: minmax(0, 460px); }
  .cur-row { grid-template-columns: 84px 1fr; }
  .cur-desc { grid-column: 2; font-size: 13px; }
  .cur-head .cur-desc { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-en { display: none; }
  .hero { min-height: 90vh; }
  .hero-photo { background-position: 72% center; }
  .hero-photo::before {
    background: linear-gradient(180deg,
      rgba(250, 248, 245, .95) 0%,
      rgba(250, 248, 245, .82) 46%,
      rgba(250, 248, 245, .30) 100%);
  }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .modal { padding: 32px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
