:root {
  color-scheme: light;
  --ink: #183b60;
  --muted: #365776;
  --blue: #006b9e;
  --blue-edge: #004c72;
  --ice: #f1fbff;
  --line: #cee6ef;
  --paper: #fffcf5;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #ab5600; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 850; letter-spacing: -.045em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 810; letter-spacing: -.025em; }
h3 { font-size: 1.24rem; font-weight: 780; }
html:lang(zh) :is(h1, h2, h3), html:lang(ja) :is(h1, h2, h3), html:lang(ko) :is(h1, h2, h3) { letter-spacing: normal; }
section[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; background: white; padding: .5rem 1rem; transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 850; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: .8rem; }
.main-nav, .languages { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.main-nav a, .languages a {
  padding: .6rem .72rem;
  border-radius: .7rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.main-nav a:is(:hover, [aria-current]), .languages a:is(:hover, [aria-current]) { background: #dff3fc; }

.hero { background: linear-gradient(160deg, #e3f7ff 8%, #f2fbff 72%, #f2fff4); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4.2vw, 4.25rem); align-items: center; padding-block: clamp(2rem, 6vw, 5.5rem); }
.hero-line { margin-top: .8rem; color: var(--blue); font-size: clamp(1.4rem, 2.7vw, 2.15rem); line-height: 1.32; font-weight: 790; }
.lead { margin-top: .9rem; max-width: 42rem; color: var(--muted); font-size: 1.12rem; }
.hero-copy .button { margin-top: 1.5rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.25rem;
  border: 1px solid var(--blue-edge);
  border-radius: .95rem;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-edge);
  font-weight: 755;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: #005986; }
.button:active { box-shadow: 0 1px 0 var(--blue-edge); transform: translateY(3px); }

.hero-picture {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.45;
  border: .45rem solid white;
  border-radius: clamp(1.4rem, 3.7vw, 2.7rem);
  box-shadow: 0 6px 0 #bedce9, 0 18px 36px #447c9826;
}
.town { width: 100%; height: 100%; object-fit: cover; }
.character { position: absolute; width: auto; height: 55%; bottom: 15%; filter: drop-shadow(0 .45rem .35rem #29412455); }
.qiuqiu { height: 54%; left: 10%; }
.nurse { height: 54%; right: 10%; }
.ziya { height: 64%; left: 50%; bottom: 12%; transform: translateX(-50%); }

.games { padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.games h2 { margin-bottom: 1.5rem; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.theme-card {
  --card-color: #fff3f7;
  --card-edge: #f1d6e4;
  overflow: hidden;
  background: var(--card-color);
  border: 1px solid var(--card-edge);
  border-radius: 1.4rem;
  box-shadow: 0 4px 0 var(--card-edge);
}
.theme-smile, .theme-outreach { --card-color: #fffae9; --card-edge: #f0e1b7; }
.theme-clinic, .theme-workshop { --card-color: #edfff6; --card-edge: #c7e8d7; }
.theme-body { --card-color: #eef7ff; --card-edge: #d5e8fa; }
.theme-card img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.theme-card div { padding: 1rem 1.15rem 1.22rem; }
.theme-card p, .learning-panel p { margin-top: .5rem; color: var(--muted); }
.learning { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.learning-panel { background: #e2f8ec; border: 1px solid #bce6d1; border-radius: 1.4rem; padding: clamp(1.25rem, 3vw, 2.2rem); }
.learning-panel p { max-width: 47rem; }

.inner-page { padding-block: clamp(2rem, 6vw, 5rem); }
.inner-page h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.inner-page h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.support-grid, .legal-layout { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(1.2rem, 4vw, 3rem); }
.contact, .toc { padding: clamp(1.15rem, 3vw, 1.8rem); background: var(--ice); border: 1px solid var(--line); border-radius: 1.25rem; }
.contact p, .contact .button, .faq > p { margin-top: 1rem; }
.faq h2 { margin-bottom: .8rem; }
.faq details { background: white; border: 1px solid var(--line); border-radius: .85rem; margin-bottom: .55rem; }
.faq summary { cursor: pointer; padding: .8rem 1rem; font-weight: 740; }
.faq details p { padding: 0 1rem 1rem; color: var(--muted); }
.updated { margin-top: .65rem; color: var(--muted); }
.identity { margin-top: .85rem; font-size: .94rem; }
.legal-layout { grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); max-width: 65rem; }
.toc ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.toc a { display: block; padding: .27rem 0; }
.legal { background: white; border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.1rem, 4vw, 2.4rem); }
.legal section + section { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal p { margin-top: .75rem; color: var(--muted); }

.site-footer { background: var(--ice); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; flex-wrap: wrap; }
.publisher { display: grid; font-size: .9rem; row-gap: .12rem; }

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-picture { width: min(100%, 39rem); }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; padding-block: .55rem; }
  .main-nav { width: 100%; gap: 0 .2rem; }
  .main-nav a { padding: .56rem .5rem; }
  .support-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 29rem) {
  .theme-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
