:root {
  color-scheme: light;
  --paper: #f9faf7;
  --white: #fff;
  --navy: #17324a;
  --ink: #142b42;
  --muted: #4e6374;
  --line: #c6d3dc;
  --sky: #e6eef4;
  --yellow: #f1ca73;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--sans); line-break: strict; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3575a2; outline-offset: 4px; }
.shell { width: min(1140px, calc(100% - clamp(38px, 9vw, 136px))); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 2; top: 12px; left: 12px; width: auto; height: auto; clip-path: none; background: var(--white); padding: 8px 12px; }

.site-header { border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-inner { min-height: 64px; }
.wordmark { padding-block: 5px; font: 650 30px/1 Georgia, serif; letter-spacing: .08em; text-decoration: none; }
.site-nav { display: flex; gap: clamp(10px, 2.4vw, 34px); align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a[href="#visit"] { border-bottom: 2px solid var(--yellow); }
.site-nav a:hover, .text-link:hover { color: #1a638f; text-decoration: underline; }

.hero { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(35px, 4.7vw, 68px) clamp(36px, 4.9vw, 70px); }
.hero-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-label span { padding-inline: .1em; }
h1 { margin-block: 12px 17px; font: 650 clamp(36px, 4.5vw, 63px)/1.24 var(--serif); letter-spacing: -.03em; }
.hero-description { color: var(--muted); }
.hero-description span, .method-grid p span, .visit-copy p span { display: inline-block; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.primary { display: inline-flex; gap: 15px; align-items: center; justify-content: space-between; min-height: 46px; width: fit-content; border: 1px solid var(--navy); background: var(--navy); color: var(--white); padding: 9px 14px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.primary:hover { background: #224d6d; }
.primary:disabled { border-color: #b4c3ce; background: #dbe4eb; color: #485d6d; cursor: default; }
.arrow { position: relative; flex: 0 0 17px; width: 17px; height: 1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid; border-top: 1px solid; transform: rotate(45deg); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 650; }
.hero-art { position: relative; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: -12px -12px 24px 12px; border: 1px solid #a8bfce; z-index: -1; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.49; object-fit: cover; background: var(--navy); }
.hero-art figcaption { text-align: right; margin-top: 6px; font-size: 12px; color: var(--muted); }

section h2 { font: 650 clamp(24px, 2.75vw, 38px)/1.35 var(--serif); }
.method { background: var(--sky); }
.method-inner { padding-block: clamp(27px, 3.7vw, 53px); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4.2vw, 60px); margin-top: 20px; }
.method-grid article { border-top: 2px solid #9aafc1; padding-top: 12px; }
.method-grid h3 { font-size: clamp(16px, 1.6vw, 23px); font-weight: 750; }
.method-grid p { margin-top: 4px; max-width: 32em; }
.method-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.courses { padding-block: clamp(34px, 4.9vw, 70px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 22px; margin-bottom: 17px; }
.section-heading p { font-size: 14px; color: var(--muted); }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.course-list { display: grid; border-top: 1px solid var(--line); }
.course { display: grid; grid-template-columns: 21px minmax(126px, .42fr) minmax(0, 1.6fr); align-items: baseline; gap: clamp(12px, 2vw, 26px); padding: 16px clamp(12px, 2.5vw, 36px); border-bottom: 1px solid var(--line); background: var(--white); cursor: pointer; }
.course:hover { background: #f0f6fa; }
.course:has(:checked) { background: var(--sky); box-shadow: inset 3px 0 0 var(--navy); }
.course input { width: 19px; height: 19px; margin: 0; accent-color: var(--navy); align-self: center; cursor: pointer; }
.course-title { font-weight: 750; font-size: 15px; }
.course-detail strong { display: block; font-size: 16px; }
.course-detail span { display: block; color: var(--muted); font-size: 14px; }

.visit { background: var(--navy); color: var(--white); }
.visit-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); align-items: center; gap: clamp(20px, 5vw, 68px); padding-block: clamp(30px, 4.4vw, 63px); }
.visit-copy h2 { color: var(--white); }
.visit-copy p { margin-top: 12px; color: #e9f1f6; }
.visit-panel { color: var(--ink); background: var(--paper); border-left: 4px solid var(--yellow); padding: clamp(13px, 2vw, 26px); }
.visit-panel .selection { font-size: 15px; font-weight: 700; }
.visit-panel .primary { margin-top: 9px; }
.visit-note { margin-top: 9px; color: var(--muted); font-size: 13px; }
.result { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 7px; font-weight: 700; font-size: 14px; }
.site-footer { padding-block: 21px; }
.footer-name { font-weight: 750; }
.attribution { font-size: 13px; color: var(--muted); }
.footer-inner .text-link { font-size: 13px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { margin-inline-end: 7px; }
  .hero-art::before { inset: -7px -7px 22px 7px; }
  .hero-art img { aspect-ratio: 1.78; }
  .visit-inner { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .header-inner { min-height: 55px; }
  .wordmark { font-size: 24px; }
  .site-nav a { font-size: 13px; }
  .hero { gap: 23px; padding-block: 24px 25px; }
  .hero-label { font-size: 12px; }
  h1 { margin-block: 8px 12px; font-size: clamp(34px, 9.3vw, 47px); }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 5px 12px; margin-top: 17px; }
  .hero-actions .text-link { font-size: 13px; }
  .method-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 15px; }
  .method-grid p, .visit-copy p { font-size: 15px; }
  .section-heading { flex-direction: column; margin-bottom: 11px; }
  .course { grid-template-columns: 20px 1fr; gap: 1px 10px; padding: 12px; }
  .course-detail { grid-column: 2; }
  .course-detail strong { font-size: 15px; }
  .footer-inner { flex-wrap: wrap; gap: 2px 14px; }
  .attribution { order: 1; flex-basis: 100%; }
}
