/* ========================================
   もみじ園 デモサイト — styles
   紅葉テーマ：深緑 × 朱 × オレンジ
   ======================================== */

:root {
  --green-900: #143626;
  --green-700: #1f5e3f;
  --green-600: #2d6a4f;
  --green-100: #e7f0ea;
  --orange:    #e07a1f;
  --vermilion: #c8472c;
  --amber:     #f0a93f;

  --ink:      #28231f;
  --ink-soft: #5b5249;
  --line:     #e8e0d6;
  --bg:       #ffffff;
  --bg-warm:  #faf6f0;
  --bg-tint:  #f4f7f3;

  --maple-grad: linear-gradient(100deg, var(--orange) 0%, var(--vermilion) 48%, var(--green-700) 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px -12px rgba(40, 35, 31, .18);
  --shadow-lg: 0 24px 60px -24px rgba(40, 35, 31, .35);

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.grad {
  background: var(--maple-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- デモ告知バー ---------- */
.demo-banner {
  background: var(--green-900);
  color: #f3ede4;
  font-size: 12.5px;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.demo-banner__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 3px rgba(240,169,63,.25);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__leaf { display: grid; place-items: center; color: var(--vermilion); }
.brand__leaf svg { fill: currentColor; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-head); font-weight: 900; font-size: 19px; color: var(--green-700); }
.brand__text em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px; transition: .2s;
}
.nav a:hover { color: var(--green-700); background: var(--green-100); }
.nav__cta {
  background: var(--green-700); color: #fff !important; font-weight: 700;
  padding: 9px 18px !important; margin-left: 6px;
}
.nav__cta:hover { background: var(--green-900) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--green-700); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--green-900); border: 1.5px solid var(--green-600); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 40px; font-size: 17px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(224,122,31,.16), transparent 55%),
    radial-gradient(110% 80% at 0% 110%, rgba(31,94,63,.18), transparent 55%),
    var(--bg-warm);
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--maple-grad);
}
.hero__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 84px 22px 92px;
}
.hero__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--vermilion);
  text-transform: uppercase; margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(44px, 9vw, 86px); line-height: 1.05; color: var(--green-900);
  letter-spacing: -.01em;
}
.hero__sub { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px,3vw,26px); color: var(--green-600); margin-top: 6px; }
.hero__lead { font-size: 17px; color: var(--ink-soft); max-width: 33em; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin-top: 48px;
}
.hero__facts li {
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 22px; min-width: 130px;
}
.hero__facts strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--green-700); }
.hero__facts span { font-size: 12.5px; color: var(--ink-soft); }

/* 浮かぶ葉 */
.hero__leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.float-leaf { position: absolute; width: 42px; height: 42px; opacity: .14; animation: drift 14s ease-in-out infinite; }
.float-leaf--1 { top: 14%; right: 12%; fill: var(--orange); }
.float-leaf--2 { top: 52%; right: 26%; width: 28px; height: 28px; fill: var(--vermilion); animation-delay: -4s; }
.float-leaf--3 { top: 30%; right: 40%; width: 34px; height: 34px; fill: var(--green-600); animation-delay: -8s; }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(18deg); }
}

/* ---------- セクション共通 ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { margin-bottom: 46px; max-width: 46em; }
.section__head--center { text-align: center; margin-inline: auto; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vermilion); margin-bottom: 10px;
}
.kicker--light { color: var(--amber); }
.section__head h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(28px, 5vw, 42px); color: var(--green-900); line-height: 1.2;
}
.section__head h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--maple-grad); margin-top: 16px;
}
.section__head--center h2::after { margin-inline: auto; }
.section__desc { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }

/* ---------- 教育理念 ---------- */
.philosophy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.ph-img {
  aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--green-100), #f7ede0);
  border: 1px solid var(--line);
}
.ph-img::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--green-700);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; opacity: .65;
}
.img-note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.philosophy__text .lead { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--green-700); line-height: 1.6; margin-bottom: 16px; }
.philosophy__text p { color: var(--ink-soft); margin-bottom: 14px; }
.philosophy__text .en { font-size: 14px; color: #8a8074; border-left: 3px solid var(--green-100); padding-left: 16px; }

/* ---------- カード（5つの柱） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--green-100); margin-bottom: 16px;
  color: var(--green-700);
}
.card__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.card__icon svg .fill { fill: currentColor; stroke: none; }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-900); margin-bottom: 8px; }
.card h3 em { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--vermilion); letter-spacing: .06em; margin-top: 2px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 一日の流れ ---------- */
.timeline { list-style: none; position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 100px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), var(--green-600)); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 11px 0; align-items: baseline; }
.timeline li::before {
  content: ""; position: absolute; left: 94px; top: 14px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--vermilion);
}
.timeline__time { font-family: var(--font-head); font-weight: 700; color: var(--green-700); text-align: right; font-size: 15px; }
.timeline__act { color: var(--ink); font-size: 15.5px; padding-left: 6px; }

/* ---------- 入園・料金 ---------- */
.admissions { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.panel, .pricing {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.panel h3, .pricing h3 { font-family: var(--font-head); font-weight: 900; font-size: 21px; color: var(--green-900); margin-bottom: 6px; }
.pricing h3 em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--vermilion); margin-left: 8px; }
.panel__note { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }

/* フォーム */
.form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.form label span { font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: 11.5px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45,106,79,.14);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__msg {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--green-100); color: var(--green-900); font-size: 13.5px; font-weight: 500;
}

/* 料金 */
.price-list { list-style: none; margin-bottom: 20px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list span { font-size: 14.5px; color: var(--ink-soft); }
.price-list strong { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--vermilion); white-space: nowrap; }
.price-list small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.price-note { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 13.5px; }
.price-note p { margin-bottom: 8px; }
.price-note p:last-child { margin-bottom: 0; }
.muted { color: #8a8074; font-size: 12.5px; }
.docs { margin-top: 16px; }
.docs summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--green-700); }
.docs p { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 年間予定 ---------- */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.schedule h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-900); margin-bottom: 16px; }
.schedule h3 em { font-style: normal; font-size: 12px; color: var(--vermilion); margin-left: 8px; }
.schedule h3.mt { margin-top: 30px; }
.event-list { list-style: none; }
.event-list li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.event-list time { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--green-700); }
.event-list span em { font-style: normal; display: block; font-size: 12px; color: var(--ink-soft); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--green-100); color: var(--green-700); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.schedule .muted { margin-top: 18px; }

/* ---------- 寄付 ---------- */
.section--donation { background: linear-gradient(160deg, var(--green-900), #0d2719); color: #f1ece4; position: relative; overflow: hidden; }
.section--donation::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px;
  background: var(--maple-grad); filter: blur(90px); opacity: .35; border-radius: 50%;
}
.section--donation h2 { color: #fff; }
.section--donation .section__desc { color: #c7d6cd; }
.donation { max-width: 640px; margin-inline: auto; text-align: center; position: relative; }
.donation__lead { color: #d6e2db; margin-bottom: 34px; }
.progress {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 24px; text-align: left; margin-bottom: 32px;
}
.progress__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #c7d6cd; margin-bottom: 12px; }
.progress__num strong { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--amber); }
.progress__bar { height: 16px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--maple-grad); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.progress__fill.is-on { width: var(--target); }
.progress__cap { font-size: 13px; color: #b9c8c0; margin-top: 14px; }
.progress__cap strong { color: var(--amber); }

.donation__amounts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.amount {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  background: rgba(255,255,255,.07); color: #f1ece4; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 12px 26px; cursor: pointer; transition: .2s;
}
.amount:hover { border-color: var(--amber); }
.amount--on { background: var(--amber); color: var(--green-900); border-color: var(--amber); }
.donation__msg { margin-top: 18px; background: rgba(240,169,63,.15); border: 1px solid rgba(240,169,63,.4); color: #f4d59a; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.donation__small { font-size: 12.5px; color: #9fb0a7; margin-top: 22px; }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact__info dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; margin-bottom: 22px; }
.contact__info dt { font-family: var(--font-head); font-weight: 700; color: var(--green-700); font-size: 14px; }
.contact__info dt span { display: block; font-weight: 400; font-size: 11px; color: var(--ink-soft); }
.contact__info dd { font-size: 14.5px; color: var(--ink); }
.contact__info dd a { color: var(--vermilion); text-decoration: underline; text-underline-offset: 2px; }
.map-placeholder {
  height: 200px; border-radius: var(--radius); border: 1px solid var(--line); position: relative;
  background: repeating-linear-gradient(45deg, #eef3ee 0 18px, #f6f9f5 18px 36px);
}
.map-placeholder::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--green-700); font-family: var(--font-head); font-weight: 700; font-size: 13px; opacity: .6;
}
.contact__form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact__form h3 { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--green-900); margin-bottom: 18px; }

/* ---------- フッター ---------- */
.footer { background: var(--green-900); color: #d6e2db; padding: 46px 0 40px; }
.footer__inner { display: flex; flex-direction: column; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .brand__leaf { color: var(--amber); }
.footer__brand strong { font-family: var(--font-head); font-weight: 900; font-size: 17px; color: #fff; }
.footer__brand p { font-size: 13px; color: #a9bbb1; margin-top: 2px; }
.footer__demo { font-size: 12px; color: #8ba097; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 920px) {
  .philosophy, .admissions, .schedule, .contact { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 92px 20px 30px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: var(--shadow-lg); z-index: 40;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
  .nav__cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; z-index: 60; }

  .section { padding: 60px 0; }
  .hero__inner { padding: 60px 22px 70px; }
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 76px; }
  .timeline li { grid-template-columns: 60px 1fr; gap: 30px; }
  .timeline li::before { left: 70px; }
  .event-list li { grid-template-columns: 110px 1fr; }
  .hero__facts li { flex: 1 1 calc(50% - 14px); min-width: 0; }
}

@media (max-width: 380px) {
  .container, .header__inner, .hero__inner { padding-inline: 16px; }
  .hero__facts { gap: 10px; }
  .panel, .pricing, .contact__form { padding: 22px; }
}

/* ---------- アクセシビリティ ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .progress__fill { transition: none !important; }
}
.btn:focus-visible, .nav a:focus-visible, .amount:focus-visible, a:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px;
}
