:root {
  --background: #ffffff;
  --foreground: #142e54;
  --muted: #f4f7fa;
  --muted-foreground: #5f6f84;
  --border: #dce4ed;
  --input: #c6d1dd;
  --brand-navy: #142e54;
  --brand-blue: #174f93;
  --brand-red: #9b1f29;
  --brand-red-soft: #fbeff0;
  --map-hokkaido: #123a68;
  --map-kanto: #0878a8;
  --map-chubu: #079cab;
  --map-kinki: #a70d1a;
  --map-chugoku-shikoku: #d94e42;
  --map-kyushu: #2d236f;
  --focus: #174f93;
  --max-width: 1180px;
  --wide-width: 1360px;
  --radius: 5px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    "Segoe UI",
    sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-red);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--brand-red-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--brand-navy);
  line-height: 1.4;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  font-size: 1.1rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  background: var(--brand-navy);
  color: #fff;
  padding: 0.65rem 1rem;
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.container--wide {
  width: min(calc(100% - 2.5rem), var(--wide-width));
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header__inner {
  display: flex;
  width: min(calc(100% - 2.5rem), var(--wide-width));
  min-height: 78px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  max-width: 245px;
}

.site-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: stretch;
  border-bottom: 2px solid transparent;
  padding-inline: 1rem;
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  border-bottom-color: var(--brand-red);
}

.site-nav .site-nav__current {
  border-bottom-color: var(--brand-red);
  color: var(--brand-red);
}

.mobile-menu {
  display: none;
}

.service-notice {
  background: #fff7df;
  color: #604800;
  padding: 0.7rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: #fff;
}

.hero::after {
  position: absolute;
  top: 8rem;
  right: -7rem;
  width: 34rem;
  height: 1px;
  transform: rotate(-45deg);
  background: var(--brand-red);
  content: "";
}

.hero .container {
  position: relative;
  z-index: 1;
}

.section-label {
  margin-bottom: 1.5rem;
  color: var(--brand-red);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-label::after {
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.7rem;
  background: var(--brand-red);
  content: "";
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 2.4rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.search-panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.search-panel--results {
  margin-top: 2rem;
}

.search-panel > h2 {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.search-form__main {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brand-navy);
  font-size: 0.83rem;
  font-weight: 800;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: #fff;
  color: var(--foreground);
  padding: 0.65rem 0.8rem;
}

.form-field input::placeholder {
  color: #718096;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
}

.button--primary:hover {
  border-color: #7f1720;
  background: #7f1720;
  color: #fff;
}

.button--secondary {
  border-color: var(--brand-navy);
  background: #fff;
  color: var(--brand-navy);
}

.button--secondary:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.button--light {
  background: #fff;
  color: var(--brand-navy);
}

.button--light:hover {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.form-field--keyword {
  grid-column: 1 / 5;
}

.search-form__submit {
  grid-column: 5;
  min-width: 150px;
}

.search-form__advanced {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.search-form__advanced summary {
  min-height: 44px;
  color: var(--brand-blue);
  font-weight: 800;
  cursor: pointer;
}

.search-form__advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.search-form__advanced-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.trust-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.trust-facts div {
  border-right: 1px solid var(--border);
  text-align: center;
}

.trust-facts div:last-child {
  border-right: 0;
}

.trust-facts dt {
  color: var(--brand-navy);
  font-weight: 800;
}

.trust-facts dd {
  margin: 0.1rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.quick-search {
  margin-top: 2rem;
}

.quick-search h2 {
  font-size: 0.9rem;
}

.quick-search__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.quick-search__links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.quick-search__links a:nth-child(4n) {
  border-right: 0;
}

.quick-search__links a:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.prefecture-search {
  border-block: 1px solid var(--border);
  background: var(--muted);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.prefecture-search__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.prefecture-search__heading .section-label {
  margin-bottom: 0.5rem;
}

.prefecture-search__heading h2 {
  margin-bottom: 0.6rem;
}

.prefecture-search__heading p:last-child {
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.prefecture-search__heading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 800;
}

.prefecture-search__layout {
  position: relative;
  max-width: 1000px;
  min-height: 580px;
  margin: 1.25rem auto 0;
}

.prefecture-search__map {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 0;
  bottom: auto;
  left: 0;
  height: 489px;
  overflow: visible;
}

.prefecture-search__map img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.9);
  transform-origin: center;
}

.prefecture-regions {
  display: block;
}

.prefecture-region {
  position: absolute;
  z-index: 1;
  width: 136px;
  padding: 0;
}

.prefecture-region:nth-child(1) {
  top: 180px;
  right: 173px;
  --region-accent: var(--map-hokkaido);
}

.prefecture-region:nth-child(2) {
  top: 357px;
  right: 254px;
  --region-accent: var(--map-kanto);
}

.prefecture-region:nth-child(3) {
  top: 105px;
  right: 467px;
  left: auto;
  --region-accent: var(--map-chubu);
}

.prefecture-region:nth-child(4) {
  top: 441px;
  right: 503px;
  left: auto;
  --region-accent: var(--map-kinki);
}

.prefecture-region:nth-child(5) {
  top: 151px;
  right: 634px;
  left: auto;
  --region-accent: var(--map-chugoku-shikoku);
}

.prefecture-region:nth-child(6) {
  top: 214px;
  right: 802px;
  left: auto;
  --region-accent: var(--map-kyushu);
}

.prefecture-region h3 {
  display: flex;
  min-height: 28px;
  margin: 0;
  align-items: center;
  justify-content: center;
  background: var(--region-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

.prefecture-region ul {
  display: grid;
  grid-template-columns: repeat(2, 68px);
  grid-auto-rows: 26px;
  margin: 3px 0 0;
  padding: 0;
  gap: 0;
  background: transparent;
  list-style: none;
}

.prefecture-region a {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-decoration: none;
}

.prefecture-region a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.prefecture-region a span {
  display: none;
}

.page-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-section--compact {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-section--muted {
  background: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 2px solid var(--brand-navy);
  padding-top: 1.4rem;
}

.section-heading h2 {
  margin-bottom: 0.35rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.section-heading > a {
  min-height: 44px;
  font-weight: 800;
}

.update-list {
  margin-top: 1.5rem;
  border-block: 1px solid var(--border);
}

.update-list__item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  text-decoration: none;
}

.update-list__item:last-child {
  border-bottom: 0;
}

.update-list__item time {
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 800;
}

.update-list__item strong,
.update-list__item small {
  display: block;
}

.update-list__item strong {
  color: var(--brand-navy);
}

.update-list__item small {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.guidance-grid article + article {
  border-left: 1px solid var(--border);
  padding-left: 3rem;
}

.guidance-grid p {
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.notice {
  margin: 2.5rem 0 0;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1rem 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.notice--error {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.notice--error h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.consultation-band {
  background: var(--brand-navy);
  color: #fff;
  padding-block: 2.5rem;
}

.consultation-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.consultation-band h2 {
  margin-bottom: 0.4rem;
  color: #fff;
}

.consultation-band p {
  margin-bottom: 0;
  color: #d6e0ec;
}

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.breadcrumb .container {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.7rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.results-heading h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.results-heading p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.results-heading__meta {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  text-align: right;
}

.results-heading__meta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.active-filters strong {
  margin-right: 0.25rem;
  font-size: 0.8rem;
}

.active-filters a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding-inline: 0.8rem;
  color: var(--brand-navy);
  font-size: 0.82rem;
  text-decoration: none;
}

.active-filters .active-filters__clear {
  border: 0;
  background: transparent;
  color: var(--brand-blue);
}

.result-list {
  margin-top: 2rem;
  border-top: 2px solid var(--brand-navy);
}

.result-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.result-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 800;
}

.result-item h2 {
  max-width: 920px;
  margin: 0.7rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.result-item h2 a {
  color: var(--brand-navy);
  text-decoration: none;
}

.result-item h2 a:hover {
  color: var(--brand-red);
}

.result-item__institution {
  margin: 0.3rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  padding: 0.2rem 0.65rem;
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-list--large span {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.result-item__summary {
  max-width: 980px;
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.result-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 1rem 0 0;
}

.result-item__facts div {
  display: flex;
  gap: 0.5rem;
}

.result-item__facts dt {
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.result-item__facts dd {
  margin: 0;
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.result-item__link {
  position: absolute;
  right: 0;
  bottom: 1.75rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: clamp(2rem, 7vw, 4.5rem);
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 0.75rem;
}

.empty-state p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: var(--muted-foreground);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pagination a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--border);
  padding-inline: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.pagination span {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.detail-header {
  max-width: 980px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.detail-header__meta span {
  border: 1px solid var(--brand-red);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: var(--brand-red);
  font-size: 0.75rem;
  font-weight: 800;
}

.detail-header h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.detail-header__official-link {
  margin-bottom: 1rem;
}

.detail-header > p {
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.detail-header .detail-header__checked {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}

.detail-main {
  min-width: 0;
}

.detail-main section {
  border-bottom: 1px solid var(--border);
  padding-block: 0 2.5rem;
}

.detail-main section + section {
  padding-top: 2.5rem;
}

.detail-main h2 {
  font-size: 1.35rem;
}

.detail-main p {
  color: var(--muted-foreground);
}

.detail-summary {
  white-space: normal;
  overflow-wrap: anywhere;
}

.detail-facts {
  border-top: 1px solid var(--border);
  margin: 0;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.detail-facts dt {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.detail-aside {
  position: sticky;
  top: 1.5rem;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 1.5rem;
}

.detail-aside h2 {
  font-size: 1.2rem;
}

.detail-aside p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.detail-aside .button {
  width: 100%;
}

.detail-aside .detail-aside__note {
  margin: 0.8rem 0 0;
  font-size: 0.74rem;
}

.alternate-sources {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.alternate-sources li + li {
  margin-top: 0.4rem;
}

.related-section {
  margin-top: 4rem;
  border-top: 2px solid var(--brand-navy);
  padding-top: 1.5rem;
}

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

.related-list a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  padding: 1.2rem;
  text-decoration: none;
}

.related-list span,
.related-list small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.related-list strong {
  margin-block: 0.4rem;
  color: var(--brand-navy);
  line-height: 1.55;
}

.site-footer {
  background: #0f2442;
  color: #d6e0ec;
  padding: 3rem 0 1.2rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  width: min(calc(100% - 2.5rem), var(--wide-width));
  margin-inline: auto;
  gap: 2rem;
}

.site-footer p {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.site-footer .site-footer__name {
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.site-footer__brand img {
  width: 220px;
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  max-width: 24rem;
  margin-top: 1.2rem;
  color: #b9c7d7;
}

.site-footer__company p {
  color: #b9c7d7;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer nav strong {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  font-size: 0.85rem;
}

.site-footer__bottom {
  display: flex;
  width: min(calc(100% - 2.5rem), var(--wide-width));
  margin: 2rem auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #2e4565;
  padding-top: 1rem;
  color: #aebdce;
  font-size: 0.75rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #b9c7d7;
  font-size: 0.75rem;
}

@media (min-width: 901px) and (max-width: 1023px) {
  .prefecture-search__layout {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .prefecture-search__map {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 1690 / 931;
    overflow: hidden;
  }

  .prefecture-search__map img {
    transform: none;
  }

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

  .prefecture-region {
    position: static;
    width: auto;
    border: 1px solid var(--border);
    border-top: 2px solid var(--region-accent);
    background: #fff;
    padding: 1rem;
  }

  .prefecture-region h3 {
    display: block;
    min-height: 0;
    margin-bottom: 0.75rem;
    background: transparent;
    color: var(--brand-navy);
  }

  .prefecture-region ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    margin-top: 0;
    padding: 0;
    gap: 0 1rem;
    background: transparent;
  }

  .prefecture-region a {
    min-height: 44px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: normal;
  }

  .prefecture-region a span {
    display: inline;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 70px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: inline-flex;
    min-width: 54px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 250px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgb(20 46 84 / 14%);
  }

  .mobile-menu nav a {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    color: var(--brand-navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav .mobile-menu__current {
    background: var(--brand-red-soft);
    color: var(--brand-red);
  }

  .hero::after {
    display: none;
  }

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

  .form-field--keyword,
  .search-form__submit {
    grid-column: 1 / -1;
  }

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

  .related-list {
    grid-template-columns: 1fr;
  }

  .prefecture-search__layout {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .prefecture-search__map {
    position: relative;
    inset: auto;
    aspect-ratio: 1690 / 931;
    overflow: hidden;
  }

  .prefecture-search__map img {
    transform: none;
  }

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

  .prefecture-region {
    position: static;
    width: auto;
    border: 1px solid var(--border);
    border-top: 2px solid var(--region-accent);
    background: #fff;
    padding: 1rem;
  }

  .prefecture-region h3 {
    display: block;
    min-height: 0;
    margin-bottom: 0.75rem;
    background: transparent;
    color: var(--brand-navy);
  }

  .prefecture-region ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    margin-top: 0;
    padding: 0;
    gap: 0 1rem;
    background: transparent;
  }

  .prefecture-region a {
    min-height: 44px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: normal;
  }

  .prefecture-region a span {
    display: inline;
  }

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

  .detail-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .container,
  .container--wide,
  .site-header__inner,
  .site-footer__inner,
  .site-footer__bottom {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-logo {
    max-width: 175px;
  }

  .hero {
    padding-block: 3rem;
  }

  .search-panel {
    padding: 1rem;
  }

  .search-form__main,
  .search-form__advanced-grid {
    grid-template-columns: 1fr;
  }

  .form-field--keyword,
  .search-form__submit {
    grid-column: auto;
  }

  .search-form__submit {
    width: 100%;
  }

  .trust-facts {
    grid-template-columns: 1fr;
  }

  .trust-facts div {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .trust-facts div:last-child {
    border-bottom: 0;
  }

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

  .quick-search__links a:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .quick-search__links a:nth-child(2n) {
    border-right: 0;
  }

  .quick-search__links a:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }

  .quick-search__links a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-heading,
  .prefecture-search__heading,
  .results-heading,
  .consultation-band__inner,
  .site-footer__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .results-heading__meta {
    justify-items: start;
    text-align: left;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    display: flex;
  }

  .update-list__item {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.8rem;
  }

  .update-list__item time {
    grid-column: 1 / -1;
  }

  .guidance-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .prefecture-regions {
    grid-template-columns: 1fr;
  }

  .prefecture-search__map {
    display: none;
  }

  .guidance-grid article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
    padding-top: 2rem;
    padding-left: 0;
  }

  .consultation-band .button {
    width: 100%;
  }

  .result-item {
    padding-bottom: 4.5rem;
  }

  .result-item__link {
    left: 0;
    right: auto;
    bottom: 1rem;
  }

  .detail-facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
}

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