/* ==========================================================
   スマイルキッズマネージャー Design System
   base: 白 / primary: 緑(teal) / secondary: ピンク / accent: オレンジ(CTA専用)
   font: Zen Maru Gothic 1系統
   ========================================================== */

:root {
  /* colors */
  --green-700: #0a6e62;
  --green-600: #0d8a7a;
  --green-500: #14a390;
  --green-200: #bfe8e0;
  --green-100: #e3f5f0;
  --pink-500: #f27fa0;
  --pink-400: #f59ab4;
  --pink-100: #fdedf3;
  --orange-600: #f0762f;
  --orange-500: #ff914c;
  --orange-100: #fff0e3;
  --lavender: #e2a9f0;
  --teal-logo: #5ce1e6;
  --ink: #4a443e;
  --ink-light: #8a8178;
  --bg: #fffdf8;
  --cream: #fff6ea;
  --white: #ffffff;
  --line-green: #06c755;

  /* shape */
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(74, 68, 62, 0.10);
  --shadow-card: 0 6px 20px rgba(74, 68, 62, 0.08);

  /* layout */
  --container: 1120px;
  --header-h: 84px;
  --header-h-sp: 64px;
}

/* ---------- reset (lite) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  font-size: 16px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.6; letter-spacing: 0.06em; }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en {
  display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--pink-500); text-transform: uppercase; margin-bottom: 10px;
}
.sec-head .ja { font-size: 34px; color: var(--ink); }
.sec-head .ja .accent { color: var(--green-600); display: inline-block; }
.sec-head.on-dark .ja { color: var(--white); }
.sec-lead { text-align: center; max-width: 720px; margin: -24px auto 48px; }

.marker { background: linear-gradient(transparent 62%, var(--green-200) 62%); padding: 0 2px; }
.marker-pink { background: linear-gradient(transparent 62%, var(--pink-100) 55%); padding: 0 2px; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-100); }
.section--pink { background: var(--pink-100); }

/* wave divider: place <div class="wave wave--cream"> at section bottom */
.wave { display: block; width: 100%; height: 60px; line-height: 0; }
.wave svg { width: 100%; height: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-pill);
  font-weight: 700; letter-spacing: 0.06em;
  padding: 18px 40px; font-size: 17px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--cta {
  background: var(--orange-500); color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 145, 76, 0.35);
}
.btn--cta:hover { background: var(--orange-600); }
.btn--line {
  background: var(--line-green); color: var(--white);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.28);
}
.btn--ghost {
  background: var(--white); color: var(--green-600);
  border: 2px solid var(--green-500);
}
.btn--ghost:hover { background: var(--green-100); }
.btn .icon { width: 22px; height: 22px; flex: none; }

/* ---------- badges / pills ---------- */
.pill {
  display: inline-block; border-radius: var(--radius-pill);
  padding: 4px 18px; font-size: 14px; font-weight: 700;
  background: var(--green-100); color: var(--green-700);
}
.pill--pink { background: var(--pink-100); color: var(--pink-500); }

/* ---------- card ---------- */
.card {
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 36px 32px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(74, 68, 62, 0.06);
}
.site-header .inner {
  max-width: 1560px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex-shrink: 0; }
.brand img { width: 56px; height: 56px; border-radius: 14px; }
.brand .name { font-size: 18px; font-weight: 900; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.brand .name small { display: none; font-size: 11px; font-weight: 700; color: var(--green-600); letter-spacing: 0.1em; }

.gnav ul { display: flex; gap: 2px; }
.gnav a {
  display: block; padding: 10px 7px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  border-radius: 12px; transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--green-600); background: var(--green-100); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-tel { text-align: right; line-height: 1.3; display: none; white-space: nowrap; }
@media (min-width: 1560px) {
  .header-tel { display: block; }
  .brand .name small { display: block; }
}
.header-tel .num { font-size: 20px; font-weight: 900; color: var(--green-700); }
.header-tel .note { font-size: 11px; color: var(--ink-light); display: block; }
.header-cta .btn { padding: 13px 22px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1360px) {
  .brand .name { font-size: 15px; }
  .brand img { width: 48px; height: 48px; }
}

/* hamburger (SP) */
.menu-toggle { display: none; }

/* main offset for fixed header */
main { padding-top: var(--header-h); }

/* ---------- drawer (SP) ---------- */
.drawer { display: none; }

/* ---------- SP fixed bottom bar ---------- */
.sp-fixed-bar { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-700); color: var(--white); padding: 72px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer-brand .name { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; opacity: 0.9; }
.footer-nav ul { display: grid; gap: 10px; font-size: 14.5px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-sns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.footer-sns a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); transition: background 0.2s;
}
.footer-sns a:hover { background: rgba(255, 255, 255, 0.3); }
.footer-sns svg { width: 22px; height: 22px; fill: var(--white); }
.copyright { text-align: center; font-size: 12px; opacity: 0.75; margin-top: 56px; }

/* ---------- FV (top hero) ---------- */
.fv {
  position: relative; overflow: hidden; padding: 48px 0 0;
  background:
    radial-gradient(ellipse 900px 600px at 82% 30%, rgba(20, 163, 144, 0.12), transparent 65%),
    radial-gradient(ellipse 700px 500px at 8% 85%, rgba(242, 127, 160, 0.12), transparent 65%),
    linear-gradient(135deg, #eaf8f4 0%, #fffdf8 48%, #fdf0f4 100%);
}
.fv::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20, 163, 144, 0.10) 2.5px, transparent 2.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 55%);
}
.fv .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 84px;
  display: grid; grid-template-columns: 45% 55%; align-items: center; gap: 24px;
  min-height: min(640px, calc(100vh - var(--header-h)));
}
.fv-copy { position: relative; z-index: 2; }
.fv-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.fv-slide-copy { position: relative; min-height: 220px; }
.fv-slide-copy .slide-txt {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; visibility: hidden;
}
.fv-slide-copy .slide-txt.is-active { opacity: 1; visibility: visible; }
.fv-catch {
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; line-height: 1.75;
  color: var(--ink); margin-bottom: 16px;
}
.fv-catch .hl {
  color: var(--green-600);
  background: linear-gradient(transparent 68%, rgba(20, 163, 144, 0.22) 68%);
  padding: 0 2px;
}
.fv-sub { font-size: 15.5px; line-height: 2.1; color: var(--ink-light); }
.fv-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.fv-cta .btn { min-width: 268px; }

.fv-visual { position: relative; z-index: 1; }
.fv-visual::before {
  content: ""; position: absolute; z-index: -1;
  top: -4%; right: -3%; bottom: 10%; width: 88%;
  border-radius: 62% 38% 46% 54% / 42% 56% 44% 58%;
  background: linear-gradient(150deg, var(--green-200), var(--green-100) 70%);
  opacity: 0.75;
}
.fv-visual::after {
  content: ""; position: absolute; z-index: -1;
  left: -6%; bottom: 2%; width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink-100);
}
.fv-slider {
  position: relative; aspect-ratio: 10 / 8.2; border-radius: 36% 64% 55% 45% / 48% 42% 58% 52%;
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.fv-slider .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
}
.fv-slider .slide.is-active { opacity: 1; }
.fv-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.fv-dots { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.fv-dots button {
  width: 12px; height: 12px; border-radius: 50%; background: var(--green-200);
  transition: background 0.3s, transform 0.3s;
}
.fv-dots button.is-active { background: var(--green-500); transform: scale(1.25); }

/* floating deco */
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco--dots {
  width: 120px; height: 120px; border-radius: 0;
  background-image: radial-gradient(var(--green-200) 3px, transparent 3px);
  background-size: 20px 20px;
}
.deco--blob-pink { background: var(--pink-100); }
.deco--blob-green { background: var(--green-100); }
.deco--blob-lav { background: #f4e3fb; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fv-slide-copy .slide-txt, .fv-slider .slide { transition: none; }
}

/* ---------- accordion ---------- */
.acc { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.acc-item { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
.acc-q {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 26px; font-weight: 700; font-size: 16.5px;
}
.acc-q .q-mark {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-500); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.acc-q .acc-icon { margin-left: auto; flex: none; width: 26px; height: 26px; position: relative; }
.acc-q .acc-icon::before, .acc-q .acc-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 2.5px; border-radius: 2px; background: var(--pink-500); transition: transform 0.3s;
}
.acc-q .acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-q .acc-icon::after { transform: rotate(0deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 26px 24px 80px; font-size: 15.5px; color: var(--ink-light); }

/* ---------- CTA band (共通誘導セクション) ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-100), var(--pink-100)); }
.cta-band .box {
  background: var(--white); border-radius: 28px; box-shadow: var(--shadow-soft);
  padding: 56px 40px; text-align: center; max-width: 860px; margin: 0 auto;
}
.cta-band h2 { font-size: 28px; margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; }
.cta-band .fv-cta { justify-content: center; margin-top: 8px; }

/* ---------- breadcrumbs / page hero (下層) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-100) 0%, var(--cream) 100%);
  padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden;
}
.page-hero .en { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.22em; color: var(--pink-500); text-transform: uppercase; margin-bottom: 8px; }
.page-hero h1 { font-size: 36px; }
.breadcrumbs { font-size: 12.5px; color: var(--ink-light); padding: 14px 0; }
.breadcrumbs a { color: var(--ink-light); }
.breadcrumbs .container { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================
   responsive
   ========================================================== */
@media (max-width: 1219px) {
  .gnav { display: none; }
  .header-tel { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 52px; height: 52px; border-radius: 14px; background: var(--green-500);
    align-items: center;
  }
  .menu-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
  body.drawer-open .menu-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  body.drawer-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.drawer-open .menu-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .drawer {
    display: block; position: fixed; inset: 0; z-index: 900;
    background: var(--bg); padding: calc(var(--header-h-sp) + 32px) 28px 120px;
    overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.3s;
  }
  body.drawer-open .drawer { opacity: 1; visibility: visible; }
  body.drawer-open { overflow: hidden; }
  .drawer nav ul { display: grid; gap: 4px; }
  .drawer nav a {
    display: block; padding: 14px 8px; font-size: 17px; font-weight: 700; color: var(--ink);
    border-bottom: 1px dashed var(--green-200);
  }
  .drawer .drawer-cta { display: grid; gap: 12px; margin-top: 28px; }
}

@media (max-width: 768px) {
  :root { --header-h: var(--header-h-sp); }
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .sec-head .ja { font-size: 26px; }
  .sec-head { margin-bottom: 36px; }
  .brand img { width: 42px; height: 42px; }
  .brand .name { font-size: 15px; }
  .header-cta .btn { display: none; }
  .menu-toggle { width: 46px; height: 46px; border-radius: 12px; }

  .fv { padding-top: 16px; }
  .fv .inner { grid-template-columns: 1fr; gap: 8px; padding-bottom: 56px; min-height: 0; }
  .fv-visual { order: -1; }
  .fv-slide-copy { min-height: 240px; }
  .fv-catch { font-size: 23px; }
  .fv-cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding-bottom: 110px; } /* clear sp fixed bar */

  /* SP bottom fixed bar: tel + form */
  .sp-fixed-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
    box-shadow: 0 -4px 16px rgba(74, 68, 62, 0.16);
  }
  .sp-fixed-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 8px; font-weight: 900; font-size: 15px; color: var(--white);
  }
  .sp-fixed-bar .bar-tel { background: var(--green-500); }
  .sp-fixed-bar .bar-contact { background: var(--orange-500); }
  .sp-fixed-bar svg { width: 20px; height: 20px; fill: var(--white); }

  .cta-band .box { padding: 40px 24px; }
  .cta-band h2 { font-size: 22px; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 26px; }
  .acc-q { padding: 18px 18px; font-size: 15px; }
  .acc-a p { padding: 0 18px 20px 18px; }
}
