:root {
  --blue-900: #0b2f5b;
  --blue-800: #123f73;
  --blue-700: #1c5d99;
  --blue-100: #eaf3fb;
  --teal-700: #10707a;
  --gray-900: #17202a;
  --gray-700: #46515c;
  --gray-500: #727d89;
  --gray-200: #d9e1e8;
  --gray-100: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 8px 20px rgba(11, 47, 91, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

*:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
}

body {
  margin: 0;
  color: var(--gray-900);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  background: var(--white);
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--white);
  color: var(--blue-900);
  border: 2px solid var(--blue-900);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

html[data-font="small"] body {
  font-size: 15px;
}

html[data-font="large"] body {
  font-size: 19px;
}

html[data-theme="blue"] {
  --blue-900: #003f8f;
  --blue-800: #005bac;
  --blue-700: #0072c6;
  --blue-100: #e5f2ff;
}

html[data-theme="yellow"] body {
  background: #fff8d8;
  color: #171717;
}

html[data-theme="yellow"] .site-header,
html[data-theme="yellow"] .card,
html[data-theme="yellow"] .panel,
html[data-theme="yellow"] .portal-notice,
html[data-theme="yellow"] .portal-side {
  background: #fffdf0;
}

html[data-theme="black"] body {
  background: #000;
  color: #fff;
}

html[data-theme="black"] .site-header,
html[data-theme="black"] .utility-bar,
html[data-theme="black"] .card,
html[data-theme="black"] .panel,
html[data-theme="black"] .portal-notice,
html[data-theme="black"] .portal-side {
  background: #000;
  color: #fff;
}

html[data-theme="black"] a,
html[data-theme="black"] h1,
html[data-theme="black"] h2,
html[data-theme="black"] h3,
html[data-theme="black"] .brand-name {
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-top: 4px solid var(--blue-900);
  border-bottom: 1px solid #b8c5d1;
}

.site-header:empty {
  min-height: 174px;
}

.utility-bar {
  background: #f2f5f8;
  border-bottom: 1px solid #c8d2dc;
  color: var(--gray-700);
  font-size: 13px;
}

.utility-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-links,
.utility-tools,
.font-tools,
.theme-tools,
.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-search input {
  width: 160px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #aeb9c4;
  border-radius: 0;
  font: inherit;
}

.font-tools button,
.theme-tools button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #9eabb8;
  background: #fff;
  color: var(--gray-900);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.font-tools button.active,
.theme-tools button.active {
  border-color: var(--blue-900);
  background: var(--blue-900);
  color: #fff;
}

.theme-tools .theme-yellow {
  background: #fff4a3;
}

.theme-tools .theme-black {
  background: #000;
  color: #fff;
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  gap: 12px;
  min-width: 280px;
  max-width: min(420px, 100%);
}

.brand-logo,
.brand-mark {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 58px;
  height: 48px;
  object-fit: contain;
}

.brand-mark {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue-900), var(--teal-700));
  border-radius: 8px;
}

.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--blue-900);
}

.brand-sub {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gray-500);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 6px 18px;
  margin-left: 0;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
}

.nav a {
  padding: 13px 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-800);
  border-color: var(--blue-900);
}

.header-actions {
  display: flex;
  align-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  justify-self: end;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 520px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  max-width: 116px;
  border: 0;
  border-right: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-700);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: normal;
}

.lang-switch button:last-child {
  border-right: 0;
}

.lang-switch button.active {
  background: var(--blue-900);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--blue-800);
  border-radius: 2px;
  background: var(--blue-800);
  color: var(--white);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.secondary {
  background: var(--white);
  color: var(--blue-800);
}

.button.light {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue-900);
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #08233f;
  overflow: hidden;
}

.portal-hero {
  min-height: auto;
  color: var(--gray-900);
  background: #eef3f8;
  border-bottom: 1px solid #c8d2dc;
}

.portal-hero::before,
.portal-hero .hero-image {
  display: none;
}

.portal-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  padding: 48px 0;
}

.portal-hero .eyebrow {
  color: var(--blue-800);
}

.hero.portal-hero .eyebrow {
  color: var(--blue-800);
}

.portal-hero h1 {
  color: var(--blue-900);
  font-size: clamp(30px, 3.5vw, 46px);
}

.portal-hero .hero-lead {
  color: var(--gray-700);
}

.portal-copy {
  padding-top: 8px;
}

.portal-notice {
  border: 1px solid #b8c5d1;
  border-top: 5px solid var(--blue-900);
  background: #fff;
}

.portal-notice h2,
.portal-side h2 {
  margin: 0;
  padding: 14px 18px;
  background: var(--blue-900);
  color: #fff;
  font-size: 19px;
}

.portal-notice ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-notice li {
  border-top: 1px solid var(--gray-200);
}

.portal-notice a {
  display: block;
  padding: 15px 18px;
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
}

.portal-news-section {
  padding-top: 56px;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--blue-800);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portal-side {
  align-self: start;
  border: 1px solid #b8c5d1;
  background: #fff;
}

.portal-side a {
  display: block;
  padding: 14px 18px;
  border-top: 1px solid var(--gray-200);
  color: var(--blue-900);
  font-weight: 800;
}

.portal-side a:hover,
.portal-notice a:hover,
.text-link:hover {
  background: var(--blue-100);
}

.official-news .news-item {
  grid-template-columns: 130px 112px 1fr;
  padding: 16px 0;
}

.portal-feature-section {
  padding-top: 56px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-list article {
  display: grid;
  grid-template-rows: 170px 1fr;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.feature-list img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray-200);
}

.feature-list div {
  padding: 20px;
}

.feature-list h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 21px;
}

.feature-list p {
  margin: 0;
  color: var(--gray-700);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 31, 61, 0.96) 0%, rgba(7, 31, 61, 0.88) 52%, rgba(7, 31, 61, 0.48) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 90px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c7e9f0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 46px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #dceaf6;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--gray-100);
}

.section.deep {
  background: var(--blue-900);
  color: var(--white);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
}

.section.deep h2,
.section.deep .eyebrow {
  color: var(--white);
}

.lead {
  margin: 16px 0 0;
  color: var(--gray-700);
  font-size: 18px;
}

.section.deep .lead {
  color: #d7e7f5;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  background: var(--white);
  box-shadow: none;
}

.card.highlight {
  border-top: 5px solid var(--blue-700);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--gray-700);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 900;
}

.list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 24px;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--teal-700);
  border-radius: 50%;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.panel {
  padding: 34px;
  border: 1px solid var(--gray-200);
  border-left: 6px solid var(--blue-900);
  background: var(--white);
  box-shadow: none;
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin: 48px 0 14px;
  font-size: 25px;
}

.legal-content h2:first-of-type {
  margin-top: 32px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 15px;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-policy-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.consent a {
  color: var(--blue-800);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--blue-800);
  background: var(--blue-100);
  font-weight: 700;
}

.form-status[data-state="success"] {
  border-color: #18713b;
  background: #e9f7ee;
  color: #124f2b;
}

.form-status[data-state="error"] {
  border-color: #b42318;
  background: #fff0ee;
  color: #7a1a12;
}

.search-results {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--gray-200);
  list-style: none;
}

.search-results li {
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-200);
}

.search-results a {
  color: var(--blue-800);
  font-size: 21px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.search-results p {
  margin: 6px 0 0;
  color: var(--gray-700);
}

.completion-panel h2 {
  font-size: 28px;
}

.completion-panel .cta-actions {
  margin-top: 28px;
}

.error-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
  text-align: center;
  background: var(--gray-100);
}

.error-page .container {
  max-width: 760px;
}

.error-code {
  margin: 0;
  color: var(--blue-700);
  font-size: clamp(72px, 16vw, 148px);
  font-weight: 900;
  line-height: 1;
}

.error-page h1 {
  max-width: none;
  margin-top: 18px;
  color: var(--blue-900);
  font-size: clamp(30px, 5vw, 46px);
}

.error-page .cta-actions {
  justify-content: center;
  margin-top: 32px;
}

.page-hero {
  padding: 82px 0 56px;
  background: var(--blue-900);
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #dceaf6;
  font-size: 19px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: #c7d9e9;
  font-size: 14px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.table-like {
  display: grid;
  border: 1px solid var(--gray-200);
  border-bottom: 0;
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--gray-200);
}

.table-row dt,
.table-row dd {
  margin: 0;
  padding: 18px 20px;
}

.table-row dt {
  background: var(--gray-100);
  color: var(--blue-900);
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.news-date {
  color: var(--gray-700);
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
}

.news-title {
  color: var(--blue-900);
  font-weight: 800;
}

.cta {
  padding: 64px;
  border-top: 6px solid #b59a3b;
  background: var(--blue-900);
  color: var(--white);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 760px;
  color: #dceaf6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  background: var(--white);
  color: var(--gray-900);
  font: inherit;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.site-footer {
  background: #071f3d;
  color: #dceaf6;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin: 0 0 18px;
  border-radius: 2px;
  background: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #adc5dc;
  font-size: 13px;
}

.gov-links {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.gov-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gov-link-card {
  display: grid;
  grid-template-rows: 72px auto;
  align-items: center;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fff;
  color: var(--blue-900);
}

.gov-link-card:hover {
  border-color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gov-link-card img {
  width: 100%;
  max-width: 250px;
  max-height: 72px;
  object-fit: contain;
  justify-self: center;
}

.gov-link-card span {
  display: block;
  color: var(--blue-900);
  font-weight: 900;
  text-align: center;
}

.notice {
  padding: 18px 20px;
  border: 1px solid #c7d9e9;
  border-radius: 2px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
}

.member-directory {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}

.member-group {
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.member-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--blue-900);
  color: var(--white);
}

.member-group-head h3 {
  margin: 0;
  color: var(--white);
  font-size: 21px;
}

.member-group-head span {
  font-weight: 900;
}

.member-table-wrap {
  overflow-x: auto;
}

.member-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 15px;
}

.member-table th,
.member-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.member-table th {
  background: var(--gray-100);
  color: var(--blue-900);
  font-weight: 900;
  white-space: nowrap;
}

.member-table th:first-child,
.member-table td:first-child {
  width: 72px;
  text-align: center;
}

.member-table a {
  color: var(--blue-800);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.member-empty {
  padding: 24px;
  color: var(--gray-700);
  background: var(--gray-100);
}

@media (max-width: 1040px) {
  .site-header:empty {
    min-height: 191px;
  }

  .utility-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .utility-inner {
    padding: 10px 0;
  }

  .header-inner {
    min-height: 70px;
    display: flex;
    padding: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-content: start;
    gap: 0;
    padding: 18px 20px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px rgba(11, 47, 91, 0.14);
    max-height: calc(100vh - 70px);
    overflow: auto;
  }

  body.menu-open .nav {
    display: grid;
  }

  .nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 17px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .button {
    display: none;
  }

  .grid.cols-4,
  .grid.cols-3,
  .gov-link-grid,
  .feature-list,
  .portal-hero .hero-content,
  .portal-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header:empty {
    min-height: 107px;
  }

  body {
    font-size: 16px;
  }

  .header-inner,
  .container,
  .hero-content,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .utility-bar {
    display: none;
  }

  .header-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 8px 0 6px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand-logo,
  .brand-mark {
    width: 48px;
    height: 42px;
    font-size: 13px;
  }

  .brand-logo img {
    width: 48px;
    height: 42px;
  }

  .brand-name {
    max-width: 150px;
    font-size: 13px;
  }

  .brand-sub {
    display: none;
  }

  .utility-links,
  .font-tools,
  .theme-tools,
  .site-search {
    flex-wrap: wrap;
  }

  .header-actions {
    display: contents;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .lang-switch {
    max-width: 100%;
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .site-search input {
    width: 100%;
  }

  .lang-switch button {
    min-width: 36px;
    font-size: 12px;
  }

  .hero {
    min-height: 640px;
  }

  .portal-hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 31, 61, 0.96) 0%, rgba(7, 31, 61, 0.9) 62%, rgba(7, 31, 61, 0.72) 100%);
  }

  .hero-content {
    padding: 92px 0 62px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .error-page .cta-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .hero-stats,
  .feature-list,
  .gov-link-grid,
  .portal-hero .hero-content,
  .portal-layout,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .card,
  .panel,
  .cta {
    padding: 24px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row dd {
    padding-top: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
