:root {
  --ink: #2b4359; --muted: #526778; --sky: #84adbd; --gold: #ffda69; --line: #d9e5ec;
  --bs-body-font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}
body { background: white; color: var(--ink); font-family: var(--bs-body-font-family); font-weight: 400; line-height: 1.85; }
h1, h2, h3, h4, h5, h6, .navbar, .note-card h3 { font-family: var(--bs-body-font-family); font-weight: 700; }
h1, h2, h3 { color: var(--ink); }
h2 { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.navbar { background: var(--ink) !important; border-bottom: 5px solid var(--sky); padding: 1rem 0; }
.navbar-brand, .navbar-brand:hover, .navbar .nav-link, .navbar .nav-link:hover, .navbar .nav-link.active,
.navbar #quarto-search .aa-DetachedSearchButton { color: white !important; }
.navbar-brand { font-size: 1.05rem; font-weight: 700; }
.navbar .nav-link { font-size: .9rem; font-weight: 400; }
.navbar .nav-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.navbar-toggler { border-color: var(--sky); }
.navbar #quarto-search svg { color: white !important; }
.navbar-toggler-icon { filter: brightness(0) invert(1); }
.language-button { border: 1px solid #91adbf; border-radius: 3px; margin-left: .35rem; padding-inline: .7rem !important; }
.navbar .language-button.active { background: var(--gold); color: var(--ink) !important; border-color: var(--gold); }
a { color: #285d83; text-underline-offset: 4px; }
a:hover { color: #173f5c; }
#quarto-content { padding-top: 2.2rem; }
body.fullcontent #quarto-content { display: block; width: 100%; max-width: none; padding: 2rem clamp(1rem, 4vw, 4rem) 0; }
body.fullcontent main.content { width: 100%; max-width: none; margin: 0; }
.hero { position: relative; overflow: hidden; padding: 2.5rem 3rem 3rem; border-left: 12px solid var(--ink); border-bottom: 4px solid var(--sky); background: linear-gradient(105deg, #edf5f9 0%, white 68%); margin-bottom: 2.8rem; }
.hero::before { content: ''; position: absolute; top: 2.7rem; right: 2.5rem; width: 17px; height: 17px; background: var(--gold); transform: rotate(45deg); box-shadow: 24px 24px 0 var(--gold), 48px 48px 0 var(--gold); }
.hero .eyebrow { color: #4b6d83; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.35; margin: 1rem 0 1.5rem; font-weight: 700; }
.hero .name-en { display: block; color: var(--ink); font-size: .55em; margin-top: .3rem; letter-spacing: 0; font-weight: 400; }
.hero .world-question { font-size: clamp(1.1rem, 2.5vw, 1.45rem); color: var(--ink); margin: 1.5rem 0 .75rem; font-weight: 700; max-width: 36rem; }
.hero .intro { color: var(--muted); font-size: 1rem; max-width: 36rem; line-height: 1.95; }
.hero .hero-link { display: inline-block; margin-top: .6rem; padding: .65rem 1.25rem; background: var(--ink); color: white; text-decoration: none; border-radius: 3px; border-bottom: 3px solid var(--gold); }
.hero .hero-link:hover { background: #3c5c76; }
.research-intro { margin-bottom: 3rem; }
.research-intro p { color: var(--muted); line-height: 1.95; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.note-card { padding: 1.7rem; border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: 3px; background: #f5f9fc; }
.note-card h3 { font-size: 1.35rem; margin-top: .8rem; }
.note-card p { color: var(--muted); font-size: .95rem; line-height: 1.85; }
.note-card .tag { font-size: .73rem; color: #4b6d83; letter-spacing: .06em; }
.site-note { color: var(--muted); font-size: .88rem; padding: 1rem 0; }
footer.footer { border-top: 4px solid var(--sky); background: #f0f6fa; margin-top: 3rem; }
footer.footer .nav-footer-center { color: var(--ink); font-size: .85rem; }
footer.footer .nav-footer-center strong { border-bottom: 2px solid var(--gold); }
#quarto-sidebar { background: #f3f8fb; }
.navbar-brand:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 650px) {
  .note-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.7rem 1.25rem 2.5rem; border-left-width: 7px; }
  .hero::before { right: 1.2rem; top: 1.6rem; width: 10px; height: 10px; box-shadow: 17px 17px 0 var(--gold), 34px 34px 0 var(--gold); }
  .hero h1 { padding-right: 1.5rem; }
  .hero .eyebrow { max-width: calc(100% - 2.3rem); font-size: .7rem; letter-spacing: .08em; }
  .navbar-brand { font-size: .92rem; }
  .language-button { margin: .25rem 0; }
}
