:root {
  color-scheme: light;
  --navy: #06214a;
  --navy-2: #083166;
  --ink: #1f2a37;
  --muted: #586778;
  --line: #d8e3ea;
  --paper: #ffffff;
  --soft: #f5f9fc;
  --teal: #007a78;
  --teal-dark: #006363;
  --olive: #7a7418;
  --olive-dark: #67610f;
  --green: #138a54;
  --blue: #0874bd;
  --aqua: #0497a9;
  --leaf: #6ab357;
  --shadow: 0 16px 34px rgba(6, 33, 74, 0.09);
  --sans: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif: var(--sans);
}

body :where(*, *::before, *::after) {
  border-radius: 0 !important;
}

/* ルートのポータルは、文字と輪郭を直線的にそろえる。 */
.portal-home,
.portal-home :is(h1, h2, h3, h4, h5, h6, p, a, button, summary, span, strong, small, time, b, li) {
  font-family: var(--sans) !important;
}

.portal-home :where(*, *::before, *::after) {
  border-radius: 0 !important;
}

.portal-home :is(
  .brand__text strong,
  .site-nav > a,
  .site-menu > summary,
  .site-menu__panel > a,
  .site-menu__extra-icon,
  .site-menu__extra-link strong,
  .entry-panel h1,
  .entry-panel h2,
  .button,
  .site-update-feed__head p,
  .site-update-feed__head > a,
  .site-update-item__meta time,
  .site-update-item__arrow,
  .external-updates__head p,
  .external-updates__head > span,
  .update-card__label,
  .update-card__icon--percent,
  .update-card__action,
  .themes-section h2,
  .footer-nav a
) {
  font-weight: 700 !important;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page {
  margin-inline: auto;
  max-width: 1360px;
  padding: 2rem 1.25rem 0;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto 1.4rem;
  max-width: 1280px;
  position: relative;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.brand__mark {
  color: var(--navy);
  flex: 0 0 auto;
  width: 45px;
}

.brand__mark svg {
  fill: currentColor;
  stroke-width: 0;
}

.brand__text {
  display: grid;
  gap: 0.08rem;
}

.brand__text strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand__text span {
  color: #52647c;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav {
  align-items: center;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  gap: 1.55rem;
  justify-content: flex-end;
  overflow: visible;
  white-space: nowrap;
}

.site-nav > a,
.site-menu > summary {
  border-bottom: 3px solid transparent;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  list-style: none;
  padding: 0.75rem 0 0.56rem;
  text-decoration: none;
}

.site-nav > a.site-nav__diary {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > a.is-current,
.site-menu > summary:hover,
.site-menu > summary:focus-visible,
.site-menu[open] > summary {
  border-color: var(--teal);
}

.site-menu {
  position: relative;
}

.site-menu > summary {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.site-menu__chevron {
  color: var(--teal-dark);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.site-menu[open] .site-menu__chevron {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
}

.site-menu__panel {
  background: #ffffff;
  border: 1px solid rgba(6, 33, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(6, 33, 74, 0.18);
  display: none;
  left: 0;
  min-width: 330px;
  overflow: hidden;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% - 1px);
  white-space: normal;
  z-index: 60;
}

.site-menu:hover .site-menu__panel,
.site-menu:focus-within .site-menu__panel,
.site-menu[open] .site-menu__panel {
  display: grid;
}

.site-menu__panel > a {
  border-radius: 5px;
  color: var(--navy);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
  padding: 0.72rem 0.8rem;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.site-menu__panel > a:hover,
.site-menu__panel > a:focus-visible {
  background: #e9f6f5;
  color: var(--teal-dark);
  outline: 2px solid transparent;
}

.site-menu--extras .site-menu__panel {
  min-width: 350px;
}

.site-menu__panel > a.site-menu__extra-link {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.8rem;
}

.site-menu__extra-icon {
  align-items: center;
  background: #fff4dc;
  border: 1px solid rgba(184, 111, 0, 0.18);
  border-radius: 7px;
  color: #9b5d00;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.site-menu__extra-icon svg {
  height: 25px;
  width: 25px;
}

.site-menu__extra-icon {
  color: #8a5300;
  font-size: 1.2rem;
  font-weight: 900;
}

.site-menu__extra-link--teacher .site-menu__extra-icon {
  background: #e8f6f4;
  border-color: rgba(0, 122, 120, 0.2);
  color: var(--teal-dark);
}

.site-menu__extra-link > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.site-menu__extra-link strong {
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-menu__extra-link small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

main {
  display: grid;
  gap: 1.3rem;
}

.portal-hero {
  background:
    radial-gradient(circle at 86% 16%, rgba(42, 111, 221, 0.34) 0 4%, transparent 4.2%),
    radial-gradient(circle at 92% 30%, rgba(42, 111, 221, 0.2) 0 15%, transparent 15.2%),
    linear-gradient(125deg, #061c40 0%, #083166 62%, #0b4c8d 100%);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(6, 33, 74, 0.18);
  color: #ffffff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.4rem);
  position: relative;
}

.portal-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  height: 360px;
  pointer-events: none;
  position: absolute;
  right: -165px;
  top: -185px;
  width: 360px;
}

.portal-hero__copy {
  align-content: center;
  display: grid;
  gap: 1.15rem;
  max-width: 940px;
  min-width: 0;
}

.portal-hero__eyebrow {
  color: #80e5dd;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
}

.portal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.3vw, 4.65rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0;
}

.portal-hero h1 span {
  color: #ffd34e;
  display: inline-block;
}

.portal-hero__lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 650;
  line-height: 1.95;
  margin: 0;
  max-width: 800px;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.35rem;
}

.portal-action {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-action:hover,
.portal-action:focus-visible {
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.portal-action--primary {
  background: #ffd34e;
  color: #061c40;
}

.portal-action--primary:hover,
.portal-action--primary:focus-visible {
  background: #ffe181;
}

.portal-action--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.66);
  color: #ffffff;
}

.portal-action--secondary:hover,
.portal-action--secondary:focus-visible {
  background: #ffffff;
  color: var(--navy);
}

.portal-hero__notice {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
}

.investigations {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3.5vw, 2.7rem) 0 0.45rem;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  padding-inline: 0.25rem;
}

.section-heading > div {
  display: grid;
  gap: 0.2rem;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.section-heading > div > p {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.section-heading h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.28;
}

.section-heading > p {
  color: #405064;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.investigation-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.investigation-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(6, 33, 74, 0.06);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.investigation-card > img {
  aspect-ratio: 2.35 / 1;
  background: #eaf1f8;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.investigation-card--kindergarten > img {
  object-position: center 56%;
}

.investigation-card__body {
  align-content: start;
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.2rem, 2.3vw, 1.65rem);
}

.investigation-card__label {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
}

.investigation-card--fukushicho .investigation-card__label {
  color: #0b4bd4;
}

.investigation-card--tobichiyama .investigation-card__label {
  color: var(--olive-dark);
}

.investigation-card--expenses .investigation-card__label {
  color: #7a1f2b;
}

.investigation-card h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.35;
  margin: 0;
}

.investigation-card__body > p:not(.investigation-card__label) {
  color: #344255;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.85;
  margin: 0;
}

.investigation-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
}

.investigation-card__facts li {
  background: #eef5f8;
  border: 1px solid #d3e2e9;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
  padding: 0.38rem 0.65rem;
}

.investigation-card .button {
  justify-self: start;
  margin-top: 0.25rem;
  min-height: 52px;
  min-width: min(100%, 300px);
}

.editorial-policy {
  background: linear-gradient(125deg, #ffffff 0%, #eef7f8 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1.25rem;
  margin-top: 0.7rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.section-heading--policy {
  padding: 0;
}

.policy-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(6, 33, 74, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem;
}

.policy-grid article > span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.policy-grid strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

.policy-grid p {
  color: #405064;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.75;
  margin: 0;
}

.entry-panel {
  background: var(--paper);
  border: 1px solid rgba(216, 227, 234, 0.78);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(6, 33, 74, 0.05);
  isolation: isolate;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.entry-panel::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 34%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 255, 255, 0.18) 72%,
    rgba(255, 255, 255, 0.02) 100%
  );
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.entry-panel--kindergarten {
  background: linear-gradient(110deg, #ffffff 0%, #edf8ff 50%, #ffffff 100%);
}

.entry-panel--fukushicho {
  background: linear-gradient(110deg, #ffffff 0%, #edf4ff 52%, #ffffff 100%);
}

.entry-panel--fukushicho .entry-panel__image {
  background: #edf4ff;
  object-position: right center;
  width: 76%;
}

.entry-panel--tobichiyama {
  min-height: 270px;
}

.entry-panel--council .entry-panel__image {
  background: #eef4f7;
  object-fit: cover;
  object-position: right center;
}

.entry-panel--education {
  background: linear-gradient(110deg, #ffffff 0%, #eef5ff 52%, #ffffff 100%);
}

.entry-panel--education .entry-panel__image {
  background: #eef5ff;
  object-fit: cover;
  object-position: right center;
}

.entry-panel--expenses {
  background: linear-gradient(110deg, #ffffff 0%, #fbf1f3 52%, #ffffff 100%);
}

.entry-panel--expenses .entry-panel__image {
  background: #fbf1f3;
  object-fit: cover;
  object-position: right center;
}

.button--council {
  background: linear-gradient(180deg, #174d73, var(--navy));
  box-shadow: 0 10px 18px rgba(6, 33, 74, 0.2);
  color: #ffffff;
}

.button--council:hover,
.button--council:focus-visible {
  background: #0b3158;
  color: #ffffff;
}

.feature-label.feature-label--education {
  background: #0755c9;
}

.button--education {
  background: #0755c9;
  box-shadow: 0 10px 18px rgba(7, 85, 201, 0.2);
  color: #ffffff;
}

.button--education:hover,
.button--education:focus-visible {
  background: #053e94;
  color: #ffffff;
}

.feature-label.feature-label--expenses {
  background: #7a1f2b;
}

.feature-label.feature-label--fukushicho {
  background: #0b4bd4;
}

.button--expenses {
  background: #7a1f2b;
  box-shadow: 0 10px 18px rgba(122, 31, 43, 0.2);
  color: #ffffff;
}

.button--expenses:hover,
.button--expenses:focus-visible {
  background: #5f1721;
  color: #ffffff;
}

.button--fukushicho {
  background: linear-gradient(180deg, #155fe4, #0b4bd4);
  box-shadow: 0 10px 18px rgba(11, 75, 212, 0.22);
  color: #ffffff;
}

.button--fukushicho:hover,
.button--fukushicho:focus-visible {
  background: #083aa8;
  color: #ffffff;
}

.entry-panel__note {
  font-size: 0.82rem !important;
  margin-top: 0.8rem !important;
}

.entry-panel__image {
  height: 100%;
  inset: 0 0 0 auto;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 74%;
  z-index: -2;
}

.entry-panel--kindergarten .entry-panel__image {
  object-position: right center;
}

.entry-panel--tobichiyama .entry-panel__image {
  object-position: right center;
  width: 78%;
}

.entry-panel__copy {
  display: grid;
  gap: 0.95rem;
  max-width: 760px;
  padding: 1.95rem 3.4rem;
  position: relative;
  width: 57%;
}

.entry-panel h1,
.entry-panel h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.entry-panel h1 {
  font-size: 2.6rem;
}

.entry-panel h2 {
  font-size: 2.5rem;
}

.entry-panel p {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.feature-label {
  background: linear-gradient(180deg, #8d8625, #5f5c0f);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  display: inline-flex;
  font-size: 0.92rem !important;
  justify-self: start;
  line-height: 1;
  padding: 0.36rem 0.62rem;
}

.entry-panel__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.35rem;
}

.button {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: center;
  min-height: 58px;
  min-width: 220px;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button svg {
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.button__arrow {
  margin-left: auto;
}

.button--primary {
  background: var(--teal);
  box-shadow: 0 10px 18px rgba(0, 122, 120, 0.18);
  color: #ffffff;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--teal);
  color: var(--teal-dark);
}

.button--olive {
  background: linear-gradient(180deg, #8a8122, var(--olive-dark));
  box-shadow: 0 10px 18px rgba(103, 97, 15, 0.16);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #006c6a;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: #ffffff;
  border-color: #006c6a;
}

.button--olive:hover,
.button--olive:focus-visible {
  background: linear-gradient(180deg, #7d7519, #5d580e);
}

.site-update-feed {
  display: grid;
  gap: 1.05rem;
  margin-inline: auto;
  max-width: none;
  padding: 1.15rem 0 0.75rem;
  width: 100%;
}

.site-update-feed__head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.site-update-feed__head p,
.site-update-feed__head h2 {
  margin: 0;
}

.site-update-feed__head p {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.site-update-feed__head h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.25;
}

.site-update-feed__head > span,
.site-update-feed__head > a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.site-update-feed__head > a {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(6, 33, 74, 0.18);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.85rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.site-update-feed__head > a:hover,
.site-update-feed__head > a:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  outline: 2px solid transparent;
}

.site-update-feed__list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(6, 33, 74, 0.05);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.site-update-item {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid rgba(216, 227, 234, 0.9);
  color: var(--navy);
  display: grid;
  gap: 1rem;
  grid-template-columns: 15.5rem minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 0.86rem 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-update-item:hover,
.site-update-item:focus-visible {
  background: rgba(0, 126, 137, 0.06);
  color: var(--teal-dark);
  outline: 2px solid transparent;
}

.site-update-item--tobichiyama:hover,
.site-update-item--tobichiyama:focus-visible {
  background: rgba(116, 108, 13, 0.07);
  color: var(--olive-dark);
}

.site-update-item__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-update-item__meta time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-update-item__meta b {
  background: #e9f6f5;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.34rem 0.5rem;
}

.site-update-item--tobichiyama .site-update-item__meta b {
  background: #f1eed5;
  color: var(--olive-dark);
}

.site-update-item--archive .site-update-item__meta b,
.history-item--archive .history-item__meta b {
  color: var(--navy-2);
}

.site-update-item--education .site-update-item__meta b,
.history-item--education .history-item__meta b {
  background: #e6f3fb;
  color: #075f91;
}

.site-update-item--expenses .site-update-item__meta b,
.history-item--expenses .history-item__meta b {
  background: #f7e8eb;
  color: #7a1f2b;
}

.site-update-item--fukushicho .site-update-item__meta b,
.history-item--fukushicho .history-item__meta b {
  background: #e8efff;
  color: #0b4bd4;
}

.site-update-item strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.5;
  min-width: 0;
}

.site-update-item__arrow {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(6, 33, 74, 0.18);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  justify-self: end;
  min-height: 34px;
  min-width: 62px;
  padding: 0.36rem 0.78rem;
  white-space: nowrap;
}

.site-update-item:hover .site-update-item__arrow,
.site-update-item:focus-visible .site-update-item__arrow {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.site-update-item--tobichiyama:hover .site-update-item__arrow,
.site-update-item--tobichiyama:focus-visible .site-update-item__arrow {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
}

.external-updates {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  max-width: none;
  padding: 0.55rem 0 0.35rem;
  width: 100%;
}

.page--history {
  min-height: 100vh;
}

.history-hero {
  background: linear-gradient(115deg, #ffffff 0%, #f2f9fb 64%, #f9faf4 100%);
  border: 1px solid rgba(216, 227, 234, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(6, 33, 74, 0.05);
  display: grid;
  gap: 0.65rem;
  padding: 2.1rem 2.3rem;
}

.history-hero p,
.history-hero h1 {
  margin: 0;
}

.history-hero > p:first-child {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.history-hero h1 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.22;
}

.history-hero > p:last-child {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  max-width: 780px;
}

.history-list-section {
  display: grid;
  padding: 0.2rem 0 0.8rem;
}

.history-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(6, 33, 74, 0.05);
  color: var(--navy);
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.history-item a:hover,
.history-item a:focus-visible {
  border-color: rgba(0, 122, 120, 0.42);
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.history-item--tobichiyama a:hover,
.history-item--tobichiyama a:focus-visible {
  border-color: rgba(122, 116, 24, 0.42);
}

.history-item--education a:hover,
.history-item--education a:focus-visible {
  border-color: rgba(8, 116, 189, 0.42);
}

.history-item--expenses a:hover,
.history-item--expenses a:focus-visible {
  border-color: rgba(122, 31, 43, 0.42);
}

.history-item--fukushicho a:hover,
.history-item--fukushicho a:focus-visible {
  border-color: rgba(11, 75, 212, 0.48);
}

.history-item__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.history-item__meta time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.history-item__meta b,
.history-item__meta em {
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 0.34rem 0.52rem;
}

.history-item__meta b {
  background: #e9f6f5;
  color: var(--teal-dark);
}

.history-item--tobichiyama .history-item__meta b {
  background: #f1eed5;
  color: var(--olive-dark);
}

.history-item--portal .history-item__meta b,
.site-update-item--portal .site-update-item__meta b {
  background: #e8eef7;
  color: var(--navy);
}

.history-item__meta em {
  background: #f5f8fb;
  border: 1px solid rgba(216, 227, 234, 0.9);
  color: #42546a;
}

.history-item strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

.history-item a > span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.65;
}

.page--profile {
  min-height: 100vh;
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.profile-hero {
  background: linear-gradient(115deg, #ffffff 0%, #f2f8fb 62%, #f6faf6 100%);
  border: 1px solid rgba(216, 227, 234, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(6, 33, 74, 0.05);
  display: grid;
  gap: 0.65rem;
  padding: 2.25rem 2.35rem;
}

.profile-hero p,
.profile-hero h1 {
  margin: 0;
}

.profile-hero > p:first-child {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.profile-hero h1 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.22;
}

.profile-hero > p:last-child {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  max-width: 780px;
}

.profile-layout {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 340px minmax(0, 1fr);
}

.profile-summary-card,
.profile-article section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(6, 33, 74, 0.05);
}

.profile-summary-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  position: sticky;
  top: 1rem;
}

.profile-summary-card > p {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  margin: 0;
}

.profile-summary-card dl {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.profile-summary-card dl div {
  border-top: 1px solid rgba(216, 227, 234, 0.9);
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
}

.profile-summary-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-summary-card dd {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
}

.profile-article {
  display: grid;
  gap: 1rem;
}

.profile-article section {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem 1.45rem;
}

.profile-article h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1.38;
  margin: 0;
}

.profile-article p {
  color: #344255;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.9;
  margin: 0;
}

.external-updates__head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.external-updates__head p,
.external-updates__head h2 {
  margin: 0;
}

.external-updates__head p {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.external-updates__head h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.25;
}

.external-updates__head > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.update-links {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
  max-width: none;
  padding: 0.05rem 0 0.15rem;
  width: 100%;
}

.update-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(6, 33, 74, 0.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  min-height: 96px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.update-card:hover,
.update-card:focus-visible {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.update-card--x:hover,
.update-card--x:focus-visible {
  border-color: var(--navy);
}

.update-card--extra:hover,
.update-card--extra:focus-visible {
  border-color: #b86f00;
}

.update-card--teacher:hover,
.update-card--teacher:focus-visible {
  border-color: #007a78;
}

.update-card__label {
  align-self: start;
  background: var(--teal);
  border-radius: 4px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.45rem;
}

.update-card--x .update-card__label {
  background: #111820;
}

.update-card--extra .update-card__label {
  background: #9b5d00;
}

.update-card--teacher .update-card__label {
  background: #0755a5;
}

.update-card__icon {
  color: var(--teal);
  width: 58px;
}

.update-card__icon svg {
  height: 58px;
  stroke-width: 1.8;
  width: 58px;
}

.update-card__icon--chart {
  align-items: center;
  background: #fff4dc;
  border: 1px solid rgba(184, 111, 0, 0.18);
  border-radius: 10px;
  color: #9b5d00;
  display: inline-flex;
  height: 58px;
  justify-content: center;
}

.update-card__icon--chart svg {
  height: 40px;
  width: 40px;
}

.update-card--teacher .update-card__icon--chart {
  background: #e8f6f4;
  border-color: rgba(0, 122, 120, 0.2);
  color: var(--teal-dark);
}

.update-card__icon--percent {
  color: #8a5300;
  font-size: 2rem;
  font-weight: 900;
}

.update-card__xmark {
  color: #080b0f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.9;
}

.update-card__body {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.update-card__body strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.update-card__body span {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.update-card__action {
  color: var(--teal-dark);
  font-weight: 900;
}

.update-card--x .update-card__action {
  color: var(--olive-dark);
}

.update-card--extra .update-card__action {
  color: #8a5300;
}

.update-card--teacher .update-card__action {
  color: var(--teal-dark);
}

.themes-section {
  display: grid;
  gap: 0.8rem;
  margin-inline: auto;
  margin-top: 0.6rem;
  max-width: 1168px;
  padding: 0.05rem 0 0.7rem;
  width: calc(100% - 7rem);
}

.themes-section h2 {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  gap: 0.45rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.themes-section h2 svg {
  color: var(--navy);
  height: 18px;
  width: 18px;
}

.theme-grid {
  display: grid;
  gap: 1.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(6, 33, 74, 0.07);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 82px;
  padding: 0.85rem 1rem;
}

.theme-card__icon {
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.theme-card__icon svg {
  height: 30px;
  width: 30px;
}

.theme-card--education .theme-card__icon {
  background: linear-gradient(135deg, #0a8c5e, #006f45);
}

.theme-card--council .theme-card__icon {
  background: linear-gradient(135deg, #0f84d5, #045ca2);
}

.theme-card--city .theme-card__icon {
  background: linear-gradient(135deg, #0ba9bb, #007a9b);
}

.theme-card--planning .theme-card__icon {
  background: linear-gradient(135deg, #78bd5d, #4d9c43);
}

.theme-card strong {
  color: var(--teal-dark);
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.2;
}

.theme-card--council strong {
  color: #0868ad;
}

.theme-card--city strong {
  color: #007e93;
}

.theme-card--planning strong {
  color: #438b3c;
}

.theme-card p {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0.2rem 0 0;
}

.site-footer {
  background: linear-gradient(90deg, #05204a 0%, #05376c 56%, #05204a 100%);
  color: #ffffff;
  margin-top: 0.1rem;
}

.site-footer__inner {
  align-items: center;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 320px minmax(0, 1fr) auto;
  margin-inline: auto;
  max-width: 1360px;
  min-height: 86px;
  padding: 1.1rem 1.25rem;
}

.city-line {
  color: rgba(255, 255, 255, 0.42);
  height: 48px;
  width: min(100%, 320px);
}

.site-footer__copy {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
}

.site-footer__copy p {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.site-footer__copy small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 0.95rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .entry-panel__copy {
    padding: 1.8rem 2rem;
    width: 60%;
  }

  .themes-section {
    width: calc(100% - 2rem);
  }

  .theme-grid {
    gap: 1rem;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(6, 33, 74, 0.2);
    border-radius: 7px;
    color: var(--navy);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 900;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
  }

  .nav-toggle:focus-visible {
    border-color: var(--teal);
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }

  .nav-toggle__icon {
    display: grid;
    gap: 4px;
    width: 20px;
  }

  .nav-toggle__icon i {
    background: currentColor;
    display: block;
    height: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
    width: 20px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(6, 33, 74, 0.12);
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: 100%;
    padding: 0.35rem;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .site-menu > summary {
    border-bottom: 1px solid #e2eaf0;
    display: flex;
    justify-content: space-between;
    padding: 0.78rem 0.8rem;
    width: 100%;
  }

  .site-nav > a.site-nav__diary {
    font-size: 0.9rem;
  }

  .site-nav > a:last-child {
    border-bottom: 0;
  }

  .site-menu {
    width: 100%;
  }

  .site-menu:not([open]) .site-menu__panel {
    display: none;
  }

  .site-menu[open] .site-menu__panel {
    display: grid;
  }

  .site-menu__panel {
    border: 0;
    border-bottom: 1px solid #e2eaf0;
    border-radius: 0;
    box-shadow: none;
    left: auto;
    min-width: 0;
    padding: 0.25rem 0.25rem 0.45rem 1rem;
    position: static;
    width: 100%;
  }

  .site-menu__panel > a {
    border-left: 3px solid #d8e3ea;
    border-radius: 0;
    font-size: 0.86rem;
    padding: 0.62rem 0.75rem;
  }

  .site-menu--extras .site-menu__panel {
    min-width: 0;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .entry-panel__copy {
    width: 61%;
  }

  .entry-panel h1,
  .entry-panel h2 {
    font-size: 2.15rem;
  }

  .update-links,
  .theme-grid {
    grid-template-columns: 1fr 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 1rem 0.85rem 0;
  }

  .brand__text strong {
    font-size: 1.42rem;
  }

  .brand__text span {
    font-size: 0.78rem;
  }

  .site-nav {
    gap: 0;
  }

  main {
    gap: 0.9rem;
  }

  .portal-hero {
    border-radius: 16px;
    padding: 1.55rem 1.15rem;
  }

  .portal-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .portal-hero__lead {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .portal-hero__actions,
  .portal-action {
    width: 100%;
  }

  .investigations {
    padding-top: 1.65rem;
  }

  .investigation-grid {
    grid-template-columns: 1fr;
  }

  .investigation-card > img {
    aspect-ratio: 1.85 / 1;
  }

  .investigation-card .button {
    width: 100%;
  }

  .editorial-policy {
    border-radius: 12px;
    padding: 1.15rem;
  }

  .entry-panel {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .entry-panel::before {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0.18) 100%);
  }

  .entry-panel__copy {
    max-width: none;
    order: 1;
    padding: 1.4rem 1.15rem 1rem;
    width: 100%;
  }

  .entry-panel__image {
    height: 210px;
    inset: auto;
    order: 2;
    position: relative;
    width: 100% !important;
  }

  .entry-panel h1,
  .entry-panel h2 {
    font-size: 1.85rem;
  }

  .entry-panel p {
    font-size: 0.94rem;
  }

  .entry-panel__actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .site-update-feed,
  .external-updates,
  .update-links,
  .themes-section {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-update-feed__head,
  .external-updates__head {
    align-items: start;
    display: grid;
  }

  .site-update-feed__head > span,
  .site-update-feed__head > a,
  .external-updates__head > span {
    text-align: left;
  }

  .site-update-feed__head > a {
    justify-self: start;
  }

  .history-hero {
    padding: 1.45rem 1.15rem;
  }

  .profile-hero {
    padding: 1.45rem 1.15rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-summary-card {
    position: static;
  }

  .profile-article section {
    padding: 1.1rem;
  }

  .profile-article h2 {
    font-size: 1.28rem;
  }

  .history-item a {
    padding: 0.95rem 0.9rem;
  }

  .site-update-item {
    gap: 0.45rem 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.9rem 0.85rem;
  }

  .site-update-item strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-update-item__arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .update-card {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .update-card__action {
    grid-column: 3;
    justify-self: end;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand__mark {
    width: 38px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .portal-hero h1 {
    font-size: 2rem;
  }

  .investigation-card h3 {
    font-size: 1.4rem;
  }

  .investigation-card__body {
    padding: 1.05rem;
  }

  .entry-panel h1,
  .entry-panel h2 {
    font-size: 1.48rem;
  }

  .update-card {
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .update-card__label {
    justify-self: start;
  }

  .update-card__icon,
  .update-card__xmark {
    grid-column: 1;
    grid-row: 2;
  }

  .update-card__body {
    grid-column: 2;
    grid-row: 2;
  }

  .update-card__action {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

  .update-card__xmark {
    font-size: 3.4rem;
  }

  .footer-nav {
    gap: 0.7rem;
  }

  .footer-nav a + a {
    padding-left: 0.7rem;
  }
}

/* Mobile readability pass — keep secondary labels and actions comfortably legible. */
@media (max-width: 720px) {
  .site-update-feed__head > a {
    min-height: 44px;
  }

  .site-update-item__meta time {
    font-size: 0.84rem;
  }

  .site-update-item__meta b {
    font-size: 0.78rem;
    padding: 0.42rem 0.58rem;
  }

  .site-update-item__arrow {
    min-height: 40px;
    min-width: 68px;
  }

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
