/* ========================================
   住吉ライフ - スタイルシート
   ======================================== */

/* リセット & 基本設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f8fafe;
}

a {
  color: #1a5ca8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ========================================
   緊急バナー
   ======================================== */
.emergency-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #c0392b;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.emergency-banner a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: underline;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  background-color: #1a5ca8;
  color: #fff;
  padding: 20px 16px 16px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== ヘッダーブランド（左寄せ厳守） ===== */
.site-catchcopy {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-weight: 400;
  text-align: left;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.site-title {
  margin: 0;
  text-align: left;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.brand-name {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.brand-area {
  font-size: 24px;
  font-weight: 700;
  margin-left: 4px;
  color: #F5F0E6;
}

.site-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  font-weight: 400;
  text-align: left;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

/* ナビゲーション */
.site-nav {
  background-color: #154a8a;
  position: relative;
  z-index: 950;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  padding: 10px 16px;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle-label {
  font-size: 0.7rem;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* メニューリスト（PC: 横並び） */
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > .nav-parent {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > .nav-parent:hover {
  background-color: #1a5ca8;
  text-decoration: none;
}

/* ドロップダウン矢印 */
.nav-arrow {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s;
}

/* PC: サブメニュー（ホバーで展開） */
.nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a5ca8;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 0 0 8px 8px;
  display: none;
  z-index: 1000;
}

/* PC: ホバー時のみ展開 */
.nav-item-has-children:hover > .nav-sub {
  display: block;
}

.nav-sub li a {
  display: block;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-sub li:last-child a {
  border-bottom: none;
}

.nav-sub li a:hover {
  background-color: #154a8a;
  text-decoration: none;
}

/* ========================================
   ナビゲーション レスポンシブ（スマホ 768px以下）
   ======================================== */
@media (max-width: 768px) {
  /* ハンバーガーボタン表示 */
  .nav-toggle {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  /* メニューリスト：初期状態は非表示。≡タップで.openが付く */
  .nav-list {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background-color: #154a8a;
    order: 3;
  }

  /* ≡タップで表示 */
  .nav-list.open {
    display: flex !important;
  }

  .nav-list > li > a,
  .nav-list > li > .nav-parent {
    padding: 14px 20px;
    text-align: left;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    width: 100%;
    white-space: normal;
  }

  /* サブメニュー：初期は閉じた状態 */
  .nav-sub {
    position: static !important;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    display: none !important;
    background-color: #12407a;
  }

  /* スマホ：ホバーでは展開しない */
  .nav-item-has-children:hover > .nav-sub {
    display: none !important;
  }

  /* ▼タップ（.openクラス付与）で展開 */
  .nav-item-has-children.open > .nav-sub {
    display: block !important;
  }

  /* サブメニュー展開時の矢印回転 */
  .nav-item-has-children.open > .nav-parent .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-sub li a {
    padding: 12px 20px 12px 36px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-sub li a::before {
    content: "└ ";
    opacity: 0.5;
  }

  /* 検索ボタン位置調整 */
  .nav-search-btn {
    margin-left: auto;
  }
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ========================================
   トップページ - ヒーローセクション
   ======================================== */
.hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  background-color: #e8f0fa;
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 92, 168, 0.85));
  padding: 32px 24px 20px;
  color: #fff;
}

.hero-overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.hero-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========================================
   カードグリッド
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.card a {
  display: block;
  color: inherit;
}

.card a:hover {
  text-decoration: none;
}

.card-icon {
  background-color: #e8f0fa;
  padding: 24px;
  text-align: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  color: #1a5ca8;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.95rem;
  color: #555;
}

/* ========================================
   記事ページ
   ======================================== */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #1a5ca8;
}

.article-header h1 {
  font-size: 1.6rem;
  color: #1a5ca8;
  line-height: 1.5;
}

.article-header .article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
}

/* セクション */
.section {
  margin-bottom: 48px;
}

.section-number {
  display: inline-block;
  background-color: #1a5ca8;
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 10px;
  vertical-align: middle;
}

.section h2 {
  font-size: 1.35rem;
  color: #1a5ca8;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4e3f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section h3 {
  font-size: 1.1rem;
  color: #2a6db5;
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #1a5ca8;
}

.section p {
  font-size: 1rem;
  margin-bottom: 12px;
}

.section ul {
  margin: 8px 0 16px 20px;
  font-size: 1rem;
}

.section li {
  margin-bottom: 6px;
}

/* セクション画像 */
.section-image {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.section-image-caption {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  padding: 8px;
  background: #f5f8fc;
}

/* 画像プレースホルダー */
.image-placeholder {
  background-color: #e8f0fa;
  border: 2px dashed #b0c8e8;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: #7a9cc6;
  font-size: 0.95rem;
  margin: 20px 0;
}

/* 重要ボックス */
.important-box {
  background-color: #fff3f3;
  border-left: 5px solid #c0392b;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 1rem;
}

.important-box strong {
  color: #c0392b;
}

/* ヒントボックス */
.tip-box {
  background-color: #eaf5ea;
  border-left: 5px solid #27ae60;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 1rem;
}

/* 情報ボックス */
.info-box {
  background-color: #e8f0fa;
  border-left: 5px solid #1a5ca8;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 1rem;
}

/* 相談窓口テーブル */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 1rem;
}

.contact-table th,
.contact-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #d4e3f5;
}

.contact-table th {
  background-color: #1a5ca8;
  color: #fff;
  font-weight: bold;
}

.contact-table tr:nth-child(even) {
  background-color: #f5f8fc;
}

.contact-table tr:hover {
  background-color: #e8f0fa;
}

.note {
  font-size: 0.85rem;
  color: #c0392b;
  font-weight: bold;
}

/* チェックリスト */
.checklist {
  list-style: none;
  margin: 12px 0 16px 0;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 1rem;
}

.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 4px;
  font-size: 1.2rem;
  color: #1a5ca8;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  background-color: #1a3d6e;
  color: #c0d4eb;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #8ab6e8;
}

.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.75;
  max-width: 640px;
  margin: 8px auto;
  line-height: 1.6;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
  padding: 8px 0;
}

.breadcrumb a {
  color: #1a5ca8;
}

.breadcrumb span {
  margin: 0 6px;
  color: #aaa;
}

/* ========================================
   防災マップ
   ======================================== */
.map-container {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.map-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.map-link:hover {
  text-decoration: none;
}

.map-placeholder {
  background: linear-gradient(135deg, #e8f0fa 0%, #d4e3f5 100%);
  padding: 48px 24px;
  text-align: center;
  transition: background 0.3s;
}

.map-link:hover .map-placeholder {
  background: linear-gradient(135deg, #d4e3f5 0%, #b8d4f0 100%);
}

.map-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
}

.map-placeholder p {
  font-size: 1.1rem;
  color: #1a5ca8;
  margin-bottom: 4px;
}

.map-hint {
  font-size: 0.85rem !important;
  color: #7a9cc6 !important;
}

/* ========================================
   避難場所アンカーナビ
   ======================================== */
.shelter-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

.shelter-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: #fff;
  border: 2px solid #d4e3f5;
  border-radius: 12px;
  color: #1a5ca8;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.shelter-nav-btn:hover {
  background: #e8f0fa;
  border-color: #1a5ca8;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(26, 92, 168, 0.15);
  text-decoration: none;
}

.shelter-nav-icon {
  font-size: 2rem;
}

.shelter-nav-label {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.4;
}

.shelter-nav-label small {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: #777;
  margin-top: 2px;
}

/* ========================================
   トップページ - 緊急連絡先カード
   ======================================== */
.quick-contacts {
  margin: 32px 0;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-contacts-title {
  font-size: 1.2rem;
  color: #1a5ca8;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4e3f5;
  text-align: center;
}

.contact-card-small {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafe;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e8f0fa;
  transition: background 0.2s, transform 0.2s;
}

.contact-card-small:hover {
  background: #e8f0fa;
  transform: translateY(-2px);
}

.contact-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-info strong {
  font-size: 0.85rem;
  color: #555;
}

.contact-tel {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a5ca8;
}

.quick-contacts-note {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 16px;
}

/* ========================================
   トップへ戻るボタン
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1a5ca8;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(26, 92, 168, 0.3);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #154a8a;
  transform: translateY(-3px);
}

/* ========================================
   バナー設置スペース
   ======================================== */
.banner-space {
  margin: 20px 0;
  min-height: 0;
  text-align: center;
}

.banner-space:empty {
  display: none;
}

/* テキストバナー広告（728×90 相当） */
.ad-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 728px;
  width: 100%;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fa 100%);
  border: 1px solid #c8daf0;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ad-banner:hover {
  background: linear-gradient(135deg, #e4eefa 0%, #d8e8f8 100%);
  box-shadow: 0 2px 8px rgba(26, 92, 168, 0.12);
  text-decoration: none;
}

.ad-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ad-banner-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  min-width: 0;
}

.ad-banner-main {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1a5ca8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-banner-sub {
  font-size: 0.75rem;
  color: #888;
}

.ad-banner-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  background: #1a5ca8;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: auto;
}

.ad-banner:hover .ad-banner-cta {
  background: #154a8a;
}

@media (max-width: 480px) {
  .ad-banner {
    gap: 10px;
    padding: 8px 14px;
  }

  .ad-banner-icon {
    font-size: 1.2rem;
  }

  .ad-banner-main {
    font-size: 0.85rem;
  }

  .ad-banner-sub {
    font-size: 0.7rem;
  }

  .ad-banner-cta {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* ========================================
   LP風 CTAセクション（記事内埋め込み）
   ======================================== */
.cta-section {
  margin: 32px 0;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4fc 100%);
  border: 2px solid #c8daf0;
  border-radius: 12px;
  text-align: center;
}

.cta-section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  background: #888;
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cta-section-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #1a5ca8;
  margin-bottom: 6px;
  line-height: 1.5;
}

.cta-section-desc {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.7;
}

.cta-points {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cta-point {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #333;
}

.cta-point-icon {
  color: #e8960c;
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 12px 36px;
  background: #e8960c;
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(232, 150, 12, 0.25);
}

.cta-button:hover {
  background: #d4870a;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(232, 150, 12, 0.35);
  text-decoration: none;
  color: #fff;
}

.cta-button-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.9;
  margin-top: 2px;
}

.cta-company {
  font-size: 0.75rem;
  color: #999;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .cta-section {
    padding: 22px 16px;
  }

  .cta-section-title {
    font-size: 1.05rem;
  }

  .cta-points {
    gap: 10px;
  }

  .cta-point {
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 11px 28px;
    font-size: 0.9rem;
  }
}

/* ========================================
   公式サイトリンクボタン
   ======================================== */
.official-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 24px;
  background: #1a5ca8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26, 92, 168, 0.2);
}

.official-link-btn:hover {
  background: #154a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 92, 168, 0.3);
  text-decoration: none;
  color: #fff;
}

.official-link-btn::after {
  content: "\2192";
  font-size: 1.1rem;
}

/* 情報時点の注記 */
.info-timestamp {
  background-color: #fffbeb;
  border: 1px solid #f0d58c;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #7a6520;
  margin: 16px 0;
  text-align: center;
}

/* ========================================
   検索ボタン（ナビバー内）
   ======================================== */
.nav-search-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  opacity: 0.8;
}

/* ========================================
   検索オーバーレイ
   ======================================== */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}

.search-overlay.open {
  display: flex;
}

.search-container {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8f0fa;
}

.search-header h3 {
  font-size: 1.1rem;
  color: #1a5ca8;
  margin: 0;
}

.search-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.search-close:hover {
  color: #333;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-bottom: 2px solid #e8f0fa;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.search-input:focus {
  border-bottom-color: #1a5ca8;
}

.search-results {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

.search-result-item {
  display: block;
  padding: 12px 20px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
  background: #f5f8fc;
  text-decoration: none;
}

.search-result-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1a5ca8;
  margin-bottom: 4px;
}

.search-result-preview {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.search-result-preview mark {
  background: #fff3a8;
  color: #333;
  padding: 0 2px;
  border-radius: 2px;
}

.search-no-results {
  padding: 24px 20px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}

.search-loading {
  padding: 24px 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .search-overlay {
    padding-top: 40px;
  }

  .search-container {
    width: 95%;
    max-height: 80vh;
  }
}

/* ========================================
   重要ボックス・ヒントボックス内リスト
   ======================================== */
.important-box ul,
.important-box ol,
.tip-box ul,
.tip-box ol,
.info-box ul,
.info-box ol {
  margin: 8px 0 4px 20px;
  font-size: 0.95rem;
}

.important-box li,
.tip-box li,
.info-box li {
  margin-bottom: 4px;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-area {
    font-size: 19px;
  }

  .site-catchcopy {
    font-size: 12px;
  }

  .site-subtitle {
    font-size: 13px;
  }

  .hero-image {
    height: 200px;
  }

  .hero-overlay h2 {
    font-size: 1.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.3rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .contact-table {
    font-size: 0.9rem;
  }

  .contact-table th,
  .contact-table td {
    padding: 8px 10px;
  }

  .section-image img {
    height: 180px;
  }

  .quick-contacts {
    padding: 16px;
  }

  .map-placeholder {
    padding: 32px 16px;
  }

  .map-icon {
    font-size: 3rem;
  }

  .shelter-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shelter-nav-btn {
    flex-direction: row;
    padding: 14px 16px;
    gap: 12px;
  }

  .shelter-nav-icon {
    font-size: 1.6rem;
  }

  .shelter-nav-label {
    text-align: left;
  }

  .shelter-nav-label small {
    display: inline;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .emergency-banner {
    font-size: 1rem;
  }

  .emergency-banner a {
    font-size: 1.2rem;
  }

  .hero-overlay {
    padding: 20px 16px 16px;
  }

  .contact-table th,
  .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-table thead {
    display: none;
  }

  .contact-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #d4e3f5;
    border-radius: 8px;
    overflow: hidden;
  }

  .contact-table td {
    padding: 8px 12px;
    border-bottom: none;
  }

  .contact-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: #1a5ca8;
    font-size: 0.85rem;
    margin-bottom: 2px;
  }
}
