/* =========================================================
   1. Design tokens
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-sub-bg: #f5f7f8;
  --color-border: #d8dee3;
  --color-text: #1f2933;
  --color-muted: #5f6b76;
  --color-primary: #1f4e79;
  --color-primary-dark: #163a59;
  --color-accent: #2f7f7b;

  --container-width: 1120px;
}

/* =========================================================
   2. Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

time {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   3. Layout
   ========================================================= */

.container {
  width: min(100% - 32px, var(--container-width));
  margin: 0 auto;
}

section {
  padding: 48px 0 96px;
}

section h2 {
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 5px solid var(--color-primary);
  font-size: 1.55rem;
}

/* =========================================================
   4. Header / global navigation
   ========================================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: 
    "brand user"
    "nav nav";
  gap: 12px 24px;
  padding: 18px 0 0;
}

.header-bar {
  grid-area: brand;
  display: flex;
  align-items: center;  
  min-width: 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 72px;
  width: 72px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

.site-title {
  min-width: 0;
}

.site-name {
  display: inline-block;
  color: var(--color-text);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: none;
}

.site-address,
.site-contact {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px
}

.site-contact span {
  display: inline-block;
  white-space: nowrap;
}

.header-menu {
  display: contents;
}

.header-user {
  grid-area: user;
  align-self: end;
  justify-self: end;
  flex-shrink: 0;
}

.user-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-menu a {
  display: inline-block;
  padding: 2px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
}

.user-menu a:hover,
.user-menu a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.global-nav {
  grid-area: nav;
  margin-top: 0;
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.global-nav a {
  display: block;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 3;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--color-primary);
  text-decoration: none;
}

.global-nav a.current {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .header-inner {
    display: block;
  }

  .header-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-user {
    justify-content: center;
    width: 100%;
  }

  .user-menu {
    padding: 12px 0;
    justify-content: center;
  }
}

@media (max-width: 640px) {

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 41, 51, 0.08);
  }

  .header-inner {
    display: block;
    padding: 12px 0;
  }

  .header-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  
  .site-branding {
    gap: 10px;
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

  .site-name {
    font-size: 1.25rem;
  }

  .site-address,
  .site-contact {
    display: none;
  }
  
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    border-radius: 999px;
  }

  .header-menu {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .header-menu.is-open {
    max-height: calc(100vh - 72px);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle span {
    transition:
      transform 0.2s ease,
      opacity 0.2s ease,
  }

  .menu-toggle[area-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[area-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[area-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-user {
    margin: 12px 0;
    padding: 0 12px;
    background: var(--color-sub-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }

  .user-menu {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }

  .user-menu a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.5;
    text-decoration: none;
  }

  .user-menu a:hover,
  .user-menu a:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
  }

  .global-nav {
    margin-top: 0;
  }

  .global-nav a {
    padding: 12px 0;
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
  }

  .global-nav a:current {
    color: var(--color-primary);
  }
}

@media (max-width: 360px) {
  .site-logo {
    width: 24px;
    height: 24px;
  }

  .site-name {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu,
  .menu-toggle span {
    transition: none;
  }
}


/* =========================================================
   5. Shared lower-page UI
   ========================================================= */

.page-heading {
  padding: 40px 0;
  background: var(--color-sub-bg);
  border-bottom: 1px solid var(--color-border);
}

.page-heading h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.4;
}

.page-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
}

.page-main > section {
  border-top: 2px solid rgba(31, 41, 51, 0.3);
}

.page-main > section:first-child {
  padding-top: 0;
  border-top: none;
}

.breadcrumb {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.section-note {
  margin: -12px 0 24px;
  color: var(--color-muted);
}

.section-links {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.section-links h2 {
  margin: 0 0 14px;
  padding-left: 0;
  border-left: none;
  color: var(--color-text);
  font-size: 1.02rem;
}

.section-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-links li + li {
  margin-top: 10px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  line-height: 1.5;
}

.section-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.75;
  flex-shrink: 0;
}

.section-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.page-toc-section {
  padding: 48px 0 72px;
}

.page-with-toc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.page-toc {
  position: sticky;
  top: 24px;
}

/* =========================================================
   6. Shared components
   ========================================================= */

.button {
  display: inline-block;
  min-width: 180px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}

.button.primary {
  background: #ffffff;
  color: var(--color-primary);
}

.button.secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.button-secondary-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.button.emphasis {
  background: #2f6f8f;
  color: #ffffff;
  border: 1px solid #2f6f8f;
}

.button.emphasis:hover,
.button.emphasis:focus-visible {
  background: #275c76;
  border-color: #275c76;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  min-width: 76px;
  padding: 2px 8px;
  background: #e8f1f5;
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.8rem;
  text-align: center;
}

/* =========================================================
   7. Home page
   ========================================================= */

.hero {
  padding: 56px 0 0;
  background:
    linear-gradient(
      135deg,
      rgba(31, 78, 121, 0),
      rgba(31, 78, 121, 0) 40%,
      rgba(31, 78, 121, 0.45) 65%,
      rgba(31, 78, 121, 0.8)
    ),
    url("../images/hero-building.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100px;
  padding: 64px 0;
}

.hero-text {
  max-width: 480px;
  text-align: right;
}

.hero-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  margin: 0 0 50px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-kanji {
  font-family: 
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-kana {
  font-family: 
    "Noto Serif JP",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    serif;
  font-size: clamp(1.45rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero p {
  margin-top: 20px;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.news,
.quick-links,
.note-posts {
  position: relative;
}

.quick-links,
.note-posts {
  border-top: 1px solid rgba(31, 41, 51, 0.06);
}

.news {
  background: var(--color-bg);
}

.news-filter select {
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.news-list {
  margin: 0;
  padding: 0 16px;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.news-list li {
  display: grid;
  grid-template-columns: 120px 96px minmax(0, 1fr);
  grid-template-areas: "date tag body";
  align-items: start;
  column-gap: 16px;
  row-gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list time {
  grid-area: date;
  display: block;
  color: var(--color-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.news-list .tag {
  grid-area: tag;
  align-self: start;
  min-width: 76px;
}

.news-list .news-text {
  grid-area: body;
  color: var(--color-text);
  line-height: 1.6;
}

.news-list .news-text a {
  color: var(--color-primary);
  margin: 0 5px 0 0;
}

.news-list .news-text a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.quick-links {
  background: #fffdf5; 
}

.note-posts {
  background: var(--color-sub-bg);
}

.note-card-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.note-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
  transform: translateY(-1px);
}

.note-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.note-card a:hover {
  text-decoration: none;
}

.note-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
}

.note-card time {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.note-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.55;
}

.note-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.note-more {
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  display: block;
  min-height: 180px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.card:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.card h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =========================================================
   15. Top page alert
   ========================================================= */

.site-alert {
  background: #fff7e8;
  border-bottom: 1px solid #e6d3a5;
}

.site-alert-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.site-alert-label {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  background: #8a5a00;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.site-alert-text {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-alert-text a {
  margin-left: 8px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-alert-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-alert-text a {
    margin-left: 0;
  }
}

/* =========================================================
   8. About page
   ========================================================= */

.info-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.info-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list dt {
  color: var(--color-text);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--color-muted);
}

.message-photo {
  float: right;
  width: 140px;
  margin: 0 0 12px 20px;
  text-align: center;
}

.message-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.message-photo p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.message-block {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.message-body {
  max-width: 760px;
}

.message-body p {
  margin: 0;
  line-height: 1.8;
  text-indent: 1em;
}

.message-body p + p {
  margin-top: 0.8em;
}

.message-meta {
  clear: both;
  margin-top: 24px;
  text-align: right;
  line-height: 1.8;
  color: var(--color-text);
}

.message-meta p {
  margin: 0;
}

.policy-list {
  margin: 0;
  padding-left: 1.4rem;
}

.policy-list li + li {
  margin-top: 20px;
}

.policy-list h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.policy-list p {
  margin: 0;
  color: var(--color-muted);
}

.history-list {
  border-top: 1px solid var(--color-border);
}

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.history-year {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.history-content {
  color: var(--color-muted);
}

.policy-blocks {
  display: grid;
  gap: 20px;
}

.policy-block{
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.policy-block h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.policy-block p {
  margin: 0;
  color: var(--color-muted);
}

.evaluation-box {
  padding: 24px;
  background: var(--color-sub-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.evaluation-summary {
  margin: 0;
}

.evaluation-summary div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.evaluation-summary div:last-child {
  border-bottom: none;
}

.evaluation-summary dt {
  color: var(--color-text);
  font-weight: 700;
}

.evaluation-summary dd {
  margin: 0;
  color: var(--color-muted);
}

.evaluation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* =========================================================
   9. Documents page
   ========================================================= */

.document-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.document-card {
  display: block;
  min-height: 160px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.document-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.document-card:focus-visible {
  outline: 3px solid rgba(47, 127, 123, 0.35);
  outline-offset: 3px;
}

.document-label {
  display: inline-block;
  padding: 2px 8px;
  background: #e8f1f5;
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.document-card h3 {
  margin: 10px 0;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.5;
}

.document-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =========================================================
   10. Contact page
   ========================================================= */

.contact-overview {
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: start;
}

.contact-info-block h2,

.contact-phones h2 {
  margin-top: 0;
}

.contact-info-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.contact-info-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-list dt {
  color: var(--color-text);
  font-weight: 700;
}

.contact-info-list dd {
  margin: 0;
  color: var(--color-muted);
}

.contact-note-box p {
  margin: 0;
  color: var(--color-muted);
}

.map-embed {
  margin-top: 48px;
  text-align: center;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  margin: 0 auto;
  width: 90%;
  
}

/* 電話番号一覧：カード型リスト */

.contact-phone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-phone-item {
  padding: 18px 20px;
  min-height: 108px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.contact-phone-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.contact-phone-head h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-phone-head a {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-phone-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.contact-phone-head .contact-fax span{
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .contact-phone-list {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   15. Enrolled User page
   ========================================================= */

#schedule > .document-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.schedule-grid .document-card.featured {
  grid-column: span 3;
  background: #f7fafc;
  border-color: rgba(31, 78, 121, 0.35);
}

.schedule-grid .document-card.featured h3 {
  font-size: 1.2rem;
}

.schedule-grid .document-card.featured p {
  max-width: 32em;
}

.archive-box {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--color-sub-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.archive-box h3 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 1rem;
}

.month-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.month-chip-list > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 120px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.month-chip:hover,
.month-chip:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.document-card.annual {
  grid-column: span 2;
}

.document-card.featured {
  grid-column: span 3;
  background: #f7fafc;
  border-color: rgba(31, 78, 121, 0.35);
}

@media (max-width: 960px) {
  #schedule > .document-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .document-card.annual {
    grid-column: span 1;
  }
  .document-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .schedule-grid .document-card.featured {
    grid-column: span 1;
  }
}


/* =========================================================
   11. Footer
   ========================================================= */

.site-footer {
  padding: 36px 0;
  background: #263238;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer p {
  margin: 4px 0;
  color: #d7dde1;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #ffffff;
}

/* =========================================================
   11. Responsive: <= 960px
   ========================================================= */

@media (max-width: 960px) {

  .page-with-toc {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-toc {
    position: static;
  }

  .section-links {
    padding: 16px 18px;
  }

  .section-links h2 {
    margin-bottom: 12px;
    font-size: 0.98rem;
  }

  .section-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-links li + li {
    margin-top: 0;
  }

  .section-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .section-links a:hover {
    background: #fbfcfd;
    border-color: var(--color-primary);
  }

  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .document-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   12. Responsive: <= 840px
   ========================================================= */

@media (max-width: 840px) {


  .news-list {
    max-height: 320px;
  }

  .notice-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .news-list li {
    grid-template-columns: 8em 6.5em minmax(0, 1fr);
    grid-template-areas:
      "date tag ."
      "body body body";
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
  }

  .news-list time {
    white-space: normal;
  }

    .news-list .tag {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* =========================================================
   13. Responsive: <= 640px
   ========================================================= */

@media (max-width: 640px) {

  .global-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .global-nav a {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .section-links {
    padding: 14px;
  }

  .section-links ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-links a {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .info-list div,
  .history-item,
  .evaluation-summary div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .message-block,
  .policy-block,
  .evaluation-box {
    padding: 20px;
  }

  .evaluation-links .button {
    width: 100%;
  }

    .card {
    min-height: 150px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 0;
  }
}

/* =========================================================
   14. Responsive: <= 560px
   ========================================================= */

@media (max-width: 560px) {

  .hero-inner {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-text {
    width: 100%;
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .page-heading {
    padding: 32px 0;
  }

  .document-card-grid {
    grid-template-columns: 1fr;
  }

  .document-section {
    padding: 40px 0;
  }

  .document-card {
    min-height: auto;
  }


}







/* =========================================================
   Responsive additions
   ========================================================= */

@media (max-width: 840px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-info-block,
  .contact-map-block {
    padding: 20px;
  }

  .contact-info-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-embed iframe {
    min-height: 300px;
  }
}