@layer page {
  /* Consolidated page styles for national-archive.html */
  /* Page-specific styles for national-archive.html */
  :root {
    --navy: #0b2a4a;
    --gold: #d4af37;
    --line: #d8dee8;
    --bg: #f4f7fb;
    --text: #24364a;
    --muted: #64748b;
    --red: #e60012;
    --yellow: #facc15;
    --orange: #c2410c;
    --blue: #064f88;
  }
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
      "Noto Sans JP",
      -apple-system,
      BlinkMacSystemFont,
      "Yu Gothic",
      Meiryo,
      sans-serif;
    line-height: 1.9;
  }
  a {
    color: var(--blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
  .wrap {
    width: min(100% - 32px, 1120px);
    margin: auto;
  }
  .topbar {
    background: var(--navy);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
  }
  .topbar .wrap {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
  }
  .topbar b {
    background: var(--gold);
    color: var(--navy);
    border-radius: 999px;
    padding: 2px 10px;
  }
  .header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 2000;
  }
  .nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    font-weight: 900;
    color: var(--navy);
    text-decoration: none;
  }
  .navlinks {
    display: flex;
    gap: 16px;
    font-weight: 800;
    font-size: 0.92rem;
  }
  .navlinks a {
    text-decoration: none;
    color: var(--navy);
  }
  .hero {
    background: linear-gradient(135deg, #09213f, #123d67);
    color: #fff;
    padding: 62px 0;
    border-bottom: 6px solid var(--gold);
  }
  .hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.95rem, 3.7vw, 3rem);
    line-height: 1.22;
    margin: 0 0 14px;
  }
  .hero p {
    max-width: 920px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
  }
  .kicker {
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #8a6700;
    margin-bottom: 8px;
    font-size: 0.92rem;
  }
  .hero .kicker {
    color: #f8e39b;
  }
  .btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
  }
  .btn {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
  }
  .btn.gold {
    background: var(--gold);
    color: var(--navy);
  }
  .btn.outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
  }
  .section {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
  }
  .section.white {
    background: #fff;
  }
  .title {
    font-family: "Noto Serif JP", serif;
    color: var(--navy);
    font-size: clamp(1.35rem, 2.05vw, 1.95rem);
    line-height: 1.45;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
  .lead {
    max-width: 930px;
    line-height: 2.05;
    font-size: 0.98rem;
  }
  .map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
    margin-top: 26px;
  }
  .map {
    height: 520px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #e5e7eb;
    box-shadow: 0 12px 30px rgba(5, 17, 31, 0.08);
    overflow: hidden;
  }
  .map-side {
    display: grid;
    gap: 12px;
  }
  .side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }
  .side-card strong {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
  }
  .side-card span {
    color: var(--muted);
    font-size: 0.88rem;
  }
  .archive-list {
    display: block;
    margin-top: 26px;
  }
  .city-visible {
    background: transparent;
    padding: 24px 0 8px;
    border-top: 1px solid #e5e7eb;
  }
  .archive-list > .city-visible:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .city-fold {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin: 0 0 20px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e5e7eb;
  }
  .city-fold summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 0 12px 14px;
    background: transparent;
    border-left: 4px solid var(--gold);
    font-weight: 900;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .city-fold summary::-webkit-details-marker {
    display: none;
  }
  .city-fold summary::after {
    content: "開く";
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .city-fold[open] summary::after {
    content: "閉じる";
  }
  .fold-body {
    padding: 18px 0 0;
  }
  .notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 8px solid #ea580c;
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 0 0 22px;
    line-height: 2.05;
  }
  .notice strong {
    color: #9a3412;
  }
  .principle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
  }
  .box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(5, 17, 31, 0.04);
  }
  .box h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.08rem;
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
  }
  .stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
  }
  .stat strong {
    display: block;
    font-size: 1.45rem;
    color: var(--navy);
    line-height: 1;
  }
  .stat span {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--muted);
  }
  .stat.red {
    background: var(--red);
    border-color: var(--red);
  }
  .stat.red strong,
  .stat.red span {
    color: #fff;
  }
  .stat.yellow {
    background: var(--yellow);
    border-color: var(--yellow);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
  }
  .bad {
    background: var(--red);
    color: #fff;
  }
  .watch {
    background: var(--yellow);
    color: var(--navy);
  }
  .info {
    background: #eef7ff;
    color: #0b376d;
  }
  .school-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
  }
  .group h3 {
    font-family: "Noto Serif JP", serif;
    color: var(--navy);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
    font-size: 1.28rem;
    line-height: 1.45;
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    align-items: start;
  }
  .card {
    background: #fff;
    border: 1px solid #dce3ea;
    border-left: 7px solid var(--red);
    border-radius: 14px;
    padding: 14px;
  }
  .card.info-card {
    border-left-color: #0b66a3;
  }
  .card.y {
    border-left-color: var(--yellow);
  }
  .card h4 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 1rem;
  }
  .meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 800;
    margin: 0 0 8px;
  }
  .point {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 0.82rem;
    line-height: 1.8;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .chip {
    display: inline-flex;
    border: 1px solid #dce3ea;
    background: #eef7ff;
    color: #0b376d;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
  }
  .inquiry {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 26px;
    line-height: 2;
  }
  .inquiry-box {
    margin-top: 28px;
  }
  .footer {
    background: #071a2d;
    color: #fff;
    padding: 36px 0;
  }
  .footer a {
    color: #f8e39b;
  }
  @media (max-width: 900px) {
    .navlinks {
      display: none;
    }
    .principle,
    .map-layout {
      grid-template-columns: 1fr;
    }
    .stats {
      grid-template-columns: repeat(2, 1fr);
    }
    .cards {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
  }
  @media (max-width: 560px) {
    .stats,
    .cards {
      grid-template-columns: 1fr;
    }
    .topbar .wrap {
      display: block;
    }
    .group,
    .fold-body {
      padding: 14px;
    }
    .map {
      height: 380px;
    }
    .title {
      font-size: 1.32rem;
    }
    .hero h1 {
      font-size: 2rem;
    }
  }

  /* Page-specific styles for national-archive.html */
  .archive-editorial {
    background: #fff;
  }
  .archive-editorial .topbar b {
    padding: 0;
    background: transparent;
    color: #fff;
    border-radius: 0;
  }
  .archive-editorial .hero {
    padding: 68px 0 58px;
    border-bottom: 1px solid #071a30;
  }
  .archive-editorial .archive-source-link {
    margin: 22px 0 0;
  }
  .archive-editorial .archive-source-link a {
    color: #f8e39b;
    font-weight: 900;
    text-decoration: underline;
  }
  .archive-editorial .section {
    padding: 58px 0;
    background: #fff;
  }
  .archive-editorial .map {
    width: 100%;
    margin-top: 24px;
    border-radius: 0;
    box-shadow: none;
  }
  .archive-editorial .archive-list {
    margin-top: 24px;
    border-top: 2px solid var(--navy);
  }
  .archive-editorial .city-fold summary::after {
    padding: 0;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
  }
  .archive-editorial .group {
    padding: 24px 0;
    background: #fff;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .archive-editorial .cards {
    display: block;
  }
  .archive-editorial .card {
    margin: 0;
    padding: 18px 0 18px 18px;
    border: 0;
    border-left: 4px solid var(--red);
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
  }
  .archive-editorial .card.y {
    border-left-color: #b08a00;
  }
  .archive-editorial .card.info-card {
    border-left-color: #0b66a3;
  }
  .archive-editorial .point {
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .archive-editorial .chip {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
  }
  .archive-editorial .badge {
    border-radius: 0;
  }
}
