:root {
  --bg: #fffdf9;
  --bg-soft: #fdf3ec;
  --ink: #3a3330;
  --muted: #7c726c;
  --line: #ece1d8;
  --accent: #d98b6f;
  --accent-deep: #c2674a;
  --accent-soft: #f6e7df;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.section__eyebrow {
  color: var(--accent-deep);
  letter-spacing: .26em;
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: .7rem;
}
.section__title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--block { width: 100%; padding: 1rem; }
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(194, 103, 74, .8);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -12px rgba(194, 103, 74, .9);
  filter: brightness(1.04);
}
.btn--ghost { border-color: var(--accent); color: var(--accent-deep); background: #fff; }
.btn--ghost:hover { transform: translateY(-3px); background: var(--accent-soft); }
.btn:active { transform: translateY(-1px) scale(.99); }

/* ---------- ナビ ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(8px);
  padding-top: .65rem;
  padding-bottom: .65rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { font-size: 1.2rem; font-weight: 800; }
.nav__logo span { font-size: .82rem; color: var(--accent-deep); margin-left: .35rem; font-weight: 700; }
.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .92rem;
  font-weight: 600;
}
.nav__links a { color: var(--muted); transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta-link {
  padding: .5rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  transition: background .25s ease, transform .25s ease;
}
.nav__cta-link:hover { background: var(--accent-deep); transform: translateY(-2px); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.2rem, 6vw, 5rem) 4rem;
  background:
    radial-gradient(80% 70% at 85% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, #eef3ec, transparent 60%),
    var(--bg);
}
.hero__inner { max-width: 640px; }
.hero__eyebrow { color: var(--accent-deep); font-weight: 700; letter-spacing: .12em; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.1rem, 7vw, 3.8rem); line-height: 1.3; font-weight: 800; }
.hero__lead { margin: 1.4rem 0 2.2rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.12rem); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- 教室について ---------- */
.about { padding: clamp(4rem, 11vw, 7rem) clamp(1.2rem, 6vw, 5rem); }
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__points { list-style: none; margin-top: 1.4rem; display: grid; gap: .6rem; }
.about__points li { font-weight: 600; color: var(--ink); }
.about__photo { position: relative; min-height: 300px; }
.photo-card {
  position: absolute;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  box-shadow: 0 24px 50px -28px rgba(120, 80, 60, .6);
}
.photo-card--1 { inset: 0 30% 30% 0; background: linear-gradient(150deg, #f4dccf, #e9c3b1); }
.photo-card--2 { inset: 30% 0 0 30%; background: linear-gradient(150deg, #e8eee0, #cfdcc4); }

/* ---------- コース ---------- */
.courses { padding: clamp(4rem, 11vw, 7rem) clamp(1.2rem, 6vw, 5rem); background: var(--bg-soft); }
.courses__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.6rem;
  text-align: left;
}
.course {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.course:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -26px rgba(120, 80, 60, .55); }
.course--featured { border-color: var(--accent); }
.course__badge {
  position: absolute;
  top: -12px; left: 1.6rem;
  background: var(--accent);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 999px;
}
.course h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.course__target { color: var(--muted); font-size: .88rem; }
.course__price { font-size: 1.8rem; font-weight: 800; color: var(--accent-deep); margin: .6rem 0 1rem; }
.course__price span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.course ul { list-style: none; display: grid; gap: .5rem; }
.course li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .94rem; }
.course li::before { content: "♪"; position: absolute; left: 0; color: var(--accent); }
.courses__note { margin-top: 1.6rem; color: var(--muted); font-size: .85rem; }

/* ---------- 生徒さんの声 ---------- */
.voice { padding: clamp(4rem, 11vw, 7rem) clamp(1.2rem, 6vw, 5rem); }
.voice__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.voice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; text-align: left; }
.vcard {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
}
.vcard p { margin-bottom: 1rem; }
.vcard cite { color: var(--accent-deep); font-style: normal; font-weight: 700; font-size: .9rem; }

/* ---------- アクセス ---------- */
.access { padding: clamp(4rem, 11vw, 7rem) clamp(1.2rem, 6vw, 5rem); background: var(--bg-soft); }
.access__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.access__list { margin-top: .6rem; }
.access__list dt { font-weight: 700; margin-top: 1rem; color: var(--accent-deep); }
.access__list dd { color: var(--muted); }
.map-mock {
  border-radius: var(--radius);
  min-height: 240px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  letter-spacing: .2em;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #eef3ec, #eef3ec 14px, #e6ede2 14px, #e6ede2 28px);
  border: 1px solid var(--line);
}

/* ---------- お問い合わせ ---------- */
.contact { padding: clamp(4rem, 12vw, 8rem) clamp(1.2rem, 6vw, 5rem); }
.contact__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: .4rem 0 .6rem; }
.contact__inner > p { color: var(--muted); margin-bottom: 2rem; }
.contact__form { text-align: left; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.contact__status { text-align: center; font-weight: 700; min-height: 1.4em; }
.contact__status.is-ok { color: var(--accent-deep); }
.contact__status.is-err { color: #c0392b; }

/* ---------- フッター ---------- */
.footer {
  padding: 2.4rem clamp(1.2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
.footer strong { color: var(--accent-deep); }

/* ---------- トップへ戻る ---------- */
.totop {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  box-shadow: 0 10px 24px -14px rgba(120, 80, 60, .6);
  transition: opacity .3s ease, transform .3s ease, background .25s ease, color .25s ease;
  z-index: 40;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { background: var(--accent); color: #fff; }

/* ---------- スクロール・リビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .about__inner, .access__inner { grid-template-columns: 1fr; }
  .courses__grid, .voice__grid { grid-template-columns: 1fr; }
  .about__photo { min-height: 240px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(76vw, 300px);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: rgba(255, 253, 249, .98);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform .35s ease;
    font-size: 1.1rem;
    box-shadow: -10px 0 40px -20px rgba(120, 80, 60, .5);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
