:root {
  --blue: #0b315f;
  --cyan: #23a7bb;
  --cyan-dark: #168ca0;
  --cyan-light: #d9f3f6;
  --yellow: #ffe725;
  --cream: #fff8df;
  --text: #26354a;
  --muted: #687588;
  --line: #d9e5ea;
  --white: #fff;
  --shadow: 0 14px 30px rgba(20, 49, 83, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--white);
}

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

p {
  overflow-wrap: anywhere;
}

.feature-card,
.flow-card,
.curriculum-text,
.teacher-text,
.access-info {
  min-width: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(13, 55, 94, .08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 6px;
  font-family: Montserrat, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.brand-text {
  font-size: 15px;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: clamp(430px, 54vw, 650px);
  overflow: hidden;
  background: #60c6d7;
}

.hero picture,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center bottom;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(44px, 7vw, 82px);
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 80, 110, .2);
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mobile-only {
  display: none;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.hero-points span {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 10px 14px;
  color: var(--blue);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 900;
  line-height: 1.45;
  text-shadow: none;
  background: var(--yellow);
  border-radius: 6px;
  box-shadow: 0 7px 16px rgba(1, 89, 112, .18);
}

.section {
  padding: clamp(54px, 8vw, 95px) 0;
}

.cream {
  background: var(--cream);
}

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

.narrow {
  width: min(820px, calc(100% - 40px));
}

.intro {
  padding: 42px 0 48px;
  text-align: center;
}

.intro p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

h2 {
  margin: 0 0 34px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.lead {
  max-width: 740px;
  margin: -16px auto 36px;
  color: var(--muted);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  min-height: 288px;
  padding: 30px 24px;
  text-align: center;
  background: #e1f5f7;
  border: 1px solid #c5e8ee;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.icon-box {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--blue);
}

.icon {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
}

.icon.users::before,
.icon.users::after {
  position: absolute;
  content: "";
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon.users::before {
  top: 4px;
  left: 17px;
  width: 17px;
  height: 17px;
}

.icon.users::after {
  left: 10px;
  bottom: 8px;
  width: 30px;
  height: 22px;
  border-radius: 16px 16px 7px 7px;
}

.icon.laptop {
  border: 3px solid currentColor;
  border-radius: 5px;
}

.icon.laptop::before {
  position: absolute;
  right: -8px;
  bottom: -12px;
  left: -8px;
  height: 8px;
  content: "";
  border: 3px solid currentColor;
  border-radius: 0 0 8px 8px;
}

.icon.graph {
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.icon.graph::before {
  position: absolute;
  right: 4px;
  bottom: 10px;
  left: 8px;
  height: 28px;
  content: "";
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: skew(-30deg);
}

.feature-card p,
.flow-card p,
.teacher p,
.can-do p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.contact-band {
  padding: 30px 0;
  background: linear-gradient(180deg, var(--white) 0 50%, var(--cream) 50% 100%);
}

.cream + .contact-band {
  background: linear-gradient(180deg, var(--cream) 0 50%, var(--white) 50% 100%);
}

.contact-panel {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 36px 34px;
  color: var(--white);
  text-align: center;
  background: var(--cyan);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.english {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 3px;
}

.contact-panel p:not(.english) {
  margin: 8px 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 38px;
  padding: 8px 22px;
  color: var(--cyan-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pill-button.outline {
  color: var(--blue);
  border-color: #9ab9c4;
}

.curriculum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.curriculum img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.curriculum dl,
.access-info dl {
  margin: 0;
}

.curriculum dl div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 49, 95, .18);
}

.curriculum dt,
.access-info dt {
  color: var(--cyan-dark);
  font-weight: 900;
}

.curriculum dd,
.access-info dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.skill-list,
.can-do {
  margin-top: 58px;
}

.skill-list h3,
.can-do h3 {
  text-align: center;
}

.skill-list ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  position: relative;
  padding-left: 26px;
}

.skill-list li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
}

.skill-list strong {
  display: block;
  color: var(--blue);
}

.skill-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.can-do {
  text-align: center;
}

.can-do p {
  max-width: 720px;
  margin: 0 auto 24px;
}

.teacher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: center;
}

.teacher img {
  width: 280px;
  aspect-ratio: 1 / 1;
  padding: 18px;
  object-fit: contain;
  background: #f3fbfc;
  border: 1px solid #d5edf2;
  border-radius: 50%;
  box-shadow: 0 16px 28px rgba(20, 49, 83, .1);
}

.role {
  color: var(--cyan-dark) !important;
  font-weight: 900;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-card {
  padding: 16px 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.flow-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  margin-bottom: 18px;
  object-fit: cover;
}

.flow-card .step {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--blue);
}

.price-head,
.price-row {
  display: grid;
  grid-template-columns: 1.7fr .8fr 1fr;
}

.price-head {
  color: var(--white);
  font-weight: 900;
  background: var(--blue);
}

.price-head span,
.price-row span {
  min-height: 52px;
  padding: 13px 18px;
  border-right: 1px solid rgba(255, 255, 255, .35);
}

.price-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  background: var(--white);
  border-right-color: var(--line);
}

.price-row span:first-child {
  justify-content: flex-start;
}

.notice {
  max-width: 640px;
  margin: 44px auto 0;
  padding: 24px 32px;
  text-align: center;
  background: var(--yellow);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice p {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.notice span {
  color: #5f5a24;
  font-size: 14px;
  font-weight: 900;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: center;
}

.access-info p {
  margin: 0 0 24px;
  color: var(--muted);
}

.access-info dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(11, 49, 95, .18);
}

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.form-container {
  width: min(700px, calc(100% - 40px));
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  font: inherit;
  background: #d7f2f5;
  border: 1px solid #afdde5;
  border-radius: 0;
}

.contact-form textarea {
  resize: vertical;
}

.required {
  margin-left: 6px;
  color: #c73838;
  font-size: 12px;
}

.privacy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.privacy p {
  margin: 0 0 8px;
}

.check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 500 !important;
}

.check input {
  width: 17px;
  min-height: 17px;
  margin-top: 6px;
}

.submit-button {
  justify-self: center;
  min-width: 210px;
  min-height: 42px;
  padding: 9px 26px;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  background: var(--white);
  border: 2px solid #9ab9c4;
  border-radius: 999px;
  cursor: pointer;
}

.result-section {
  background: var(--cream);
}

.result-container {
  width: min(760px, calc(100% - 40px));
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-container .english {
  margin: 0 0 12px;
  color: var(--cyan-dark);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.result-container h1 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.result-lead {
  margin: 0 auto 28px;
  color: var(--muted);
  font-weight: 700;
}

.result-errors {
  display: inline-grid;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  color: #9f2525;
  text-align: left;
  background: #fff2f2;
  border: 1px solid #f0c6c6;
  border-radius: 8px;
}

.result-container .pill-button {
  border-color: #9ab9c4;
}

body.modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal.is-open,
.privacy-modal.is-open,
.sample-modal.is-open {
  display: flex;
}

.confirm-modal__backdrop,
.privacy-modal__backdrop,
.sample-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 62, .55);
}

.confirm-modal__dialog,
.privacy-modal__dialog,
.sample-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(24px, 5vw, 38px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(10, 35, 62, .22);
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sample-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal__dialog {
  width: min(760px, 100%);
}

.sample-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
}

.sample-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.sample-modal__header h2 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.sample-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  background: var(--white);
  border: 2px solid #9ab9c4;
  border-radius: 50%;
  cursor: pointer;
}

.sample-modal__frame {
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #f7fbfc;
}

.confirm-modal__dialog h3 {
  margin: 0 0 8px;
  text-align: center;
}

.privacy-modal__dialog h2 {
  margin-bottom: 22px;
}

.privacy-policy-content {
  display: grid;
  gap: 14px;
}

.privacy-policy-content h3 {
  margin: 10px 0 -6px;
  font-size: 16px;
}

.privacy-policy-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.privacy-modal__close {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
}

.confirm-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.confirm-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.confirm-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.confirm-list dt {
  color: var(--blue);
  font-weight: 900;
}

.confirm-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.modal-button {
  min-width: 160px;
  min-height: 42px;
  padding: 9px 22px;
  font: inherit;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
}

.modal-button--back {
  color: var(--blue);
  background: var(--white);
  border: 2px solid #9ab9c4;
}

.modal-button--send {
  color: var(--white);
  background: var(--cyan);
  border: 2px solid var(--cyan);
}

.site-footer {
  padding: 30px 20px;
  color: #717171;
  text-align: center;
  background: #f1f1f1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .global-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 2px 16px;
    font-size: 12px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-image {
    object-position: center bottom;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .hero-points,
  .feature-grid,
  .curriculum,
  .teacher,
  .flow-grid,
  .access-layout {
    grid-template-columns: 1fr;
  }

  .hero-points {
    max-width: 360px;
    gap: 10px;
  }

  .hero-points span {
    min-height: 48px;
  }

  .feature-card {
    min-height: auto;
  }

  .teacher img {
    width: min(100%, 320px);
    margin: 0 auto;
  }

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

  .price-head span,
  .price-row span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container,
  .narrow,
  .form-container {
    width: calc(100vw - 28px);
    max-width: 980px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-copy {
    width: calc(100vw - 28px);
  }

  .hero-points,
  .feature-grid,
  .flow-grid {
    width: 100%;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 27px;
  }

  .mobile-only {
    display: block;
  }

  .contact-panel {
    width: calc(100% - 28px);
    padding: 26px 16px 28px;
  }

  .pill-button {
    width: 100%;
    min-width: 0;
  }

  .button-row {
    gap: 10px;
  }

  .access-info dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .confirm-modal,
  .privacy-modal,
  .sample-modal {
    padding: 14px;
  }

  .sample-modal__dialog {
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
  }

  .confirm-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal-button {
    width: 100%;
  }
}
