:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f3f9fd;
  --text: #102a43;
  --muted: #4f6475;
  --primary: #0068b7;
  --primary-dark: #004b8d;
  --accent: #00a6d6;
  --border: #d8e8f2;
  --shadow: 0 12px 30px rgba(0, 75, 141, 0.10);
  --max-width: 1120px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  background: var(--bg);
}

a {
  color: var(--primary-dark);
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 8px 12px;
  color: #ffffff;
  text-decoration: none;
  background: var(--primary-dark);
  border-radius: 999px;
  transform: translateY(-150%);
}

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

.site-header {
  background: #ffffff;
  border-top: 8px solid var(--primary);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: auto;
}

.brand-text {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.breadcrumb {
  padding: 14px 0 10px;
  font-size: 0.92rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 6px;
  color: var(--muted);
  content: ">";
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
}

.page-hero {
  background: #f7fbfe;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  padding: 30px 0 34px;
}

.page-hero h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.25;
}

.test-page-notice {
  margin: 10px 0 0;
  color: #b42318;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 46px;
}

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

.content-card {
  padding: 24px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.content-card p {
  margin: 0 0 10px;
}

.related-categories {
  padding-bottom: 42px;
}

.related-categories h2 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.related-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-category-list a {
  display: block;
  padding: 14px 16px;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.related-category-list a:hover,
.related-category-list a:focus-visible {
  background: #ffffff;
  border-color: var(--accent);
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .header-inner {
    padding: 14px 0;
  }

  .brand-mark {
    width: 42px;
  }

  .content-card {
    padding: 18px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 船舶交通安全通報ページ */
.safety-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  margin-top: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.safety-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.safety-nav a:hover,
.safety-nav a:focus-visible {
  background: #f8fcff;
  border-color: var(--accent);
}

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

.link-card {
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.link-card strong {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 2px 10px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: 999px;
}

.link-card:hover,
.link-card:focus-visible {
  background: #f8fcff;
  border-color: var(--accent);
}

.contact-box {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-box strong {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 2px 10px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: 999px;
}

@media (max-width: 800px) {
  .safety-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .safety-nav,
.link-card-grid {
    grid-template-columns: 1fr;
  }
}

.tuho-direct-link {
  padding: 14px 8px;
  margin: 14px 0 4px;
  background: #f8fcff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
}

.tuho-direct-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
}

.tuho-direct-link a:hover,
.tuho-direct-link a:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.tuho-direct-link p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 16px;
}

.tuho-search-form {
  padding: 16px 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tuho-search-form label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 2px 10px;
  color: var(--primary-dark);
  font-weight: 700;
  background: var(--surface-soft);
  border-radius: 999px;
}

.tuho-search-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tuho-search-form p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tuho-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
}

.tuho-search-form button:hover,
.tuho-search-form button:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* 地図から選択：フォーム見出し */
.map-form-title {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 2px 10px;
  color: var(--primary-dark);
  font-weight: 700;
  background: var(--surface-soft);
  border-radius: 999px;
}

.combined-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 800px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .search-form-grid > .tuho-map-select-form,
.search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .combined-selects {
    grid-template-columns: 1fr;
  }
}

/* 利用時の注意：リンクに見えない確認パネル */
.notice-panel {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 104, 183, 0.04);
}

.notice-panel-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.notice-steps {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notice-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}

.notice-steps li:first-child {
  border-top: 0;
}

.notice-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--primary);
  border-radius: 999px;
}

.notice-steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary-dark);
  font-weight: 800;
}

.notice-steps p {
  margin: 0;
  color: var(--text);
}

.notice-text-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-text-link:hover,
.notice-text-link:focus-visible {
  color: var(--primary);
}

/* 地図から選択：レスポンシブSVGクリッカブルマップ */
/* PC表示では、1.地図検索を左側、2～6の検索フォームを右側に縦並びで配置します。 */
.search-form-grid > .tuho-map-select-form {
  grid-column: 1;
  grid-row: 1 / span 5;
}
.search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
  grid-column: 2;
}

.tuho-clickable-map-figure {
  padding: 0px 0 10px;
  margin: 12px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.tuho-clickable-map-figure .clickable-map__svg {
  width: 100%;
  height: auto;
  display: block;
}

.tuho-clickable-map-figure .map-link:focus-visible {
  outline: none;
}

@media (max-width: 760px) {
  .tuho-clickable-map-figure {
    padding: 6px 0;
  }
}

/* 800px以下では左右2カラムを解除し、地図検索と各フォームを縦一列にします。 */
@media (max-width: 800px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }

  .search-form-grid > .tuho-map-select-form,
.search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* コンパクト表示調整 2026-08-17 */
@media (min-width: 901px) {
  .site-header {
    border-top-width: 6px;
  }

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

  .brand-mark {
    width: 42px;
  }

  .breadcrumb {
    padding: 8px 0 6px;
    font-size: 0.86rem;
  }

  .page-hero-inner {
    padding: 18px 0 20px;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
  }

.safety-nav {
    gap: 8px;
    padding: 8px;
    margin-top: 12px;
  }

  .safety-nav a {
    min-height: 42px;
    padding: 7px 12px;
  }

  .content-layout {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 26px;
  }

  .content-card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .content-card h2 {
    margin-bottom: 8px;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
  }

  .tuho-direct-link {
    padding: 10px 12px;
    margin: 10px 0;
  }

  .tuho-direct-link a {
    min-height: 34px;
    padding: 5px 12px;
  }

  .tuho-direct-link p {
    margin-top: 5px;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .search-form-grid {
    grid-template-columns: minmax(310px, 1.15fr) minmax(210px, 0.9fr) minmax(210px, 0.9fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 10px;
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: auto;
    grid-row: auto;
  }

  .tuho-search-form {
    padding: 12px;
    border-radius: 12px;
  }

  

  .tuho-search-form label,
.map-form-title {
    margin-bottom: 6px;
    padding: 1px 9px;
    font-size: 0.92rem;
  }

  .tuho-search-form select {
    min-height: 38px;
    padding: 6px 9px;
  }

  .tuho-search-form button {
    min-height: 32px;
    padding: 5px 11px;
    font-size: 0.88rem;
  }

  .tuho-search-form p {
    margin: 5px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .combined-selects {
    gap: 8px;
  }

  .tuho-clickable-map-figure {
    margin-top: 8px;
    padding-bottom: 0;
  }

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

  .link-card {
    padding: 12px;
    border-radius: 12px;
  }

  .link-card strong,
.contact-box strong {
    margin-bottom: 4px;
    padding: 1px 9px;
  }

  .link-card p,
.contact-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .notice-panel {
    padding: 12px;
    margin-top: 10px;
    border-radius: 12px;
  }

  .notice-panel-lead {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .notice-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .notice-steps li {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  .notice-step-number {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .notice-steps strong {
    margin-bottom: 0;
  }

  .notice-steps p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .contact-box {
    padding: 12px;
    border-radius: 12px;
  }

  .related-categories {
    padding-bottom: 24px;
  }

  .related-categories h2 {
    margin-bottom: 10px;
    font-size: 1.12rem;
  }

  .related-category-list a {
    padding: 11px 14px;
    border-radius: 12px;
  }

  .footer-inner {
    padding: 16px 0;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .content-layout {
    padding-top: 16px;
    padding-bottom: 30px;
  }

  .content-card {
    padding: 18px;
    margin-bottom: 14px;
  }

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

  .notice-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
}

/* 水路通報ビジュアルマップ */
.tuho-map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tuho-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .tuho-map-embed {
    aspect-ratio: 4 / 3;
    min-height: 420px;
  }
}

/* 水路通報を探す：7. 水路通報を見る */
.tuho-map-view-form { padding: 16px; margin-top: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.tuho-map-view-form .tuho-map-embed { margin-top: 4px; }
@media (min-width: 901px) { .tuho-map-view-form { padding: 12px; margin-top: 10px; border-radius: 12px; } }

/* Responsive final safeguards */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

.container,
.main-content,
.content-card,
.search-form-grid,
.tuho-search-form,
.tuho-map-view-form,
.link-card,
.notice-panel,
.contact-box {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

select,
button,
input,
textarea {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

.tuho-search-form select,
.tuho-search-form button {
  width: 100%;
}

.brand-text,
.page-hero h1,
.content-card h2,
.map-form-title,
.link-card,
.notice-panel,
.contact-box {
  overflow-wrap: anywhere;
}

.tuho-map-embed iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  .search-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tuho-map-view-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .search-form-grid,
.link-card-grid,
.notice-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form-grid > .tuho-map-select-form,
.tuho-map-view-form {
    grid-column: 1;
  }

  

  

  .tuho-search-form button,
.tuho-direct-link a,
.related-category-list a {
    min-height: 44px;
  }

  .tuho-map-embed {
    width: 100%;
    min-height: clamp(320px, 100vw, 420px);
    aspect-ratio: auto;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 16px, var(--max-width));
  }

  .content-card,
.tuho-search-form,
.tuho-map-view-form,
.notice-panel,
.contact-box {
    padding-inline: 12px;
  }

  .tuho-map-embed {
    min-height: 300px;
  }
}

/* Mobile iframe height fix: define a real containing block, then fill it */
.tuho-map-embed {
  height: auto;
}

.tuho-map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

@media (max-width: 760px) {
  .tuho-map-embed {
    height: clamp(360px, 125vw, 560px);
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .tuho-map-embed {
    height: 400px;
    min-height: 0;
  }
}

/* Search grid order: 1 on the left, 2 on the right */
@media (min-width: 901px) {
  .search-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .search-form-grid > .tuho-map-view-form {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    height: 100%;
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
  }

  .search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .search-form-grid > .tuho-map-view-form,
.search-form-grid > .tuho-map-select-form {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Final alignment fix for search items 1 and 2 */
.search-form-grid > .tuho-map-view-form,
.search-form-grid > .tuho-map-select-form {
  box-sizing: border-box;
  padding: 12px;
}

.search-form-grid > .tuho-map-view-form > .map-form-title,
.search-form-grid > .tuho-map-select-form > .map-form-title {
  display: block;
  min-height: 3em;
  margin: 0 0 8px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 901px) {
  .search-form-grid > .tuho-map-view-form,
.search-form-grid > .tuho-map-select-form {
    align-self: start;
    height: auto;
  }

  .search-form-grid > .tuho-map-view-form .tuho-map-embed {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 521 / 466.184;
  }

  .search-form-grid > .tuho-map-view-form .tuho-map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 900px) {
  .search-form-grid > .tuho-map-view-form > .map-form-title,
.search-form-grid > .tuho-map-select-form > .map-form-title {
    min-height: 0;
  }
}

/* Exact shared heading style for search items 1 and 2 */
.search-form-grid > .tuho-map-view-form > .map-form-title,
.search-form-grid > .tuho-map-select-form > .map-form-title {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 0;
  margin: 0 0 8px;
  padding: 2px 10px;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  background: var(--surface-soft);
  border-radius: 999px;
}

/* Tablet two-column layout for search items 1 and 2 */
@media (min-width: 761px) and (max-width: 900px) {
  .search-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .search-form-grid > .tuho-map-view-form {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    align-self: start;
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .search-form-grid > .tuho-map-view-form .tuho-map-embed {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 521 / 466.184;
  }

  .search-form-grid > .tuho-map-view-form .tuho-map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Final consistent two-column layout for all search items */
@media (min-width: 761px) {
  .search-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: start;
  }

  .search-form-grid > .tuho-map-view-form {
    grid-column: 1;
    grid-row: 1;
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 2;
    grid-row: 1;
  }

  .search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .search-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form-grid > .tuho-map-view-form,
.search-form-grid > .tuho-map-select-form,
.search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Mobile page menu stays two columns */
@media (max-width: 760px) {
  .safety-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .safety-nav a {
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    overflow-wrap: anywhere;
  }
}

/* Enlarged map link in item 1 heading */
.map-form-title .map-expand-link {
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.map-form-title .map-expand-link:hover,
.map-form-title .map-expand-link:focus-visible {
  color: var(--primary);
  text-decoration-thickness: 2px;
}

/* Map display period note */
.tuho-map-period-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

/* Consolidated responsive layout audit 2026-10 */
:where(.content-layout,
.main-content,
.content-card,
.search-form-grid,
.tuho-map-view-form,
.tuho-search-form,
.link-card-grid,
.link-card,
.related-category-list,
.related-category-list li) {
  min-width: 0;
}

.tuho-map-period-note {
  overflow-wrap: anywhere;
}

.related-category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.related-category-list li,
.related-category-list a {
  min-width: 0;
  height: 100%;
}

.related-category-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .search-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: start;
  }

  .search-form-grid > .tuho-map-view-form {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  .search-form-grid > .tuho-map-select-form {
    grid-column: 2;
    grid-row: 1;
  }

  .search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: auto;
    grid-row: auto;
  }

  .tuho-map-view-form .tuho-map-embed {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 521 / 466.184;
  }

  .link-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .link-card {
    height: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .safety-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .safety-nav a {
    min-width: 0;
    min-height: 48px;
    padding: 8px;
    overflow-wrap: anywhere;
  }

  .search-form-grid,
.link-card-grid,
.related-category-list,
.notice-steps,
.combined-selects {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form-grid > .tuho-map-view-form,
.search-form-grid > .tuho-map-select-form,
.search-form-grid > .tuho-search-form:not(.tuho-map-select-form) {
    grid-column: 1;
    grid-row: auto;
  }

  

  

  .tuho-map-embed {
    width: 100%;
    height: clamp(400px, 125vw, 560px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .related-category-list a {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 16px, var(--max-width));
  }

  .content-card,
.tuho-map-view-form,
.tuho-search-form,
.notice-panel,
.contact-box {
    padding-inline: 12px;
  }

  .tuho-map-embed {
    height: 400px;
  }
}
/* Mobile typography */
@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .brand { min-width: 0; white-space: normal; }
  .brand-text { font-size: clamp(1rem, 4.2vw, 1.15rem); }
  .breadcrumb { font-size: .95rem; }
  .page-hero h1 { font-size: clamp(1.65rem, 7vw, 2rem); }
  .test-page-notice,
.content-card p,
.tuho-direct-link p,
.tuho-search-form label,
.tuho-search-form select,
.tuho-search-form p,
.tuho-search-form button,
.map-form-title,
.link-card,
.notice-panel,
.contact-box,
.related-category-list a { font-size: 1rem; }
  .content-card h2,
.related-categories h2 { font-size: 1.35rem; }
  .footer-inner { font-size: .95rem; }
}
