:root {
  --blue: #06388c;
  --blue-2: #0b58bf;
  --navy: #001d62;
  --green: #188a31;
  --green-soft: #ecf8e9;
  --red: #e73522;
  --orange: #ff7b21;
  --yellow: #ffe35a;
  --ink: #14213d;
  --muted: #5b6b85;
  --line: #c8d8f2;
  --paper: #f7fbff;
  --surface: #ffffff;
  --shadow: 0 20px 50px rgba(0, 29, 98, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 800;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.global-nav a {
  padding: 8px 0;
}

.nav-cta {
  padding: 10px 18px !important;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff 0%, #ffffff 56%, #e9f3ff 100%),
    var(--paper);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(11, 88, 191, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 88, 191, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-8deg) scale(1.18);
}

.hero-deco {
  position: absolute;
  width: 210px;
  height: 210px;
  transform: rotate(45deg);
}

.hero-deco-a {
  top: -112px;
  left: -86px;
  background: var(--blue-2);
}

.hero-deco-b {
  right: -92px;
  bottom: 60px;
  background: #a8d460;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 78px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 900;
}

.kicker.green {
  color: var(--green);
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 10vw, 138px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  display: inline-block;
  margin: 24px 0 30px;
  padding: 8px 0;
  color: var(--navy);
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
}

.catch {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.35;
}

.catch span {
  color: var(--green);
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 24px rgba(24, 138, 49, 0.2);
}

.button.ghost {
  color: var(--blue);
  background: #fff;
  border-color: var(--blue);
}

.hero-visual {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
}

.campaign {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 40px));
  margin: -24px auto 0;
  padding: 30px 34px;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.campaign-seal {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, #ff9a2a, var(--red) 62%);
  border: 8px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--red), 0 16px 30px rgba(231, 53, 34, 0.28);
}

.campaign-seal span,
.campaign-seal small {
  font-weight: 900;
}

.campaign-seal strong {
  color: var(--yellow);
  font-size: 40px;
  line-height: 1.05;
}

.campaign-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.campaign-copy h2 {
  margin: 4px 0 8px;
  color: var(--red);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.section-pad {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: start;
  gap: 28px;
}

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading span {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
}

.section-heading h2,
.support h2,
.message h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.28;
}

.section-heading p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 280px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 29, 98, 0.08);
}

.price-card.junior {
  border-color: #188a31;
}

.price-card.elementary,
.price-card.entrance {
  border-color: #6ea2e9;
}

.price-label {
  display: inline-flex;
  min-width: 180px;
  justify-content: center;
  padding: 7px 18px;
  color: #fff;
  background: var(--blue-2);
  border-radius: 999px;
  font-size: 28px;
  font-weight: 900;
}

.junior .price-label {
  background: var(--green);
}

.entrance .price-label {
  background: var(--navy);
}

.price-card p {
  margin: 18px 0 0;
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.1;
}

.junior strong {
  color: var(--green);
}

.price-card strong span {
  font-family: inherit;
  font-size: 28px;
}

.price-card small {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.icon,
.round-icon,
.cap-icon,
.support-icon {
  margin: 22px auto 0;
}

.icon {
  width: 64px;
  height: 64px;
  position: relative;
}

.pencil::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 14px;
  left: 8px;
  top: 28px;
  background: var(--green);
  transform: rotate(-42deg);
}

.pencil::after {
  content: "";
  position: absolute;
  left: 45px;
  top: 12px;
  border-left: 14px solid var(--green);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: rotate(-42deg);
}

.book::before,
.book::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 28px;
  height: 42px;
  border: 4px solid var(--blue);
  border-radius: 2px;
}

.book::before {
  left: 2px;
  border-right: none;
}

.book::after {
  right: 2px;
  border-left: none;
}

.school::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 38px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 35%, 100% 100%, 0 100%, 0 35%);
}

.school::after {
  content: "";
  position: absolute;
  top: 0;
  left: 31px;
  width: 4px;
  height: 28px;
  background: var(--blue);
  box-shadow: 10px 4px 0 #a8d460;
}

.support {
  padding-top: 24px;
}

.support-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 34px;
  padding: 34px 42px;
  background: linear-gradient(90deg, var(--green-soft), #fff);
  border: 3px solid var(--green);
  border-radius: 14px;
}

.support-icon {
  width: 112px;
  height: 112px;
  position: relative;
}

.support-icon::before,
.support-icon::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 36px;
  height: 62px;
  border: 5px solid var(--green);
  border-top: none;
  border-radius: 0 0 32px 32px;
}

.support-icon::before {
  left: 14px;
  transform: rotate(-18deg);
}

.support-icon::after {
  right: 14px;
  transform: rotate(18deg);
}

.support-icon span {
  position: absolute;
  left: 36px;
  top: 12px;
  width: 40px;
  height: 40px;
  border: 5px solid var(--green);
  transform: rotate(45deg);
  border-radius: 50% 50% 0 50%;
}

.support-box p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding: 24px;
  background: #fff;
  border: 2px solid #8ab7ed;
  border-radius: 12px;
}

.feature-row article {
  padding: 22px 24px;
  text-align: center;
}

.feature-row article + article {
  border-left: 3px dotted #8ab7ed;
}

.round-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #eaf4ff;
  position: relative;
}

.round-icon::before,
.round-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
}

.students::before {
  width: 20px;
  height: 20px;
  left: 22px;
  top: 25px;
  border-radius: 50%;
  box-shadow: 29px 0 0 var(--blue);
}

.students::after {
  width: 58px;
  height: 26px;
  left: 18px;
  bottom: 19px;
  border-radius: 28px 28px 0 0;
}

.lesson::before {
  left: 23px;
  top: 25px;
  width: 48px;
  height: 34px;
  border: 4px solid var(--blue);
  border-radius: 4px;
  background: transparent;
}

.lesson::after {
  width: 34px;
  height: 4px;
  left: 32px;
  top: 66px;
}

.growth::before {
  left: 24px;
  bottom: 24px;
  width: 10px;
  height: 22px;
  box-shadow: 18px -10px 0 var(--blue), 36px -24px 0 var(--blue);
}

.growth::after {
  left: 22px;
  top: 26px;
  width: 48px;
  height: 32px;
  border-left: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  background: transparent;
  transform: skewY(-22deg);
}

.feature-row h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.3;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

.message-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  background: #fff;
  border: 5px solid var(--blue);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cap-icon {
  position: relative;
  width: 108px;
  height: 92px;
}

.cap-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 98px;
  height: 42px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 38%, 50% 76%, 0 38%);
}

.cap-icon::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 48px;
  width: 58px;
  height: 28px;
  border-bottom: 7px solid var(--green);
  border-left: 7px solid var(--green);
  border-right: 7px solid var(--green);
  border-radius: 0 0 36px 36px;
}

.message-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.flyer {
  padding-top: 32px;
}

.flyer img {
  width: min(760px, 100%);
  margin: 34px auto 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact {
  padding: 84px 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 29, 98, 0.94), rgba(6, 56, 140, 0.96)),
    var(--navy);
}

.contact-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.contact .kicker,
.contact h2,
.contact p {
  color: #fff;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 28px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 42px 20px;
  text-align: center;
  background: #fff;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 13px 0;
  }

  .nav-cta {
    width: fit-content;
    margin-top: 10px;
  }

  .hero-inner,
  .campaign,
  .support-box,
  .message-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .price-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row article + article {
    border-left: none;
    border-top: 3px dotted #8ab7ed;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .section-pad,
  .campaign {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .hero-inner {
    padding: 58px 0 52px;
  }

  .lead {
    font-size: 22px;
  }

  .campaign,
  .support-box,
  .message-card {
    padding: 26px;
  }

  .campaign-seal {
    width: 164px;
    height: 164px;
  }

  .campaign-seal strong {
    font-size: 32px;
  }

  .price-label {
    min-width: 150px;
    font-size: 24px;
  }
}
