/* =========================================================
   さくらダンススクール（デモ） — styles.css
   色・角丸・フォントは :root の変数を変えるだけで教室ごとに着せ替えできます。
   ========================================================= */

:root {
  --ink: #1f2440;
  --ink-2: #474d6b;
  --muted: #6b7090;
  --bg: #fffaf7;
  --surface: #ffffff;
  --tint: #fff2f5;
  --line: #efe4e1;

  --accent: #d43d63;          /* ボタン・強調（白文字とのコントラスト 4.5:1 以上） */
  --accent-hover: #b92f53;
  --accent-soft: #ffe3ea;
  --grad-a: #ff9fb6;
  --grad-b: #ffc9a9;
  --line-green: #06c755;

  --ok-fg: #1c7a51;   --ok-bg: #e2f4ea;
  --few-fg: #8a5300;  --few-bg: #fff0d4;
  --full-fg: #62667a; --full-bg: #eceef3;
  --error: #b3261e;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 36, 64, .05), 0 10px 28px rgba(31, 36, 64, .07);
  --shadow-lg: 0 24px 60px rgba(212, 61, 99, .16);

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: .03em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #6f9bff; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-only { display: inline; }
@media (max-width: 640px) { .pc-only { display: none; } }

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner button {
  background: none;
  border: 0;
  padding: 0 0 0 6px;
  color: #ffc2d1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 247, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .04em;
}
.brand-mark { width: 32px; height: 32px; color: var(--accent); }
.site-nav { margin-left: auto; display: flex; gap: 2px; }
.site-nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; border-radius: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .header-cta { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(212, 61, 99, .28); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-green); }
.btn-line .icon { color: var(--line-green); }
.btn-line:hover { background: #effbf3; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 80px;
  background:
    radial-gradient(900px 480px at 88% -8%, #ffdbe4 0%, transparent 62%),
    radial-gradient(700px 380px at -8% 108%, #ffe8da 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--surface); border: 1px solid var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 62px); line-height: 1.3; margin: 20px 0 18px; }
.hero h1 .hl { background: linear-gradient(transparent 64%, var(--accent-soft) 64%); padding: 0 .05em; }
.lead { font-size: clamp(15px, 1.8vw, 18px); color: var(--ink-2); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 10px; font-size: 14px; font-weight: 700;
}
.hero-badges .icon { width: 18px; height: 18px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-blob {
  position: absolute; inset: 6%;
  border-radius: 44% 56% 54% 46% / 46% 42% 58% 54%;
  background: linear-gradient(140deg, var(--grad-a), var(--grad-b));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-flower {
  position: absolute; width: 78%; height: 78%; left: 11%; top: 11%;
  color: rgba(255, 255, 255, .5);
  animation: spin 80s linear infinite;
}
.hero-flower.small { width: 26%; height: 26%; left: auto; right: 4%; top: 6%; color: rgba(255, 255, 255, .7); animation-duration: 40s; animation-direction: reverse; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 16px; padding: 10px 14px 10px 10px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.4;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.fc-1 { left: -2%; top: 16%; }
.fc-2 { right: -4%; top: 46%; animation-delay: -2s; }
.fc-3 { left: 6%; bottom: 6%; animation-delay: -4s; }

.petals { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.petals span {
  position: absolute; top: -24px;
  width: 12px; height: 10px;
  background: #ffc1d0;
  border-radius: 150% 0 150% 0;
  opacity: .8;
  animation: fall linear infinite;
}
.petals span:nth-child(1) { left: 8%;  animation-duration: 14s; animation-delay: -2s; }
.petals span:nth-child(2) { left: 22%; animation-duration: 18s; animation-delay: -9s; transform: scale(.8); }
.petals span:nth-child(3) { left: 41%; animation-duration: 16s; animation-delay: -5s; }
.petals span:nth-child(4) { left: 58%; animation-duration: 20s; animation-delay: -13s; }
.petals span:nth-child(5) { left: 74%; animation-duration: 15s; animation-delay: -7s; }
.petals span:nth-child(6) { left: 90%; animation-duration: 19s; animation-delay: -1s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(40px, 50vh) rotate(180deg); }
  100% { transform: translate(-10px, 110vh) rotate(360deg); }
}

@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 360px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 300px; }
  .float-card { font-size: 12px; padding: 8px 10px 8px 8px; }
  .float-card b { font-size: 13px; }
  .fc-icon { width: 32px; height: 32px; }
  .fc-2 { right: -2%; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 12px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 28px; } }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- news ---------- */
.news { padding: 8px 0 24px; position: relative; z-index: 2; margin-top: -40px; }
.news-card { padding: 22px 26px; display: grid; grid-template-columns: 180px 1fr; gap: 8px 28px; align-items: start; }
.news-head h2 { font-size: 20px; }
.news-updated { font-size: 12px; color: var(--muted); margin-top: 2px; }
.news-list { list-style: none; }
.news-item + .news-item { border-top: 1px dashed var(--line); }
.news-item details > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0;
}
.news-item details > summary::-webkit-details-marker { display: none; }
.news-item time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-tag { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #eef1f8; color: var(--ink-2); white-space: nowrap; }
.news-tag.tag-campaign { background: var(--accent-soft); color: #a8264a; }
.news-tag.tag-event { background: #e6f1ff; color: #1f55a8; }
.news-title { font-weight: 500; font-size: 15px; line-height: 1.6; }
.news-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.news-item details[open] .news-chev { transform: rotate(180deg); }
.news-item details p { font-size: 14px; color: var(--ink-2); padding: 0 0 12px; }
.news-empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
@media (max-width: 760px) {
  .news { margin-top: -28px; }
  .news-card { grid-template-columns: 1fr; padding: 18px 18px 8px; }
  .news-item details > summary { grid-template-columns: auto 1fr auto; row-gap: 2px; }
  .news-item .news-title { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 56px; }
.course { padding: 22px 18px; }
.course-badge {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff;
  margin-bottom: 12px;
}
.course h3 { font-size: 17px; }
.course .age { font-size: 12px; font-weight: 700; color: var(--accent); margin: 2px 0 8px; }
.course p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 1024px) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr 1fr; } .course { padding: 18px 14px; } }

/* ---------- timetable ---------- */
.tt-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 24px; }
.tt-head h3 { font-size: 22px; }
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.timetable { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.day-col { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.day-head { display: flex; align-items: baseline; gap: 2px; padding: 0 2px 4px; border-bottom: 2px solid var(--accent-soft); }
.day-name { font-size: 22px; }
.day-head small { font-size: 12px; color: var(--muted); }
.class-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fffdfc; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s ease, transform .15s ease;
}
.class-card:hover { border-color: #f3b6c5; }
.class-time { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.class-time span { font-weight: 500; font-size: 13px; color: var(--muted); }
.class-name { font-size: 15.5px; line-height: 1.5; }
.class-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.class-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 8px; }
.status { font-style: normal; display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.4; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-open { color: var(--ok-fg); background: var(--ok-bg); }
.status-few  { color: var(--few-fg); background: var(--few-bg); }
.status-full { color: var(--full-fg); background: var(--full-bg); }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.day-empty { font-size: 12.5px; color: var(--muted); padding: 8px 2px; }
.tt-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

@media (max-width: 1100px) { .timetable { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .timetable { grid-template-columns: 1fr; }
  .day-col.is-empty { display: none; }
  .day-col { padding: 14px 14px 16px; }
  .class-card { display: grid; grid-template-columns: 92px 1fr; column-gap: 12px; }
  .class-card .class-time { grid-row: 1 / span 3; line-height: 1.35; }
  .class-card .class-time span { display: block; }
  .class-card .class-foot { grid-column: 2; }
}

/* ---------- flow ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 24px 20px; position: relative; }
.step-num { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.step h3 { font-size: 18px; margin: 4px 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.auto-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #1f55a8; background: #e6f1ff;
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
.auto-tag .icon { width: 12px; height: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- price ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { padding: 30px 24px 26px; text-align: center; position: relative; }
.price-card.featured { outline: 2px solid var(--accent); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-weight: 700; font-size: 15px; }
.price-sub { font-size: 12.5px; color: var(--muted); }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 38px; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: 14px; margin-left: 2px; }
.price-tax { font-size: 12px; color: var(--muted); }
.fees { margin-top: 18px; padding: 8px 24px; }
.fees dl { display: grid; grid-template-columns: 160px 1fr; }
.fees dt, .fees dd { padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.fees dt { font-weight: 700; }
.fees dd { color: var(--ink-2); }
.fees dt:last-of-type, .fees dd:last-of-type { border-bottom: 0; }
.fees .strike { text-decoration: line-through; color: var(--muted); margin-right: 6px; }
.fees .em { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; gap: 22px; }
  .fees { padding: 4px 18px; }
  .fees dl { grid-template-columns: 1fr; }
  .fees dt { border-bottom: 0; padding-bottom: 0; }
  .fees dd { padding-top: 2px; }
}

/* ---------- teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teacher { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.teacher-top { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 68px; height: 68px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff;
}
.teacher h3 { font-size: 19px; }
.teacher .role { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.teacher blockquote { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.teacher .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher .tags span { font-size: 12px; font-weight: 700; background: var(--tint); color: #a8264a; padding: 2px 10px; border-radius: 999px; }
@media (max-width: 900px) { .teacher-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; font-weight: 700; font-size: 15.5px; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-head); color: var(--accent); font-size: 18px; flex: none; }
.faq-item summary .icon { margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 20px 50px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- trial form ---------- */
.trial { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.trial-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.trial-aside h2 { font-size: clamp(28px, 4vw, 38px); margin: 6px 0 14px; }
.trial-aside > p { color: var(--ink-2); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.check-list .icon { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
.tel-box { font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 18px; }
.tel-box b { font-size: 20px; font-family: var(--font-head); color: var(--ink); display: block; font-variant-numeric: tabular-nums; }

.form-card { padding: 32px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field > label, .field > .label { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.req { color: #a8264a; background: var(--accent-soft); }
.opt { color: var(--muted); background: #eef0f5; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #e3d9d6; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 100px; resize: vertical; line-height: 1.7; }
select.input {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select.input:disabled { background-color: #f6f3f2; color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 6px var(--accent-soft); border-color: var(--accent); } }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; margin: 6px 0 20px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; }
.form-status { margin-top: 12px; font-size: 14px; color: var(--error); text-align: center; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }

.success { text-align: center; padding: 8px 4px; outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: grid; place-items: center; }
.success-icon .icon { width: 32px; height: 32px; }
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success > p { color: var(--ink-2); font-size: 15px; }
.success-detail { text-align: left; background: var(--tint); border-radius: 14px; padding: 14px 18px; margin: 18px 0; display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; font-size: 14px; }
.success-detail dt { color: var(--muted); }
.success-detail dd { font-weight: 700; }
.success-next { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.success-next li { display: flex; gap: 8px; align-items: flex-start; }
.success-next .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.success-demo { font-size: 12.5px; color: #1f55a8; background: #e6f1ff; padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; }

@media (max-width: 900px) { .trial-wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .form-card { padding: 22px 18px; } .field-row { grid-template-columns: 1fr; } }

/* ---------- access ---------- */
.access-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.map {
  position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden;
  background-color: #f4efe9;
  background-image:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 58%, #fff 58%, #fff 63%, transparent 63%),
    linear-gradient(35deg, transparent 49%, #fff 49%, #fff 51.5%, transparent 51.5%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, .7) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .7) 46px 48px);
  box-shadow: var(--shadow);
}
.map-park { position: absolute; left: 8%; top: 12%; width: 26%; height: 28%; border-radius: 18px; background: #d9efd9; }
.map-station {
  position: absolute; right: 9%; bottom: 14%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px;
}
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map-pin .bubble { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px rgba(212, 61, 99, .35); white-space: nowrap; }
.map-pin .dot { width: 14px; height: 14px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; margin-top: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.map-label { position: absolute; left: 12px; bottom: 12px; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 2px 8px; border-radius: 6px; }
.access-info { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.access-info dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: 14.5px; }
.access-info dt { font-weight: 700; color: var(--muted); }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; } .map { min-height: 240px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9dcea; padding: 48px 0 40px; font-size: 13.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #ff9fb6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: #d9dcea; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #a9aec6; font-size: 12px; }
.footer-bottom button { background: none; border: 0; padding: 0; color: #ffc2d1; text-decoration: underline; cursor: pointer; font-size: 12px; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
.mobile-cta .btn { min-height: 48px; padding: 10px 14px; font-size: 14.5px; white-space: nowrap; }
.mobile-cta.is-hidden { transform: translateY(110%); }
@media (max-width: 900px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* とても狭い画面（小型スマホ・埋め込み表示）では、教室名を1行に収め、LINEボタンはアイコンだけにする */
@media (max-width: 360px) {
  .site-header .brand { font-size: 14.5px; gap: 8px; }
  .site-header .brand span { white-space: nowrap; }
  .mobile-cta .btn-line { padding: 10px 14px; }
  .mobile-cta .btn-line .btn-label { display: none; }
  .hero h1 { font-size: min(30px, 10.4vw); }
}

/* ---------- how-it-works dialog ---------- */
dialog.how {
  border: 0; padding: 0; border-radius: 24px;
  width: min(580px, 100% - 32px); max-height: min(88vh, 780px);
  color: var(--ink); background: var(--surface);
  box-shadow: 0 30px 80px rgba(20, 22, 40, .3);
}
dialog.how::backdrop { background: rgba(31, 36, 64, .5); }
.how-inner { padding: 28px; overflow: auto; max-height: inherit; }
.how-inner h2 { font-size: 22px; margin: 4px 0 8px; }
.how-inner > p { font-size: 14.5px; color: var(--ink-2); }
.how-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.how-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.how-list .how-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.how-list li.next .how-icon { background: #e6f1ff; color: #1f55a8; }
.how-list h3 { font-size: 15.5px; }
.how-list p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }
.mode-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 10px 14px; border-radius: 12px; background: #eef0f5; color: var(--ink-2); }
.mode-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0b8; flex: none; }
.mode-badge.is-live { background: var(--ok-bg); color: var(--ok-fg); }
.mode-badge.is-live::before { background: var(--ok-fg); }
.mode-badge.is-error { background: var(--few-bg); color: var(--few-fg); }
.mode-badge.is-error::before { background: var(--few-fg); }
.how-close { margin-top: 18px; width: 100%; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 100;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.6;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- skeleton ---------- */
.skeleton {
  height: 18px; margin: 12px 0; border-radius: 8px;
  background: linear-gradient(90deg, #f3eceb 0%, #fbf7f6 50%, #f3eceb 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.skeleton.tall { height: 180px; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals, .hero-flower, .float-card { animation: none !important; }
  .petals { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
