:root {
  color-scheme: light;
  --blue: #0b2265;
  --deep: #091b50;
  --ink: #132348;
  --text: #27334d;
  --muted: #435371;
  --surface: #fffefb;
  --paper: #fcfaf5;
  --ice: #e5f1ff;
  --rule: #a5b6d4;
  --strong-rule: #7e95bf;
  --gold: #f6d16d;
  --marker: #ffdd74;
  --warm: #fff1bf;
  --sans: "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
  --side: clamp(17px, 4vw, 62px);
  --section-padding: clamp(48px, 5.2vw, 76px);
}

*, *::after, *::before { box-sizing: border-box; }
html { scroll-padding-top: 15px; }
body { margin: 0; color: var(--text); background: var(--surface); font: 16px/1.8 var(--sans); line-break: strict; overflow-wrap: anywhere; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.38; }
h2 { font-size: clamp(26px, 2.24vw, 33px); font-weight: 730; letter-spacing: .02em; }
h3 { font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; }
p, dd, .prose li { word-break: auto-phrase; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .26em; }
img { display: block; width: 100%; height: auto; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid #2056ba; outline-offset: 4px; }
.keep { white-space: nowrap; }
.shell { width: min(1280px, calc(100% - var(--side) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-padding); }
.compact-section { padding-block: clamp(40px, 4.2vw, 62px); }
.skip { position: absolute; z-index: 8; top: 8px; left: 9px; padding: 9px 14px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: relative; z-index: 2; color: var(--blue); background: #fffdfa; border-bottom: 1px solid #e0ddda; }
.header-inner { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.7vw, 39px); min-height: 71px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: clamp(20px, 2.15vw, 30px); font-weight: 820; letter-spacing: .08em; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.desktop-nav { display: flex; flex-wrap: wrap; gap: 2px clamp(14px, 2.4vw, 36px); align-items: center; margin-left: auto; }
.desktop-nav a, .mobile-nav a { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .mobile-nav a:hover, .footer a:hover { text-decoration: underline; }
.action { display: inline-flex; min-height: 48px; padding: 9px 20px; align-items: center; justify-content: center; gap: 15px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #fffefb; text-decoration: none; font-size: 16px; font-weight: 730; line-height: 1.4; white-space: nowrap; }
.action:hover { background: #173d8f; }
.header-action { flex-shrink: 0; min-height: 44px; font-size: 14px; }
.mobile-nav { display: none; }
.chevron { flex: 0 0 8px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

.hero { position: relative; overflow: clip; background: repeating-linear-gradient(to bottom, transparent 0 26px, #bccfeb 26px 27px), linear-gradient(90deg, #faf8f3 0%, #fafbfe 60%, #fffdfa 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(38px, 5vw, 84px); align-items: center; padding-block: clamp(42px, 5vw, 76px) clamp(34px, 4.2vw, 62px); }
.hero-copy { position: relative; padding: 7px 0 8px clamp(13px, 2.35vw, 35px); }
.hero-copy::before { position: absolute; top: -110px; bottom: -110px; left: 0; border-left: 1px solid #e6aeb5; content: ""; }
.hero-label { position: relative; display: inline-flex; align-items: center; gap: 10px; padding-block-end: 6px; border-bottom: 2px solid var(--blue); color: var(--blue); font-size: clamp(14px, 1.5vw, 20px); font-weight: 700; letter-spacing: .055em; }
.hero-label span { position: absolute; top: 0; right: -27px; width: 13px; height: 18px; transform: rotate(26deg); background: linear-gradient(var(--blue),var(--blue)) 0 0 / 1.5px 8px no-repeat, linear-gradient(var(--blue),var(--blue)) 7px 4px / 1.5px 11px no-repeat; }
.hero h1 { margin-block: clamp(17px, 2.25vw, 34px) clamp(16px, 1.7vw, 25px); color: var(--deep); font-size: clamp(34px, 3.48vw, 49px); font-weight: 815; line-height: 1.23; letter-spacing: -.045em; }
mark, .underlined { position: relative; isolation: isolate; color: inherit; background: none; }
mark::after, .underlined::after { position: absolute; z-index: -1; right: -4%; bottom: .02em; left: -3%; height: .29em; background: var(--marker); clip-path: polygon(0 17%, 98% 1%, 100% 50%, 97% 87%, 1% 100%); transform: rotate(-1.3deg); content: ""; }
mark::after { right: -9%; left: -6%; bottom: -.01em; height: .4em; }
.hero-lead { max-width: 28em; color: var(--ink); word-break: auto-phrase; text-wrap: balance; }
.hero-action { margin-top: clamp(18px, 2.15vw, 30px); }
.hero-art { min-width: 0; padding: 0 4px 0 9px; }
.photo-frame { position: relative; isolation: isolate; }
.photo-frame img { position: relative; z-index: 0; aspect-ratio: 3 / 2; object-fit: cover; background: #e3d4ba; }
.photo-frame::before { position: absolute; z-index: 1; top: -11px; left: 6%; width: 26%; height: 24px; background: var(--marker); clip-path: polygon(2% 5%, 100% 0, 97% 100%, 0 94%); transform: rotate(-4deg); content: ""; }
.photo-frame::after { position: absolute; z-index: -1; inset: -5px -5px -8px -8px; background: linear-gradient(var(--blue),var(--blue)) right top / 44px 1.5px no-repeat, linear-gradient(var(--blue),var(--blue)) right top / 1.5px 26px no-repeat, linear-gradient(var(--blue),var(--blue)) left bottom / 42px 1.5px no-repeat, linear-gradient(var(--blue),var(--blue)) left bottom / 1.5px 25px no-repeat; content: ""; }
.hero-art figcaption { padding-top: 11px; color: var(--muted); font-size: 12px; text-align: end; }

.notice { background: #dbeafe; border-top: 1px solid #c7daf4; border-bottom: 1px solid #c7daf4; }
.notice-inner { display: flex; align-items: center; gap: 14px; min-height: 51px; padding-block: 6px; color: var(--blue); font-size: 15px; font-weight: 680; text-decoration: none; }
.notice-inner:hover { text-decoration: underline; }
.notice-tag { flex-shrink: 0; color: #fff; background: var(--blue); padding: 3px 14px 3px 10px; clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%); font-size: 12px; line-height: 1.4; }
.notice-inner .chevron { margin-left: auto; margin-right: 4px; }
.notice-plan { white-space: nowrap; }

.ruled-title { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 36px); margin-bottom: clamp(23px, 3vw, 43px); word-break: auto-phrase; }
.ruled-title::after { flex: 1 0 23px; height: 1.5px; background: var(--blue); content: ""; }
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(17px, 3vw, 45px); }
.three-grid > article + article { padding-inline-start: clamp(16px, 2.65vw, 39px); border-inline-start: 1px solid var(--rule); }
.feature-grid h3 { margin: 0 0 11px; }
.feature-grid p { max-width: 24em; }
.course-band { color: #f5f8ff; background: linear-gradient(124deg, #102c77, var(--deep) 65%); }
.course-heading { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 36px); margin-bottom: clamp(23px, 3vw, 43px); }
.course-heading .ruled-title { flex: 1 1 auto; margin: 0; }
.course-selector { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.course-selector[hidden], .course-grid article[hidden] { display: none; }
.course-selector select { min-height: 44px; padding-inline: 9px; border: 1px solid #cad9f3; border-radius: 4px; color: var(--blue); background: #fffefb; font: inherit; }
.course-selector select:focus-visible { outline-color: var(--gold); }
.course-band .ruled-title { color: #fff; }
.course-band .ruled-title::after { background: #cad9f3; }
.course-grid > article + article { border-color: #8294c4; }
.course-grid > article[hidden] + article { padding: 0; border: 0; }
.course-grid[data-visible="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-grid[data-visible="1"] { grid-template-columns: minmax(0, 1fr); }
.course-grid h3 { color: #ffdf7c; }
.course-grid p { max-width: 25em; }
.course-meta { margin: 3px 0 8px; color: #e4ecfd; font-size: 14px; font-weight: 700; }
.course-band a:focus-visible, .footer a:focus-visible { outline-color: var(--gold); }

.notebook-grid, .fees::before { --squared: repeating-linear-gradient(90deg, #86a9d939 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, #86a9d939 0 1px, transparent 1px 14px); background: var(--squared), #edf6ff; }
.fees::before { display: block; height: 24px; border-bottom: 1px solid #d8e7f7; content: ""; }
.fees .ruled-title { margin-bottom: 13px; }
.intro { max-width: 53em; margin-bottom: 24px; }
table { width: 100%; color: var(--ink); border-collapse: collapse; border: 1px solid var(--strong-rule); }
th, td { padding: 12px 16px; border: 1px solid var(--strong-rule); font-size: 15px; line-height: 1.6; }
thead th { background: var(--ice); font-weight: 710; }
tbody th { background: #fff4d6; font-weight: 730; text-align: center; }
tbody td { background: #fffdfa; }
.group-table th:first-child { width: 13%; }
.group-table tbody td:nth-child(3), .high-table tbody td { text-align: center; }
.group-table tbody td:nth-child(3) { width: 22%; }
.group-table strong, .high-table strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.tiny { display: block; color: var(--muted); font-size: 12px; }
.needs-check { color: var(--muted); font-weight: 650; }
.disclosures { display: grid; gap: 10px; margin-top: 19px; }
.disclosure { min-width: 0; border: 1px solid var(--strong-rule); border-radius: 5px; background: #fffefa; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.disclosure > summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 47px; padding: 9px 16px; color: var(--blue); text-align: start; font-weight: 700; line-height: 1.45; word-break: auto-phrase; }
.disclosure > summary::after { flex: 0 0 14px; width: 14px; height: 14px; color: var(--blue); background: linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat; content: ""; }
.disclosure[open] > summary { background-color: var(--ice); }
.disclosure[open] > summary::after { background-size: 100% 1.5px; background-image: linear-gradient(currentColor,currentColor); }
.disclosure > summary:hover { background-color: #f0f6ff; }
.disclosure-body { padding: clamp(14px, 2.5vw, 30px); border-top: 1px solid #c1cde2; }
.disclosure-body > :is(p, dl, table, div, ul) + :is(p, dl, table, div, ul), .prose h3:not(:first-child) { margin-top: 13px; }
.disclosure-body h3 { margin-bottom: 7px; font-size: 17px; }
.prose ul { padding-inline-start: 1.25em; }
.prose li + li { margin-top: 6px; }
.source { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; color: var(--blue); font-size: 14px; font-weight: 690; line-height: 1.5; }
.source + .source { margin-inline-start: 15px; }
.schedule-list > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid #d7dfec; }
.schedule-list dt { font-weight: 710; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-grid article { padding: 14px 12px; border: 1px solid #bac9e1; background: #f7faff; }
.price-grid h3 { color: var(--blue); font-size: 16px; }
.price-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; }
.price-grid dl div { padding-top: 5px; border-top: 1px solid #d4deef; }
.price-grid dt { color: var(--muted); font-size: 13px; }
.price-grid dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.high-table thead th:first-child { width: 22%; }

.flow { border-block: 1px solid #d1e4f8; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 32px); padding: 0; counter-reset: step; list-style: none; }
.steps > li { position: relative; min-width: 0; padding: 14px 12px 16px 15px; border: 1px solid #adbfda; border-radius: 9px; background: #fffdf8e8; counter-increment: step; }
.steps h3 { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; color: var(--blue); font-size: clamp(16px, 1.37vw, 20px); }
.steps h3::before { display: inline-grid; place-items: center; align-self: start; flex: 0 0 24px; height: 24px; border-radius: 50%; color: var(--deep); background: var(--gold); font-size: 13px; content: counter(step); }
.steps > li:not(:last-child)::after { position: absolute; z-index: 1; top: 46%; right: clamp(-20px, -1.45vw, -9px); width: 8px; height: 8px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); transform: rotate(45deg); content: ""; }
.steps p, .flow-note { font-size: 14px; }
.flow-note { margin-top: 17px; }

.news .ruled-title { margin-bottom: 16px; }
.news-list .disclosure { border-width: 0 0 1px; border-radius: 0; }
.news-list .disclosure > summary { padding-inline: 10px; }
.news-heading { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: clamp(12px, 2.5vw, 36px); align-items: baseline; }
.news-heading time { color: var(--muted); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; }
.news > .source { margin-top: 5px; }

.campuses { background: #faf7ef; border-top: 1px solid #e8e0d4; }
.campus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(17px, 3.5vw, 47px); }
.campus-card { padding: clamp(17px, 2.45vw, 31px); border: 1px solid var(--strong-rule); border-inline-start: 10px solid #244b9c; border-radius: 6px; background: #fbfdff; }
.campus-card h3 { margin-bottom: 11px; }
.campus-intro, .campus-status { margin-bottom: 10px; color: var(--blue); }
.campus-status { font-weight: 740; }
.campus-card dl > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding-block: 5px; border-bottom: 1px solid #d0daed; font-size: 15px; }
.campus-card dt { color: var(--blue); font-weight: 690; }
.campus-card .source { margin-top: 4px; }
.recruit { margin-top: 17px; }
.recruit-note { margin-inline-start: 13px; padding-inline-start: 13px; border-inline-start: 1px solid var(--rule); color: var(--muted); font-size: 14px; font-weight: 560; }

.trial { padding-block: clamp(19px, 2.65vw, 35px); color: var(--ink); background: linear-gradient(120deg, #ffefad, #fff4cc 70%, #ffe9a4); }
.trial-envelope { display: grid; grid-template-columns: minmax(235px, .75fr) minmax(0, 1.5fr); align-items: center; gap: clamp(18px, 3vw, 40px); padding: clamp(17px, 2.8vw, 37px) clamp(17px, 3.6vw, 52px); border: 1px solid #52638a; border-radius: 8px; }
.trial-envelope h2 { text-align: center; }
.trial-body { padding-inline-start: clamp(17px, 3.2vw, 44px); border-inline-start: 1px solid #8191b3; }
.contact-info { display: flex; flex-wrap: wrap; gap: 4px 19px; margin: 9px 0; }
.contact-info > div { display: flex; min-width: 0; gap: 6px; align-items: baseline; }
.contact-info dt { flex-shrink: 0; font-size: 13px; font-weight: 650; }
.contact-info dd { font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; }
.trial-note { color: #414a64; font-size: 13px; }

.footer { padding-block: 21px; color: #fbfcff; background: var(--deep); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1.5fr) auto; align-items: center; gap: 3px clamp(17px, 3.2vw, 44px); }
.footer .wordmark { font-size: clamp(19px, 1.75vw, 23px); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 12px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fbfcff; font-size: 13px; font-weight: 620; text-decoration: none; }
.footer .official-links { grid-column: 2 / -1; }
.footer .official-links a { color: #ebf0ff; font-weight: 450; }
.attribution { font-size: 12px; line-height: 1.45; }

@media (max-width: 1100px) {
  .hero-inner { gap: 33px; }
  .hero h1 { font-size: clamp(30px, 3.65vw, 44px); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li { padding-inline: 11px; }
  .steps h3 { gap: 5px; }
}

@media (max-width: 800px) {
  .header-inner { justify-content: space-between; min-height: 60px; }
  .desktop-nav, .header-action { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 4px; }
  .mobile-nav > summary span { display: block; width: 22px; height: 17px; color: var(--blue); background: linear-gradient(currentColor,currentColor) 0 0 / 100% 1.5px no-repeat, linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor,currentColor) bottom / 100% 1.5px no-repeat; }
  .mobile-nav[open] > summary { background: var(--ice); }
  .mobile-nav > nav { position: absolute; z-index: 3; top: calc(100% - 1px); right: 0; width: min(100%, 242px); padding: 6px 13px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); box-shadow: 0 7px 15px #0b22651e; }
  .mobile-nav > nav a + a { border-top: 1px solid #d8e1f0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 27px; padding-bottom: 16px; }
  .hero-copy { padding: 0 0 0 12px; }
  .hero-copy::before { top: -27px; bottom: 0; }
  .hero h1 { margin-block: 14px 12px; font-size: clamp(26px, 7.45vw, 41px); }
  .hero-label { padding-bottom: 4px; }
  .hero-action { display: flex; width: max-content; margin: 14px auto 0; }
  .hero-art { padding-inline: 7px 3px; }
  .photo-frame::before { height: 18px; top: -8px; }
  .hero-art figcaption { padding-top: 9px; }
  .steps { grid-template-columns: 1fr; gap: 13px; }
  .steps > li { padding: 12px 14px; }
  .steps h3 { margin-bottom: 4px; }
  .steps p { margin-inline-start: 30px; }
  .steps > li:not(:last-child)::after { top: auto; right: 50%; bottom: -9px; transform: rotate(135deg); }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; row-gap: 4px; text-align: center; }
  .footer nav { justify-content: center; }
  .footer .official-links { grid-column: auto; }
  .attribution { margin-top: 5px; }
}

@media (max-width: 580px) {
  :root { --section-padding: 43px; }
  h2 { font-size: clamp(22px, 5.5vw, 25px); letter-spacing: .005em; }
  h3 { font-size: 19px; }
  .compact-section { padding-block: 37px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 32px); }
  .hero-lead { font-size: 15px; max-width: 23em; }
  .notice-inner { gap: 8px; min-height: 46px; font-size: 13px; }
  .notice-tag { padding-inline: 7px 10px; font-size: 11px; }
  .ruled-title { gap: 12px; }
  .ruled-title::after { flex-basis: 15px; }
  .three-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .three-grid > article + article { padding: 16px 0 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .feature-grid h3 { margin-bottom: 8px; }
  .feature-grid p, .course-grid p { max-width: none; }
  .course-heading { display: grid; gap: 12px; }
  .course-selector { justify-content: start; }
  .course-grid[data-visible="2"] { grid-template-columns: minmax(0, 1fr); }
  .course-grid > article + article { border-color: #8294c4; }
  .intro { margin-bottom: 16px; }
  .group-table .days { display: none; }
  .group-table th:first-child { width: 23%; }
  .group-table tbody td:nth-child(3) { width: 35%; }
  th, td { padding: 8px 7px; font-size: 13px; }
  .group-table tbody td:nth-child(2) { padding-inline: 6px; }
  .group-table strong, .high-table strong { font-size: 15px; }
  .disclosure > summary { min-height: 46px; padding-inline: 12px; font-size: 14px; }
  .disclosure-body { padding-inline: 12px; }
  .schedule-list > div { grid-template-columns: 38px minmax(0, 1fr); font-size: 14px; }
  .price-grid { gap: 8px; grid-template-columns: minmax(0, 1fr); }
  .price-grid dl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .price-grid dt { font-size: 12px; }
  .price-grid dd { font-size: 13px; word-break: normal; text-wrap: pretty; }
  .high-table thead th:first-child { width: 23%; }
  .disclosure-body .source { display: flex; margin-inline-start: 0; }
  .news-heading { grid-template-columns: 1fr; gap: 3px; }
  .news-list .disclosure > summary { min-height: 55px; padding: 8px 5px; }
  .campus-grid, .trial-envelope { grid-template-columns: minmax(0, 1fr); }
  .campus-card { border-inline-start-width: 7px; padding: 14px; }
  .campus-card dl > div { grid-template-columns: 64px minmax(0, 1fr); font-size: 14px; }
  .trial-envelope { gap: 13px; }
  .trial-envelope h2 { text-align: start; }
  .trial-body { padding: 11px 0 0; border-inline-start: 0; border-top: 1px solid #8191b3; }
  .footer nav { gap: 0 13px; }
  .footer nav:not(.official-links) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(100%, 370px); gap: 0 5px; }
  .footer nav:not(.official-links) a { grid-column: span 2; justify-content: center; }
  .footer nav:not(.official-links) a:nth-child(n + 4) { grid-column: span 3; }
}

@media (max-width: 350px) {
  .notice-inner { gap: 6px; }
  .notice-inner .chevron { margin-right: 3px; }
  .price-grid dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruit-note { margin-inline-start: 7px; padding-inline-start: 7px; font-size: 12px; }
}
