:root {
  --green-950: #043d28;
  --green-900: #075334;
  --green-800: #08633e;
  --green-700: #0a7448;
  --green-100: #e9f3ed;
  --lime: #a8d644;
  --ink: #15221c;
  --muted: #5d6b64;
  --paper: #fbfcfa;
  --white: #ffffff;
  --line: #dce5df;
  --shadow: 0 24px 70px rgba(4, 61, 40, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--white); color: var(--green-900); padding: .75rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(251,252,250,.9); border-bottom: 1px solid rgba(220,229,223,.8);
  backdrop-filter: blur(18px); transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 35px rgba(4,61,40,.08); background: rgba(255,255,255,.95); }
.header-inner { width: min(1180px, calc(100% - 48px)); height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; width: 250px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .9rem; font-weight: 700; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 100%; height: 2px; background: var(--green-700); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .72rem 1.25rem; color: white; background: var(--green-800); border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-button > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--green-950); transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; min-height: 760px; height: 92vh; display: flex; align-items: center; overflow: hidden; color: white; }
.hero-media { position: absolute; inset: 0; background: url("assets/classroom.webp") center 52% / cover no-repeat; transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,43,27,.92) 0%, rgba(3,43,27,.74) 40%, rgba(3,43,27,.16) 76%, rgba(3,43,27,.06) 100%); }
.hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 48px)); margin: 60px auto 0; }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow { color: #d8f0c1; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(3rem, 6.2vw, 6.3rem); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: #c9ef77; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 800; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-700); color: white; box-shadow: 0 14px 35px rgba(4,61,40,.2); }
.button-primary:hover { background: var(--green-800); box-shadow: 0 18px 40px rgba(4,61,40,.28); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.button-ghost:hover { background: rgba(255,255,255,.17); }
.hero-note { position: absolute; right: 2rem; bottom: 2rem; z-index: 2; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .28em; opacity: .7; }

.section { padding: 120px 0; }
.section-inner { width: min(1180px, calc(100% - 48px)); margin: auto; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6rem; align-items: end; margin-bottom: 4.5rem; }
.section-heading .section-kicker { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; color: var(--green-950); font-size: clamp(2.1rem, 4.1vw, 4rem); line-height: 1.24; letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading.compact { display: block; max-width: 760px; }
.section-heading.compact h2 { margin-bottom: 1.15rem; }
.section-heading.compact > p:last-child { max-width: 640px; }
.section-tint { background: var(--green-100); }
.section-dark { color: white; background: var(--green-950); }
.section-dark .section-heading h2 { color: white; }
.section-dark .section-heading > p:last-child { color: rgba(255,255,255,.7); }
.light-kicker { color: #bce26c; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { display: flex; flex-direction: column; min-height: 300px; padding: 2.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .3s ease, box-shadow .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-number { color: var(--green-700); font-size: .8rem; font-weight: 800; letter-spacing: .18em; }
.feature-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; }
.feature-card h3 { margin: 0 0 .8rem; color: var(--green-950); font-size: 1.4rem; }
.feature-card p { margin: 0; color: var(--muted); }

.course-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.course-card { display: grid; grid-template-columns: 70px 1fr; gap: 1.6rem; padding: 2.5rem; min-height: 320px; background: white; border-radius: var(--radius); }
.course-main { background: var(--green-950); color: white; }
.course-index { color: var(--green-700); font-size: .8rem; font-weight: 800; letter-spacing: .16em; }
.course-main .course-index { color: #bce26c; }
.course-label { margin: 0 0 .8rem; color: var(--green-700); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.course-main .course-label { color: #bce26c; }
.course-card h3, .robot-feature h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.3; }
.course-card p { color: var(--muted); }
.course-main p { color: rgba(255,255,255,.75); }
.text-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; color: var(--green-800); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.course-main .text-link, .text-link.light { color: #d2f28e; }
.robot-feature { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.25fr; min-height: 620px; overflow: hidden; border-radius: calc(var(--radius) + 5px); background: var(--green-900); color: white; }
.robot-copy { padding: clamp(2.5rem, 6vw, 5rem); align-self: center; }
.human-logo { width: min(380px, 100%); height: auto; margin-bottom: 3.5rem; padding: .65rem 1rem; background: white; border-radius: 10px; }
.robot-copy .course-label { color: #c9ef77; }
.robot-copy p { color: rgba(255,255,255,.78); }
.robot-gallery { position: relative; min-height: 620px; overflow: hidden; }
.photo-card { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-note { position: absolute; right: 1rem; bottom: .5rem; margin: 0; padding: .2rem .55rem; border-radius: 4px; background: rgba(0,0,0,.45); color: white; font-size: .75rem; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.info-panel { padding: 2.4rem; border: 1px solid var(--line); background: white; border-radius: var(--radius); }
.info-panel-wide { grid-column: 1 / -1; }
.panel-heading { margin-bottom: 2rem; }
.panel-heading span { color: var(--green-700); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.panel-heading h3 { margin: .35rem 0 0; color: var(--green-950); font-size: 1.6rem; }
.data-list { margin: 0; }
.data-list > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; text-align: right; font-weight: 800; }
.data-list small { color: var(--muted); font-weight: 500; }
.panel-note { margin: 1.5rem 0 0; padding-top: 1rem; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.grade-list { display: grid; gap: .8rem; }
.grade-row { display: grid; grid-template-columns: 1.15fr 1.55fr 1fr 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem 1.6rem; background: #f2f7f3; border-radius: 16px; }
.grade-row h4 { margin: 0; color: var(--green-950); font-size: 1.12rem; }
.grade-row > div { display: grid; gap: .1rem; }
.grade-row span { color: var(--muted); font-size: .76rem; }
.grade-row strong { font-size: .96rem; line-height: 1.5; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 7rem; align-items: start; }
.faq-layout .section-heading { position: sticky; top: 130px; margin: 0; }
.faq-list { border-top: 1px solid rgba(255,255,255,.2); }
.faq-list details { border-bottom: 1px solid rgba(255,255,255,.2); }
.faq-list summary { list-style: none; position: relative; padding: 1.6rem 3rem 1.6rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .25rem; top: 1.5rem; color: #c9ef77; font-size: 1.5rem; line-height: 1; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 3rem 1.7rem 0; color: rgba(255,255,255,.72); }

.access-grid { display: grid; grid-template-columns: 1.45fr .7fr; gap: 1.2rem; align-items: stretch; }
.map-card { padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--radius) - 10px); }
.access-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3rem; background: var(--green-100); border-radius: var(--radius); }
.access-logo { width: 78px; height: 78px; margin-bottom: 1.2rem; border-radius: 18px; }
.access-copy h3 { margin: 0; color: var(--green-950); font-size: 2rem; }
.access-lead { margin: .4rem 0 1.2rem; color: var(--green-700); font-weight: 800; }
.access-copy address { margin-bottom: 2rem; color: var(--muted); font-style: normal; }

.news-list { display: grid; gap: .8rem; }
.news-list article { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; background: white; border-radius: 18px; }
.news-tag { color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.news-list h3 { margin: 0; font-size: 1rem; }
.news-list a { color: var(--green-800); font-size: .88rem; font-weight: 800; }

.contact { padding: 0; background: var(--green-800); color: white; }
.contact-inner { width: min(1180px, calc(100% - 48px)); min-height: 430px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.25; }
.contact p { color: rgba(255,255,255,.75); }
.phone-link { display: block; padding: 1.8rem 2rem; background: white; color: var(--green-950); border-radius: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.phone-link:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(0,0,0,.17); }
.phone-link span { display: block; color: var(--muted); font-size: .85rem; font-weight: 700; }
.phone-link strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: .02em; }
.contact-actions > p { margin: .65rem .5rem 0; font-size: .78rem; }

.site-footer { padding: 5rem max(24px, calc((100% - 1180px) / 2)) 1.5rem; background: #092d20; color: white; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 390px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.footer-logo-card { display: grid; place-items: center; height: 104px; padding: 1rem; background: white; border-radius: 10px; }
.footer-logo-card img { width: 100%; height: 72px; object-fit: contain; }
.footer-brand p, .footer-school p { margin: .75rem 0 0; color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; font-size: .88rem; }
.footer-nav a { color: rgba(255,255,255,.72); }
.footer-nav a:hover { color: white; }
.footer-nav .instagram-link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: fit-content; margin-top: .4rem; padding: .5rem .9rem; color: white; background: linear-gradient(115deg, #ef4b82, #c13584 65%, #a6268a); border-radius: 999px; font-weight: 800; box-shadow: 0 8px 22px rgba(193,53,132,.28); transition: filter .2s ease, transform .2s ease; }
.footer-nav .instagram-link:hover, .footer-nav .instagram-link:focus-visible { color: white; filter: brightness(1.15); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.mobile-contact { display: none; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .header-inner { height: 74px; }
  .brand { width: 205px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 82px; display: grid; gap: 0; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { padding: .75rem 1rem; }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: .4rem; text-align: center; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 700px; height: 88vh; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,43,27,.9), rgba(3,43,27,.45)); }
  .section { padding: 90px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .course-stack { grid-template-columns: 1fr; }
  .robot-feature { grid-column: auto; grid-template-columns: 1fr; }
  .robot-gallery { min-height: 520px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-panel-wide { grid-column: auto; }
  .grade-row { grid-template-columns: 1fr 1fr; }
  .grade-row h4 { grid-column: 1 / -1; }
  .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
  .faq-layout .section-heading { position: static; }
  .access-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .header-inner, .hero-content, .section-inner, .contact-inner { width: min(100% - 32px, 1180px); }
  .brand { width: 174px; }
  .hero { min-height: 650px; height: 82vh; }
  .hero-media { background-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,43,27,.92), rgba(3,43,27,.6)); }
  .hero-content { margin-top: 45px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 4.2rem); }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; }
  .button { width: 100%; }
  .hero-note { display: none; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 2.8rem; }
  .section-heading h2 { font-size: 2rem; }
  .feature-card { padding: 1.7rem; }
  .course-card { grid-template-columns: 1fr; padding: 1.8rem; }
  .course-index { margin-bottom: -.5rem; }
  .robot-copy { padding: 2rem 1.7rem; }
  .human-logo { margin-bottom: 2.2rem; }
  .robot-gallery { min-height: 390px; }
  .grade-row { gap: .8rem 1rem; padding: 1.2rem; }
  .grade-row > div:first-of-type { grid-column: 1 / -1; }
  .info-panel { padding: 1.6rem; }
  .data-list > div { display: grid; gap: .15rem; }
  .data-list dd { text-align: left; }
  .faq-list summary { padding-right: 2.5rem; }
  .access-copy { padding: 2rem; }
  .map-card { padding: .7rem; }
  .news-list article { grid-template-columns: 1fr auto; }
  .news-list h3 { grid-column: 1 / -1; grid-row: 2; }
  .contact-inner { min-height: 0; padding: 4.5rem 0; }
  .phone-link { padding: 1.4rem; }
  .site-footer { padding: 4rem 16px 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-column: auto; }
  .footer-bottom { margin-top: 3rem; }
  .mobile-contact { position: fixed; inset: auto 0 0; z-index: 110; display: grid; grid-template-columns: 1fr 1fr; height: 68px; background: white; box-shadow: 0 -8px 30px rgba(4,61,40,.13); }
  .mobile-contact a { display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
  .mobile-contact a:last-child { background: var(--green-700); color: white; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}
