
@font-face{font-family:"Flight Sans";src:url("media/flight.woff") format("woff");font-weight:100 900;font-display:swap;}
:root {
  --blue: #1739b8;
  --ink: #132454;
  --paper: #f5f7fb;
  --white: #fff;
  --signal: #ffde59;
  --muted: #4e5d7a;
  --line: #cdd7ea;
  --wrap: min(1240px, calc(100% - 112px));
  font-family: "Flight Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 3px solid #a32962; outline-offset: 4px; }
.hero :focus-visible,.contact :focus-visible { outline-color: #fff; }
.skip { position: fixed; top: 10px; left: 15px; z-index: 20; transform: translateY(-150%); background: var(--signal); padding: 12px; }
.skip:focus { transform: none; }
header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.head { width: var(--wrap); margin: auto; min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { flex: none; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.logo img { width: 158px; }
.head nav { display: flex; gap: clamp(13px,2.3vw,34px); font-size: .875rem; font-weight: 750; }
.head nav a:hover,.links a:hover,.news a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }
.button { min-height: 51px; padding: 11px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; font-weight: 800; font-size: .94rem; text-align: center; }
.primary { color: #172443; background: var(--signal); }
.primary:hover { background: #ffec9b; }
.head .button { min-height: 43px; }
.outline { color: var(--blue); border-color: var(--blue); }
.outline:hover { background: #e8eeff; }
.mobile { display: none; }

.hero, .school-hero {
  --hero-blue: #1739b8;
  --hero-media-width: 58%;
  --hero-media-angle: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  --hero-mobile-angle: polygon(0 0, 100% 0, 100% 100%, 0 84%);
}
.hero { min-height: clamp(490px,44vw,650px); position: relative; isolation: isolate; display: grid; align-items: center; background: var(--hero-blue); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; height: 100%; width: var(--hero-media-width); right: 0; top: 0; z-index: -1; object-fit: cover; object-position: 55% 62%; clip-path: var(--hero-media-angle); }
.hero .wrap { padding-block: 67px 75px; }
.hero .wrap > :is(h1, .lead, .actions) { max-width: 51%; }
.hero .eyebrow { display: inline-block; border-top: 2px solid #a6baff; padding-top: 11px; color: #edf1ff; font-size: .93rem; font-weight: 650; letter-spacing: .08em; }
.hero h1 { margin-block: 19px 22px; font-size: clamp(3.55rem,6vw,6rem); font-weight: 900; line-height: 1.12; letter-spacing: -.075em; }
.hero .lead { font-size: clamp(.94rem,1.35vw,1.1rem); line-height: 1.9; color: #edf1ff; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 27px; }
.hero .outline { border-color: #c0ccff; color: #fff; }
.hero .outline:hover { background: #ffffff24; }
.metrics { padding: clamp(20px,3vw,39px) 0; background: #eaf0ff; border-bottom: 1px solid var(--line); }
.metrics h2 { margin: 0 0 13px; color: var(--ink); font-size: clamp(1.02rem,1.65vw,1.35rem); font-weight: 850; }
.metric-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1.09fr 1fr 1.1fr; gap: 12px; }
.metric { display: grid; grid-template-columns: clamp(58px,7.25vw,108px) minmax(0,1fr); align-items: center; gap: clamp(8px,1.15vw,17px); min-width: 0; padding: 15px 14px; background: #fff; border: 1px solid #cedaf7; border-top: 4px solid var(--blue); border-radius: 9px; }
.metric img { width: 100%; height: auto; }
.metric-value { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .13em; margin: 0; color: var(--blue); font-size: clamp(1.23rem,2.35vw,2.08rem); font-weight: 900; line-height: 1.18; letter-spacing: -.045em; }
.metric-value strong { font-weight: 900; }
.metric-value strong[data-num] { font-variant-numeric: tabular-nums; min-width: var(--count-width,0); font-size: 1.33em; }
.metric-description { margin: 6px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; text-wrap: balance; }
.metric-description a { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.metric-accreditation { background: #f7f9ff; }
@media (min-width: 721px) and (max-width: 980px) {
  .metric { grid-template-columns: 1fr; gap: 7px; align-content: start; }
  .metric img { width: 69px; }
}
@media (max-width: 720px) {
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .metric { grid-template-columns: 69px minmax(0,1fr); border-top-width: 1px; border-left: 4px solid var(--blue); padding: 9px 13px; }
  .metric-value { font-size: 1.4rem; }
}
.block { padding-block: 77px; }
.block + .block { border-top: 1px solid var(--line); }
.top { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 27px; }
.top h2,.works h2,.contact h2 { font-size: clamp(1.85rem,3.8vw,3.5rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.26; }
.top p,.works p,.contact p { color: var(--muted); margin-top: 12px; line-height: 1.8; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 17px; }
.filters button { cursor: pointer; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 3px; min-height: 41px; padding: 6px 15px; font-weight: 700; font-size: .875rem; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.cards[data-filtered="true"] { grid-template-columns: minmax(0, 520px); }
.card { display: flex; flex-direction: column; position: relative; background: var(--white); border-bottom: 3px solid var(--line); }
.card:hover,.card:focus-within { border-color: var(--blue); }
.photobox { height: clamp(155px,17vw,243px); background: #ceddf6; }
.photobox img,.work-image { height: 100%; width: 100%; object-fit: cover; }
.card[data-track="license"] img { object-position: center 60%; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: clamp(1.12rem,1.9vw,1.48rem); margin-bottom: 8px; }
.card p { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.card a { margin-top: auto; font-weight: 800; color: var(--blue); text-decoration: underline; text-underline-offset: .22em; width: fit-content; }
.card a::after { content: ""; position: absolute; inset: 0; }
.links { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-top: 25px; }
.links a { font-size: .89rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: #7e91bf; }
.works { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(24px,4.5vw,66px); align-items: center; }
.work-image { aspect-ratio: 16/9; }
.works .outline { margin-top: 20px; }
.news { border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; }
.contact { background: var(--blue); color: #fff; padding: clamp(24px,5vw,62px); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.contact p { color: #edf1ff; }
.contact a { flex-shrink: 0; }
footer { padding-block: 25px 42px; color: var(--muted); }
footer .links { margin: 0 0 18px; }

@media (max-width: 1080px) { :root { --wrap: calc(100% - 72px); } }
@media (max-width: 900px) {
  :root { --wrap: calc(100% - 48px); }
  .head > nav { display: none; }
  .mobile { display: block; margin-left: auto; }
  .mobile summary { cursor: pointer; padding: 11px 7px; font-weight: 750; font-size: .85rem; }
  .mobile div { position: absolute; inset: 100% 0 auto; display: grid; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile a { padding: 10px 0; }
  .hero h1 { font-size: clamp(3rem,7.2vw,4.5rem); }
  .hero .lead { max-width: 24em; }
  .card-content { padding: 16px; }
}
@media (max-width: 650px) {
  :root { --wrap: calc(100% - 36px); }
  .head { min-height: 61px; gap: 9px; }
  .logo img { width: 124px; }
  .head .button { min-height: 40px; padding: 7px 10px; font-size: .81rem; }
  .mobile summary { padding-inline: 4px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: static; width: 100%; height: clamp(190px,60vw,320px); object-position: 50% 67%; clip-path: var(--hero-mobile-angle); order: -1; }
  .hero .wrap { padding-block: 9px 29px; }
  .hero .wrap > :is(h1, .lead, .actions) { max-width: none; }
  .hero .eyebrow { font-size: .8rem; padding-top: 7px; }
  .hero h1 { margin-block: 10px 15px; font-size: clamp(2.85rem,11vw,4rem); }
  .hero .lead br { display: none; }
  .actions { margin-top: 18px; gap: 8px; }
  .actions .button { min-height: 46px; padding-inline: 11px; font-size: .83rem; }

  .block { padding-block: 46px; }
  .top { flex-direction: column; align-items: start; }
  .cards,.works { grid-template-columns: 1fr; }
  .photobox { height: auto; aspect-ratio: 16/9; }
  .news a { grid-template-columns: 1fr; gap: 5px; }
  .contact { display: block; }
  .contact a { margin-top: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes hero-image-arrival { from { opacity: .55; } to { opacity: 1; } }
@media (min-width: 651px) and (prefers-reduced-motion: no-preference) { .hero-media { animation: hero-image-arrival 650ms cubic-bezier(.22,.61,.36,1) both; } }
.hero-media video,.hero-media img { display:block; width:100%; height:100%; object-fit:cover; object-position:inherit; }
.hero-media video { position:absolute; inset:0; }
.video-control { position:absolute; z-index:1; bottom:18px; right:22px; min-height:44px; background:#132454; color:#fff; border:1px solid #fff8; border-radius:4px; padding:8px 14px; cursor:pointer; font-size:.875rem; font-weight:750; }
.video-control:hover { background:#1739b8; }
.news a { grid-template-columns:105px 100px minmax(0,1fr); align-items:start; }
.news-category { width:fit-content; padding:3px 8px; background:#e3ebff; color:#1739b8; border-radius:3px; font-size:.81rem; font-weight:750; }
.news-category.guide-label { background:#d9f0ee; color:#164c48; }
.support { display:grid; grid-template-columns:1.04fr 1fr; gap:18px; }
.support article { padding:clamp(22px,3.4vw,42px); display:flex; flex-direction:column; align-items:start; background:#fff; border:1px solid var(--line); }
.support article:first-child { background:#1739b8; border-color:#1739b8; color:#fff; }
.support small { font-size:.85rem; font-weight:750; color:var(--blue); }
.support article:first-child small,.support article:first-child p { color:#edf1ff; }
.support h3 { margin-top:8px; font-size:clamp(1.45rem,2.7vw,2.3rem); letter-spacing:-.035em; line-height:1.3; }
.support p { color:var(--muted); line-height:1.85; margin:13px 0 19px; max-width:32em; }
.support .button { margin-top:auto; }
.site-footer { color:#ecf1ff; background:#132454; padding-block:35px 22px; }
.footer-intro { margin-bottom:23px; }
.footer-intro strong { font-size:1.25rem; }
.footer-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.footer-group h2 { font-size:.95rem; margin:0 0 10px; color:#fff; padding-bottom:9px; border-bottom:1px solid #a9bbeb65; }
.footer-group ul { list-style:none; padding:0; margin:0; }
.footer-group a { display:block; padding:6px 0; color:#e4ebff; font-size:.86rem; }
.footer-group a:hover,.footer-end a:hover { text-decoration:underline; text-underline-offset:.22em; }
.site-footer :focus-visible { outline-color:var(--signal); }
.footer-end { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #a9bbeb65; margin-top:26px; padding-top:15px; font-size:.8rem; color:#dce6ff; }
@media(max-width:900px) { .footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
 .hero-media { position:relative; }
 .video-control { top:calc(clamp(190px,60vw,320px) - 62px); right:12px; bottom:auto; }
 .news a { grid-template-columns:max-content 1fr; align-items:center; gap:6px 11px; }
 .news a .news-title { grid-column:1/-1; }
 .support { grid-template-columns:1fr; }
 .footer-columns { gap:20px 14px; }
}
.head > .global-nav { display:block; }
.head .global-nav ul { list-style:none; margin:0; padding:0; }
.head .global-nav > ul { display:flex; align-items:center; gap:clamp(9px,1.25vw,19px); }
.global-nav .root-link,.global-nav summary { display:flex; align-items:center; min-height:43px; gap:7px; font-weight:750; white-space:nowrap; }
.global-nav summary { cursor:pointer; list-style:none; }
.global-nav summary::-webkit-details-marker { display:none; }
.global-nav summary::after { content:""; display:block; width:6px; height:6px; margin-top:-3px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); }
.global-nav details[open] > summary { color:var(--blue); }
.global-nav details[open] > summary::after { transform:translateY(4px) rotate(225deg); }
.global-nav .nav-group { position:relative; }
.head .global-nav .nav-panel { position:absolute; top:100%; left:0; width:max-content; max-width:min(355px,90vw); max-height:calc(100dvh - 84px); overflow:auto; overscroll-behavior:contain; background:var(--white); border:1px solid var(--line); border-top:3px solid var(--blue); border-radius:0 0 5px 5px; box-shadow:0 9px 24px #13245424; padding:6px 0; }
.head .global-nav > ul > li:nth-last-child(-n+2) .nav-panel { left:auto; right:0; }
.global-nav .nav-panel a { display:block; padding:11px 15px; line-height:1.42; }
.global-nav .nav-panel a:hover { background:var(--paper); }
.global-nav .nav-panel .nav-overview { color:var(--blue); border-bottom:1px solid var(--line); }
.head .global-nav .nav-level-three { margin:0 12px 6px 16px; border-left:2px solid var(--line); }
.global-nav .nav-level-three a { padding-block:7px; }
.menu-switch { display:none; }
@media(max-width:1199px) {
 .menu-switch { cursor:pointer; background:#fff; color:var(--ink); display:inline-flex; align-items:center; margin-left:auto; min-height:44px; padding:4px 8px; border:0; font-size:.875rem; font-weight:750; }
 .menu-switch::before { content:""; width:12px; height:8px; margin-right:6px; border-block:2px solid currentColor; }
 .head > .global-nav { display:none; position:absolute; inset:100% 0 auto; max-height:calc(100vh - 72px); max-height:calc(100dvh - 72px); overflow:auto; overscroll-behavior:contain; background:var(--white); border-bottom:1px solid var(--line); box-shadow:0 9px 24px #13245424; }
 .head > .global-nav.is-open { display:block; }
 .head .global-nav > ul { display:block; width:var(--wrap); margin:auto; padding-block:8px; }
 .global-nav > ul > li + li { border-top:1px solid var(--line); }
 .global-nav .root-link,.global-nav summary { justify-content:space-between; min-height:48px; }
 .head .global-nav .nav-panel { position:static; max-height:none; overflow:visible; width:100%; max-width:none; border:0; box-shadow:none; border-radius:0; padding:0; background:var(--paper); margin-bottom:8px; }
}

/* The frame stays in place while linked photographs respond to the visitor. */
.story, .resource-grid a, .feed-grid a { overflow: hidden; }
.resource-grid a { display: block; }
.photo-link img { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .photo-link img { transition: scale .35s cubic-bezier(.2,.65,.35,1), filter .35s ease; }
  .photo-link:is(:focus-visible,:focus-within,:active) img { scale: 1.045; filter: saturate(1.13); }
  @media (hover: hover) {
    .photo-link:hover img { scale: 1.045; filter: saturate(1.13); }
  }
  .photo-arrived { animation: photo-arrival .69s cubic-bezier(.2,.65,.35,1) both; }
}
@keyframes photo-arrival {
  from { opacity: .48; clip-path: inset(0 0 12% 0); }
  to { opacity: 1; clip-path: inset(0); }
}
.count { font-variant-numeric: tabular-nums; display: inline-block; min-width: var(--count-width, 0); }
.count-reading {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.hero .lead, .school-hero .lead { text-wrap: balance; }
@media (min-width: 651px) and (max-width: 920px) {
  .hero .wrap > :is(h1, .lead, .actions) { max-width: 46%; }
}

#course-results .course-extra { display:grid; grid-column:1 / -1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
#course-results .course-extra .photobox { height:clamp(135px,13.5vw,205px); }
#course-results[data-filtered="true"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
#course-results[data-filtered="true"] .course-extra { display:contents; }
#course-results[data-filtered="true"] .course-extra .photobox { height:clamp(155px,17vw,243px); }
@media(max-width:900px) {
 #course-results .course-extra,#course-results[data-filtered="true"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 #course-results .course-extra,#course-results[data-filtered="true"] { grid-template-columns:1fr; }
 #course-results .course-extra .photobox,#course-results[data-filtered="true"] .course-extra .photobox { height:auto; aspect-ratio:16/9; }
}

/* A single pass draws attention to the main calls to action. */
.button-shine { position:relative; overflow:hidden; isolation:isolate; }
.button-shine::after {
  content:""; position:absolute; inset:-8px auto -8px -45%; width:35%;
  pointer-events:none; opacity:0; transform:skewX(-21deg);
  background:linear-gradient(90deg,transparent,var(--shine-core,#fff9),transparent);
}
.button-shine.outline { --shine-core:#537df258; }
.cta-actions .button-shine.outline { --shine-core:#d9e9ff8c; }
@media (prefers-reduced-motion:no-preference) {
  .button-shine.shine-on-view::after { animation:button-shine .78s ease-in-out .24s both; }
  .button-shine:focus-visible::after { animation:button-shine-active .65s ease-out both; }
  @media (hover:hover) {
    .button-shine:hover::after { animation:button-shine-active .65s ease-out both; }
  }
}
@keyframes button-shine {
  from { left:-45%; opacity:0; }
  22%,78% { opacity:1; }
  to { left:113%; opacity:0; }
}
@keyframes button-shine-active {
  from { left:-45%; opacity:0; }
  22%,78% { opacity:1; }
  to { left:113%; opacity:0; }
}

/* Shared landing-page motion and gallery controls. */
:is(.lesson-gallery-controls,.photo-controls) { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:12px; }
:is(.lesson-gallery-controls,.photo-controls) button {
  display:grid; place-items:center; width:44px; min-height:44px; padding:0;
  border:1px solid var(--line); border-radius:50%; background:#f0f5ff; color:var(--blue); font-size:1.75rem; line-height:1; cursor:pointer;
}
:is(.lesson-gallery-controls,.photo-controls) button:not([aria-disabled=true]):hover { background:var(--blue); color:white; }
:is(.lesson-gallery-controls,.photo-controls) button[aria-disabled=true] { color:#607394; background:#f5f7fb; cursor:default; }
.lesson-gallery-count { min-width:5ch; text-align:center; font-size:.9rem; color:var(--muted); font-weight:750; font-variant-numeric:tabular-nums; }
:is(.lesson-gallery-controls,.photo-controls)[hidden] { display:none; }

.page-heading-line {
  display:block;
  width:clamp(44px,6vw,72px);
  height:3px;
  margin-block-start:9px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--blue) 76%,var(--signal) 76%);
  transform-origin:left center;
}

@media (prefers-reduced-motion:no-preference) {
  .page-title-animated .page-title-part {
    animation:page-title-in .52s ease-out var(--title-delay,0ms) both;
  }
  .page-heading-line { transform:scaleX(.14); }
  .line-visible > .page-heading-line {
    transform:scaleX(1);
    transition:transform .52s cubic-bezier(.2,.65,.35,1);
  }
  .page-motion-card { transition:transform .22s ease-out,box-shadow .22s ease-out; }
  .page-motion-card:is(:focus-visible,:focus-within) {
    transform:translateY(-4px);
    box-shadow:0 10px 24px #1324541f;
  }
  @media (hover:hover) and (pointer:fine) {
    .page-motion-card:hover {
      transform:translateY(-4px);
      box-shadow:0 10px 24px #1324541f;
    }
  }
}

@keyframes page-title-in {
  from { opacity:.36; filter:blur(2px); }
  to { opacity:1; filter:blur(0); }
}
