:root {
  --ink: #20233f;
  --muted: #666b84;
  --brand: #4b5191;
  --brand-deep: #303663;
  --line: #06c755;
  --gold: #efb542;
  --green: #1d8f72;
  --sky: #dbe9ff;
  --paper: #fff;
  --soft: #f5f7fb;
  --border: #dfe4ef;
  --shadow: 0 18px 48px rgba(31, 38, 85, .12);
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(75,81,145,.08), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #fff 42%, #f7f9fd 100%);
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", Arial, sans-serif;
  letter-spacing: 0;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body { padding-bottom: 0; }
html.js-enabled .reveal { opacity: 0; transform: translateY(22px); }
html.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
  backdrop-filter: blur(22px) saturate(1.2);
}
.site-header::before {
  content: "";
  position: absolute;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--line), var(--gold));
  border-radius: 999px;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  border: 1px solid rgba(223, 228, 239, .76);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 16px 42px rgba(31, 38, 85, .08);
}
.brand { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 14px; transition: background .25s var(--ease), transform .25s var(--ease); }
.brand:hover { background: rgba(75,81,145,.06); transform: translateY(-1px); }
.brand img { width: 154px; height: auto; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.nav-item { position: relative; }
.course-menu { display: inline-flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  position: relative;
  font-weight: 750;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav-link:hover { background: rgba(75,81,145,.08); color: var(--brand-deep); transform: translateY(-1px); }
.nav-toggle {
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease);
}
.course-menu.is-open .nav-toggle::before { transform: translateY(2px) rotate(225deg); }
.course-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(1020px, 94vw);
  max-height: min(68vh, 620px);
  overflow: auto;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(223, 228, 239, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 68px rgba(31,38,85,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.course-menu:hover .course-dropdown, .course-menu:focus-within .course-dropdown, .course-menu.is-open .course-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.course-dropdown-group { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, var(--soft), #fff); border: 1px solid var(--border); }
.course-dropdown-group strong { color: var(--brand-deep); font-size: 18px; }
.course-dropdown a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; line-height: 1.35; font-weight: 800; background: rgba(255,255,255,.72); }
.course-dropdown a:hover { background: #fff; border-color: rgba(75,81,145,.24); box-shadow: 0 10px 24px rgba(31,38,85,.08); transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: linear-gradient(180deg, #fff, #f7f9fd); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.lang-btn { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 9px; cursor: pointer; font-size: 12px; }
.lang-btn.is-active { background: var(--brand); color: #fff; }
.line-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.line-btn { background: var(--line); color: #fff; box-shadow: 0 12px 28px rgba(6,199,85,.22); position: relative; overflow: hidden; }
.line-btn::after { content: ""; position: absolute; inset: 0 auto 0 -45%; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: sheen 4.8s ease-in-out infinite; }
.line-btn.large { min-height: 50px; padding: 0 24px; font-size: 15px; }
.ghost-btn { border: 1px solid var(--border); color: var(--brand-deep); background: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-badges span { padding: 7px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border); color: var(--brand-deep); font-weight: 800; font-size: 13px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 78px) 34px;
  max-width: 1460px;
  margin: 0 auto;
}
.hero-media { position: relative; min-height: 480px; border-radius: 18px; overflow: hidden; box-shadow: 0 28px 80px rgba(31,38,85,.17); }
.hero-media img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(32,35,63,.08), rgba(6,199,85,.12)); pointer-events: none; }
.hero-orbit { position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.62); pointer-events: none; }
.hero-orbit span { position: absolute; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; offset-path: path("M 12 12 H 500 V 390 H 12 Z"); animation: orbit 9s linear infinite; }
.hero-orbit span:nth-child(2) { animation-delay: -3s; background: #fff; }
.hero-orbit span:nth-child(3) { animation-delay: -6s; background: var(--line); }
.hero-copy { max-width: 700px; animation: rise .9s var(--ease) both; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p, li, dd, a, strong, small { overflow-wrap: break-word; word-break: normal; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { max-width: 11.5em; margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 1.08; letter-spacing: 0; }
.home-page .hero h1 { max-width: 12.4em; }
.hero-title-line { display: block; }
.hero-title-line + .hero-title-line { margin-top: .05em; }
h2 { max-width: 12.5em; margin: 0; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.16; letter-spacing: 0; }
h3 { margin: 0; font-size: 19px; line-height: 1.38; }
.hero-copy > p:not(.eyebrow), .section-head p, .split-copy > p, .about-band p, .cta-panel p, .detail-copy > p { max-width: 40em; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.82; }
.home-page .hero-copy > p:not(.eyebrow) { max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intro-band {
  margin: 0 clamp(18px, 5vw, 78px);
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1304px;
  margin-left: auto;
  margin-right: auto;
}
.intro-band p { margin: 0; font-weight: 700; }
.ticker { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ticker span { padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-deep); font-size: 13px; }
.section { padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 78px); max-width: 1460px; margin: 0 auto; }
.section.compact { padding-top: 34px; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(245,247,251,.86)),
    radial-gradient(circle at 86% 12%, rgba(75,81,145,.12), transparent 30%);
  box-shadow: 0 18px 50px rgba(31,38,85,.09);
  position: relative;
  overflow: hidden;
}
.family-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--brand), var(--line)); }
.family-card[data-accent="gold"]::before { background: linear-gradient(180deg, var(--gold), var(--brand)); }
.family-card[data-accent="green"]::before { background: linear-gradient(180deg, var(--green), var(--line)); }
.family-card-head { position: relative; }
.family-card-head span { color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.family-card-head h3 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; }
.family-card-head p { color: var(--muted); line-height: 1.8; font-size: 16px; }
.family-course-buttons { position: relative; display: grid; gap: 10px; margin-top: 28px; }
.family-course-buttons a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(31,38,85,.05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.family-course-buttons a::after { content: "→"; color: var(--brand); }
.family-course-buttons a:hover { transform: translateY(-2px); border-color: rgba(75,81,145,.25); box-shadow: 0 16px 32px rgba(31,38,85,.11); }
.line-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.line-course-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(31,38,85,.08);
  position: relative;
  overflow: hidden;
}
.line-course-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--brand), var(--line)); }
.line-course-card[data-accent="gold"]::before { background: linear-gradient(180deg, var(--gold), var(--brand)); }
.line-course-card[data-accent="green"]::before { background: linear-gradient(180deg, var(--green), var(--line)); }
.line-course-card.restart { grid-column: 1 / -1; min-height: 220px; }
.line-course-card.english-overview { grid-column: 1 / -1; min-height: 300px; }
.line-course-card span { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.line-course-card h3 { margin-top: 8px; font-size: clamp(26px, 3vw, 38px); }
.line-course-card p { max-width: 38em; color: var(--muted); line-height: 1.75; }
.line-course-card .compact-links { margin-top: 2px; }
.line-course-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(75,81,145,.12), transparent 64%);
  pointer-events: none;
}
.line-course-card[data-accent="gold"]::after { background: radial-gradient(circle, rgba(239,181,66,.18), transparent 64%); }
.line-course-card[data-accent="green"]::after { background: radial-gradient(circle, rgba(29,143,114,.15), transparent 64%); }
.teacher-line-grid .line-course-card {
  min-height: auto;
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: center;
  justify-content: start;
  gap: 18px;
}
.teacher-line-grid .line-course-card img {
  width: 138px;
  height: 184px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31,38,85,.12);
}
.teacher-line-grid .line-course-card h3 { font-size: clamp(22px, 2.2vw, 30px); }
.teacher-line-grid .line-course-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; }
.english-course-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.course-subgroup {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(223,228,239,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.course-subgroup strong { color: var(--brand-deep); font-size: 18px; }
.course-subgroup p { margin: 0; font-size: 14px; line-height: 1.65; }
.compact-links { display: flex; flex-wrap: wrap; gap: 9px; }
.compact-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.compact-links a:hover { background: #fff; border-color: rgba(75,81,145,.28); box-shadow: 0 10px 22px rgba(31,38,85,.08); }
.summer-section { padding-top: 28px; }
.summer-entry {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  border: 1px solid rgba(223,228,239,.92);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,248,252,.9)),
    radial-gradient(circle at 100% 0%, rgba(239,181,66,.18), transparent 38%);
  box-shadow: 0 18px 52px rgba(31,38,85,.09);
  overflow: hidden;
}
.summer-entry-media {
  min-height: 360px;
  background: var(--soft);
}
.summer-entry-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(.98) contrast(1.03);
}
.summer-entry-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 46px);
}
.summer-entry-copy > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.summer-entry-copy h3 {
  max-width: 13em;
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.12;
  text-wrap: balance;
}
.summer-entry-copy p {
  max-width: 42em;
  color: var(--muted);
  line-height: 1.78;
}
.summer-entry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.summer-entry-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(75,81,145,.08);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
}
.summer-grid { display: grid; grid-template-columns: 1.15fr .92fr .92fr; gap: 16px; }
.summer-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(31,38,85,.08);
  position: relative;
  overflow: hidden;
}
.summer-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
}
.summer-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 28px);
}
.summer-card.featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(48,54,99,.94), rgba(29,143,114,.78)),
    radial-gradient(circle at 86% 12%, rgba(239,181,66,.34), transparent 34%);
}
.summer-card span { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.summer-card.featured span { color: rgba(255,255,255,.72); }
.summer-card h3 { margin-top: 9px; font-size: clamp(24px, 2.8vw, 36px); }
.summer-card p { color: var(--muted); line-height: 1.72; }
.summer-card.featured p { color: rgba(255,255,255,.82); }
.summer-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.summer-card li { position: relative; padding-left: 18px; color: var(--ink); line-height: 1.55; }
.summer-card.featured li { color: rgba(255,255,255,.9); }
.summer-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.summer-card .text-link { margin-top: auto; padding-top: 18px; }
.summer-card.featured .text-link { color: #fff; }
.course-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 32px rgba(31,38,85,.06);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.course-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--line)); opacity: .86; }
.course-card[data-accent="gold"]::before { background: linear-gradient(90deg, var(--gold), var(--brand)); }
.course-card[data-accent="green"]::before { background: linear-gradient(90deg, var(--green), var(--line)); }
.course-card:hover { transform: translateY(-7px); box-shadow: 0 24px 58px rgba(31,38,85,.14); border-color: rgba(75,81,145,.28); }
.course-card-body { padding: 24px 22px 22px; min-height: 238px; display: flex; flex-direction: column; }
.course-card-body span, .detail-card span, .teacher-card span { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.course-card-body p, .detail-card p, .teacher-card p, .learning-path li, .next-courses a { color: var(--muted); line-height: 1.72; }
.course-mini-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 6px; }
.course-mini-list em { font-style: normal; font-size: 12px; color: var(--brand-deep); background: var(--soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px; }
.text-link { display: inline-flex; margin-top: 10px; color: var(--brand-deep); font-weight: 800; }
.text-link::after { content: "→"; margin-left: 7px; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.featured-entry-section {
  padding-top: clamp(44px, 6vw, 74px);
  background: linear-gradient(180deg, rgba(248,250,255,.2), rgba(239,246,243,.72));
  border-top: 1px solid rgba(223,228,239,.7);
}
.featured-course-grid {
  max-width: 1304px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 78px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.featured-course-card {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, .58fr);
  overflow: hidden;
  border: 1px solid rgba(223,228,239,.92);
  border-top: 4px solid var(--brand);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(31,38,85,.09);
}
.featured-course-card[data-accent="green"] { border-top-color: var(--line); }
.featured-course-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.featured-course-card > div { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.featured-course-card span { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.featured-course-card h3 { margin-top: 10px; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.22; }
.featured-course-card p { color: var(--muted); line-height: 1.75; }
.featured-course-card ul { margin: 14px 0 20px; padding: 0; display: grid; gap: 8px; list-style: none; }
.featured-course-card li { position: relative; padding-left: 18px; color: var(--ink); line-height: 1.55; font-size: 14px; }
.featured-course-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.featured-course-card .hero-actions { margin-top: auto; }
.split-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 78px);
  background: var(--soft);
  border-top: 1px solid rgba(223,228,239,.7);
  border-bottom: 1px solid rgba(223,228,239,.7);
}
.split-image img, .about-band img, .detail-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 64px rgba(31,38,85,.14); }
.split-image { min-height: 520px; }
.split-image img { min-height: 520px; }
.reason-list { margin-top: 28px; display: grid; gap: 14px; }
.reason-list article { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.reason-list span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; }
.reason-list p { margin: 6px 0 0; color: var(--muted); line-height: 1.7; }
.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 78px);
  max-width: 1460px;
  margin: 0 auto;
}
.about-band img { aspect-ratio: 16/10; }
.cta-panel {
  margin: 0 clamp(18px, 5vw, 78px) clamp(60px, 8vw, 96px);
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), #1e7f6a);
  position: relative;
  overflow: hidden;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, rgba(0,0,0,.85), transparent); }
.cta-panel > * { position: relative; }
.cta-panel p { color: rgba(255,255,255,.82); max-width: 760px; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, 1.04fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(38px, 7vw, 86px) clamp(18px, 5vw, 78px);
  max-width: 1460px;
  margin: 0 auto;
}
.detail-copy h1 { font-size: clamp(38px, 5.4vw, 68px); }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-weight: 700; }
.back-link::before { content: "←"; margin-right: 8px; }
.detail-photo { min-height: 440px; }
.detail-photo img { min-height: 440px; }
.program-panel {
  min-height: 440px;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18,22,48,.82), rgba(29,143,114,.62)),
    var(--theme-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 64px rgba(31,38,85,.14);
  overflow: hidden;
  position: relative;
}
.program-panel::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; pointer-events: none; }
.program-panel[data-accent="gold"] { background-image: linear-gradient(135deg, rgba(48,54,99,.82), rgba(157,114,32,.58)), var(--theme-image); }
.program-panel[data-accent="green"] { background-image: linear-gradient(135deg, rgba(37,75,85,.82), rgba(29,143,114,.58)), var(--theme-image); }
.program-panel div, .program-panel ul { position: relative; }
.program-panel span { display: block; margin-bottom: 12px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.program-panel strong { display: block; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.program-panel ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.program-panel li { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.course-overview {
  margin: 0 clamp(18px, 5vw, 78px) 22px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 18px;
  align-items: center;
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(6,199,85,.09), rgba(75,81,145,.05));
}
.course-overview p { margin: 0; color: var(--brand); font-weight: 800; }
.course-overview strong { line-height: 1.7; font-size: 17px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 clamp(18px, 5vw, 78px) 42px; }
.detail-card { padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 14px 38px rgba(31,38,85,.07); }
.detail-card h2 { font-size: clamp(22px, 2.4vw, 30px); }
.learning-path {
  margin: 0 clamp(18px, 5vw, 78px);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  border-radius: var(--radius);
  background: var(--soft);
}
.learning-path ol { margin: 0; padding: 0; list-style: none; counter-reset: path; display: grid; gap: 12px; }
.learning-path li { counter-increment: path; padding: 15px 16px 15px 56px; background: #fff; border-radius: var(--radius); position: relative; border: 1px solid var(--border); }
.learning-path li::before { content: counter(path, decimal-leading-zero); position: absolute; left: 16px; top: 15px; color: var(--brand); font-weight: 900; }
.schedule-section {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 78px);
  max-width: 1460px;
  margin: 0 auto;
}
.quick-schedule-strip {
  max-width: 1304px;
  margin: 18px auto 0;
  padding: 0 clamp(18px, 5vw, 78px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-schedule-strip article {
  padding: 16px 18px;
  border: 1px solid rgba(223,228,239,.95);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(31,38,85,.08);
}
.quick-schedule-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}
.quick-schedule-strip strong {
  display: block;
  color: var(--brand-deep);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}
.quick-schedule-strip em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}
.course-visual-strip {
  max-width: 1304px;
  margin: clamp(24px, 4vw, 44px) auto 0;
  padding: 0 clamp(18px, 5vw, 78px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.course-visual-strip figure {
  min-height: 260px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(223,228,239,.9);
  box-shadow: 0 18px 48px rgba(31,38,85,.11);
  background: var(--soft);
}
.course-visual-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transform: scale(1.02);
}
.course-visual-strip figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(20,24,48,.78));
}
.course-visual-strip figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  display: grid;
  gap: 5px;
}
.course-visual-strip strong { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2; }
.course-visual-strip span { color: rgba(255,255,255,.86); line-height: 1.55; font-size: 14px; }
.course-consult-card {
  min-height: 260px;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-radius: 18px;
  border: 1px solid rgba(223,228,239,.9);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,247,251,.9)),
    radial-gradient(circle at 88% 14%, rgba(6,199,85,.14), transparent 34%);
  box-shadow: 0 18px 48px rgba(31,38,85,.09);
}
.course-consult-card > span {
  color: var(--brand-deep);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.22;
  text-wrap: balance;
}
.course-consult-card > strong {
  color: var(--brand);
  font-size: 16px;
  line-height: 1.35;
}
.course-consult-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.course-consult-card li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  line-height: 1.55;
}
.course-consult-card li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  box-shadow: 0 0 0 4px rgba(6,199,85,.12);
}
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.schedule-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 36px rgba(31,38,85,.07);
}
.schedule-card span { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.schedule-card strong { color: var(--brand-deep); font-size: clamp(20px, 2.1vw, 28px); line-height: 1.22; text-wrap: balance; }
.schedule-card em {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-deep);
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}
.schedule-card p { margin: 0; color: var(--muted); line-height: 1.72; }
.summer-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summer-detail-grid .schedule-card { min-height: 0; }
.summer-detail-grid .schedule-card ul {
  margin: 4px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  line-height: 1.72;
}
.summer-detail-grid .schedule-card li + li { margin-top: 6px; }
.schedule-note { max-width: 58em; margin: 16px 0 0; color: var(--muted); line-height: 1.72; }
.course-practical-section { padding-top: clamp(44px, 6vw, 72px); }
.course-practical-layout {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
}
.course-practical-image {
  margin: 0;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(72,76,144,.08), rgba(6,199,85,.10));
  box-shadow: 0 18px 42px rgba(31,38,85,.08);
}
.course-practical-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.course-practical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.course-practical-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 36px rgba(31,38,85,.07);
}
.course-practical-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-practical-card ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  line-height: 1.72;
}
.course-practical-card li + li { margin-top: 6px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.content-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(31,38,85,.06); }
.next-courses { padding: 0 clamp(18px, 5vw, 78px) clamp(60px, 8vw, 96px); }
.next-courses div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.next-courses a { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-weight: 700; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.next-courses a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teacher-grid { padding: 0 clamp(18px, 5vw, 78px) clamp(64px, 8vw, 98px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.teacher-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(31,38,85,.08); }
.teacher-card img { width: 180px; aspect-ratio: 4/5; height: auto; object-fit: cover; border-radius: 14px; }
.teacher-card h2 { margin-top: 4px; font-size: 24px; }
.teacher-card p { margin-bottom: 14px; }
.teacher-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.teacher-points li { position: relative; padding: 9px 10px 9px 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.55; }
.teacher-points li::before { content: ""; position: absolute; left: 12px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 4px rgba(6,199,85,.12); }
.access-section {
  margin: 0 clamp(18px, 5vw, 78px) clamp(54px, 7vw, 86px);
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(340px, 1.28fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: stretch;
  border: 1px solid rgba(223,228,239,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 52px rgba(31,38,85,.08);
  max-width: 1304px;
  margin-left: auto;
  margin-right: auto;
}
.access-copy {
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.access-copy h2 { margin-bottom: 12px; }
.access-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.address-list { margin: 18px 0 22px; padding: 0; display: grid; gap: 8px; }
.address-list dt { color: var(--brand); font-weight: 850; font-size: 13px; }
.address-list dd { margin: 0; color: var(--ink); line-height: 1.75; }
.map-frame {
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(223,228,239,.9);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.92) contrast(1.02); }
.social-section {
  max-width: 1304px;
  margin: 0 auto clamp(54px, 7vw, 86px);
  padding: 0 clamp(18px, 5vw, 78px);
}
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.social-card {
  display: flex;
  min-height: 228px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 34px rgba(31,38,85,.07);
}
.social-card img { width: min(100%, 154px); height: 154px; object-fit: contain; border-radius: 10px; background: #fff; flex: 0 0 auto; }
.social-card strong { min-height: 20px; font-size: 14px; line-height: 1.35; text-align: center; display: flex; align-items: center; justify-content: center; }
.social-card small { min-height: 34px; color: var(--muted); text-align: center; line-height: 1.45; display: flex; align-items: center; justify-content: center; }
.qr-placeholder {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 10px;
  border: 1px dashed rgba(75,81,145,.3);
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: clamp(36px, 6vw, 70px) clamp(18px, 5vw, 78px);
  background: #15182e;
  color: #fff;
}
.site-footer > div:first-child {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  max-width: 520px;
}
.site-footer img {
  width: clamp(96px, 12vw, 118px);
  height: auto !important;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.site-footer p { color: rgba(255,255,255,.72); line-height: 1.7; }
.footer-cta { justify-self: end; max-width: 560px; }
.reveal { opacity: 1; transform: none; transition: opacity .72s var(--ease), transform .72s var(--ease); }
main.lang-changing { animation: langFade .34s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheen { 0% { transform: translateX(-160%) skewX(-18deg); opacity: 0; } 22% { opacity: .45; } 55%, 100% { transform: translateX(330%) skewX(-18deg); opacity: 0; } }
@keyframes orbit { to { offset-distance: 100%; } }
@keyframes langFade { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr; gap: 10px; border-radius: 16px; }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .course-dropdown { left: 0; transform: translateY(8px); grid-template-columns: 1fr; width: min(520px, 86vw); }
  .course-menu:hover .course-dropdown, .course-menu:focus-within .course-dropdown, .course-menu.is-open .course-dropdown { transform: translateY(0); }
  .header-actions { justify-content: space-between; }
  .hero, .detail-hero, .split-section, .about-band, .learning-path, .access-section { grid-template-columns: 1fr; }
  .course-grid, .family-grid, .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-courses div, .social-grid, .summer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { padding-bottom: 136px; }
  .site-header { padding: 8px 10px; }
  .header-inner { padding: 8px 10px; }
  .brand img { width: 128px; }
  .line-btn:not(.large) { min-height: 38px; padding: 0 13px; }
  .nav-item.course-menu > .nav-link { display: inline-flex; }
  .nav-toggle { display: inline-flex; flex: 0 0 38px; width: 38px; min-width: 38px; }
  .course-menu { position: static; }
  .course-dropdown {
    display: none;
    position: fixed;
    top: calc(var(--header-height, 118px) + 8px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - var(--header-height, 118px) - 28px);
    transform: translateY(8px);
    grid-template-columns: 1fr;
    padding: 12px;
    z-index: 60;
  }
  .course-menu.is-open .course-dropdown {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav { gap: 4px; font-size: 13px; }
  .nav-link { min-height: 38px; padding: 0 11px; }
  .header-actions { gap: 8px; }
  .lang-switch { order: 2; }
  .hero { min-height: auto; padding-top: 18px; display: flex; flex-direction: column; }
  .line-hero .hero-copy { order: 1; }
  .line-hero .hero-media { order: 2; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .home-page .hero h1 { max-width: 10.8em; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .line-btn, .hero-actions .ghost-btn { flex: 1 1 160px; }
  .hero-media, .hero-media img, .detail-photo, .detail-photo img, .split-image, .split-image img { min-height: 240px; }
  .intro-band { margin: 0 18px; }
  .intro-band, .course-overview, .detail-grid, .site-footer, .teacher-card { grid-template-columns: 1fr; }
  .course-grid, .family-grid, .line-course-grid, .teacher-grid, .next-courses div, .social-grid, .summer-grid, .schedule-grid, .featured-course-grid { grid-template-columns: 1fr; }
  .featured-course-card { grid-template-columns: 1fr; }
  .featured-course-card img { min-height: 220px; max-height: 280px; }
  .course-practical-layout, .course-practical-grid { grid-template-columns: 1fr; }
  .course-practical-image img { min-height: 220px; }
  .summer-entry { grid-template-columns: 1fr; border-radius: 18px; }
  .summer-entry-media, .summer-entry-media img { min-height: 220px; }
  .summer-entry-copy { padding: 24px 20px 26px; }
  .summer-entry-copy h3 { max-width: 11.5em; }
  .teacher-line-grid .line-course-card {
    grid-template-columns: 104px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .teacher-line-grid .line-course-card img {
    width: 104px;
    height: 138px;
    border-radius: 12px;
  }
  .quick-schedule-strip {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  .course-visual-strip { grid-template-columns: 1fr; padding: 0 18px; }
  .course-visual-strip figure, .course-visual-strip img { min-height: 220px; }
  .schedule-card { min-height: auto; }
  .line-course-card, .line-course-card.restart, .line-course-card.english-overview { min-height: auto; }
  .english-course-groups { grid-template-columns: 1fr; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .social-card { min-height: 220px; padding: 16px 14px; }
  .social-card img { width: min(100%, 148px); height: 148px; }
  .qr-placeholder { max-width: 148px; }
  .ticker { justify-content: flex-start; }
  .teacher-card img { width: 100%; max-height: 360px; }
  .footer-cta { justify-self: start; }
  .mobile-bottom-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(223,228,239,.9);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(31,38,85,.18);
  }
  .mobile-bottom-cta a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    border-radius: 13px;
    background: var(--soft);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
  }
  .mobile-bottom-cta a:first-child { background: var(--line); color: #fff; }
}
@media (min-width: 701px) {
  .mobile-bottom-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive polish: mobile logo, header, image ratios
   Added for more stable display across phone screen sizes.
   ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.brand {
  flex-shrink: 0;
  max-width: min(42vw, 178px);
}
.brand img {
  width: clamp(116px, 12vw, 154px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-media,
.detail-photo,
.split-image,
.summer-entry-media,
.course-practical-image,
.course-visual-strip figure {
  isolation: isolate;
}

.hero-media img,
.detail-photo img,
.split-image img,
.about-band img,
.course-visual-strip img,
.course-practical-image img,
.summer-entry-media img,
.featured-course-card img,
.summer-card-image,
.teacher-card img,
.teacher-line-grid .line-course-card img {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 14px;
  }
  .brand img {
    width: clamp(118px, 13vw, 142px);
  }
  .main-nav {
    gap: 4px;
    font-size: 13px;
  }
  .nav-link {
    padding: 0 10px;
  }
  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 1040px) and (min-width: 701px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
  }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-content: flex-end; }
  .main-nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 8px max(10px, env(safe-area-inset-left)) 7px max(10px, env(safe-area-inset-right));
  }
  .site-header::before {
    left: 10px;
    right: 10px;
  }
  .header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    gap: 8px 10px;
    padding: 8px 10px 9px;
    border-radius: 15px;
  }
  .brand {
    grid-area: brand;
    max-width: 38vw;
    padding: 3px 4px;
    border-radius: 10px;
  }
  .brand img {
    width: clamp(92px, 30vw, 126px);
    max-height: 52px;
    object-fit: contain;
  }
  .header-actions {
    grid-area: actions;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    gap: 6px;
  }
  .header-actions > .line-btn {
    display: none;
  }
  .lang-switch {
    order: 0;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .main-nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nav-toggle {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
  }
  .course-dropdown {
    top: calc(var(--header-height, 100px) + 6px);
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - var(--header-height, 100px) - 24px);
    border-radius: 14px;
  }

  .hero,
  .detail-hero {
    width: 100%;
    gap: 22px;
    padding: 22px 16px 34px;
  }
  .hero-copy,
  .detail-copy {
    width: 100%;
    max-width: none;
  }
  .hero h1,
  .detail-copy h1 {
    max-width: 100%;
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.12;
  }
  .home-page .hero h1 {
    max-width: 100%;
  }
  .hero-copy > p:not(.eyebrow),
  .detail-copy > p,
  .section-head p,
  .split-copy > p,
  .about-band p,
  .cta-panel p {
    max-width: 100%;
    font-size: 15.5px;
    line-height: 1.72;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .hero-badges {
    gap: 6px;
    margin-top: 14px;
  }
  .hero-badges span {
    font-size: 12px;
    padding: 6px 9px;
  }
  .hero-actions {
    width: 100%;
    gap: 9px;
    margin-top: 18px;
  }
  .hero-actions .line-btn,
  .hero-actions .ghost-btn,
  .cta-panel .line-btn {
    flex: 1 1 145px;
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-media,
  .detail-photo,
  .split-image,
  .course-practical-image,
  .summer-entry-media,
  .course-visual-strip figure {
    width: 100%;
    min-height: 0 !important;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .hero-media img,
  .detail-photo img,
  .split-image img,
  .course-practical-image img,
  .summer-entry-media img,
  .course-visual-strip img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center;
  }
  .home-page .hero-media img {
    object-position: center 34%;
  }
  .hero-orbit {
    display: none;
  }

  .intro-band,
  .section,
  .schedule-section,
  .featured-course-grid,
  .quick-schedule-strip,
  .course-visual-strip,
  .detail-grid,
  .teacher-grid,
  .next-courses,
  .social-section,
  .access-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .intro-band {
    margin-left: 16px;
    margin-right: 16px;
    gap: 14px;
  }
  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  h2 {
    max-width: 100%;
    font-size: clamp(24px, 7.2vw, 34px);
  }
  h3 {
    font-size: 18px;
  }

  .line-course-card,
  .family-card,
  .course-card-body,
  .schedule-card,
  .detail-card,
  .course-consult-card,
  .course-practical-card,
  .summer-entry-copy,
  .access-copy,
  .cta-panel {
    padding: 20px;
  }
  .featured-course-card img,
  .summer-card-image {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .teacher-card img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }
  .teacher-line-grid .line-course-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .teacher-line-grid .line-course-card img {
    width: 92px;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .map-frame,
  .map-frame iframe {
    min-height: 280px;
  }
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .social-card {
    min-height: 190px;
    padding: 14px 10px;
  }
  .social-card img {
    width: min(100%, 132px);
    height: 132px;
  }
  .social-card small {
    min-height: auto;
  }
  .mobile-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-left: 8px;
    padding-right: 8px;
  }
  .header-inner {
    padding: 7px 8px 8px;
    gap: 7px;
  }
  .brand {
    max-width: 34vw;
  }
  .brand img {
    width: clamp(84px, 29vw, 112px);
    max-height: 46px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .nav-link {
    min-height: 32px;
    padding: 0 9px;
    font-size: 12.5px;
  }
  .hero,
  .detail-hero {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero h1,
  .detail-copy h1 {
    font-size: clamp(28px, 9vw, 38px);
  }
  .hero-media,
  .detail-photo,
  .split-image,
  .course-practical-image,
  .summer-entry-media,
  .course-visual-strip figure {
    aspect-ratio: 1.18 / 1;
  }
  .line-btn.large,
  .ghost-btn {
    min-height: 44px;
  }
  .social-card img {
    width: min(100%, 118px);
    height: 118px;
  }
  .mobile-bottom-cta {
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
  }
  .mobile-bottom-cta a {
    min-height: 44px;
    font-size: 12px;
    padding: 0 5px;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 82px;
  }
  .nav-link {
    font-size: 12px;
    padding: 0 8px;
  }
  .hero h1,
  .detail-copy h1 {
    font-size: 27px;
  }
  .hero-copy > p:not(.eyebrow),
  .detail-copy > p,
  .section-head p,
  .split-copy > p {
    font-size: 15px;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   UI polish: course points, consultation cards, related links,
   and mobile course menu reliability.
   ========================================================= */
.course-points-section {
  position: relative;
  padding-top: clamp(52px, 7vw, 82px);
  padding-bottom: clamp(52px, 7vw, 82px);
}
.course-points-section::before {
  content: "";
  position: absolute;
  inset: 12px clamp(18px, 5vw, 78px);
  z-index: -1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 18%, rgba(6,199,85,.12), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(239,181,66,.16), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,247,251,.96));
  border: 1px solid rgba(223,228,239,.75);
}
.course-points-section .section-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.point-grid,
.section.compact > .pill-grid:not(.consult-list) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 24px auto 0;
}
.point-grid .content-pill,
.section.compact > .pill-grid:not(.consult-list) .content-pill {
  position: relative;
  display: grid;
  align-items: start;
  min-height: 126px;
  padding: 22px 22px 22px 58px;
  border-radius: 20px;
  border: 1px solid rgba(223,228,239,.95);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(31,38,85,.08);
  color: var(--ink);
  font-weight: 760;
  line-height: 1.65;
  letter-spacing: 0;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.point-grid .content-pill::before,
.section.compact > .pill-grid:not(.consult-list) .content-pill::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(6,199,85,.98), rgba(29,143,114,.92));
  box-shadow: 0 8px 18px rgba(6,199,85,.22);
}
.point-grid .content-pill::after,
.section.compact > .pill-grid:not(.consult-list) .content-pill::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 30px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.point-grid .content-pill:hover,
.section.compact > .pill-grid:not(.consult-list) .content-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(75,81,145,.22);
  box-shadow: 0 24px 58px rgba(31,38,85,.12);
}
.consult-guide {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(245,247,251,.78));
}
.consult-guide .section-head {
  max-width: 780px;
}
.consult-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 22px auto 0;
}
.consult-list .content-pill {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px 12px 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(223,228,239,.9);
  box-shadow: 0 12px 30px rgba(31,38,85,.06);
  color: var(--brand-deep);
  font-weight: 780;
  line-height: 1.45;
  position: relative;
}
.consult-list .content-pill::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(239,181,66,.14);
}
.next-courses {
  margin-top: clamp(24px, 4vw, 42px);
}
.next-courses h2 {
  max-width: 1304px;
  margin-left: auto;
  margin-right: auto;
}
.next-courses a {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f7f9fd);
  box-shadow: 0 14px 38px rgba(31,38,85,.07);
  color: var(--brand-deep);
}
.next-courses a::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: rgba(75,81,145,.08);
  color: var(--brand);
  font-weight: 900;
}
@media (max-width: 1040px) {
  .point-grid,
  .section.compact > .pill-grid:not(.consult-list),
  .consult-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .course-menu { position: static !important; }
  .course-dropdown {
    display: grid !important;
    position: fixed !important;
    top: calc(var(--header-height, 104px) + 8px) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-height: calc(100dvh - var(--header-height, 104px) - 24px) !important;
    overflow: auto !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) scale(.985) !important;
    z-index: 999 !important;
    border-radius: 18px !important;
  }
  .course-menu.is-open .course-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
  .course-dropdown-group {
    padding: 12px !important;
    border-radius: 14px !important;
  }
  .course-dropdown-group strong {
    font-size: 15px !important;
  }
  .course-dropdown a {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
  .course-points-section::before {
    inset: 8px 12px;
    border-radius: 20px;
  }
  .course-points-section .section-head {
    text-align: left;
  }
  .point-grid,
  .section.compact > .pill-grid:not(.consult-list),
  .consult-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }
  .point-grid .content-pill,
  .section.compact > .pill-grid:not(.consult-list) .content-pill {
    min-height: auto;
    padding: 18px 18px 18px 52px;
    border-radius: 17px;
    font-size: 15px;
    line-height: 1.62;
  }
  .point-grid .content-pill::before,
  .section.compact > .pill-grid:not(.consult-list) .content-pill::before {
    left: 18px;
    top: 21px;
  }
  .point-grid .content-pill::after,
  .section.compact > .pill-grid:not(.consult-list) .content-pill::after {
    left: 25px;
    top: 27px;
  }
  .consult-list .content-pill {
    min-height: 52px;
    padding: 11px 14px 11px 40px;
  }
  .next-courses div {
    grid-template-columns: 1fr !important;
  }
  .next-courses a {
    min-height: 58px;
    border-radius: 15px;
    padding: 14px 15px;
  }
}

/* =========================================================
   Final customer-focused UI refinement
   - clearer course pages
   - stronger mobile readability
   - smoother cards and CTAs
   ========================================================= */
:root {
  --section-gutter: clamp(18px, 5vw, 78px);
  --card-radius-lg: 22px;
  --soft-shadow: 0 18px 48px rgba(31, 38, 85, .09);
  --soft-shadow-hover: 0 26px 68px rgba(31, 38, 85, .14);
}

body {
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

/* Make customer actions visually consistent */
.line-btn,
.ghost-btn {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.line-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}
.ghost-btn:hover {
  border-color: rgba(75,81,145,.28);
  box-shadow: 0 14px 34px rgba(31,38,85,.08);
}

/* Homepage: improve first decision points */
.family-card,
.line-course-card,
.featured-course-card,
.summer-entry,
.course-practical-card,
.schedule-card,
.detail-card,
.course-consult-card,
.teacher-card,
.social-card {
  border-color: rgba(223,228,239,.86);
}
.family-card:hover,
.line-course-card:hover,
.featured-course-card:hover,
.summer-entry:hover,
.schedule-card:hover,
.detail-card:hover,
.course-practical-card:hover,
.teacher-card:hover,
.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow-hover);
}
.family-card,
.line-course-card,
.featured-course-card,
.summer-entry,
.schedule-card,
.detail-card,
.course-practical-card,
.teacher-card,
.social-card {
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

/* Course hero: less crowding, better scanability */
.course-hero .hero-actions,
.detail-hero .hero-actions {
  margin-top: 24px;
}
.course-hero .hero-badges span,
.detail-hero .hero-badges span {
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(31,38,85,.08);
}

/* Schedule section: make cards easier to compare */
.schedule-section {
  position: relative;
}
.schedule-grid {
  align-items: stretch;
}
.schedule-card {
  min-height: 100%;
  border-radius: var(--card-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,255,.96));
}
.schedule-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(75,81,145,.08);
  color: var(--brand-deep);
}
.schedule-card strong {
  display: block;
  margin-top: 2px;
}
.schedule-card p {
  font-size: 15px;
}

/* Lesson guide: clearer image/card rhythm */
.course-practical-layout {
  gap: clamp(18px, 3vw, 28px);
}
.course-practical-image {
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}
.course-practical-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(75,81,145,.08), transparent 34%),
    rgba(255,255,255,.97);
}
.course-practical-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--line));
  opacity: .82;
}
.course-practical-card span {
  color: var(--brand-deep);
  background: rgba(75,81,145,.08);
  padding: 5px 9px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: .03em;
}
.course-practical-card li {
  padding-left: .1em;
}

/* Course points: professional insight cards */
.course-points-section {
  isolation: isolate;
}
.course-points-section .section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(75,81,145,.08);
  color: var(--brand-deep);
  letter-spacing: .06em;
}
.point-grid,
.section.compact > .pill-grid:not(.consult-list) {
  counter-reset: point;
}
.point-grid .content-pill,
.section.compact > .pill-grid:not(.consult-list) .content-pill {
  counter-increment: point;
  min-height: 142px;
  padding: 24px 24px 22px 72px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(247,249,253,.94));
  box-shadow: 0 18px 46px rgba(31,38,85,.075);
  font-size: 15.5px;
  font-weight: 760;
  line-height: 1.7;
}
.point-grid .content-pill::before,
.section.compact > .pill-grid:not(.consult-list) .content-pill::before {
  content: counter(point, decimal-leading-zero);
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(75,81,145,.18);
}
.point-grid .content-pill::after,
.section.compact > .pill-grid:not(.consult-list) .content-pill::after {
  display: none;
}
.point-grid .content-pill:nth-child(2)::before,
.section.compact > .pill-grid:not(.consult-list) .content-pill:nth-child(2)::before {
  background: linear-gradient(135deg, var(--green), var(--line));
}
.point-grid .content-pill:nth-child(3)::before,
.section.compact > .pill-grid:not(.consult-list) .content-pill:nth-child(3)::before {
  background: linear-gradient(135deg, #d79c20, var(--gold));
}
.point-grid .content-pill:nth-child(4)::before,
.section.compact > .pill-grid:not(.consult-list) .content-pill:nth-child(4)::before {
  background: linear-gradient(135deg, #6b70b8, var(--brand));
}

/* Detail blocks: reduce dense brochure feeling */
.detail-grid {
  align-items: stretch;
}
.detail-card {
  border-radius: var(--card-radius-lg);
  background: rgba(255,255,255,.97);
}
.detail-card span {
  color: var(--brand);
  font-weight: 900;
}
.detail-card strong {
  color: var(--brand-deep);
}

/* Related courses: stronger customer navigation */
.next-courses {
  padding-top: clamp(18px, 3vw, 32px);
}
.next-courses h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  margin-bottom: 4px;
}
.next-courses div {
  max-width: 1304px;
  margin-left: auto;
  margin-right: auto;
}
.next-courses a {
  padding: 18px 18px;
  font-weight: 820;
  line-height: 1.35;
}
.next-courses a:hover::after {
  background: var(--brand);
  color: #fff;
}

/* Consultation section: make next action obvious */
.consult-guide {
  border-top: 1px solid rgba(223,228,239,.62);
  border-bottom: 1px solid rgba(223,228,239,.62);
}
.consult-list .content-pill {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,250,254,.95));
}
.access-section {
  scroll-margin-top: calc(var(--header-height, 96px) + 18px);
}
#contact,
#wechat {
  scroll-margin-top: calc(var(--header-height, 96px) + 18px);
}

/* Mobile refinements: more natural vertical flow */
@media (max-width: 700px) {
  .site-header {
    z-index: 1000;
  }
  .hero,
  .detail-hero {
    padding-top: 18px;
  }
  .hero-actions .line-btn,
  .hero-actions .ghost-btn,
  .cta-panel .line-btn,
  .cta-panel .ghost-btn {
    flex-basis: 100%;
  }
  .family-card,
  .line-course-card,
  .featured-course-card,
  .summer-entry,
  .schedule-card,
  .course-practical-card,
  .detail-card,
  .teacher-card,
  .social-card {
    border-radius: 18px;
  }
  .schedule-card span,
  .course-practical-card span {
    font-size: 11px;
  }
  .schedule-card strong {
    font-size: 20px;
  }
  .course-practical-card::before {
    top: 16px;
    bottom: 16px;
  }
  .course-practical-grid {
    gap: 11px;
  }
  .course-points-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .course-points-section::before {
    inset: 0 10px;
    border-radius: 22px;
  }
  .point-grid .content-pill,
  .section.compact > .pill-grid:not(.consult-list) .content-pill {
    min-height: auto;
    padding: 18px 18px 18px 62px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.62;
  }
  .point-grid .content-pill::before,
  .section.compact > .pill-grid:not(.consult-list) .content-pill::before {
    left: 16px;
    top: 17px;
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }
  .consult-list .content-pill {
    align-items: flex-start;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .next-courses {
    margin-top: 10px;
    padding-bottom: 72px;
  }
  .next-courses a::after {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .mobile-bottom-cta {
    box-shadow: 0 18px 52px rgba(31,38,85,.20);
  }
}

@media (max-width: 430px) {
  .course-points-section .section-head .eyebrow {
    justify-content: flex-start;
  }
  .point-grid .content-pill,
  .section.compact > .pill-grid:not(.consult-list) .content-pill {
    padding-left: 58px;
  }
  .point-grid .content-pill::before,
  .section.compact > .pill-grid:not(.consult-list) .content-pill::before {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}


/* =========================================================
   Professional layout pass: clearer course focus cards,
   better course readability, and safer mobile behavior.
   ========================================================= */
.course-points-section .section-head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.point-grid {
  counter-reset: focus;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  max-width: 1160px;
  margin: clamp(22px, 3vw, 34px) auto 0;
}
.point-card {
  counter-increment: focus;
  position: relative;
  min-height: 176px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(223,228,239,.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.96));
  box-shadow: 0 18px 48px rgba(31,38,85,.08);
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.point-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75,81,145,.24);
  box-shadow: 0 28px 70px rgba(31,38,85,.13);
}
.point-card::before {
  content: counter(focus, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 12px 26px rgba(75,81,145,.18);
}
.point-card:nth-child(2)::before { background: linear-gradient(135deg, var(--green), var(--line)); }
.point-card:nth-child(3)::before { background: linear-gradient(135deg, #d79c20, var(--gold)); }
.point-card:nth-child(4)::before { background: linear-gradient(135deg, #6b70b8, var(--brand)); }
.point-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,81,145,.10), transparent 68%);
  pointer-events: none;
}
.point-card h3 {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
}
.point-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
/* Keep legacy point items presentable if any remain */
.point-grid .content-pill {
  min-height: auto;
}
.course-detail-block .section-head,
.course-practical-section .section-head,
.schedule-section .section-head {
  max-width: 860px;
}
.schedule-card strong,
.course-practical-card span,
.detail-card strong {
  text-wrap: balance;
}
.course-practical-card ul,
.schedule-card p,
.detail-card p {
  font-size: 15px;
}
.course-practical-card li,
.summer-detail-grid li {
  margin-bottom: 2px;
}
.mobile-bottom-cta a {
  white-space: nowrap;
}
@media (max-width: 1040px) {
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .point-card { min-height: 160px; }
}
@media (max-width: 700px) {
  .course-points-section .section-head { text-align: left; }
  .point-grid { grid-template-columns: 1fr; gap: 12px; }
  .point-card {
    min-height: 0;
    padding: 18px 18px 18px 74px;
    border-radius: 18px;
  }
  .point-card::before {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 14px;
  }
  .point-card h3 { font-size: 18px; margin-bottom: 5px; }
  .point-card p { font-size: 14.5px; line-height: 1.62; }
  .section-head p { line-height: 1.72; }
  .schedule-card, .course-practical-card, .detail-card { padding: 18px; }
  .course-practical-card ul { padding-left: 1.05em; }
  .hero-actions .line-btn, .hero-actions .ghost-btn { min-width: 0; }
  .mobile-bottom-cta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-bottom-cta a { font-size: 12.5px; }
}
@media (max-width: 430px) {
  .point-card { padding-left: 66px; }
  .point-card::before { left: 16px; width: 34px; height: 34px; font-size: 12px; }
}


/* News system styles */
.latest-section {
  position: relative;
}
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.news-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.92));
  box-shadow: 0 18px 46px rgba(31, 38, 85, .08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-card::before {
  content: attr(data-type);
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(26, 63, 122, .08);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  pointer-events: none;
}
.news-card span {
  width: fit-content;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(26, 63, 122, .06);
  border: 1px solid rgba(26, 63, 122, .12);
  border-radius: 999px;
  padding: 7px 12px;
}
.news-card h3 {
  margin: 8px 0 0;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.22;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.news-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}
.news-guide-card {
  max-width: 980px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 50px rgba(31,38,85,.08);
  padding: clamp(22px, 3vw, 34px);
}
.news-guide-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.8;
}
.news-hero .course-hero-copy {
  max-width: 780px;
}
.wechat-modal[hidden] { display: none; }
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 24, 44, .58);
  backdrop-filter: blur(10px);
}
.wechat-modal__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 28px 88px rgba(0,0,0,.22);
  position: relative;
}
.wechat-modal__panel h2 { margin: 6px 0 8px; }
.wechat-modal__panel p { color: var(--muted); line-height: 1.65; }
.wechat-modal__panel img {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  margin: 16px auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.wechat-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}
.wechat-copy { margin: 8px auto 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 980px) {
  .news-card-grid, .news-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-card-grid, .news-list-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .wechat-modal { padding: 16px; }
  .wechat-modal__panel { border-radius: 22px; padding: 22px; }
}


/* Promo window: latest courses, events, videos and flyers */
.promo-window {
  position: relative;
}
.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 18px;
  align-items: stretch;
}
.promo-card {
  border: 1px solid rgba(20, 54, 92, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(20, 54, 92, 0.08);
}
.promo-feature {
  background: linear-gradient(135deg, rgba(25, 112, 210, .10), rgba(255,255,255,.98));
}
.promo-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: #145ca8;
  background: rgba(25, 112, 210, .10);
  margin-bottom: 12px;
}
.promo-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.promo-card p {
  margin: 0 0 16px;
  color: var(--muted, #5b6b7d);
  line-height: 1.75;
}
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}
.text-link::after {
  content: "→";
  margin-left: .35em;
}
@media (max-width: 900px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

.promo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin: 0 0 16px;
  border: 1px solid rgba(20, 54, 92, .10);
  background: #f5f8fc;
}
.promo-card .material-links,
.news-card .material-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.material-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 92, 168, .18);
  background: rgba(20, 92, 168, .08);
  color: #145ca8;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.material-chip:hover {
  transform: translateY(-1px);
}
.promo-window .section-heading p {
  max-width: 780px;
}
@media (max-width: 640px) {
  .promo-thumb {
    aspect-ratio: 16 / 10;
  }
}
