:root {
  --primary: #2ca9e1;
  --primary-dark: #1687bd;
  --secondary: #a0d8ef;
  --secondary-light: #eaf7fc;
  --ink: #20313c;
  --muted: #647782;
  --line: #dcecf3;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(44, 169, 225, 0.13);
  --radius-large: 30px;
  --radius-medium: 20px;
  --header-height: 82px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(160, 216, 239, 0.45);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-family: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
}

.site-logo img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.88rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.global-nav a:not(.nav-contact)::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.global-nav a:hover,
.global-nav a.is-current {
  color: var(--primary-dark);
}

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

.nav-contact {
  padding: 11px 18px;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(44, 169, 225, 0.24);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-contact:hover {
  color: var(--white) !important;
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: var(--secondary-light);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--primary-dark);
  border-radius: 999px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Shared layout */
.section {
  padding: 120px 24px;
}

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

.section-heading {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.hero-label,
.section-kicker,
.service-category {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.section-heading h2,
.contact-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-heading > p:last-child,
.contact-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 210px;
  padding: 15px 24px;
  font-size: 0.94rem;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button span {
  font-size: 1.25em;
  transition: transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover span {
  transform: translateX(5px);
}

.button-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(44, 169, 225, 0.3);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 15px 30px rgba(44, 169, 225, 0.35);
}

.button-outline {
  color: var(--primary-dark);
  background: var(--white);
  border-color: var(--secondary);
}

.button-outline:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(44, 169, 225, 0.22);
}

.button-white {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 75, 112, 0.15);
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  color: var(--primary-dark);
  font-weight: 900;
}

.text-link span {
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translateX(6px);
}

/* Home hero */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 70px) 24px 80px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(160, 216, 239, 0.5), transparent 25%),
    radial-gradient(circle at 88% 78%, rgba(44, 169, 225, 0.16), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f5fbfe 56%, #e9f7fc 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(44, 169, 225, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-copy {
  margin: 30px auto 38px;
  color: #405762;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 2;
}

/* Slime animation */
.slime-trio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.hero-slimes {
  align-items: flex-end;
  gap: 18px;
  min-height: 108px;
  margin: 0 auto 30px;
}

.slime-character {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 50px;
  height: 40px;
  background: linear-gradient(145deg, #d2f0fb, var(--primary));
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 52% 52% 42% 42% / 58% 58% 42% 42%;
  box-shadow: 0 10px 18px rgba(22, 135, 189, 0.22), inset -6px -7px 10px rgba(22, 135, 189, 0.12);
  transform-origin: center bottom;
}

.slime-character::before,
.slime-character::after {
  position: absolute;
  top: 16px;
  width: 4px;
  height: 7px;
  content: "";
  background: #1f4f65;
  border-radius: 50%;
}

.slime-character::before {
  left: 15px;
}

.slime-character::after {
  right: 15px;
}

.hero-slimes .slime-character {
  width: clamp(68px, 7.5vw, 88px);
  height: clamp(54px, 6vw, 70px);
  border-width: 5px;
}

.hero-slimes .slime-character::before,
.hero-slimes .slime-character::after {
  top: 42%;
  width: 7px;
  height: 12px;
}

.hero-slimes .slime-character::before {
  left: 31%;
}

.hero-slimes .slime-character::after {
  right: 31%;
}

.hero-slimes .slime-character-1 {
  animation: character-wave 5.4s ease-in-out infinite;
}

.hero-slimes .slime-character-2 {
  animation: character-wave 5.4s 0.75s ease-in-out infinite;
}

.hero-slimes .slime-character-3 {
  animation: character-wave 5.4s 1.5s ease-in-out infinite;
}

@keyframes character-wave {
  0%, 12%, 100% {
    transform: translateY(0) scaleX(1) scaleY(1);
  }

  4% {
    transform: translateY(-22px) scaleX(0.96) scaleY(1.05);
  }

  8% {
    transform: translateY(0) scaleX(1.08) scaleY(0.9);
  }
}

.scroll-guide {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.scroll-guide i {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: rgba(44, 169, 225, 0.25);
}

.scroll-guide i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--primary);
  animation: scroll-line 1.9s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }

  55%, 100% {
    top: 100%;
  }
}

.hero-decoration {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(44, 169, 225, 0.12);
  border-radius: 50%;
}

.hero-decoration-left {
  top: 18%;
  left: -140px;
  width: 330px;
  height: 330px;
}

.hero-decoration-right {
  right: -110px;
  bottom: 10%;
  width: 250px;
  height: 250px;
  background: rgba(160, 216, 239, 0.18);
}

/* Values */
.about-preview,
.news-preview,
.origin-section,
.education-section {
  background: var(--white);
}

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

.value-card {
  position: relative;
  min-height: 420px;
  padding: 42px 34px 38px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.value-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  content: "";
  background: var(--secondary-light);
  border-radius: 50%;
}

.value-card:hover {
  box-shadow: 0 24px 60px rgba(44, 169, 225, 0.18);
  transform: translateY(-8px);
}

.value-card h3 {
  margin: 4px 0 18px;
  color: var(--primary-dark);
  font-size: 1.65rem;
}

.value-card > p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4b626e;
  font-size: 0.94rem;
  text-align: left;
}

.card-slimes {
  align-items: flex-end;
  gap: 11px;
  min-height: 66px;
  margin-bottom: 20px;
}

.card-slimes .slime-character {
  width: 44px;
  height: 35px;
}

.card-slimes .slime-character::before,
.card-slimes .slime-character::after {
  top: 14px;
  width: 4px;
  height: 6px;
}

.card-slimes .slime-character::before {
  left: 13px;
}

.card-slimes .slime-character::after {
  right: 13px;
}

.card-slimes .is-active {
  animation: character-card-bounce 4.8s ease-in-out infinite;
}

@keyframes character-card-bounce {
  0%, 18%, 100% {
    transform: translateY(0) scaleX(1) scaleY(1);
  }

  7% {
    transform: translateY(-13px) scaleX(0.97) scaleY(1.04);
  }

  13% {
    transform: translateY(0) scaleX(1.08) scaleY(0.9);
  }
}

.about-value-grid .value-card {
  min-height: 390px;
}

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

/* Service */
.services-preview {
  background: var(--secondary-light);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--white);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.service-visual {
  display: grid;
  min-height: 380px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent),
    var(--secondary);
}

.english-illustration {
  position: relative;
  width: min(390px, 86%);
  aspect-ratio: 1 / 0.82;
}

.service-slime {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 150px;
  height: 118px;
  background: linear-gradient(145deg, #d2f0fb, var(--primary));
  border: 7px solid rgba(255, 255, 255, 0.88);
  border-radius: 52% 52% 42% 42% / 58% 58% 42% 42%;
  box-shadow: 0 22px 34px rgba(22, 135, 189, 0.25), inset -12px -14px 18px rgba(22, 135, 189, 0.12);
  transform: translateX(-50%);
}

.service-slime::before,
.service-slime::after {
  position: absolute;
  top: 45px;
  width: 11px;
  height: 17px;
  content: "";
  background: #1f4f65;
  border-radius: 50%;
}

.service-slime::before {
  left: 47px;
}

.service-slime::after {
  right: 47px;
}

.speech-bubble {
  position: absolute;
  z-index: 2;
  padding: 10px 17px;
  color: var(--primary-dark);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(22, 135, 189, 0.13);
  font-size: 0.82rem;
  font-weight: 900;
  animation: bubble-float 3s ease-in-out infinite;
}

.bubble-one {
  top: 11%;
  left: 8%;
}

.bubble-two {
  top: 28%;
  right: 0;
  animation-delay: 0.6s;
}

@keyframes bubble-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.game-block {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  transform: rotate(13deg);
}

.block-one {
  right: 20%;
  bottom: 8%;
}

.block-two {
  left: 16%;
  bottom: 22%;
  width: 30px;
  height: 30px;
  transform: rotate(-18deg);
}

.block-three {
  top: 8%;
  right: 17%;
  width: 25px;
  height: 25px;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 60px;
}

.service-content h3 {
  margin: 4px 0 22px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.3;
}

.service-content > p:not(.service-category) {
  margin: 0 0 26px;
  color: var(--muted);
}

/* News */
.news-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 110px 90px 1fr 26px;
  gap: 18px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, padding 0.25s ease;
}

.news-item:hover {
  padding-right: 0;
  padding-left: 16px;
  color: var(--primary-dark);
}

.news-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.news-tag {
  padding: 4px 9px;
  color: var(--primary-dark);
  background: var(--secondary-light);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.news-title {
  font-weight: 700;
}

.news-arrow {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Contact CTA */
.contact-cta {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.contact-cta::before,
.contact-cta::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.contact-cta::before {
  top: -100px;
  left: -70px;
  width: 260px;
  height: 260px;
}

.contact-cta::after {
  right: -140px;
  bottom: -180px;
  width: 390px;
  height: 390px;
}

.contact-cta-inner {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-cta h2 {
  font-size: clamp(1.2rem, 5vw, 3rem);
  white-space: nowrap;
}

.contact-cta .section-kicker,
.contact-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-cta p {
  margin: 0 0 30px;
}

/* Footer */
.site-footer {
  padding: 62px 24px 20px;
  color: #d9edf6;
  background: #173544;
}

.footer-inner,
.footer-bottom {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 50px;
}

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

.footer-brand > p {
  margin: 12px 0 0;
  color: #9fc5d7;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  max-width: 560px;
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-nav a {
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  color: #87adbf;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.footer-bottom a {
  font-weight: 800;
}

.page-top {
  cursor: pointer;
}

/* Page hero */
.page-hero {
  position: relative;
  display: grid;
  min-height: 68svh;
  padding: calc(var(--header-height) + 92px) 24px 90px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(160, 216, 239, 0.5), transparent 24%),
    radial-gradient(circle at 86% 75%, rgba(44, 169, 225, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f6fcff 58%, #e9f7fc 100%);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: radial-gradient(rgba(44, 169, 225, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.page-hero-copy {
  margin: 26px auto 0;
  color: #405762;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 2;
}

/* About page */
.story-section {
  background: linear-gradient(180deg, var(--secondary-light) 0%, #ffffff 100%);
}

.story-inner {
  max-width: 1040px;
}

.story-section .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.story-body {
  max-width: 900px;
  padding: 6px 18px 0;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.story-body p {
  margin: 0 0 28px;
  color: #455e6a;
  font-size: 1.08rem;
  line-height: 2.1;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-lead-in-card {
  margin: 0 0 34px !important;
  padding: 0 0 28px;
  color: var(--primary-dark) !important;
  font-size: clamp(1.45rem, 3.4vw, 2.45rem) !important;
  font-weight: 900;
  line-height: 1.7 !important;
  text-align: center;
  border-bottom: 1px solid rgba(44, 169, 225, 0.22);
}

.education-card {
  display: block;
  max-width: 980px;
  padding: 0;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.education-visual {
  display: none !important;
}

.education-content {
  padding: 62px 68px;
}

.education-content .section-kicker,
.education-content h2 {
  text-align: center;
}

.education-content h2 {
  margin: 0 0 26px;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.25;
}

.education-content p:not(.section-kicker) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 2.05;
}

.education-content p:last-child {
  margin-bottom: 0;
}

.promise-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfe 100%);
}

.promise-inner {
  position: relative;
  max-width: 900px;
  padding: 58px 64px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  text-align: center;
}

.promise-inner::before {
  position: absolute;
  top: -42px;
  left: 50%;
  width: 86px;
  height: 68px;
  content: "";
  background: linear-gradient(145deg, #d2f0fb, var(--primary));
  border: 5px solid rgba(255, 255, 255, 0.95);
  border-radius: 52% 52% 42% 42% / 58% 58% 42% 42%;
  box-shadow: 0 16px 28px rgba(22, 135, 189, 0.22);
  transform: translateX(-50%);
}

.promise-inner h2 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.35;
}

.promise-inner p:not(.section-kicker) {
  margin: 0 0 18px;
  color: #455e6a;
  font-size: 1.08rem;
  line-height: 2.05;
}

.promise-closing {
  margin-top: 30px !important;
  color: var(--primary-dark) !important;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem) !important;
  font-weight: 900;
}

.brand-word {
  display: inline-block;
  color: var(--primary-dark);
  font-family: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.18em;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Placeholder pages */
.page-hero-compact {
  display: grid;
  min-height: 560px;
  align-items: center;
}

.page-hero-compact .section-shell {
  text-align: center;
}

.page-hero-compact .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 980px) {
  .menu-button {
    position: relative;
    z-index: 1002;
    display: block;
  }

  .menu-button.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 90px 24px 40px;
    visibility: hidden;
    background: rgba(245, 251, 254, 0.98);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

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

  .global-nav a {
    font-size: 1.1rem;
  }

  .nav-contact {
    min-width: 220px;
    text-align: center;
  }

  .value-grid,
  .service-card,
  .news-layout {
    grid-template-columns: 1fr;
  }

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

  .service-content {
    padding: 44px 36px 48px;
  }

  .news-layout {
    gap: 10px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    width: min(1180px, calc(100% - 28px));
  }

  .site-logo {
    gap: 9px;
    font-size: 2rem;
  }

  .site-logo img {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 860px;
    padding: calc(var(--header-height) + 70px) 18px 90px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 2.15rem);
  }

  .hero-copy br {
    display: none;
  }

  .hero-slimes {
    gap: 10px;
    min-height: 88px;
  }

  .section {
    padding: 84px 18px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .value-card {
    padding: 36px 26px 32px;
  }

  .service-card {
    border-radius: 26px;
  }

  .service-visual {
    min-height: 300px;
  }

  .service-content {
    padding: 36px 26px 42px;
  }

  .news-item {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 20px 4px;
  }

  .news-item time {
    grid-column: 1;
  }

  .news-tag {
    grid-column: 2;
    grid-row: 1;
  }

  .news-title {
    grid-column: 1 / -1;
  }

  .news-arrow {
    display: none;
  }

  .contact-cta {
    padding: 78px 18px;
  }

  .contact-cta h2 {
    font-size: clamp(1.15rem, 5.3vw, 1.7rem);
    letter-spacing: 0;
  }

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

  .footer-nav {
    flex-direction: column;
    gap: 13px;
  }

  .footer-bottom {
    gap: 12px;
  }

  .page-hero {
    min-height: 620px;
    padding: calc(var(--header-height) + 70px) 18px 76px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .page-hero-copy br {
    display: none;
  }

  .story-body {
    padding: 0;
  }

  .story-body p,
  .education-content p:not(.section-kicker),
  .promise-inner p:not(.section-kicker) {
    font-size: 1rem;
    line-height: 1.95;
  }

  .story-body br,
  .education-content br,
  .story-lead-in-card br,
  .promise-inner br {
    display: inline;
  }

  .story-lead-in-card {
    margin-bottom: 28px !important;
    font-size: clamp(1.24rem, 6vw, 1.75rem) !important;
    text-align: left;
  }

  .education-card {
    border-radius: 28px;
  }

  .education-content {
    padding: 42px 24px;
  }

  .education-content .section-kicker,
  .education-content h2 {
    text-align: left;
  }

  .promise-inner {
    padding: 36px 26px;
    border-radius: 28px;
  }

  .promise-inner::before {
    width: 70px;
    height: 55px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* News page */
.news-hero {
  min-height: 640px;
}

.news-hero .hero-slimes {
  margin-bottom: 24px;
}

.news-intro {
  max-width: 760px;
  margin: 24px auto 0;
  color: #405762;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 2;
}

.news-archive {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfe 100%);
}

.news-talk-list {
  display: grid;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto;
}

.news-talk-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  transition: transform 0.25s ease;
}

.news-talk-card:hover {
  transform: translateY(-5px);
}

.news-talk-slime-wrap {
  display: flex;
  justify-content: center;
}

.news-talk-slime {
  position: relative;
  width: 92px;
  height: 72px;
  background: linear-gradient(145deg, #d2f0fb, var(--primary));
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 52% 52% 42% 42% / 58% 58% 42% 42%;
  box-shadow: 0 18px 28px rgba(22, 135, 189, 0.2), inset -8px -10px 14px rgba(22, 135, 189, 0.12);
  animation: bubble-float 4s ease-in-out infinite;
}

.news-talk-slime::before,
.news-talk-slime::after {
  position: absolute;
  top: 28px;
  width: 7px;
  height: 11px;
  content: "";
  background: #1f4f65;
  border-radius: 50%;
}

.news-talk-slime::before {
  left: 29px;
}

.news-talk-slime::after {
  right: 29px;
}

.news-talk-bubble {
  position: relative;
  padding: 30px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-talk-bubble::before {
  position: absolute;
  top: 50%;
  left: -16px;
  width: 30px;
  height: 30px;
  content: "";
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

.news-talk-card:hover .news-talk-bubble {
  border-color: rgba(44, 169, 225, 0.42);
  box-shadow: 0 24px 60px rgba(44, 169, 225, 0.18);
}

.news-talk-date {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-talk-bubble h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.45;
}

.news-talk-bubble p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.news-talk-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.news-talk-more span {
  transition: transform 0.25s ease;
}

.news-talk-card:hover .news-talk-more span {
  transform: translateX(5px);
}

/* News detail page */
.news-detail-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfe 100%);
}

.news-detail {
  max-width: 900px;
  padding: 58px 64px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.news-detail-date {
  display: block;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-family: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-detail h1 {
  margin: 0 0 34px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.35;
}

.news-detail-body {
  color: #455e6a;
  font-size: 1.08rem;
  line-height: 2.05;
}

.news-detail-body p {
  margin: 0 0 22px;
}

.news-detail-body p:last-child {
  margin-bottom: 0;
}

.news-detail-actions {
  margin-top: 42px;
  text-align: center;
}

@media (max-width: 680px) {
  .news-hero {
    min-height: 600px;
  }

  .news-talk-list {
    gap: 26px;
  }

  .news-talk-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-talk-slime-wrap {
    justify-content: flex-start;
    padding-left: 18px;
  }

  .news-talk-slime {
    width: 72px;
    height: 56px;
  }

  .news-talk-slime::before,
  .news-talk-slime::after {
    top: 21px;
    width: 6px;
    height: 9px;
  }

  .news-talk-slime::before {
    left: 22px;
  }

  .news-talk-slime::after {
    right: 22px;
  }

  .news-talk-bubble {
    padding: 26px 24px;
    border-radius: 26px;
  }

  .news-talk-bubble::before {
    top: -12px;
    left: 42px;
    transform: rotate(135deg);
  }

  .news-detail {
    padding: 38px 24px;
    border-radius: 28px;
  }

  .news-detail-body {
    font-size: 1rem;
    line-height: 1.95;
  }
}

/* News adjustments */
.news-talk-date {
  font-size: 1.08rem;
}

.news-detail-date {
  font-size: 1.12rem;
}

/* Mobile menu overlay */
@media (max-width: 980px) {
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    max-height: none;
    padding: calc(var(--header-height) + 48px) 24px 48px;
    overflow-y: auto;
    background: rgba(245, 251, 254, 0.98);
    justify-content: flex-start;
  }

  .global-nav a {
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.5;
    text-align: center;
  }

  .global-nav a:not(.nav-contact)::after {
    display: block;
  }

  .nav-contact {
    min-width: 220px;
    padding: 11px 18px;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(44, 169, 225, 0.24);
  }

  .nav-contact:hover {
    color: var(--white) !important;
    background: var(--primary-dark);
  }
}

@media (max-width: 680px) {
  .global-nav {
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 56px;
    gap: 28px;
  }

  .news-talk-card {
    gap: 26px;
  }

  .news-talk-slime-wrap {
    padding-left: 24px;
    margin-bottom: 2px;
  }

  .news-talk-bubble::before {
    top: -14px;
  }
}

/* Contact page */
.contact-page-hero {
  min-height: 460px;
  padding-bottom: 52px;
}

.contact-page-hero .hero-slimes {
  margin-bottom: 20px;
}

/* Contact navigation state */
@media (min-width: 981px) {
  .nav-contact.is-current {
    color: var(--primary-dark);
    background: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(44, 169, 225, 0.14);
  }

  .nav-contact.is-current:hover {
    color: var(--white) !important;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
  }
}

@media (max-width: 980px) {
  .global-nav .nav-contact {
    min-width: 220px;
    padding: 11px 18px;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(44, 169, 225, 0.24);
  }

  .global-nav .nav-contact:hover {
    color: var(--white) !important;
    background: var(--primary-dark);
  }

  .global-nav .nav-contact.is-current {
    color: var(--primary-dark) !important;
    background: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(44, 169, 225, 0.14);
  }
}

.contact-form-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4fbfe 0%, #ffffff 100%);
}

.contact-intro-band {
  position: relative;
  padding: 92px 24px 110px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 23%),
    radial-gradient(circle at 85% 88%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.contact-intro-band::before,
.contact-intro-band::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.contact-intro-band::before {
  right: -120px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-intro-band::after {
  top: 18%;
  left: -64px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-intro-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
}

.contact-intro-inner .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.contact-intro-inner h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.3;
}

.contact-intro-inner > p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 2;
}

.contact-notes {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-note {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.contact-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.8;
}

.contact-note-slime {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 34px;
  background: linear-gradient(145deg, #d2f0fb, var(--primary));
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 52% 52% 42% 42% / 58% 58% 42% 42%;
  box-shadow: 0 8px 14px rgba(22, 135, 189, 0.18), inset -5px -6px 8px rgba(22, 135, 189, 0.12);
}

.contact-note-slime::before,
.contact-note-slime::after {
  position: absolute;
  top: 13px;
  width: 4px;
  height: 7px;
  content: "";
  background: #1f4f65;
  border-radius: 50%;
}

.contact-note-slime::before {
  left: 13px;
}

.contact-note-slime::after {
  right: 13px;
}

.contact-form-wrap {
  margin-top: -52px;
  padding-bottom: 120px;
}

.contact-form {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 54px 58px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 236, 243, 0.95);
  border-radius: 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid {
  display: grid;
  gap: 26px;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.form-field label span,
.form-field label em {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.4;
}

.form-field label span {
  color: var(--white);
  background: var(--primary);
}

.form-field label em {
  color: var(--primary-dark);
  background: var(--secondary-light);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 17px 19px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfe5ef;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(44, 169, 225, 0.06);
  font: inherit;
  line-height: 1.7;
  outline: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aadb7;
}

.form-field textarea {
  min-height: 230px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(44, 169, 225, 0.14), 0 14px 30px rgba(44, 169, 225, 0.12);
  transform: translateY(-1px);
}

.privacy-box {
  margin: 30px 0 34px;
  padding: 18px 20px;
  background: #f7fcfe;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.privacy-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #455e6a;
  font-size: 0.95rem;
  line-height: 1.8;
  cursor: pointer;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.privacy-check a {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-action {
  text-align: center;
}

.form-action .button {
  width: min(320px, 100%);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form-result-page {
  min-height: 100svh;
  padding: calc(var(--header-height) + 90px) 24px 80px;
  background: linear-gradient(145deg, #ffffff 0%, #f6fcff 58%, #e9f7fc 100%);
}

.form-result-card,
.privacy-placeholder {
  max-width: 820px;
  padding: 58px 64px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  text-align: center;
}

.form-result-card h1 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.35;
}

.form-result-card p,
.privacy-placeholder p {
  margin: 0 0 30px;
  color: #455e6a;
  font-size: 1.05rem;
  line-height: 2;
}

.form-result-card ul {
  display: inline-block;
  margin: 0 0 30px;
  padding-left: 1.4em;
  color: #455e6a;
  text-align: left;
}

@media (max-width: 680px) {
  .contact-page-hero {
    min-height: 360px;
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 38px;
  }

  .contact-page-hero .hero-slimes {
    min-height: 70px;
    margin-bottom: 14px;
  }

  .contact-intro-band {
    padding: 74px 18px 94px;
  }

  .contact-notes {
    margin-top: 28px;
  }

  .contact-note {
    grid-template-columns: 42px 1fr;
    padding: 15px 16px;
  }

  .contact-note-slime {
    width: 36px;
    height: 29px;
  }

  .contact-note-slime::before,
  .contact-note-slime::after {
    top: 11px;
    width: 3.5px;
    height: 6px;
  }

  .contact-note-slime::before {
    left: 11px;
  }

  .contact-note-slime::after {
    right: 11px;
  }

  .contact-form-wrap {
    margin-top: -44px;
    padding-bottom: 84px;
  }

  .contact-form,
  .form-result-card,
  .privacy-placeholder {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .form-grid {
    gap: 23px;
  }

  .form-field textarea {
    min-height: 210px;
  }

  .privacy-box {
    padding: 16px;
  }

  .privacy-check {
    font-size: 0.9rem;
  }

  .form-result-page {
    padding: calc(var(--header-height) + 70px) 18px 70px;
  }
}


/* Privacy policy page */
.privacy-hero {
  min-height: 420px;
}

.privacy-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(160, 216, 239, 0.22), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfe 100%);
}

.privacy-card {
  max-width: 980px;
  padding: 64px 72px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.privacy-lead {
  padding: 26px 30px;
  margin: 0 0 48px;
  color: #455e6a;
  background: #f7fcfe;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 1.02rem;
  line-height: 2.05;
}

.privacy-block {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.privacy-block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.privacy-block h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink);
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
  line-height: 1.5;
}

.privacy-block h2::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 6px;
  height: 1.2em;
  content: "";
  background: var(--primary);
  border-radius: 999px;
}

.privacy-block p {
  margin: 0 0 14px;
  color: #455e6a;
  line-height: 2;
}

.privacy-block p:last-child {
  margin-bottom: 0;
}

.privacy-block ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.privacy-block li {
  position: relative;
  padding-left: 24px;
  color: #455e6a;
  line-height: 1.85;
}

.privacy-block li::before {
  position: absolute;
  top: 0.78em;
  left: 4px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
}

.privacy-date {
  padding-top: 34px;
  margin: 44px 0 0;
  color: #78909c;
  border-top: 1px solid var(--line);
  text-align: right;
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .privacy-hero {
    min-height: 330px;
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 40px;
  }

  .privacy-card {
    padding: 38px 22px;
    border-radius: 28px;
  }

  .privacy-lead {
    padding: 22px 20px;
    margin-bottom: 38px;
    font-size: 0.95rem;
  }

  .privacy-block {
    padding-top: 30px;
    margin-top: 30px;
  }

  .privacy-block h2 {
    padding-left: 16px;
  }

  .privacy-block p,
  .privacy-block li {
    font-size: 0.95rem;
  }

  .privacy-date {
    text-align: left;
  }
}


/* Services directory page */
html {
  scroll-behavior: smooth;
}

.services-hero {
  min-height: 520px;
}

.services-directory-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(160, 216, 239, 0.24), transparent 28%),
    radial-gradient(circle at 92% 72%, rgba(44, 169, 225, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfe 100%);
}

.services-directory-layout {
  display: grid;
  gap: 42px;
  max-width: 980px;
  margin: 0 auto;
}

.services-toc {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.services-toc h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.3;
}

.services-toc nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.services-toc a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.25s ease;
}

.services-toc a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.services-toc a:hover {
  color: var(--primary-dark);
}

.services-toc a:hover::after {
  transform: scaleX(1);
}

.services-list {
  display: grid;
  gap: 28px;
}

.service-detail-card {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding: 54px 58px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.service-detail-card::before {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  content: "";
  background: rgba(160, 216, 239, 0.28);
  border-radius: 50%;
}

.service-detail-card > * {
  position: relative;
  z-index: 1;
}

.service-detail-head h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.28;
}

.service-short-copy {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--primary-dark);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  font-weight: 900;
  line-height: 1.9;
}

.service-long-copy {
  max-width: 760px;
  margin: 0;
  color: #455e6a;
  line-height: 2.05;
}

.service-detail-actions {
  margin-top: 34px;
}

.services-home-action {
  max-width: 980px;
  margin: 46px auto 0;
  text-align: center;
}

@media (max-width: 680px) {
  .services-hero {
    min-height: 430px;
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 48px;
  }

  .services-directory-layout {
    gap: 34px;
  }

  .services-toc {
    padding-bottom: 18px;
  }

  .services-toc h2 {
    font-size: 1.55rem;
  }

  .services-toc nav {
    gap: 12px 22px;
  }

  .services-toc a {
    font-size: 0.98rem;
  }

  .service-detail-card {
    padding: 34px 24px;
    border-radius: 28px;
    scroll-margin-top: calc(var(--header-height) + 18px);
  }

  .service-long-copy {
    line-height: 2;
  }

  .service-detail-actions .button,
  .services-home-action .button {
    width: 100%;
    justify-content: center;
  }
}


/* 404 page */
.error-page {
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 80px) 24px 96px;
  background:
    radial-gradient(circle at 16% 18%, rgba(160, 216, 239, 0.28), transparent 28%),
    radial-gradient(circle at 86% 78%, rgba(44, 169, 225, 0.16), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f4fbfe 58%, #e8f8fd 100%);
  place-items: center;
}

.error-page-inner {
  width: min(860px, 100%);
  padding: 70px 56px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 236, 243, 0.92);
  border-radius: 42px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
}

.error-slimes {
  margin: 0 auto 28px;
}

.error-page h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.error-copy {
  margin: 0 auto 34px;
  color: #455e6a;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 2;
}

@media (max-width: 680px) {
  .error-page {
    padding: calc(var(--header-height) + 58px) 18px 76px;
  }

  .error-page-inner {
    padding: 48px 24px;
    border-radius: 30px;
  }

  .error-slimes {
    margin-bottom: 22px;
  }

  .error-copy {
    text-align: left;
  }

  .error-page .button {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 680px) {
  .error-page h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
    letter-spacing: 0;
  }
}


/* Thanks page adjustments */
.form-result-card .section-kicker {
  color: var(--primary);
}

.form-result-card .thanks-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  word-break: keep-all;
  overflow-wrap: normal;
}

.thanks-title span {
  display: inline-block;
}

@media (max-width: 680px) {
  .form-result-card .thanks-title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.45;
    letter-spacing: 0;
  }
}
