:root {
    --sky:       #d6eaf8;
    --sky-dark:  #a9cce3;
    --mint:      #d5f5e3;
    --mint-dark: #a9dfbf;
    --peach:     #fde8d8;
    --peach-dark:#f5cba7;
    --lavender:  #e8daef;
    --lav-dark:  #d2b4de;
    --yellow:    #fef9e7;
    --yellow-dk: #f9e79f;
    --white:     #ffffff;
    --cream:     #fdfbf8;
    --text:      #3a3a3a;
    --text-lt:   #6b6b6b;
    --navy:      #2c4a6e;
    --teal:      #1a7a5e;
    --orange:    #e8770f;          /* 夏のアクセント（既存 #d35400 を少し明るく） */
    --orange-dk: #d35400;
    --orange-lt: #fdf0e3;
    --border:    #e8e0d5;
    --r:         12px;
    --r-lg:      20px;
    --shadow:    0 4px 20px rgba(100,120,160,.10);
    --shadow-md: 0 6px 28px rgba(100,120,160,.14);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.85;
    font-size: 16px;
  }

  /* ─── HEADER ─── */
  .site-header {
    background: var(--white);
    border-bottom: 3px solid var(--sky-dark);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(100,140,200,.10);
  }
  .logo {
    font-family: 'Noto Serif JP', serif;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .04em;
  }
  .logo span {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-lt);
    letter-spacing: .03em;
  }
  .header-nav { display: flex; align-items: center; gap: 10px; }
  /* 夏期講習リンク（目立つオレンジ） */
  .header-summer {
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: .82rem;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: .03em;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(232,119,15,.32);
    transition: transform .2s, background .2s;
  }
  .header-summer:hover { background: var(--orange-dk); transform: translateY(-1px); }
  .header-cta {
    background: var(--sky-dark);
    color: var(--navy);
    font-weight: 700;
    font-size: .82rem;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background .2s;
    white-space: nowrap;
  }
  .header-cta:hover { background: var(--sky); }

  /* ─── HERO ─── */
  .hero {
    background: linear-gradient(160deg, var(--sky) 0%, var(--white) 48%, var(--peach) 100%);
    padding: 68px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    background: rgba(255,210,150,.30);
    border-radius: 50%;
    top: -140px; right: -110px;
  }
  .hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
    bottom: -90px; left: -70px;
  }
  .hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 40px;
    letter-spacing: .08em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(232,119,15,.30);
  }
  .hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 5.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.55;
    color: var(--navy);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .hero h1 .accent {
    color: var(--orange-dk);
    display: inline-block;
    background: rgba(255,255,255,.7);
    padding: 2px 10px;
    border-radius: 6px;
  }
  .hero-lead {
    font-size: .96rem;
    color: var(--text);
    max-width: 580px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.62);
    padding: 14px 22px;
    border-radius: var(--r);
  }
  .hero-cta {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 16px 42px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(232,119,15,.34);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 1;
    letter-spacing: .04em;
  }
  .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(232,119,15,.4); }
  .hero-period {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
    font-size: .82rem;
    color: var(--navy);
    font-weight: 700;
    background: rgba(255,255,255,.7);
    padding: 8px 18px;
    border-radius: 40px;
    border: 2px solid var(--peach-dark);
  }

  /* ─── SECTION BASE ─── */
  section { padding: 64px 24px; }
  .section-inner { max-width: 820px; margin: 0 auto; }

  .section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--orange-dk);
    background: var(--orange-lt);
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
  }
  h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.25rem, 4.2vw, 1.7rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
    margin-bottom: 20px;
  }
  h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
  }
  p { color: var(--text-lt); margin-bottom: 14px; }
  p:last-child { margin-bottom: 0; }
  small { font-size: .8rem; color: var(--text-lt); }

  /* ─── DIVIDER（夏バージョン：青→オレンジ）─── */
  .pastel-divider {
    height: 6px;
    background: linear-gradient(90deg, var(--sky-dark), var(--mint-dark), var(--peach-dark), var(--orange));
    border: none;
    margin: 0;
  }

  /* ─── WORRY（チェックボックス）─── */
  .worry { background: var(--white); }
  .worry-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }
  .worry-list li {
    background: var(--orange-lt);
    border-left: 4px solid var(--peach-dark);
    padding: 14px 18px;
    border-radius: 0 var(--r) var(--r) 0;
    font-size: .95rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  /* チェックボックス風アイコン */
  .worry-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: var(--white);
    border: 2px solid var(--orange);
    color: var(--orange-dk);
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 2px;
  }
  .worry-note {
    margin-top: 26px;
    background: var(--sky);
    border: 2px solid var(--sky-dark);
    color: var(--text);
    padding: 22px 24px;
    border-radius: var(--r-lg);
    font-size: .95rem;
    line-height: 1.8;
  }
  .worry-note strong { color: var(--orange-dk); }

  /* ─── SOLUTION（個別サポートの流れ）─── */
  .solution { background: var(--cream); }
  .solution-steps { margin-top: 28px; display: grid; gap: 20px; }
  .step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow);
  }
  .step:nth-child(1) { border-top: 4px solid var(--sky-dark); }
  .step:nth-child(2) { border-top: 4px solid var(--mint-dark); }
  .step:nth-child(3) { border-top: 4px solid var(--peach-dark); }
  .step:nth-child(4) { border-top: 4px solid var(--orange); }
  .step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .step:nth-child(1) .step-num { background: var(--sky);      color: var(--navy); }
  .step:nth-child(2) .step-num { background: var(--mint);     color: var(--teal); }
  .step:nth-child(3) .step-num { background: var(--peach);    color: var(--orange-dk); }
  .step:nth-child(4) .step-num { background: var(--orange-lt);color: var(--orange-dk); }
  .step h3 { margin-bottom: 8px; }
  .step p  { font-size: .92rem; }

  /* ─── 中3集団講座 ─── */
  .group { background: var(--navy); color: #fff; }
  .group .section-label { background: rgba(255,255,255,.16); color: #fff; }
  .group h2 { color: #fff; }
  .group > .section-inner > p { color: rgba(255,255,255,.82); }
  .group-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 30px;
    letter-spacing: .06em;
    margin-bottom: 14px;
  }
  .group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 26px;
  }
  .group-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r-lg);
    padding: 24px;
  }
  .group-card .subj {
    display: inline-block;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 4px;
  }
  .group-card .subj-en {
    display: block;
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--peach-dark);
    margin-bottom: 12px;
  }
  .group-card h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
  .group-card ul { list-style: none; display: grid; gap: 7px; }
  .group-card li {
    font-size: .88rem;
    color: rgba(255,255,255,.86);
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
  }
  .group-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: .66rem;
    top: .35em;
  }
  .group-spec {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .group-spec span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: .82rem;
    font-weight: 500;
  }
  .group-synergy {
    margin-top: 24px;
    background: rgba(255,255,255,.1);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 20px 22px;
    font-size: .92rem;
    line-height: 1.8;
    color: rgba(255,255,255,.92);
  }
  .group-synergy strong { color: var(--peach-dark); }

  /* ─── 日程・料金 ─── */
  .schedule { background: var(--sky); }
  .cal-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow);
    margin-top: 24px;
  }
  .cal-period {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    line-height: 1.5;
  }
  .cal-period em {
    font-style: normal;
    color: var(--orange-dk);
  }
  .cal-closed {
    margin-top: 18px;
    display: grid;
    gap: 10px;
  }
  .cal-closed div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--orange-lt);
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--text);
  }
  .cal-closed .tag {
    flex-shrink: 0;
    background: var(--orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .price-wrap { margin-top: 28px; }
  .price-caption {
    font-size: .82rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
  }
  .price-caption .pill {
    background: var(--mint);
    color: var(--teal);
    font-size: .72rem;
    padding: 2px 12px;
    border-radius: 20px;
  }

  /* テーブル本体 */
  .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: .92rem;
  }
  .price-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    padding: 14px 12px;
    text-align: center;
    font-size: .86rem;
    letter-spacing: .02em;
  }
  .price-table thead th:first-child { text-align: left; }
  .price-table tbody th {
    text-align: left;
    font-weight: 700;
    color: var(--navy);
    padding: 14px 14px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  .price-table tbody td {
    text-align: center;
    padding: 14px 12px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
  }
  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td { border-bottom: none; }
  .price-table tbody tr:hover th,
  .price-table tbody tr:hover td { background: var(--sky); }
  .price-table .unit { color: var(--orange-dk); font-weight: 700; }
  .price-table .total { font-weight: 700; }
  .price-table tbody tr.is-g3 th { background: var(--orange-lt); color: var(--orange-dk); }
  .row-note {
    display: block;
    font-size: .68rem;
    font-weight: 400;
    color: var(--text-lt);
  }
  .price-foot {
    margin-top: 14px;
    font-size: .8rem;
    color: var(--text-lt);
    line-height: 1.75;
  }
  .group-price-note {
    margin-top: 16px;
    background: var(--white);
    border: 2px dashed var(--orange);
    border-radius: var(--r);
    padding: 14px 18px;
    font-size: .9rem;
    color: var(--text);
  }
  .group-price-note strong { color: var(--orange-dk); }

  /* ─── CTA ─── */
  .cta-section {
    background: linear-gradient(160deg, var(--peach) 0%, var(--sky) 100%);
    text-align: center;
    padding: 72px 24px;
  }
  .cta-section h2 { color: var(--navy); margin-bottom: 12px; }
  .cta-section > .section-inner > p { color: var(--text); max-width: 540px; margin: 0 auto 32px; }
  .cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(232,119,15,.32);
    transition: transform .2s;
    letter-spacing: .03em;
  }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid var(--sky-dark);
    text-decoration: none;
    transition: background .2s;
  }
  .btn-secondary:hover { background: var(--sky); }
  .cta-contact {
    margin-top: 28px;
    font-size: .87rem;
    color: var(--text);
  }
  .cta-contact a { color: var(--navy); font-weight: 700; text-decoration: none; }
  .cta-contact strong { font-size: 1.1rem; }

  /* ─── FOOTER ─── */
  .site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    text-align: center;
    padding: 28px 24px;
    font-size: .8rem;
    line-height: 2;
  }
  .site-footer a { color: var(--sky); text-decoration: none; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 600px) {
    .step { grid-template-columns: 48px 1fr; gap: 14px; }
    .step-num { width: 48px; height: 48px; font-size: 1rem; }
    .hero { padding: 52px 20px 44px; }
    section { padding: 48px 20px; }

    /* 料金テーブル → カード型に変換（スマホ最適化） */
    .price-table { box-shadow: none; background: transparent; }
    .price-table thead { display: none; }
    .price-table tbody tr {
      display: block;
      background: var(--white);
      border-radius: var(--r-lg);
      box-shadow: var(--shadow);
      margin-bottom: 14px;
      overflow: hidden;
    }
    .price-table tbody th {
      display: block;
      background: var(--navy);
      color: #fff;
      white-space: normal;
      font-size: .98rem;
      padding: 12px 16px;
      border-bottom: none;
    }
    .price-table tbody tr.is-g3 th { background: var(--orange-dk); color: #fff; }
    .price-table tbody td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: right;
      padding: 11px 16px;
      border-bottom: 1px solid var(--border);
    }
    .price-table tbody td::before {
      content: attr(data-label);
      font-weight: 700;
      color: var(--navy);
      text-align: left;
      margin-right: 12px;
    }
    .price-table tbody tr:hover th,
    .price-table tbody tr:hover td { background: var(--white); }
    .price-table tbody tr.is-g3:hover th { background: var(--orange-dk); }
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero > * { animation: fadeUp .65s ease both; }
  .hero .hero-badge { animation-delay: .1s; }
  .hero h1          { animation-delay: .22s; }
  .hero .hero-lead  { animation-delay: .36s; }
  .hero .hero-cta   { animation-delay: .5s; }
  .hero .hero-period{ animation-delay: .6s; }
