:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #47566b;
  --paper: #f8f6ef;
  --accent: #ffcb5c;
  --teal: #59dfcf;
  --line: #d9dfe6;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.85; }
a { color: #145368; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #0b7d9a; outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 .9rem; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(2rem, 6vw, 4.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
.shell { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-170%); }
.skip:focus { transform: none; }
.site-header, footer { background: var(--ink); color: white; }
.site-header { border-bottom: 4px solid var(--teal); }
.bar { min-height: 4.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; white-space: nowrap; }
.brand img { width: 2.3rem; border: 1px solid #5b697b; border-radius: .55rem; }
.bar a, footer a { color: white; text-decoration: none; }
.menu { display: flex; align-items: center; gap: .15rem 1.15rem; flex-wrap: wrap; }
.menu a { display: block; padding-block: .4rem; font-size: .91rem; }
.menu a:hover, .menu a[aria-current] { color: var(--accent); text-decoration: underline; }
.menu-toggle { display: none; font: inherit; color: white; background: transparent; border: 1px solid #8490a1; border-radius: .6rem; min-width: 2.9rem; min-height: 2.85rem; cursor: pointer; }
main { padding: clamp(1.35rem, 4vw, 3rem) 0 3rem; min-height: 70vh; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--ink); color: white; border-radius: 1.2rem; overflow: hidden; }
.hero-copy { padding: clamp(1.45rem, 5vw, 3.75rem); }
.hero p:not(.eyebrow) { color: #e3e9ee; }
.hero img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.eyebrow { font-weight: 800; letter-spacing: .14em; font-size: .8rem; color: #145368; }
.hero .eyebrow { color: var(--teal); }
.button { display: inline-block; padding: .65rem 1.1rem; border-radius: .55rem; background: var(--accent); color: var(--ink); font-weight: 800; text-decoration: none; }
.button:hover { background: #ffd98c; }
.breadcrumb { margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.page-lead { max-width: 52rem; padding: 1rem 0 .5rem; }
.page-lead p:not(.eyebrow) { font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.card, .panel, .notice { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.65rem); }
.card { display: block; text-decoration: none; color: var(--ink); border-top: 4px solid #188678; }
.card p { color: var(--muted); margin-bottom: 0; }
.card:hover { border-color: #188678; transform: translateY(-3px); }
.panel { margin-block: 1.05rem; }
.panel > :last-child, .notice > :last-child { margin-bottom: 0; }
.notice { margin-block: 1.2rem; background: #fff6db; }
.prose { max-width: 52rem; margin-inline: auto; }
video, .course-image { width: min(100%, 45rem); border-radius: .7rem; background: #101828; }
.course-image { width: min(100%, 38rem); }
.course-list { padding-left: 1.25rem; }
.course-list a { display: inline-block; padding: .25rem 0; }
.filter { display: block; font-weight: 700; }
.filter input { width: min(100%, 28rem); display: block; border: 1px solid #69788a; border-radius: .5rem; padding: .65rem; font: inherit; }
.ad { margin: 1.5rem auto; max-width: 48rem; text-align: center; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
footer .shell { padding-block: 1.35rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
footer small { color: #e0e6ec; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
@media (prefers-reduced-motion: no-preference) {
  .hero, .page-lead, .panel, .card { animation: arrive .55s ease-out both; }
  .card { transition: transform .2s, border-color .2s; }
  @keyframes arrive { from { opacity: .15; translate: 0 .55rem; } to { opacity: 1; translate: 0; } }
}
@media (max-width: 47rem) {
  .bar { position: relative; flex-wrap: wrap; padding-block: .55rem; }
  .has-js .menu-toggle { display: block; }
  .has-js .menu-toggle[aria-expanded="false"] + .menu { display: none; }
  .menu { width: 100%; border-top: 1px solid #5b697b; padding-block: .4rem; }
  .menu a { min-height: 2.75rem; }
  .hero { grid-template-columns: 1fr; }
  .hero img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
}
