@font-face {
  font-family: "LanobePOP";
  src: url("fonts/lanobe-pop.woff2") format("woff2");
  font-display: swap;
}

:root {
  --blue: #269df1;
  --red: #f60419;
  --ink: #111;
  --gray: #605e5e;
  --pop: "LanobePOP", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --ud: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--ud);
  font-weight: 400;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo img { width: 190px; }
.menu-btn {
  width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--blue); position: relative; cursor: pointer;
}
.menu-btn > span:first-child, .menu-btn > span:first-child::before, .menu-btn > span:first-child::after {
  content: ""; position: absolute; left: 13px; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s;
}
.menu-btn > span:first-child { top: 23px; }
.menu-btn > span:first-child::before { left: 0; top: -7px; }
.menu-btn > span:first-child::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] > span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] > span:first-child::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

.gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
.gnav.open { display: block; }
.gnav ul { list-style: none; margin: 0; padding: 0; }
.gnav a { display: block; text-decoration: none; font-family: var(--pop); color: var(--blue); }
.gnav > ul > li { border-top: 1px solid #e6f3fd; position: relative; }
.gnav > ul > li > a { padding: 14px 20px; font-size: 16px; }
.gnav a[aria-current="page"] { color: #0b5fa5; }
.gnav .sub { display: none; background: #f3f9fe; padding-bottom: 6px; }
.gnav .has-sub.open .sub { display: block; }
.gnav .sub a { padding: 9px 20px 9px 36px; font-size: 14px; }
.sub-toggle { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.sub-toggle::before { content: ""; position: absolute; left: 15px; top: 13px; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.has-sub.open .sub-toggle::before { transform: translateY(5px) rotate(-135deg); }

/* ---------- layout blocks ---------- */
.page { padding-block: 32px 64px; display: grid; gap: 32px; }
.stack { display: grid; gap: 14px; justify-items: center; }
.cols { display: grid; gap: 24px; justify-items: center; align-items: start; }
.cols.center { align-items: center; }
.col { display: grid; gap: 24px; justify-items: center; width: 100%; }
.pic, .pic-link { width: 100%; max-width: var(--w, 100%); }
.pic-link { display: block; transition: transform .15s, filter .15s; }
.pic-link img { width: 100%; }
.pic-link:hover { transform: translateY(-2px); filter: brightness(1.04); }
.bordered { border: 1px solid #d9d9d9; }
.boxed { border: 4px solid #111; }
.framed { border: 2px solid #c9c9c9; }
.rounded { border-radius: 18px; }

/* sky background (home / courses) */
.sky {
  background: #b4ddfa url("../img/opt/50595f259ea043c790b13646aed2d013.webp") center bottom / cover no-repeat;
  padding-block: 20px 40px;
}
.home-grid { display: grid; gap: 20px; justify-items: center; }
.home-main .pic { border-radius: 16px; }

/* 15 courses image with clickable rows */
.course-map { position: relative; max-width: 564px; margin-inline: auto; }
.course-hotspots { list-style: none; margin: 0; padding: 0; position: absolute; left: 10.3%; right: 7.5%; top: 33.9%; height: 63.5%; }
.course-hotspots li { position: absolute; left: 0; right: 0; top: calc(var(--i) * (100% / 15)); height: calc(100% / 15); }
.course-hotspots a { display: block; height: 100%; font-size: 0; color: transparent; border-radius: 4px; }
.course-hotspots a:hover, .course-hotspots a:focus-visible { background: rgba(38,157,241,.14); outline: 2px solid rgba(38,157,241,.6); }

/* course flyer + students */
.flyer { display: grid; justify-items: center; }
.students { display: grid; gap: 40px; max-width: 760px; width: 100%; margin-inline: auto; }
.stu-heading {
  font-family: var(--pop); font-weight: 400; font-size: 20px; color: #fff; background: var(--blue);
  padding: 12px 20px; border-radius: 0 12px 12px 0; justify-self: start; margin-top: 8px; box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.stu-card { display: grid; gap: 14px; grid-template-columns: 1fr; justify-items: start; }
.stu-photo { width: 100%; max-width: 273px; justify-self: center; }
.stu-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.stu-body { font-family: var(--pop); display: flex; flex-direction: column; line-height: 1.5; font-size: 16px; }
.stu-name { font-family: var(--pop); font-weight: 400; font-size: 26px; color: var(--red); line-height: 1.3; margin-bottom: 8px; }
.stu-name.blue { color: var(--blue); }
.stu-body .meta { font-size: 14px; color: var(--red); }
.stu-body .now { font-size: 18px; color: var(--red); }
.stu-body .stat { font-size: 18px; color: var(--blue); }
.stu-body .stat a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.stu-body .result { font-size: 18px; color: var(--red); }
.stu-body .note { font-size: 13px; color: var(--red); }
.stu-body .gap { height: 14px; }
.big-note { font-family: var(--pop); font-size: 34px; text-align: center; line-height: 1.4; }


/* AI page */
.ai-title { font-family: var(--mincho); font-weight: 700; font-size: 34px; line-height: 1.5; justify-self: start; }
.ai-cap { font-family: var(--mincho); font-size: 20px; line-height: 1.5; max-width: 691px; width: 100%; margin-inline: auto; margin-top: 16px; }
.cols.pair { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* access */
.bar {
  display: flex; align-items: center; gap: 16px; background: var(--blue); color: #fff; border-radius: 10px;
  font-family: var(--round); font-weight: 800; font-size: 28px; padding: 16px 24px; max-width: 690px; width: 100%; margin-inline: auto;
}
.pin { width: 18px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat;
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M9 0a8 8 0 0 0-8 8c0 5.5 8 12 8 12s8-6.5 8-12a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3Crect x='0' y='20' width='18' height='2' rx='1'/%3E%3C/svg%3E"); }
.bar .pin { color: #0b2d6b; }
.bar-stu { max-width: 794px; font-size: 22px; line-height: 1.45; gap: 20px; }
.bar-stu .pic { width: 44px; flex: none; }
.access-row { align-items: start; }
.map { width: 100%; aspect-ratio: 436 / 341; background: #eef3f7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-text { font-family: var(--ud); color: var(--gray); font-size: 16px; display: grid; gap: 18px; justify-self: start; width: 100%; }
.stations { display: grid; grid-template-columns: max-content max-content; gap: 4px 16px; margin: -10px 0 0; }
.stations dd { margin: 0; align-self: end; }
.car-box { background: var(--blue); color: #fff; border-radius: 12px; padding: 24px 22px; font-size: 16px; display: grid; gap: 18px; width: 100%; }
.car-box a { color: #fff; }

/* legal */
.legal { max-width: 760px; gap: 0; font-family: var(--mincho); font-size: 16px; line-height: 1.75; }
.legal h1 { font-family: var(--round); font-weight: 800; font-size: 28px; margin-bottom: 24px; }
.legal .legal-part { font-family: var(--round); font-weight: 800; font-size: 24px; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid #ddd; }
.legal h3 { font-family: var(--round); font-weight: 800; font-size: 17px; margin: 22px 0 2px; }
.legal ul { margin: 4px 0; padding-left: 1.4em; }
.legal .company { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0; }
.legal .company dt { font-weight: 700; }
.legal .company dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue); color: #fff; padding-block: 36px 80px; }
.footer-grid { display: grid; gap: 40px; }
.footer-info { display: grid; gap: 14px; justify-items: start; align-content: start; font-family: var(--mincho); font-size: 15px; }
.line-qr { display: block; width: 100%; max-width: 290px; }
.line-qr img { width: 100%; }
.footer-h { font-family: var(--ud); font-weight: 700; font-size: 26px; color: #fff; line-height: 1.4; }
.footer-info .footer-h { margin-top: 14px; }
.footer-info address { font-style: normal; }
.footer-info a { color: #fff; }
.contact { display: grid; gap: 10px; font-family: var(--mincho); }
.contact .footer-h { margin-bottom: 12px; }
.contact .footer-h small { display: block; font-size: 15px; font-weight: 700; margin-top: 8px; }
.contact label { display: grid; gap: 6px; font-size: 15px; letter-spacing: .12em; }
.contact input, .contact textarea {
  font: inherit; font-size: 16px; letter-spacing: .08em; color: #fff; background: transparent; border: 2px solid #fff; border-radius: 0; padding: 8px 12px; width: 100%;
}
.contact input::placeholder, .contact textarea::placeholder { color: rgba(255,255,255,.85); }
.contact textarea { resize: vertical; min-height: 120px; }
.contact button {
  justify-self: end; font: inherit; font-size: 16px; font-weight: 700; color: var(--gray); background: #fff; border: 0; padding: 8px 0; width: 144px; cursor: pointer; margin-top: 6px;
}
.contact button:hover { background: #eaf5fe; }

/* ---------- tablet+ ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .stu-card { grid-template-columns: 273px 1fr; gap: 32px; align-items: start; }
  .stu-photo { justify-self: start; }
  .title-lg { font-size: 32px; }
  .ai-title { font-size: 44px; }
  .ai-cap { font-size: 28px; }
  .cols.pair { grid-template-columns: repeat(auto-fit, minmax(0, max-content)); justify-content: center; gap: 32px; }
}

/* ---------- desktop（Wix PC版と同じ配置） ---------- */
@media (min-width: 1000px) {
  .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .header-inner { flex-direction: column; align-items: flex-start; min-height: 0; padding-block: 8px 4px; }
  .logo img { width: 267px; }
  .menu-btn { display: none; }
  .gnav { display: block; position: static; box-shadow: none; max-height: none; overflow: visible; }
  .gnav > ul { display: flex; gap: 0; }
  .gnav > ul > li { border: 0; }
  .gnav > ul > li > a { font-size: 11px; padding: 10px 15px; }
  .gnav > ul > li:first-child > a { padding-left: 6px; }
  .gnav > ul > li > a:hover { color: #0b5fa5; }
  .sub-toggle { display: none; }
  .gnav .sub { position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px 0; z-index: 60; }
  .gnav .has-sub:hover .sub, .gnav .has-sub:focus-within .sub { display: block; }
  .gnav .sub a { font-size: 12px; padding: 8px 18px; }
  .gnav .sub a:hover { background: #f3f9fe; }

  .page { gap: 40px; padding-block: 28px 80px; }
  .cols { grid-template-columns: var(--cols); justify-content: center; column-gap: 60px; }
  .cols.gap-l { column-gap: 90px; }
  .col { justify-items: stretch; }
  .col > .pic, .col > .pic-link { justify-self: center; }

  .sky { padding-block: 26px 70px; }
  .sky-short { padding-block: 28px 100px; }
  .home-grid { grid-template-columns: 503px 348px; justify-content: space-between; align-items: start; padding-inline: 58px 118px; }
  .home-side { gap: 8px; }

  .stu-heading { font-size: 24px; min-width: 600px; }
  .students { gap: 56px; padding-left: 56px; max-width: 900px; }
  .stu-card { grid-template-columns: 273px 1fr; gap: 22px; }
  .stu-name { font-size: 36px; margin-bottom: 14px; }
  .stu-body .meta { font-size: 18px; line-height: 2.4; }
  .stu-body .now, .stu-body .stat, .stu-body .result { font-size: 26px; line-height: 1.55; }
  .stu-body .note { font-size: 15px; }
  .stu-body .gap { height: 28px; }
  .bar-stu { font-size: 40px; padding: 12px 36px 16px 24px; }
  .bar-stu .pic { width: 65px; }
  .big-note { font-size: 53px; }

  .ai-title { font-size: 48px; }
  .ai-cap { font-size: 32px; }

  .bar { font-size: 36px; padding: 22px 36px; }
  .access-text { font-size: 18px; }
  .car-box { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr 412px; gap: 80px; padding-inline: 40px 110px; }
  .footer-h { font-size: 31px; }
}
