@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');

:root {
  --navy: #214d88;
  --navy-deep: #0a4785;
  --aqua: #56bcb5;
  --mint: #c5f0e9;
  --mint-pale: #effbf7;
  --cream: #fcfaf7;
  --ink: #393735;
  --muted: #6c6a68;
  --line: #d9e8e3;
  --gold: #eadb43;
  --paper: #ffffff;
  --shadow: 0 12px 35px rgba(32, 76, 111, .10);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }
a { color: var(--navy-deep); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #008f86; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 999; background: #fff; padding: .7rem 1rem; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--navy); }
.brand { display: flex; align-items: center; justify-content: center; min-height: 188px; padding: 22px 24px; }
.brand img { width: min(500px, 74vw); }
.site-nav { background: linear-gradient(#d4f6ef, #aee8df); border-bottom: 1px solid #d8fff4; }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: center; align-items: stretch; }
.nav-item { position: relative; display: flex; }
.nav-inner a { color: #5e5a59; text-decoration: none; padding: 13px 28px; text-align: center; border-left: 1px solid rgba(255,255,255,.55); }
.nav-link { display: flex; align-items: center; justify-content: center; gap: .4em; }
.nav-inner > .nav-item:last-child > .nav-link { border-right: 1px solid rgba(255,255,255,.55); }
.nav-inner a:hover, .nav-inner a[aria-current="page"], .nav-item.is-current-parent > .nav-link { background: rgba(255,255,255,.45); color: var(--navy-deep); }
.submenu { position: absolute; z-index: 50; top: 100%; left: 0; display: none; min-width: 245px; flex-direction: column; background: #d9f5ef; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 12px 24px rgba(23,59,106,.2); }
.submenu a { padding: 10px 17px; text-align: left; white-space: nowrap; border: 0; border-top: 1px solid rgba(255,255,255,.75); }
.submenu a:first-child { border-top: 0; }
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: flex; }
.menu-toggle { display: none; width: 100%; padding: 12px 18px; color: var(--navy-deep); background: var(--mint); border: 0; font: inherit; font-weight: 700; }

.home-main { max-width: var(--max); margin: 0 auto; }
.home-hero img { display: block; width: 100%; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 24px 28px; }
.quick-card { display: block; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--mint-pale); border: 1px solid #c9eae4; box-shadow: 0 7px 18px rgba(32,76,111,.07); }
.quick-card img { display: block; width: 100%; aspect-ratio: 300 / 169; object-fit: cover; }
.home-copy { padding: 16px 64px 80px; }
.section-heading { text-align: center; padding: 44px 16px 30px; }
.eyebrow { margin: 0 0 8px; color: var(--aqua); font-size: .8rem; font-weight: 700; letter-spacing: .18em; }
.section-heading h1 { margin: 0; color: var(--navy-deep); font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.5; }
.lead-copy { max-width: 800px; margin: 0 auto 40px; font-size: 1.06rem; }
.lead-copy strong { color: var(--navy-deep); font-size: 1.22rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 46px 0 72px; }
.topic-card { color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.topic-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.topic-card div { padding: 18px 20px 20px; }
.topic-card h2 { margin: 0 0 8px; color: var(--navy-deep); font-size: 1.15rem; border: 0; padding: 0; }
.topic-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.story-section, .voices, .resource-section { margin: 60px 0; }
.story-section h2, .voices h2, .resource-section h2 { color: var(--navy-deep); font-size: 1.65rem; border-bottom: 1px solid #ccc; padding: 8px 10px; }
.voices { background: var(--mint-pale); padding: 30px 36px 36px; border-radius: 10px; }
blockquote { margin: 20px 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--aqua); box-shadow: 0 5px 14px rgba(32,76,111,.06); }
blockquote cite { display: block; margin-top: 8px; color: var(--muted); font-style: normal; text-align: right; }
.center { text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 26px; color: #fff; background: var(--navy); border-radius: 6px; text-decoration: none; font-weight: 700; box-shadow: 0 5px 0 #17345a; }
.button:hover { color: #fff; background: #2d67ad; transform: translateY(1px); box-shadow: 0 4px 0 #17345a; }
.button-accent { background: var(--aqua); box-shadow: 0 5px 0 #338d86; }
.button-accent:hover { background: #3da8a0; }
.button-ameba { background: #2d8c3c; box-shadow: 0 5px 0 #1e632a; }
.button-ameba:hover { background: #267a34; box-shadow: 0 4px 0 #1e632a; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 70px 0; padding: 32px 36px; color: #fff; background: linear-gradient(135deg, var(--navy), #17355f); border-radius: 10px; }
.next-step h2 { margin: 0; font-size: 1.55rem; }
.next-step p { margin: 4px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.resource-grid a { display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); text-align: center; text-decoration: none; border: 1px solid var(--line); background: #fff; padding: 12px; }
.resource-grid img { width: 100%; height: 120px; object-fit: contain; }
.resource-grid span { margin-top: 8px; font-weight: 700; color: var(--navy-deep); }

.inner-shell { background: linear-gradient(90deg, #fbfff4 0, #fff 14%, #fff 86%, #fbfff4 100%); padding: 20px 24px 64px; }
.content-card { max-width: 1060px; margin: 0 auto; background: #fff; border-radius: 6px; box-shadow: 0 4px 20px rgba(32,76,111,.08); padding: 34px 70px 64px; }
.breadcrumbs { margin: 0 0 4px; color: var(--muted); font-size: .78rem; }
.page-title { margin: 0 0 28px; padding: 8px 10px; color: var(--navy-deep); background: var(--cream); font-size: clamp(1.7rem, 3vw, 2rem); line-height: 1.45; }
.entry-content h2 { margin: 2.7em 0 1em; padding: 10px 20px 10px 10px; color: var(--navy-deep); font-size: 1.7rem; line-height: 1.55; border-bottom: 1px solid #ccc; }
.entry-content h3 { margin: 2.4em 0 1em; padding: 10px 14px; color: var(--navy-deep); background: var(--cream); font-size: 1.4rem; line-height: 1.55; border-left: 5px solid var(--aqua); }
.entry-content h4 { color: var(--navy-deep); font-size: 1.18rem; }
.entry-content h5 { padding: 8px 12px; color: var(--navy-deep); background: var(--mint-pale); font-size: 1.08rem; }
.entry-content p { margin: 1.15em 0; }
.entry-content li { margin: .45em 0; }
.entry-content img { display: block; margin: 22px auto; }
.entry-content img[src*="/assets/profile/"] { width: 300px; max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.entry-content .alignleft { float: left; margin: 8px 24px 16px 0; }
.entry-content .alignright { float: right; margin: 8px 0 16px 24px; }
.entry-content::after { content: ""; display: block; clear: both; }
.info-box, .st-mybox-class { margin: 25px 0; padding: 18px 22px; color: #143c66; background: #e0ffff; border: 1px solid #3399ff; border-radius: 5px; }
.huto { font-weight: 700; }
.aka { color: #d93d49; }
.chiisa { font-size: .85em; }
.oomozi { font-size: 1.25em; }
.yellowbox { padding: 14px 18px; background: #fffbd7; border: 1px solid #e8d76a; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.contact-option { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--mint-pale); text-align: center; }
.contact-option img { width: 76px; height: 76px; object-fit: contain; }
.notice { margin: 28px 0; padding: 16px 20px; color: #5c5546; background: #fffbea; border-left: 4px solid var(--gold); }

.site-footer { color: #fff; background: #173b6a; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 38px 28px 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; }
.footer-nav a { color: #e8f7f4; }
.footer-title { margin: 0; font-weight: 700; }
.copyright { margin: 5px 0 0; color: #cad9e6; font-size: .78rem; }

@media (max-width: 850px) {
  .brand { min-height: 132px; }
  .menu-toggle { display: block; }
  .nav-inner { display: none; flex-direction: column; }
  .nav-inner.open { display: flex; }
  .nav-item { display: block; width: 100%; }
  .nav-inner a { border: 0; border-top: 1px solid rgba(255,255,255,.6); }
  .nav-link { width: 100%; }
  .nav-inner > .nav-item:last-child > .nav-link { border-right: 0; }
  .submenu { position: static; display: flex; min-width: 0; box-shadow: none; border: 0; background: rgba(255,255,255,.2); }
  .submenu a { padding: 10px 24px 10px 48px; font-size: .92rem; text-align: left; white-space: normal; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .home-copy { padding: 10px 28px 60px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { display: grid; grid-template-columns: 38% 1fr; }
  .topic-card img { height: 100%; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .content-card { padding: 26px 30px 52px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; line-height: 1.85; }
  .brand { min-height: 104px; padding: 14px 20px; }
  .brand img { width: min(360px, 88vw); }
  .inner-shell { padding: 10px 10px 44px; }
  .content-card { padding: 20px 17px 42px; box-shadow: none; }
  .quick-links { gap: 8px; padding: 10px 10px 20px; }
  .home-copy { padding: 6px 18px 48px; }
  .topic-card { display: block; }
  .story-section, .voices, .resource-section { margin: 44px 0; }
  .voices { padding: 20px 16px 24px; }
  .next-step { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
  .resource-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .resource-grid img { height: 90px; }
  .entry-content h2 { font-size: 1.4rem; padding-left: 7px; }
  .entry-content h3 { font-size: 1.2rem; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 20px auto; }
  .contact-options { grid-template-columns: 1fr; }
}

@media print {
  .site-nav, .menu-toggle, .site-footer { display: none; }
  .content-card { box-shadow: none; max-width: none; }
}
