:root {
    --bg: #FAFAF8;            /* off-white page */
    --surface: #FFFFFF;
    --text: #1B2430;
    --muted: #5B6675;
    --navy: #1E3A5F;          /* headings, primary button */
    --navy-deep: #162C49;
    --blue: #2C6CB0;          /* links, numbers, accents */
    --blue-light: #9CC3EA;    /* accents on navy */
    --blue-soft: #E8F0F9;     /* soft fills */
    --line: #E2E5EA;
    --line-strong: #C9D2DE;

    /* System fonts only: nothing is fetched from another server */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
            "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;

    /* Two sizes only: titles and text. Hierarchy comes from weight and colour. */
    --title: 2rem;
    --text-size: 1.0625rem;
    --step--1: var(--text-size);
    --step-0:  var(--text-size);
    --step-1:  var(--text-size);
    --step-2:  var(--title);
    --step-3:  var(--title);
    --step-4:  var(--title);

    --measure: 68ch;
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 200; }

/* Navigation */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 250, 248, 0.94);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    max-width: 1040px; margin: 0 auto; padding: 0.9rem 1.5rem;
}
.logo { font-family: var(--font); font-size: var(--text-size); font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: var(--step--1); color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--navy); }
.nav-links .num { font-family: var(--font); color: var(--blue); font-weight: 700; margin-right: 0.3rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero: facts first */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; }
.portrait { width: 260px; height: 325px; object-fit: cover; object-position: center top; background: var(--line); }
.hero h1 { font-size: var(--step-4); line-height: 1.08; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.name-ja { color: var(--muted); margin: 0.3rem 0 1.25rem; letter-spacing: 0.05em; }
.facts-list { list-style: none; margin-bottom: 1.5rem; border-top: 1px solid var(--line); }
.facts-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts-list .k { font-size: var(--step--1); color: var(--muted); padding-top: 0.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.btn {
    font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--navy);
    background: none; border: 0; padding: 0.3rem 0; cursor: pointer;
    text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.25em;
}
.btn:hover { text-decoration-color: var(--navy); }
.btn-primary { background: var(--navy); color: #fff; padding: 0.55rem 1.1rem; text-decoration: none; }
.btn-primary:hover { background: var(--navy-deep); }

/* Statement: type only */
.statement { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); }
.statement p.big { font-size: var(--step-3); font-weight: 700; line-height: 1.2; color: var(--navy); letter-spacing: -0.015em; }
.statement p.small { max-width: 62ch; color: var(--muted); font-size: var(--step-1); line-height: 1.55; margin-top: 0.75rem; }
.figures { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.25rem; }
.figures li { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.figures .fig { display: block; color: var(--navy); font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.3rem; }

/* Sections */
section { padding: 4rem 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.75rem; }
.sec-head .num { font-size: var(--title); font-weight: 700; color: var(--blue); min-width: 2.2rem; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.015em; color: var(--navy); line-height: 1.2; }
h3 { font-size: var(--step-0); font-weight: 700; color: var(--navy); margin: 2.5rem 0 0.8rem; letter-spacing: 0.01em; }
h4 { font-size: var(--step-1); color: var(--navy); line-height: 1.3; margin-bottom: 0.4rem; }
.body > h3:first-child { margin-top: 0; }
.body p { max-width: var(--measure); margin-bottom: 1rem; }
.body p:last-child { margin-bottom: 0; }
.lead { font-weight: 600; color: var(--navy); }

.questions { margin: 1.75rem 0; }
.questions p { font-size: var(--step-1); font-weight: 600; line-height: 1.4; margin: 0.2rem 0; color: var(--navy); }

.band { max-width: var(--measure); margin-top: 2rem; }
.band .gold { display: block; font-weight: 700; color: var(--navy); }

/* Columns without boxes */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2rem 3rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2rem 2.5rem; }
.questions + .grid2 { margin-top: 1.75rem; }
.card p { color: var(--muted); margin-bottom: 0.6rem; max-width: none; }
.card p:last-child { margin-bottom: 0; }
.kicker { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: 0.3rem; }

.ptable { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 0.75rem 0 1rem; }
.ptable th, .ptable td { text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { color: var(--muted); font-weight: 500; width: 7.5rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: var(--step--1); font-weight: 600; }

.concept h4 { font-style: italic; }
.concept p { color: var(--muted); }

/* Plain lists */
.chips { list-style: none; columns: 2; column-gap: 3rem; max-width: 820px; }
.chips li { padding: 0.3rem 0; break-inside: avoid; }

.rows { list-style: none; max-width: 820px; }
.rows li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.25rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.when { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.what strong { font-weight: 600; }
.what .sub { display: block; font-size: var(--step--1); color: var(--muted); }

.pubs { list-style: none; max-width: 820px; }
.pubs li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.pubs li:first-child { border-top: 1px solid var(--line); }
.pubs .venue { color: var(--muted); }
.pubs .link { font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.pubs .link.url { font-weight: 400; white-space: normal; overflow-wrap: anywhere; }

.note { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }

.feature { margin: 2.5rem 0 0; max-width: 820px; }
.feature img { display: block; width: 100%; height: auto; }
.feature figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }

.bio-box { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 820px; }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.bio-head h3 { margin: 0; }
.bio-box p { color: var(--muted); max-width: none; }

.contact-card { max-width: 820px; }
.contact-card dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0; margin-bottom: 1.25rem; border-top: 1px solid var(--line); }
.contact-card dt, .contact-card dd { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.contact-card dt { font-size: var(--step--1); color: var(--muted); }
.contact-card dd { overflow-wrap: anywhere; }

/* Partner slider: outlined tiles, manual scrolling only */
.slider { max-width: 100%; }
.slides { list-style: none; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem; scrollbar-width: thin; }
.slides:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.slide { flex: 0 0 15rem; scroll-snap-align: start; border: 1px solid var(--line-strong); padding: 1.1rem 1.2rem; min-height: 8.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.slide strong { color: var(--navy); font-weight: 600; }
.slide span { color: var(--muted); }
.slider-nav { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.slider-btn { font: inherit; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); background: none; color: var(--navy); cursor: pointer; }
.slider-btn:hover { border-color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

footer { border-top: 1px solid var(--line); color: var(--muted); padding: 2rem 0 2.5rem; font-size: var(--step--1); }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

@media (max-width: 960px) {
    .hamburger { display: flex; }
    .nav-links { display: none; flex-direction: column; gap: 0.9rem; width: 100%; padding: 1rem 0 0.5rem; }
    .nav-links.active { display: flex; }
}
@media (max-width: 700px) {
    .nav-inner, .container { padding-left: 1rem; padding-right: 1rem; }
    .hero { padding: 2rem 0 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .portrait { width: 140px; height: 175px; }
    .hero h1 { font-size: var(--step-3); }
    .facts-list li { grid-template-columns: 1fr; gap: 0; }
    .statement { padding: 2.25rem 0 2.5rem; }
    .statement p.big { font-size: var(--step-2); }
    .figures { grid-template-columns: 1fr; gap: 1rem; }
    section { padding: 2.75rem 0; }
    h2 { font-size: var(--step-2); }
    .rows li { grid-template-columns: 1fr; gap: 0.1rem; }
    .contact-card dl { grid-template-columns: 1fr; }
    .contact-card dt { border-bottom: 0; padding-bottom: 0; }
    .chips { columns: 1; }
}
@media print {
    nav, .actions, footer, .statement, .contact-card .btn { display: none; }
    body { background: #fff; font-size: 11pt; }
    section { padding: 1.25rem 0; }
}

/* Current page in the menu */
.nav-links a { display: inline-block; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
@media (max-width: 960px) { .nav-links a[aria-current="page"] { border-bottom-color: transparent; font-weight: 600; } }

/* Page heading on sub-pages */
.page-head { padding: 3.5rem 0 0; }
.page-head h1 { font-size: var(--title); line-height: 1.15; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.page-head p { color: var(--muted); margin-top: 0.5rem; max-width: var(--measure); }
.page-head + section { border-top: 0; padding-top: 2.5rem; }

/* Unfoldable lists */
details.more { max-width: 820px; margin-top: 1rem; }
details.more > summary {
    cursor: pointer; list-style: none; font-weight: 600; color: var(--navy);
    padding: 0.8rem 0; border-bottom: 1px solid var(--line);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "Show"; float: right; font-weight: 400; color: var(--blue); }
details.more[open] > summary::after { content: "Hide"; }
details.more > .rows li:first-child, details.more > .pubs li:first-child { border-top: 0; }
.year { font-weight: 700; color: var(--navy); margin: 2rem 0 0.4rem; }
.year:first-child { margin-top: 0; }
.next-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-weight: 600; }

