:root {
  --blue: #47bde9;
  --blue-deep: #1295cd;
  --blue-soft: #eaf9ff;
  --green: #8ae2ca;
  --yellow: #fff4b8;
  --ink: #173244;
  --muted: #5f7480;
  --line: #d8edf6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(24, 90, 125, 0.12);
  --radius: 28px;
  --brand-font: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

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

.section-pad {
  padding: 96px 0;
}

.bg-soft {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 237, 246, 0.82);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-deep);
  font-family: var(--brand-font);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
}

.brand-logo,
.footer-logo {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  font-size: inherit;
  line-height: 1;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 22px);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.global-nav a {
  position: relative;
  white-space: nowrap;
}

.global-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 20px rgba(18, 149, 205, 0.18);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 14px 28px rgba(18, 149, 205, 0.22);
}

.button.secondary {
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(24, 90, 125, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(138, 226, 202, 0.28) 0 17%, transparent 18%),
    radial-gradient(circle at 88% 20%, rgba(71, 189, 233, 0.22) 0 20%, transparent 21%),
    linear-gradient(180deg, #ffffff 0%, #effaff 100%);
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.4vw, 4.55rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

h1 span {
  color: var(--blue-deep);
}

.hero-brand-title {
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-family: var(--brand-font);
  font-size: clamp(4rem, 10vw, 8.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.hero-main-copy {
  max-width: 920px;
  margin: 0 auto 34px;
  color: var(--ink);
  font-size: clamp(1.16rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 2;
  letter-spacing: 0.04em;
}

.hero .section-kicker {
  text-align: center;
}


h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.45;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-visual {
  position: relative;
  min-height: 450px;
}

.slime-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 72vw);
  aspect-ratio: 1 / 0.86;
  transform: translate(-50%, -50%);
  border-radius: 56% 56% 45% 45%;
  background: radial-gradient(circle at 34% 24%, rgba(255,255,255,0.96) 0 10%, transparent 11%), linear-gradient(145deg, #77dcff 0%, #22a9dc 54%, #138fc6 100%);
  box-shadow: var(--shadow), inset 0 -18px 0 rgba(0, 91, 132, 0.14);
}

.slime-face {
  position: absolute;
  inset: 0;
}

.eye {
  position: absolute;
  top: 43%;
  width: 28px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
}

.eye.left {
  left: 33%;
}

.eye.right {
  right: 33%;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 76px;
  height: 36px;
  border: 6px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 80px 80px;
  transform: translateX(-50%);
}

.bubble,
.mini-note {
  position: absolute;
  z-index: 2;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(216, 237, 246, 0.95);
  box-shadow: 0 14px 36px rgba(24, 90, 125, 0.1);
  font-weight: 900;
}

.bubble {
  min-width: 74px;
  padding: 12px 16px;
  text-align: center;
  color: var(--blue-deep);
}

.bubble-1 {
  left: 4%;
  top: 14%;
  transform: rotate(-8deg);
}

.bubble-2 {
  right: 11%;
  top: 16%;
  font-size: 1.8rem;
  transform: rotate(8deg);
}

.bubble-3 {
  right: 4%;
  bottom: 17%;
  transform: rotate(-6deg);
}

.mini-note {
  left: 3%;
  bottom: 15%;
  padding: 16px 18px;
  color: var(--ink);
  transform: rotate(6deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: 10px auto 0;
  background: var(--blue);
}

.about-stack {
  max-width: 880px;
}

.about-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.about-copy p:last-child,
.recommend-card p:last-child,
.course-card p:last-child,
.price-card p:last-child,
.final-cta-inner p:last-child {
  margin-bottom: 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.narrow {
  max-width: 680px;
}

.section-head p:not(.section-kicker) {
  color: var(--muted);
}

.recommend-grid,
.course-grid,
.price-grid {
  display: grid;
  gap: 24px;
}

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

.recommend-card,
.course-card,
.price-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 90, 125, 0.08);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 900;
}

.flow-list {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.flow-list::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--line);
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(24, 90, 125, 0.06);
}

.step-num {
  z-index: 1;
  display: inline-flex;
  align-self: start;
  justify-content: center;
  min-width: 112px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.center-action {
  margin-top: 36px;
  text-align: center;
}

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

.course-card {
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.course-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: rgba(71, 189, 233, 0.65);
  box-shadow: 0 20px 44px rgba(24, 90, 125, 0.13);
}

.course-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.price-grid {
  grid-template-columns: repeat(2, 1fr);
}

.price-card h3 {
  color: var(--blue-deep);
}

.note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  color: #4f6673;
  background: #f5fbfe;
  font-size: 0.92rem;
}

.news-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--blue-deep);
  font-weight: 900;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 900;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,0.9) 0 8%, transparent 9%),
    linear-gradient(135deg, #e9fbff 0%, #f7fffb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta-inner {
  max-width: 920px;
}

.final-cta-inner p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.site-footer {
  padding: 54px 0 24px;
  color: var(--white);
  background: #173244;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

.footer-logo {
  width: 75px;
  height: 75px;
}

.footer-brand-text {
  font-size: inherit;
  line-height: 1;
}

.footer-grid p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-bottom {
  width: min(1120px, calc(100% - 40px));
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .global-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 10px 14px;
  }
}

@media (max-width: 1180px) {
  .section-pad {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 90px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-nav a {
    padding: 12px 14px;
  }

  .global-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .recommend-grid,
  .course-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }


  .flow-list::before {
    display: none;
  }

  .flow-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container,
  .footer-bottom {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    width: min(100% - 24px, 1220px);
    min-height: 68px;
  }

  .global-nav {
    top: 76px;
  }

  .brand,
  .footer-brand {
    gap: 9px;
    font-size: 2rem;
  }

  .brand-logo,
  .footer-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    font-size: inherit;
  }

  .hero-actions,
  .hero-actions.center {
    display: grid;
  }

  .button {
    width: 100%;
  }


  .news-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
