:root {
  --ink: #25415f;
  --text: #405365;
  --muted: #718394;
  --navy: #3b6f9d;
  --blue: #64a8df;
  --red: #f0707c;
  --teal: #45b8a8;
  --gold: #dda945;
  --paper: #ffffff;
  --cream: #fffaf0;
  --mist: #eff9ff;
  --aqua: #e9fbf5;
  --rose: #fff1f1;
  --sun: #fff4cf;
  --line: #d9e9ee;
  --shadow: 0 18px 44px rgba(37, 65, 95, .12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}

body,
button,
input,
textarea {
  font-feature-settings: "palt";
}

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 42px);
  border-bottom: 1px solid rgba(217, 233, 238, .84);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue) 58%, var(--red));
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.35;
}

.brand strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  line-height: 1;
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(240, 112, 124, .22);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, #fffaf0 0%, #effbff 52%, #fff 100%);
}

.hero-bg {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  grid-template-areas:
    "copy visual"
    "facts facts";
  gap: clamp(24px, 4.4vw, 58px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 82px) 0 clamp(34px, 5vw, 58px);
}

.hero-copy {
  grid-area: copy;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 910px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.18;
}

.hero h1 span {
  display: block;
}

.hero-statement {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--navy);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.95;
}

.hero-visual {
  grid-area: visual;
  position: relative;
}

.hero-visual figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 184, 168, .22);
  border-radius: 8px;
  background: #eaf7f7;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: clamp(360px, 42vw, 520px);
  object-fit: cover;
  filter: saturate(1.08) brightness(1.06);
}

.hero-note {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  max-width: min(360px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid rgba(69, 184, 168, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px rgba(37, 65, 95, .13);
}

.hero-note span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.hero-note strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.35;
}

.hero-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-actions,
.final-inner .button {
  margin-top: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 32px rgba(240, 112, 124, .26);
}

.button.secondary {
  color: var(--navy);
  border-color: rgba(69, 184, 168, .34);
  background: #fff;
}

.hero-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  min-height: 82px;
  padding: 18px;
  border: 1px solid rgba(69, 184, 168, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 65, 95, .07);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.section {
  padding: clamp(68px, 8vw, 110px) 0;
}

.intro {
  background: linear-gradient(180deg, #fff 0%, #f4fcff 100%);
}

.intro-grid,
.split,
.parents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.section h2,
.final-cta h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.section p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.95;
}

.quote-panel {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(12, 143, 135, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(233, 251, 245, .98), #fff 68%),
    var(--aqua);
  box-shadow: var(--shadow);
}

.quote-panel span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.quote-panel strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(30px, 5vw, 46px);
  text-align: center;
}

.problem {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}

.issue-grid,
.subject-grid {
  display: grid;
  gap: 16px;
}

.issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-grid article,
.program-list article,
.subject-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(37, 65, 95, .08);
}

.issue-grid article {
  padding: 24px;
}

.issue-grid span {
  display: inline-flex;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.issue-grid p,
.program-list p,
.subject-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.program {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
}

.program-split {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 74px);
}

.program-copy {
  max-width: 680px;
}

.program .program-title {
  max-width: 680px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.34;
  text-wrap: balance;
}

.program .program-title span {
  display: block;
}

.message {
  background: #fff;
}

.message-inner {
  max-width: 920px;
  padding: clamp(28px, 5vw, 54px);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff 0%, var(--sun) 44%, #eefaf8 100%);
  box-shadow: var(--shadow);
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf7f7;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.08) brightness(1.05);
}

.program-photo {
  align-self: center;
  aspect-ratio: 4 / 3;
}

.program-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-position: center;
}

.program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.program-list article {
  padding: 20px;
}

.schedule {
  color: var(--text);
  background: linear-gradient(135deg, #fff4cf 0%, #e9fbf5 48%, #eff9ff 100%);
}

.method {
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(12, 143, 135, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f2fbfa 100%);
  box-shadow: 0 14px 32px rgba(37, 65, 95, .07);
}

.method-grid span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.schedule h2,
.schedule h3 {
  color: var(--ink);
}

.schedule .section-head p,
.schedule .timeline p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  position: relative;
  min-height: 235px;
  padding: 24px;
  border: 1px solid rgba(69, 184, 168, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 30px rgba(37, 65, 95, .08);
}

.timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 7px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.scenes {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scenes-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 184, 168, .2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(37, 65, 95, .08);
}

.scenes-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.06) brightness(1.04);
}

.scenes-grid figcaption {
  min-height: 92px;
  padding: 16px;
}

.scenes-grid span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.scenes-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.parents {
  background:
    linear-gradient(180deg, #fff 0%, var(--rose) 56%, #fffaf0 100%);
}

.parents-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid rgba(240, 112, 124, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.outcomes {
  background: #fff;
}

.subject-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.subject-grid article {
  min-height: 180px;
  padding: 22px;
  border-top: 5px solid var(--teal);
}

.subject-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.subject-grid article:nth-child(3) {
  border-top-color: var(--gold);
}

.subject-grid article:nth-child(4) {
  border-top-color: var(--red);
}

.subject-grid article:nth-child(5) {
  border-top-color: var(--navy);
}

.faq {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
}

.faq-list {
  display: grid;
  max-width: 860px;
  gap: 12px;
  margin: 0 auto;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
}

.final-cta {
  padding: clamp(70px, 9vw, 118px) 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .96), rgba(233, 251, 245, .78)),
    url("kokugo-lab-hero-photo.png") center / cover no-repeat;
}

.final-inner {
  max-width: 820px;
  text-align: center;
}

.final-cta h2 {
  color: var(--ink);
}

.final-cta p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  padding: clamp(46px, 6vw, 72px) 0 24px;
  color: rgba(37, 65, 95, .86);
  background:
    linear-gradient(180deg, #fff 0%, #eff9ff 52%, #fffaf0 100%);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, .78fr) minmax(300px, .92fr);
  gap: clamp(26px, 4.5vw, 56px);
  align-items: start;
}

.footer-brand p,
.footer-contact p,
.footer-bottom p {
  margin: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo strong,
.footer-logo small {
  display: block;
  line-height: 1.35;
}

.footer-logo strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.footer-logo small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.footer-brand > p {
  max-width: 380px;
  margin-top: 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.footer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
  margin: 22px 0 0;
}

.footer-facts div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(69, 184, 168, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.footer-facts dt {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.footer-facts dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer-nav h2,
.footer-contact h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.footer-nav h2 {
  font-size: 15px;
  line-height: 1.4;
}

.footer-nav a {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.footer-nav a:hover {
  color: var(--teal);
}

.footer-contact {
  padding: 24px;
  border: 1px solid rgba(240, 112, 124, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 32px rgba(37, 65, 95, .08);
}

.footer-contact .eyebrow {
  margin-bottom: 9px;
}

.footer-contact h2 {
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.45;
}

.footer-contact p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.footer-contact .button {
  width: 100%;
  margin-top: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: 18px;
  border-top: 1px solid rgba(217, 233, 238, .9);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intro-grid,
  .split,
  .parents-grid,
  .issue-grid,
  .timeline,
  .scenes-grid,
  .subject-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "facts";
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .timeline article {
    min-height: auto;
  }

  .program-copy {
    max-width: none;
  }

  .program-photo {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand > p,
  .footer-facts {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 9px 13px;
  }

  .hero-inner {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(32px, 12vw, 46px);
  }

  .hero h1 span {
    display: inline;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -28px 14px 0;
  }

  .hero-visual img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-lead {
    line-height: 1.85;
  }

  .button {
    width: 100%;
  }

  .program-list {
    grid-template-columns: 1fr;
  }

  .program .program-title {
    font-size: clamp(24px, 6.4vw, 28px);
    line-height: 1.38;
  }

  .issue-grid article,
  .program-list article,
  .timeline article,
  .scenes-grid figcaption,
  .subject-grid article,
  .method-grid article {
    padding: 20px;
  }

  .footer-facts,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    padding: 20px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }
}
