:root {
  --ink: #263642;
  --text: #53636f;
  --cyan: #1aa8bf;
  --deep: #0b7f70;
  --deep-dark: #123e39;
  --aqua: #dff7fb;
  --pale: #f6fbfc;
  --cream: #fff8e8;
  --white: #ffffff;
  --line: #e6eef0;
  --shadow: 0 22px 60px rgba(38, 54, 66, 0.14);
  --photo: url("assets/images/hero-classroom.png"), url("https://upload.wikimedia.org/wikipedia/commons/6/65/Japanese_classroom.jpg");
  --photo-panel: url("assets/images/panel.png"), var(--photo);
  --photo-meeting: url("assets/images/meeting.png"), var(--photo);
  --photo-classroom: url("assets/images/hero-classroom.png"), var(--photo);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
}
a { color: inherit; text-decoration: none; }
.sp-only-br { display: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px clamp(24px, 5vw, 92px);
  color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 32px rgba(38, 54, 66, .12);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled .brand-logo { filter: brightness(0); }
.site-header.is-scrolled .nav-button { color: var(--white); background: var(--cyan); border-color: var(--cyan); }
.brand { display: flex; align-items: center; font-weight: 900; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0,0,0,.18)); transition: filter .25s ease; }
.global-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 800; }
.menu-toggle {
  display: none;
  position: relative;
  z-index: 32;
  margin-left: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle__label {
  display: block;
  margin-bottom: 3px;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 31px; }
.menu-toggle__bars span { display: block; height: 3px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.site-header.is-menu-open .menu-toggle { color: var(--white); }
.site-header.is-menu-open .menu-toggle__label { opacity: 0; }
.site-header.is-menu-open .menu-toggle__bars span:nth-child(1) { transform: translateY(8px) rotate(40deg); }
.site-header.is-menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .menu-toggle__bars span:nth-child(3) { transform: translateY(-8px) rotate(-40deg); }

.nav-button { padding: 10px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; }

.photo-section { position: relative; background-image: var(--photo); background-size: cover; background-position: center; }
.hero { min-height: 760px; display: grid; place-items: center; overflow: hidden; background-image: none; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); animation: heroSlide 18s infinite; }
.slide-panel { background-image: var(--photo-panel); animation-delay: 0s; }
.slide-meeting { background-image: var(--photo-meeting); animation-delay: 6s; }
.slide-classroom { background-image: var(--photo-classroom); background-position: center 42%; animation-delay: 12s; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.04); }
  8% { opacity: 1; }
  33% { opacity: 1; transform: scale(1); }
  41% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 74, 72, .72), rgba(16, 157, 181, .34)), rgba(0,0,0,.12); }
.hero-content { position: relative; z-index: 1; width: min(980px, calc(100% - 40px)); color: var(--white); text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #bff7ff; }
.accent-text { color: var(--cyan); }
.hero-content .accent-text { color: #65edff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 7vw, 84px); line-height: 1.16; letter-spacing: -.06em; text-shadow: 0 16px 38px rgba(0,0,0,.24); }
h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.35; letter-spacing: -.04em; }
h3 { font-size: 22px; line-height: 1.45; }
.hero-content p:not(.eyebrow) { max-width: 760px; margin: 0 auto 36px; font-size: 17px; }
.news-bar { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; row-gap: 10px; align-items: center; padding: 16px clamp(24px, 7vw, 120px); color: var(--white); background: var(--cyan); }
.news-bar span { font-family: Oswald, sans-serif; letter-spacing: .1em; }
.news-bar p, .news-bar a { margin: 0; color: var(--white); font-weight: 500; line-height: 1.6; letter-spacing: .03em; }
.news-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.section-heading { max-width: 840px; margin: 0 auto 54px; }
.section-heading.centered { text-align: center; }
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.mega-title { margin: 0; color: rgba(26,168,191,.08); font-family: Oswald, sans-serif; font-size: clamp(80px, 17vw, 220px); font-weight: 700; letter-spacing: .06em; line-height: .8; text-align: center; }
.mission { position: relative; padding: 90px clamp(24px, 7vw, 120px) 110px; overflow: hidden; background: var(--white); }
.mission::before { content: ""; position: absolute; top: 260px; left: 50%; width: min(520px, 54vw); height: calc(100% - 360px); background: rgba(26, 168, 191, .13); transform: translateX(-50%); z-index: 0; }
.mission::after { content: ""; position: absolute; top: 0; left: 0; width: 170px; height: 100%; opacity: .16; background: repeating-linear-gradient(120deg, transparent 0 28px, rgba(26,168,191,.25) 28px 30px, transparent 30px 58px); }
.mission-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 42px 28px; max-width: 1180px; margin: auto; align-items: center; }
.mission-item { grid-column: span 6; display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: start; padding: 18px 0; background: transparent; border: 0; box-shadow: none; }
.mission-item > span { color: var(--cyan); font-family: Oswald, sans-serif; font-size: 64px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.mission-item h3::after { content: ""; display: block; width: 34px; height: 2px; margin: 16px 0; background: var(--ink); }
.mission-item p, .section-heading p { color: var(--text); }
.mission-photo { grid-column: span 6; margin: 0; }
.mission-photo img { display: block; width: 100%; min-height: 320px; object-fit: cover; box-shadow: var(--shadow); }
.image-card img { border-radius: 0 72px 0 72px; }
.support-card img { border-radius: 72px 0 72px 0; }
.profile-card { grid-column: span 6; padding: 34px; background: #e9fbff; border-radius: 18px; box-shadow: var(--shadow); }
.profile-card h3 { margin-bottom: 20px; font-family: Oswald, sans-serif; font-size: 36px; letter-spacing: .08em; }
.profile-card dl { margin: 0; }
.profile-card div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(38,54,66,.12); }
dt { color: var(--deep); font-weight: 900; }
dd { margin: 0; color: var(--text); }

.message { min-height: 520px; display: grid; place-items: center; padding: 88px 24px; background-attachment: fixed; }
.message::before { content: ""; position: absolute; inset: 0; background: rgba(26,168,191,.72); }
.message-panel { position: relative; z-index: 1; width: min(720px, 100%); padding: 52px; background: rgba(255,255,255,.9); border-radius: 18px; text-align: center; box-shadow: var(--shadow); }
.message-panel p:last-child { color: var(--text); }

.services { position: relative; padding: 100px clamp(24px, 7vw, 120px) 120px; background: linear-gradient(165deg, var(--white) 0 48%, var(--aqua) 48% 100%); overflow: hidden; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1180px; margin: auto; }
.service-grid article { min-height: 300px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.service-grid span { color: #ff9f2e; font-family: Oswald, sans-serif; font-size: 30px; }
.service-grid p { color: var(--text); }
.service-banners-heading { margin-top: 72px; margin-bottom: 28px; }
.service-banners-heading h2 { font-size: clamp(28px, 3.6vw, 44px); }
.service-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.service-banner { position: relative; display: block; overflow: hidden; background: var(--white); border-radius: 18px; box-shadow: 0 18px 46px rgba(38,54,66,.16); transition: transform .25s ease, box-shadow .25s ease; }
a.service-banner:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(38,54,66,.2); }
.service-banner img { display: block; width: 100%; height: auto; }

.clients {
  position: relative;
  isolation: isolate;
  padding: 118px clamp(24px, 7vw, 120px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,248,232,.92), rgba(255,248,232,.98)),
    linear-gradient(90deg, transparent 0 7%, rgba(38,54,66,.08) 7% 12%, transparent 12% 18%, rgba(38,54,66,.1) 18% 27%, transparent 27% 34%, rgba(38,54,66,.08) 34% 41%, transparent 41% 48%, rgba(38,54,66,.1) 48% 58%, transparent 58% 66%, rgba(38,54,66,.08) 66% 72%, transparent 72% 80%, rgba(38,54,66,.1) 80% 88%, transparent 88% 100%);
}
.clients::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  z-index: -1;
  opacity: .75;
  background:
    linear-gradient(to top, rgba(18,62,57,.2), transparent),
    repeating-linear-gradient(90deg, rgba(18,62,57,.16) 0 42px, transparent 42px 70px);
  clip-path: polygon(0 28%, 7% 18%, 14% 35%, 22% 12%, 31% 30%, 39% 8%, 48% 26%, 57% 15%, 66% 32%, 75% 10%, 84% 28%, 92% 18%, 100% 34%, 100% 100%, 0 100%);
}
.client-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.client-list li { position: relative; padding: 19px 22px 19px 44px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.75); border-radius: 14px; box-shadow: 0 14px 34px rgba(38,54,66,.1); font-weight: 800; backdrop-filter: blur(10px); }
.client-list li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); transform: translateY(-50%); }
.contact { padding: 110px clamp(24px, 7vw, 120px); background: var(--white); text-align: center; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.domain-box, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 900; }
.domain-box { color: var(--deep); background: #e6faf6; }
.button { color: var(--white); background: var(--cyan); box-shadow: 0 16px 34px rgba(26,168,191,.24); }
.site-footer { position: relative; overflow: hidden; color: var(--white); background: #1aa4ba; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle at 20% 20%, #fff 0 1.5px, transparent 2px); background-size: 28px 28px; }
.footer-inner { position: relative; display: grid; justify-items: center; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 74px 24px 132px; text-align: center; }
.footer-logo img { width: 118px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.site-footer .footer-company { margin: -10px 0 20px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 34px; width: min(760px, 100%); padding-top: 30px; border-top: 1px solid rgba(255,255,255,.22); font-size: 16px; font-weight: 400; }
.footer-links a::after { content: " →"; }
.site-footer p { margin: 0; font-weight: 400; }
.page-top { position: absolute; left: 50%; bottom: -58px; display: grid; place-items: start center; width: 118px; height: 118px; padding-top: 42px; color: var(--white); background: #2f2f2f; border: 0; border-radius: 50%; font-family: Oswald, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transform: translateX(-50%); }
.page-top::before { content: "↑"; position: absolute; top: 16px; font-size: 28px; font-weight: 300; line-height: 1; }

@media (max-width: 900px) {
  .site-header { position: fixed; align-items: center; flex-direction: row; padding: 14px 16px; color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(38,54,66,.1); backdrop-filter: blur(12px); }
  .site-header .brand-logo { width: 45px; height: 45px; filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0,0,0,.18)); }
  .site-header.is-scrolled .brand-logo { width: 45px; height: 45px; filter: brightness(0); }
  .menu-toggle { display: block; }
  .global-nav { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; color: var(--white); background: linear-gradient(90deg, rgba(48, 173, 191, .98) 0 50%, rgba(16, 149, 169, .98) 50% 100%); font-size: 20px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
  .site-header.is-menu-open { inset: 0; height: 100svh; align-items: flex-start; background: linear-gradient(90deg, rgba(48, 173, 191, .98) 0 50%, rgba(16, 149, 169, .98) 50% 100%); box-shadow: none; backdrop-filter: none; }
  .site-header.is-menu-open .brand { position: relative; z-index: 32; }
  .site-header.is-menu-open .brand-logo { filter: brightness(0) invert(1); }
  .site-header.is-menu-open .global-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .global-nav a { min-width: 190px; padding: 24px 0; text-align: center; }
  .global-nav a + a { border-top: 1px solid rgba(255,255,255,.22); }
  .global-nav .nav-button { min-width: 136px; margin-top: 22px; padding: 10px 20px; color: var(--white); background: #35bcef; border: 0; border-radius: 999px; }
  .sp-only-br { display: initial; }
  .hero { min-height: 100svh; padding: 120px 0 94px; }
  .hero-content { text-align: center; }
  .hero-content p:not(.eyebrow) { font-size: 14px; margin-right: auto; margin-left: auto; }
  .news-bar { grid-template-columns: 1fr; gap: 4px; padding: 12px 34px 14px; }
  .news-bar span { font-size: 18px; }
  .news-bar a { font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: .04em; }
  .mission-grid, .service-grid, .service-banners, .client-list { grid-template-columns: 1fr; }
  .mission { padding: 54px 24px 76px; }
  .mission::before { top: 118px; right: 0; left: auto; width: 52%; height: calc(100% - 210px); transform: none; }
  .mission::after { width: 92px; opacity: .1; }
  .mega-title { font-size: 54px; text-align: left; }
  .section-heading { margin-bottom: 28px; }
  .mission-grid { gap: 18px; align-items: start; }
  .mission-item, .mission-photo, .profile-card { grid-column: 1; }
  .mission-item { position: relative; display: block; padding: 0 0 34px; }
  .mission-item > span { display: none; }
  .mission-item h3 { margin-bottom: 8px; font-size: 22px; font-weight: 800; line-height: 1.42; letter-spacing: -.02em; }
  .mission-item h3::after { width: 28px; margin: 10px 0 16px; }
  .mission-item p { font-size: 14px; font-weight: 400; line-height: 1.95; letter-spacing: .01em; }
  .mission-item p .accent-text { font-size: inherit; font-weight: 700; line-height: inherit; letter-spacing: inherit; }
  .mission-photo { position: relative; margin-top: 12px; }
  .mission-photo img { min-height: 0; height: auto; box-shadow: 0 16px 36px rgba(38,54,66,.14); }
  .image-card img, .support-card img { border-radius: 0 38px 0 38px; }
  .classroom-card { order: 1; }
  .mission-item:nth-of-type(1) { order: 2; }
  .support-card { order: 3; }
  .mission-item:nth-of-type(2) { order: 4; }
  .mission-item:nth-of-type(3) { order: 5; }
  .profile-card { order: 6; padding: 24px 20px; }
  .classroom-card::after, .support-card::after { position: absolute; right: 12px; bottom: -18px; color: rgba(26,168,191,.82); font-family: Oswald, sans-serif; font-size: 72px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
  .classroom-card::after { content: "01"; }
  .support-card::after { content: "02"; }
  .mission-item:nth-of-type(3) > span { display: block; color: rgba(26,168,191,.82); font-family: Oswald, sans-serif; font-size: 72px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
  .service-banners-heading { margin-top: 44px; margin-bottom: 18px; }
  .service-banners { gap: 16px; }
  .service-banner { border-radius: 12px; }
  .message { background-attachment: scroll; }
  .message-panel { padding: 34px 22px; border-radius: 8px; }
  .footer-inner { gap: 20px; padding: 70px 24px 132px; }
  .footer-logo img { width: 116px; height: 68px; }
  .site-footer .footer-company { margin-bottom: 18px; font-size: 14px; }
  .footer-links { flex-direction: column; gap: 14px; font-size: 15px; }
}

.privacy-page { background: #f6fbfc; }
.policy-main { padding: 124px clamp(24px, 7vw, 120px) 96px; }
.policy-hero { max-width: 980px; margin: 0 auto 34px; padding: 70px 0 28px; }
.policy-hero h1 { color: var(--ink); text-shadow: none; }
.policy-content { max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); background: var(--white); box-shadow: var(--shadow); }
.policy-content section + section { margin-top: 42px; padding-top: 36px; border-top: 1px solid var(--line); }
.policy-content h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); }
.policy-content h3 { margin: 30px 0 12px; font-size: 22px; }
.policy-content h4 { margin: 24px 0 10px; color: var(--deep); font-size: 18px; }
.policy-content p, .policy-content li { color: var(--text); }
.policy-content ol { padding-left: 1.4em; }
.policy-content .circled-list { list-style: none; padding-left: 0; counter-reset: circled; }
.policy-content .circled-list li { counter-increment: circled; position: relative; padding-left: 2.2em; margin: 12px 0; }
.policy-content .circled-list li::before { content: counter(circled); position: absolute; left: 0; top: .1em; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; color: var(--white); background: var(--cyan); border-radius: 50%; font-size: .78em; font-weight: 900; }
.policy-date { padding: 24px; background: #e9fbff; }

.privacy-page .site-header { color: var(--ink); background: rgba(255, 255, 255, .96); box-shadow: 0 10px 32px rgba(38, 54, 66, .12); backdrop-filter: blur(14px); }
.privacy-page .site-header .brand-logo { filter: brightness(0); }
.privacy-page .site-header .nav-button { color: var(--white); background: var(--cyan); border-color: var(--cyan); }
