﻿@charset "UTF-8";

:root {
  --page-width: 980px;
  --sidebar-width: 270px;
  --column-gap: 25px;
  --navy: #003b70;
  --navy-dark: #002b52;
  --blue: #0b5d9c;
  --blue-hover: #084f87;
  --blue-light: #eaf3fb;
  --blue-pale: #f5f8fa;
  --line: #9db4c8;
  --line-light: #d6e0e8;
  --text: #1d2730;
  --muted: #52616e;
  --link: #004f8f;
  --link-red: #b90000;
  --focus: #ffbf47;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Yu Gothic", "YuGothic", "Meiryo", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
a { color: var(--link); overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
iframe:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(calc(100% - 24px), var(--page-width));
  margin-inline: auto;
  padding: 16px 0 28px;
}
.site-header { padding: 2px 0 12px; text-align: center; }
.site-brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  gap: 14px;
  color: #111;
  text-align: left;
  text-decoration: none;
}
.site-logo { display: block; width: 88px; height: 50px; }
.site-name { display: block; }
.site-name-ja {
  display: block;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: .04em;
  white-space: nowrap;
}
.site-name-en {
  display: block;
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}

.ship-gallery {
  display: grid;
  grid-template-columns: 290fr 354fr 311fr;
  overflow: hidden;
  border: 1px solid #9aa8b4;
  background: #dfe7ed;
}
.ship-gallery figure { min-width: 0; margin: 0; }
.ship-gallery img { display: block; width: 100%; }

.mobile-menu-toggle { display: none; }
.global-nav { margin-top: 10px; }
.global-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--navy-dark);
  background: #fff;
  list-style: none;
}
.global-nav a {
  display: grid;
  min-height: 48px;
  padding: 8px 10px;
  place-items: center;
  background: linear-gradient(#176ca9, #084f87);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] { background: linear-gradient(#0e5b96, #003d70); }

.home-layout,
.subpage-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-areas:
    "sidebar content"
    "emergency content";
  column-gap: var(--column-gap);
  row-gap: 15px;
  margin-top: 16px;
  align-items: start;
}
.sidebar { grid-area: sidebar; min-width: 0; }
.content-column,
.page-content { grid-area: content; min-width: 0; }
.emergency-banner { grid-area: emergency; min-width: 0; }

.menu-group {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.menu-group h2 {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#edf5fb, #dceaf5);
  color: var(--navy-dark);
  font-size: 1rem;
  line-height: 1.35;
}
.sub-button {
  position: relative;
  display: block;
  min-height: 40px;
  padding: 8px 9px 8px 24px;
  border-top: 1px solid var(--line-light);
  color: #153e5c;
  font-size: .94rem;
  line-height: 1.45;
  text-decoration: none;
}
.menu-group h2 + .sub-button { border-top: 0; }
.sub-button::before {
  position: absolute;
  top: 8px;
  left: 9px;
  content: "・";
  color: var(--blue);
  font-weight: 700;
}
.sub-button:hover { background: var(--blue-light); text-decoration: underline; }
.single-menu { display: grid; gap: 7px; }
.single-button {
  display: grid;
  min-height: 44px;
  padding: 8px 12px;
  place-items: center;
  border: 1px solid var(--navy-dark);
  background: linear-gradient(#176ca9, #084f87);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.single-button:hover { background: linear-gradient(#0e5b96, #003d70); }
.emergency-banner img { display: block; width: 200px; height: 50px; }

.poster { margin: 0 0 25px; text-align: center; }
.poster img { display: inline-block; width: min(100%, 420px); }
.news-section { min-width: 0; }
.news-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 12px;
  border: 1px solid var(--navy-dark);
  background: linear-gradient(90deg, var(--navy-dark), var(--blue));
  color: #fff;
}
.news-header h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: .04em;
}
.news-header span { font-size: .9rem; font-weight: 700; }
.news-frame {
  display: block;
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.page-content {
  padding: 0 0 4px;
  overflow-wrap: anywhere;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .88rem;
}
.breadcrumbs a { color: var(--link); }
.page-title {
  margin: 0 0 24px;
  padding: 11px 16px;
  border-left: 6px solid #cbd5e1;
  background: linear-gradient(90deg, var(--navy-dark), var(--blue));
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: .03em;
}
.page-lead {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  background: var(--blue-pale);
}
.content-section {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-light);
  background: #fff;
}
.content-section > :first-child { margin-top: 0; }
.content-section > :last-child { margin-bottom: 0; }
.content-section h2,
.section-title {
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy-dark);
  font-size: 1.2rem;
  line-height: 1.45;
}
.content-section h3 { color: var(--navy-dark); }
.notice { padding: 12px 14px; border-left: 5px solid var(--blue); background: var(--blue-light); }
.warning { padding: 12px 14px; border-left: 5px solid #b90000; background: #fff4f4; }
.muted { color: var(--muted); }
.center { text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nav-card,
.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.nav-card a { display: block; color: inherit; text-decoration: none; }
.nav-card img { display: block; width: 100%; }
.nav-card-body { padding: 12px 14px; }
.nav-card h2,
.media-card h2 { margin: 0 0 7px; color: var(--navy-dark); font-size: 1.1rem; }
.nav-card p,
.media-card p { margin: 0; }
.nav-card:hover { background: var(--blue-light); }

.image-panel { margin: 18px 0; text-align: center; }
.image-panel img { display: inline-block; }
.image-caption { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.image-grid figure { margin: 0; text-align: center; }
.image-grid .wide { grid-column: 1 / -1; }

.ship-card {
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line-light);
  background: #fff;
}
.ship-card img { display: block; width: 100%; }
.ship-card h2 { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.2rem; }
.ship-card p { margin: 0 0 7px; }
.specs { color: var(--muted); font-weight: 700; }

.table-scroll { width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .94rem;
}
.data-table th,
.data-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table thead th,
.data-table tbody th { background: #e6f0f8; color: var(--navy-dark); }
.data-table tbody tr:nth-child(even) td { background: #fafcfd; }

.link-list,
.pdf-list,
.story-list { margin: 0; padding: 0; list-style: none; }
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.link-list a,
.pdf-list a,
.story-list a {
  position: relative;
  display: block;
  padding: 9px 10px 9px 28px;
  border: 1px solid var(--line-light);
  background: #fff;
  text-decoration: none;
}
.link-list a::before,
.pdf-list a::before,
.story-list a::before {
  position: absolute;
  left: 10px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  content: "";
  transform: rotate(45deg);
}
.link-list a:hover,
.pdf-list a:hover,
.story-list a:hover { background: var(--blue-light); text-decoration: underline; }
.pdf-list { display: grid; gap: 9px; }
.story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.campaign {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.campaign-image { text-align: center; }
.campaign-image img { display: inline-block; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.detail-photo { margin: 0; text-align: center; }
.detail-photo img { max-height: 430px; width: auto; }
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}
.pager a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--navy);
  background: var(--blue-light);
  text-decoration: none;
}
.pager a:hover { background: #d8eaf7; }

.footer-area {
  margin-top: 28px;
  padding: 18px 12px 0;
  border-top: 3px double #8099ad;
  color: #26343f;
  font-size: .9rem;
  text-align: center;
}
.footer-area address { font-style: normal; }
.phone-link { color: inherit; text-decoration: none; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 10px;
}
.footer-links a { color: var(--link-red); font-weight: 700; }

/* 新着情報 iframe */
body.iframe-body { margin: 0; padding: 8px 10px; background: #fff; font-size: 15px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-item { margin: 0; padding: 8px 2px; border-bottom: 1px dashed var(--line-light); }
.news-date { display: block; margin-bottom: 2px; color: var(--muted); font-weight: 700; line-height: 1.35; }
.news-item a,
.news-note { display: block; color: #153e5c; line-height: 1.55; }
.news-new { display: inline-block; margin-right: 4px; color: #b90000; font-weight: 800; }
.news-new[hidden],
.news-item[hidden],
.auto-notice[hidden] { display: none !important; }
.news-note { color: var(--muted); }

/* 掲載終了した新着情報は一覧には残すが、操作できない状態を明確にする。 */
.news-item.news-ended {
  background: #f3f3f3;
  color: #777;
  opacity: .72;
}
.news-item.news-ended:hover { background: #f3f3f3; }
.news-item.news-ended .news-date { color: #888; }
.news-ended-content {
  display: block;
  line-height: 1.55;
  color: #777;
  cursor: default;
  pointer-events: none;
}
.news-ended-title { display: block; }
.news-ended-label {
  display: inline-block;
  margin-left: 14px;
  font-size: .9em;
  font-weight: 700;
  color: #777;
  vertical-align: baseline;
}
.news-ended-label[hidden],
.news-active-content[hidden],
.news-ended-content[hidden] { display: none !important; }
.alert-text { color: #b90000 !important; font-weight: 700; }

@media (max-width: 820px) {
  .page-shell { width: min(calc(100% - 20px), var(--page-width)); }
  .home-layout,
  .subpage-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "content" "emergency";
    gap: 22px;
  }
  .single-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-banner { text-align: center; }
  .emergency-banner img { margin-inline: auto; }
  .news-frame { height: 430px; }
}

@media (max-width: 600px) {
  .page-shell { width: min(calc(100% - 16px), var(--page-width)); padding-top: 10px; }
  .site-brand { grid-template-columns: 68px minmax(0, 1fr); gap: 9px; width: 100%; }
  .site-logo { width: 68px; height: auto; }
  .site-name-ja { font-size: clamp(1.55rem, 7.4vw, 2.05rem); letter-spacing: 0; }
  .site-name-en { margin-top: 4px; font-size: clamp(.72rem, 3.25vw, .96rem); }

  .js .mobile-menu-toggle {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--navy-dark);
    border-radius: 0;
    background: linear-gradient(#176ca9, #084f87);
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
  }
  .mobile-menu-toggle:hover { background: linear-gradient(#0e5b96, #003d70); }
  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
  }
  .mobile-menu-icon { position: relative; justify-self: start; }
  .mobile-menu-icon::before { position: absolute; top: -7px; left: 0; }
  .mobile-menu-icon::after { position: absolute; top: 7px; left: 0; }
  .mobile-menu-arrow { justify-self: end; font-size: .8rem; transition: transform .2s ease; }
  .mobile-menu-open .mobile-menu-arrow { transform: rotate(180deg); }

  .js .global-nav,
  .js .sidebar { display: none; }
  .js .mobile-menu-open .global-nav,
  .js .mobile-menu-open .sidebar { display: block; }
  .global-nav { margin-top: 0; border-inline: 1px solid var(--line); }
  .global-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .global-nav a { min-height: 46px; font-size: .94rem; }

  .home-layout,
  .subpage-layout {
    grid-template-areas: "sidebar" "content" "emergency";
    gap: 0;
    margin-top: 12px;
  }
  .mobile-menu-open .home-layout,
  .mobile-menu-open .subpage-layout { margin-top: 0; }
  .sidebar {
    padding: 10px 10px 12px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--blue-pale);
  }
  .page-content,
  .content-column { margin-top: 0; }
  .mobile-menu-open .page-content,
  .mobile-menu-open .content-column { margin-top: 20px; }
  .emergency-banner {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--line-light);
  }
  .single-menu { grid-template-columns: 1fr; }
  .poster { margin-bottom: 20px; }
  .news-header { gap: 8px; }
  .news-frame { height: 500px; }

  .page-title { margin-bottom: 18px; padding: 10px 13px; }
  .content-section { padding: 15px 14px; }
  .card-grid,
  .link-list,
  .story-list,
  .image-grid { grid-template-columns: 1fr; }
  .image-grid .wide { grid-column: auto; }
  .ship-card,
  .campaign,
  .detail-grid { grid-template-columns: 1fr; }
  .ship-card img { width: min(100%, 380px); margin-inline: auto; }
  .campaign-image { order: 0; }
  .data-table { font-size: .86rem; }
  .data-table th,
  .data-table td { padding: 7px 8px; }
  .pager { justify-content: center; }

  .footer-area { padding-inline: 4px; font-size: .84rem; }
  .footer-links { display: grid; gap: 7px; }
  .footer-links span { display: none; }
}

@media (max-width: 360px) {
  .site-brand { grid-template-columns: 55px minmax(0, 1fr); gap: 6px; }
  .site-logo { width: 55px; }
  .site-name-ja { font-size: 1.42rem; }
  .site-name-en { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu-arrow { transition: none; }
}

@media print {
  .skip-link,
  .global-nav,
  .sidebar,
  .mobile-menu-toggle,
  .emergency-banner,
  .footer-links,
  .news-frame { display: none !important; }
  .page-shell { width: 100%; }
  .home-layout,
  .subpage-layout { display: block; }
  .page-title { color: #000; background: none; border: 0; padding: 0; }
}


/* 業務紹介：旧見出し画像を使わず、CSSだけで視覚的な案内カードを表示 */
.nav-card-icon {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 112px;
  place-items: center;
  border-bottom: 1px solid var(--line-light);
  background: linear-gradient(145deg, #f6fafd, #dbeaf5);
  color: var(--navy);
}
.nav-card-icon::before {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.icon-organization::before { content: "組"; }
.icon-area::before { content: "域"; }
.icon-vessel::before { content: "船"; }
.icon-beacon::before { content: "灯"; }
.icon-access::before { content: "〒"; }
.ship-symbol::before { content: "船"; }
.lighthouse-symbol::before { content: "灯"; }

/* Googleマップ */
.map-section { overflow: hidden; }
.google-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-pale);
}
.google-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-open-link { margin: 12px 0 0; text-align: center; }
.map-open-link a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  background: var(--blue-light);
  font-weight: 700;
  text-decoration: none;
}
.map-open-link a:hover { background: #d8eaf8; text-decoration: underline; }

/* 後日差し替える仮画像であることを明示 */
.temporary-note {
  margin-top: 14px;
  padding: 9px 11px;
  border-left: 4px solid #b90000;
  background: #fff5f5;
  color: #7d0000;
  font-size: .9rem;
}

.story-category-list { margin-top: 18px; }
.papercraft-category-grid { margin-top: 18px; }


/* リンク集：旧ページの行順を保った2列配置 */
.ordered-link-list {
  grid-auto-flow: row;
  align-items: stretch;
}
.ordered-link-list > li { min-width: 0; }
.ordered-link-list > li.link-wide { grid-column: 1 / -1; }
.ordered-link-list a { height: 100%; }
.link-map-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  text-align: center;
}
.link-map-wrap img {
  display: inline-block;
  width: 368px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .ordered-link-list > li.link-wide { grid-column: auto; }
  .link-map-wrap { margin-top: 16px; padding-top: 14px; }
}


/* 業務紹介：落ち着いた一覧型ナビゲーション */
.service-nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.service-nav-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.service-nav-item:hover,
.service-nav-item:focus-visible {
  border-color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}
.service-nav-number {
  color: #8aa6bb;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}
.service-nav-copy {
  display: grid;
  gap: 4px;
  padding: 15px 10px 15px 0;
}
.service-nav-copy strong {
  color: var(--navy-dark);
  font-size: 1.18rem;
  line-height: 1.35;
}
.service-nav-copy small {
  color: var(--muted);
  font-size: .9rem;
}
.service-nav-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
}
@media (max-width: 600px) {
  .service-nav-item { grid-template-columns: 48px minmax(0, 1fr) 20px; min-height: 78px; }
  .service-nav-copy strong { font-size: 1.08rem; }
  .service-nav-copy small { font-size: .84rem; }
}


/* v5: link arrow alignment and encoding-safe mobile menu chevron */
.link-list a,
.pdf-list a,
.story-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}
.link-list a::before,
.pdf-list a::before,
.story-list a::before {
  position: static;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0;
  transform: rotate(45deg);
}
.mobile-menu-arrow {
  position: relative;
  width: 18px;
  height: 18px;
}
.mobile-menu-arrow::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.mobile-menu-open .mobile-menu-arrow { transform: rotate(180deg); }

/* v8: 業務紹介の番号を廃止し、左余白と項目間隔を改善 */
.service-nav {
  gap: 20px;
}
.service-nav-item {
  grid-template-columns: minmax(0, 1fr) 18px !important;
  padding: 0 22px 0 26px;
}
.service-nav-number {
  display: none !important;
}
.service-nav-copy {
  padding: 18px 12px 18px 0;
}
.service-nav-arrow {
  justify-self: end;
}
@media (max-width: 600px) {
  .service-nav { gap: 14px; }
  .service-nav-item { padding: 0 16px 0 20px; }
  .service-nav-copy { padding: 15px 8px 15px 0; }
}


/* v9 改善: 現在位置、ページタイトル、表、PDF、新着情報、スマホメニュー */
.global-nav a[aria-current="page"] {
  position: relative;
  background: linear-gradient(#074f86, #002f59);
  box-shadow: inset 0 -4px 0 #ffbf47;
}
.breadcrumbs {
  padding: 7px 10px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: #f8fafc;
}
.breadcrumbs span[aria-current="page"] { color: var(--navy-dark); font-weight: 700; }
.page-title {
  position: relative;
  padding-left: 20px;
  border-left-color: #ffbf47;
  box-shadow: 0 1px 2px rgba(0,43,82,.12);
}
.page-title + .page-lead { margin-top: -8px; }

.table-scroll {
  position: relative;
  margin: 12px 0 18px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.table-scroll::before {
  display: none;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line-light);
  background: #f5f8fa;
  color: var(--muted);
  content: "横にスクロールできます";
  font-size: .78rem;
}
.page-content table:not(.image-table):not(.main-menu-table) {
  width: 100%;
  border-collapse: collapse;
}
.page-content table:not(.image-table):not(.main-menu-table) th,
.page-content table:not(.image-table):not(.main-menu-table) td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.page-content table:not(.image-table):not(.main-menu-table) th { background: #e6f0f8; color: var(--navy-dark); }
.page-content table:not(.image-table):not(.main-menu-table) tr:nth-child(even) td { background: #fafcfd; }

/* PDFの文字表記を使わずCSSだけで書類アイコンを付与 */
a[href$=".pdf" i]::after {
  display: inline-block;
  width: .72em;
  height: .9em;
  margin-left: .45em;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  content: "";
  vertical-align: -.08em;
  opacity: .78;
}
.sub-button[href$=".pdf" i]::after,
.link-list a[href$=".pdf" i]::after,
.pdf-list a[href$=".pdf" i]::after,
.story-list a[href$=".pdf" i]::after { position: static; transform: none; }

.news-item { transition: background-color .15s ease; }
.news-item:hover { background: var(--blue-pale); }
.news-date { letter-spacing: .02em; }
.news-item a { padding: 2px 0; }
.news-new {
  padding: 1px 5px;
  border: 1px solid #b90000;
  border-radius: 2px;
  background: #fff4f4;
  font-size: .72rem;
  line-height: 1.3;
}

.service-nav { display: grid; gap: 18px; }
.service-nav-item {
  min-height: 92px;
  padding: 20px 52px 20px 34px;
  border-left: 7px solid var(--navy);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.service-nav-item:hover {
  border-left-color: #ffbf47;
  background: var(--blue-light);
  box-shadow: 0 4px 12px rgba(0,43,82,.12);
  transform: translateY(-2px);
}
.service-nav-copy strong { display:block; margin-bottom:6px; color:var(--navy-dark); font-size:1.12rem; }
.service-nav-copy small { color:#40515f; font-size:.94rem; }

@media (max-width: 600px) {
  body.mobile-menu-open { overflow: hidden; }
  .js .global-nav,
  .js .sidebar {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    display: block;
    visibility: hidden;
    transition: max-height .24s ease, opacity .18s ease;
  }
  .js .mobile-menu-open .global-nav,
  .js .mobile-menu-open .sidebar {
    opacity: 1;
    max-height: 1600px;
    visibility: visible;
  }
  .mobile-menu-toggle .menu-close-label { display: none; }
  .mobile-menu-open .mobile-menu-toggle .menu-open-label { display: none; }
  .mobile-menu-open .mobile-menu-toggle .menu-close-label { display: inline; }
  .mobile-menu-open .mobile-menu-icon { background: transparent; }
  .mobile-menu-open .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu-open .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu-icon::before,
  .mobile-menu-icon::after { transition: top .18s ease, transform .18s ease; }
  .table-scroll::before { display: block; }
  .table-scroll table { min-width: 620px; }
  .service-nav { gap: 15px; }
  .service-nav-item { min-height: 82px; padding: 17px 42px 17px 24px; }
}

/* 118番周知活動の新着リンクはPDFアイコンを表示しない */
a.no-pdf-icon[href$=".pdf" i]::after {
  content: none;
  display: none;
}

/* v12: すべてのPDFリンク横のCSSアイコンを非表示 */
a[href$=".pdf" i]::after {
  content: none !important;
  display: none !important;
}


/* v17: サイト内検索・リンク種別・ファイル情報 */
.site-search-form {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line-light);
  background: #f5f8fb;
}
.site-search-form label,
.search-page-form label { font-weight: 700; }
.site-search-controls { display: flex; gap: 6px; min-width: min(100%, 320px); }
.site-search-controls input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid #6f879b;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
}
.site-search-controls button {
  padding: 8px 14px;
  border: 1px solid var(--navy-dark);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.site-search-controls input:focus-visible,
.site-search-controls button:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.external-link::after {
  display: inline-block;
  margin-left: .25em;
  content: none;
  font-weight: 700;
  text-decoration: none;
}
.file-meta {
  display: inline;
  margin-left: .35em;
  font-size: .88em;
  font-weight: 400;
  white-space: nowrap;
}
.search-page-form { max-width: 620px; margin: 14px 0 18px; }
.search-page-form > label { display: block; margin-bottom: 6px; }
.search-summary { padding: 10px 12px; background: var(--blue-light); font-weight: 700; }
.search-results { padding-left: 1.5em; }
.search-results li { margin: 0 0 18px; }
.search-results li > a { font-weight: 700; }
.search-results p { margin: 4px 0 0; color: var(--muted); }
.sitemap-list { columns: 2 260px; column-gap: 28px; }
.sitemap-list li { break-inside: avoid; margin-bottom: 7px; }
@media (max-width: 600px) {
  .site-search-form { align-items: stretch; flex-direction: column; }
  .site-search-controls { width: 100%; min-width: 0; }
  .sitemap-list { columns: 1; }
  .file-meta { white-space: normal; }
}


/* v18: ヘッダー内のコンパクトなサイト内検索 */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}
.header-search-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  width: auto;
  margin: 0 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.header-search-form input {
  width: 168px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #6f879b;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-size: .82rem;
  line-height: 1.3;
}
.header-search-form button {
  padding: 6px 9px;
  border: 1px solid var(--navy-dark);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.header-search-form input:focus-visible,
.header-search-form button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
.file-meta { white-space: normal !important; }
.marine-leisure-links a {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .site-header-inner { flex-wrap: wrap; gap: 8px 12px; }
  .header-search-form { margin-left: 0; }
  .header-search-form input { width: min(46vw, 168px); }
}
@media (max-width: 600px) {
  .header-search-form {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}


/* v19: アクセシビリティと表示調整 */
.external-link::after {
  content: none !important;
  display: none !important;
}

.alert-text {
  color: #b90000 !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}

.specs {
  color: #2f3f4c !important;
}

@media (max-width: 600px) {
  .site-header-inner {
    justify-content: center !important;
  }
  .site-brand {
    width: 100% !important;
    grid-template-columns: 68px auto !important;
    justify-content: center !important;
    margin-inline: auto !important;
  }
  .header-search-form {
    margin-inline: auto !important;
  }
}
@media (max-width: 380px) {
  .site-brand {
    grid-template-columns: 55px auto !important;
  }
}


/* v20: キーボードフォーカスを明瞭化
   白背景では濃紺、濃色背景では外側の黄色でも位置を確認できます。 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
iframe:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #003f6b !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #ffbf47 !important;
}

/* 表のcaptionは読み上げ対象にしつつ画面上は重複表示しない */
caption.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* v22: 共通118番GIFをサイドバーの直下に固定 */
@media (min-width: 821px) {
  .home-layout,
  .subpage-layout {
    grid-template-areas: "sidebar content";
  }

  .sidebar-stack {
    grid-area: sidebar;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 15px;
  }

  .sidebar-stack .emergency-banner {
    width: 100%;
    min-width: 0;
  }
}

/* モバイルでは従来どおり、本文とは独立したグリッド項目として扱う */
@media (max-width: 820px) {
  .sidebar-stack {
    display: contents;
  }
}

.link-kind{display:inline-block;margin-left:.35em;padding:.05em .35em;border:1px solid currentColor;border-radius:.3em;font-size:.72em;line-height:1.2;vertical-align:.08em}.link-kind-pdf,.link-kind-external,.link-kind-mail,.link-kind-tel{font-weight:700}
\n\n/* === Responsive hardening 2026-09 === */
/* Desktop appearance is intentionally preserved. These rules only remove
   fixed-size failure points and make legacy content adapt to smaller screens. */
html, body { max-width: 100%; }
.page-shell, .site-header-inner, .home-layout, .subpage-layout,
.content-column, .page-content, .sidebar-stack, .content-section { min-width: 0; max-width: 100%; }
.page-content img, .content-column img, .content-section img,
.page-content video, .page-content canvas, .page-content svg,
.content-column video, .content-column canvas, .content-column svg { max-width: 100% !important; height: auto !important; }
.page-content iframe, .content-column iframe, .content-section iframe,
.page-content object, .page-content embed { max-width: 100% !important; }
.page-content pre, .page-content code, .content-section pre { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.page-content input, .page-content select, .page-content textarea, .page-content button { max-width: 100%; }
.page-content table, .content-column table { max-width: 100%; }
.page-content td, .page-content th, .content-column td, .content-column th { overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 820px) {
  :root { --column-gap: 0px; }
  .page-shell { width: min(calc(100% - 20px), var(--page-width)); }
  .home-layout, .subpage-layout { grid-template-columns: minmax(0, 1fr); }
  .page-content table, .content-column table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-content table img, .content-column table img { max-width: min(100%, 100vw - 32px) !important; }
  [style*="width:"] { max-width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-shell { width: calc(100% - 16px); padding-top: 8px; }
  .site-brand { max-width: 100%; grid-template-columns: auto minmax(0,1fr); }
  .site-name-ja, .site-name-en { white-space: normal; overflow-wrap: anywhere; }
  .ship-gallery { width: 100%; }
  .page-title { overflow-wrap: anywhere; }
  .content-section { padding-left: 10px; padding-right: 10px; }
  .breadcrumbs { overflow-wrap: anywhere; }
  .footer-links { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .site-brand { gap: 8px; }
  .site-name-ja { font-size: clamp(1.25rem, 7.5vw, 1.65rem); }
  .site-name-en { font-size: .76rem; }
}
\n\n/* === Search upgrade 2026-09 === */
.search-filter-row { display:flex; flex-wrap:wrap; gap:12px 18px; margin-top:10px; }
.search-filter-row label { display:flex; align-items:center; gap:7px; font-weight:700; }
.search-filter-row select { min-height:38px; padding:5px 28px 5px 8px; border:1px solid var(--line); background:#fff; color:var(--text); }
.search-active-terms { min-height:1.5em; margin:4px 0 8px; color:var(--muted); font-size:.9rem; }
.search-result-meta { margin-top:3px; color:var(--muted); font-size:.78rem; overflow-wrap:anywhere; }
.search-results mark { padding:0 .08em; background:#fff2a8; color:inherit; }
@media (max-width:600px){ .search-filter-row { display:grid; grid-template-columns:1fr; } .search-filter-row label { justify-content:space-between; } .search-filter-row select { flex:1; } }
