@charset "utf-8";
/* CSS Document */

/* IDがついた要素すべてに適用する場合（推奨） */
:target {
  scroll-margin-top: 100px;
}

/* または特定のクラスに適用する場合 */
.adv-row {
  scroll-margin-top: 100px;
}

/* ==========================================
   自治体広告一覧コンテナ
   ========================================== */

/* セクション全体の余白 */
.media-list {
  margin: 0 auto;
  border: 4px solid transparent;
  border-radius: 20px;
  background-image: linear-gradient(white, white), var(--gradient-main);
  background-origin: border-box;
  background-clip: content-box, border-box;
  max-width: 1100px;
}

/* 見出しグループ */
.heading-group {
  margin-bottom: 30px;
  text-align: center;
}

/* 英語のサブタイトル（MEDIA LIST） */
.sub-title {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-main); /* コーポレートカラー等に合わせて変更 */
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* メインの見出し（h2） */
.media-list h2,
.heading-group h2 {
  color: var(--color-main);
  display: inline-block;
  position: relative;
  font-size: 28px;
  padding-bottom: 15px;
}

/* 見出しの下線（装飾） */
.heading-group h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-main); /* 下線の色 */
}

.heading-group--simulation {
  position: relative; /* 疑似要素の位置をこの見出しに対して相対的にするため */
}

.heading-group--simulation h2 {
  /* グラデーションを適用 */
  background: var(--gradient-main);
  color: #fff;

  /* レイアウト調整 */
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  padding-top: 16px;
  justify-content: center;
  gap: 15px;
  border-radius: 15px 15px 0 0;
  margin-bottom: 30px;
}

/* グラデーション背景の見出しには下線をつけない */
.heading-group--simulation h2::after {
  display: none;
}

.heading-group--simulation h2 img {
  width: 85px;
  height: auto;
  margin-bottom: 20px;
}

/* リード文 */
.lead-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-top: 0px;
  text-align: center;
  padding-bottom: 20px;
}

/* --- アンカーナビゲーション --- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0px auto;
  max-width: 1100px;
  padding: 0 10px;
}

.anchor-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--color-main);
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.2s;
  text-align: center;
}

.anchor-btn:hover {
  background-color: #4a83db;
  border-color: #fff;
}

.anchor-btn.is-active {
  background-color: #4a83db;
  border-color: #fff;
}

/* --- エリア見出し --- */
.area-heading {
  background: #444;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  margin-top: 40px; /* ジャンプした時に上に余白を作る */
  border-radius: 4px 4px 0 0;
  font-size: 16px;
}

/* スムーススクロール（ジャンプした時にスルスル動く） */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px; /* 固定ヘッダーなどがある場合に重ならないように調整 */
}

.link-area {
  text-align: center;
  padding: 0px 0 20px 0;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #37a2ab;
  border: 2px solid #37a2ab;
  padding: 12px 35px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* 矢印の土台（棒の部分） */
.btn-arrow {
  position: relative;
  display: inline-block;
  width: 18px; /* 矢印の長さ */
  height: 2px; /* 線の太さ */
  background-color: #37a2ab;
  margin-left: 12px;
  transition: all 0.3s ease;
}

/* 矢印の先端（くの字の部分） */
.btn-arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid #37a2ab;
  border-right: 2px solid #37a2ab;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

/* ホバー時の挙動 */
.btn-sub:hover {
  background-color: #37a2ab;
  color: #fff;
}

/* ホバーした時に矢印の色を白くし、右に少し動かす */
.btn-sub:hover .btn-arrow {
  background-color: #fff;
  transform: translateX(5px);
}

.btn-sub:hover .btn-arrow::after {
  border-color: #fff;
}

/* ==========================================
   自治体広告リスト 表
   ========================================== */

.table-controls {
  background-color: #ebf4ff;
  width: 100%;
}

/* 全体コンテナ */
.adv-list {
  width: 100%;
  max-width: 1100px;
  margin: 0px auto 40px auto;
  /*border-top: 1px solid #ccc;*/
  font-family: sans-serif;
  background-color: #fff;
  color: #333;
}
.anchor-btn {
  cursor: pointer; /* これでマウスを乗せた時に指の形になります */
}

/* --- PC用レイアウト --- */
.adv-header {
  display: flex;
  background-color: #f2f2f2;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.adv-header > div {
  padding: 12px 10px;
  border-right: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.adv-row {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.adv-row > div {
  padding: 12px 10px;
  border-right: 1px solid #eee;
  display: flex;
  align-items: center;
  font-size: 14px;
  min-height: 40px;
}

.col-area {
  width: 110px;
  justify-content: center;
}
.col-pref {
  width: 90px;
  justify-content: center;
}
.col-city {
  width: 110px;
  justify-content: center;
} /* ←これを追加！ */
.col-name {
  flex: 1;
  font-weight: bold;
  min-width: 150px;
}

/* 詳細ボタンの幅調整 */
.col-num {
  width: 140px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.col-num a.btn-detail {
  display: block !important;
  width: 125px;
  margin: 0 auto;
  padding: 6px 0 !important;
  box-sizing: border-box;
}

/* お問い合わせボタンの幅調整 */
.col-inq {
  width: 130px;
  justify-content: center;
  border-right: none !important;
}

/* --- 広告問合せボタン（ここが重要！） --- */
/* .btn-inq だけでなく、以前のテーブルのクラス名 .inqBlank も青くします */
.btn-inq,
.inqBlank,
.col-inq a {
  display: inline-block !important;
  background-color: var(--color-main) !important; /* 強制的に青色を適用 */
  color: #ffffff !important; /* 文字は白 */
  padding: 6px 12px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: bold !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: all 0.2s;
}

/* 通常時のスタイル（ご提示いただいたもの） */
.col-num a.btn-detail {
  display: inline-block !important;
  background-color: #ffffff !important;
  color: #4a83db !important;
  border: 1px solid #4a83db !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: bold !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: all 0.2s;
}

/* 【追加】href属性がない、または空、または"#"の場合にグレーにする */
.col-num a.btn-detail:not([href]),
.col-num a.btn-detail[href=""],
.col-num a.btn-detail[href="#"] {
  background-color: #f5f5f5 !important; /* グレー背景 */
  color: #a8a8a8 !important; /* 文字を白に */
  border-color: #f5f5f5 !important; /* 枠線もグレーに */
  pointer-events: none !important; /* クリック不可 */
  cursor: default !important;
  text-decoration: none !important;
}

.btn-inq:hover,
.inqBlank:hover,
.col-inq a:hover {
  background-color: #4a83db !important;
  opacity: 0.9;
}

.col-num a.btn-detail:hover {
  background-color: #e2efff !important;
  opacity: 0.9;
}

/* イントロ */
.intro-section {
  padding-top: 0;
}
.intro-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 40px;
  padding-inline: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.intro-map img {
  max-width: 300px;
}
.sub-lead {
  font-size: 13px;
  margin-bottom: 10px;
}
.main-copy {
  font-size: 32px;
  color: var(--color-main);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 20px;
}
.lead-desc {
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* 見出し共通 */
.sec-title {
  text-align: center;
  font-size: 32px; /* サイズを大きく */
  margin-bottom: 30px;
  font-weight: bold; /* 太字に */
  color: var(--color-main);
  text-align: center;
}
.sec-desc {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

/* mediaのボックス */
.media-box,
.media-box-large {
  border-radius: 8px;
  border: 1px solid var(--color-main);
  background-color: #fff;
  padding: 10px 20px;
  display: grid;
  place-items: center;
}
.media-types {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.media-box {
  max-width: 464px;
  min-height: 263px;
  height: auto;
}
.media-item p {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

/* メリットカード */
.benefit-section {
  padding-top: 60px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* メリットカード本体 */
.merit-card {
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  background-color: #fff; /* ごく薄い青色の背景 */
  border: 1px solid #99c2ff; /* 薄い青色のボーダー */
  border-radius: 12px; /* 角丸 */
  position: relative;
}

/* カードヘッダー（バッジとタイトルを横並びにするためのコンテナ） */
.merit-header {
  display: flex;
  gap: 8px; /* バッジとタイトルの間の余白 */
  margin-bottom: 16px;
  align-items: center;
}

/* グラデーションバッジ（丸） */
.merit-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-main); /* グラデーションを適用 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 縮まないようにする */
}

/* バッジ内の文字 */
.merit-badge span {
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

/* タイトル部分 */
.merit-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-base);
  line-height: 1.4;
  margin: 0;
}

/* 本文テキスト */
.merit-text {
  font-size: 15px;
}

/* 手続き面倒セクション */
.trouble-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.trouble-content p {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
}
.trouble-content .large-num {
  font-size: 32px;
}

.media-box-large {
  width: 250px;
  height: 250px;
}
.media-pain img {
  width: 128px;
  height: auto;
}

/* 解決案（矢印とバナー） */
.solution-section {
  text-align: center;
  padding-top: 60px;
}
.arrow-down {
  width: 100px;
  height: 65px;
  background: var(--gradient-main);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  margin: 0 auto 20px;
}
.solution-msg {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 30px;
  /* グラデーションテキスト */
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 絞り込みUI */
.filter-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
}
.filter-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-main);
  padding-bottom: 5px;
}
.filter-group {
  margin-bottom: 30px;
  padding-inline: 20px;
}
.area-section {
  margin-bottom: 5px;
}
.area-parent {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-left: 20px;
}
.filter-container label {
  font-size: 16px; /* フォームの文字サイズを16pxに固定 */
  display: inline-flex; /* チェックボックスとテキストの縦位置を揃える */
  align-items: center;
}
.all-area-label {
  font-weight: bold;
  margin-bottom: 15px;
}
.area-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* グラデーション枠のサマリーカード */
.summary-card {
  max-width: 900px;
  margin: -20px auto 40px;
  padding: 20px 30px;
  border-radius: 15px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff), linear-gradient(to right, #00a880, #1e50a2);
  background-origin: border-box;
  background-clip: content-box, border-box;
  position: relative;
}

/* 検索結果の件数表示 */
.result-message {
  text-align: center;
  margin-top: 20px; /* 上の要素との間に余白を追加 */
}

.result-message strong {
  color: var(--color-main);
  font-size: 24px;
  font-weight: bold;
}

/* サマリーカード内のスタイル */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: bold;
  width: 100px;
  color: #333;
  flex-shrink: 0;
}

.summary-value {
  flex: 1;
  text-align: right;
  font-size: 16px;
  color: #333;
}

.summary-total .price-display {
  font-size: 28px;
  font-weight: bold;
  color: #1e50a2;
}

/* 予算のラジオボタンUI */
.radio-flex {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

input {
  width: 18px;
  height: 18px;
  border-color: #333;
}

/* ラジオボタンのラベル全体のスタイル */
.radio-button {
  display: inline-flex; /* ラジオボタンとテキストを横並びにして揃える */
  align-items: center;
  cursor: pointer;
  padding: 5px 0; /* 上下の余白を少し確保 */
}

/* ネイティブのラジオボタンを表示し、テキストとの間隔を調整 */
.filter-container input[type="radio"],
.filter-container input[type="checkbox"] {
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none;
  position: relative;
  /* サイズを22pxに指定 */
  width: 22px;
  height: 22px;
  border: 1px solid #777;
  border-radius: 50%;
  vertical-align: -5px; /* テキストとの縦位置を調整 */
  margin-right: 8px;
  cursor: pointer;
}

/* さらに絞り込むのチェックボックス */
.checkbox-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-container input[type="checkbox"] {
  border-radius: 3px; /* チェックボックスは四角く */
}

/* チェックが入った時のスタイル */
.filter-container input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-main);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.filter-container input[type="checkbox"]:checked::after {
  content: "✔";
  color: var(--color-main); /* チェックマークの色 */
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  top: 45%; /* 位置を微調整 */
  left: 50%; /* 位置を微調整 */
  transform: translate(-50%, -50%);
}
/* 結果表示 */
.result-body {
  max-width: 1000px;
  margin: 0 auto;
}
.result-section {
  text-align: center;
}
.result-table {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  /* border-collapse: collapse; を削除し、代わりに以下を追加 */
  border-spacing: 0; /* セル間の余白をなくす */
  border: 8px solid transparent; /* ボーダーの幅を確保 */
  background: #fff;
  font-size: 18px;
  border-radius: 20px;
  /* background-clipでグラデーションボーダーを表現 */
  background-image: linear-gradient(#fff, #fff), var(--gradient-main);
  background-origin: border-box;
  background-clip: content-box, border-box;
}
.result-table th {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
.result-table td {
  border-bottom: 1px solid #a1a1a1;
  padding: 12px 16px;
  text-align: right;
}
/* 結果テーブルの1列目（ラベル）のスタイル */
.result-table td:first-child {
  text-align: left; /* 左寄せに */
  font-weight: bold;
  white-space: nowrap; /* 折り返しを防ぐ */
}
.result-table td:nth-child(4) {
  font-weight: bold;
}

.price-num {
  color: var(--color-main);
  font-size: 24px;
  font-weight: bold;
}
main h3 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
}

/* お問い合わせセクション全体 */
.contact-container {
  margin: 30px auto;
  text-align: center;
}

/* 注釈テキスト */
.contact-notes {
  margin-bottom: 30px;
}

.contact-notes p {
  color: #1e50a2; /* 濃い青 */
  font-size: 14px;
  margin-bottom: 20px;
  text-align: left;
}

/* お問い合わせバナーボタン */
.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  max-width: 629px;
  margin: 0 auto;
  margin-right: auto;
  padding: 12px 6px 12px 0;
  background: linear-gradient(
    #279b6f,
    #1e50a2
  ); /* 緑から青へのグラデーション */
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 2px solid #fff;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  overflow: visible;
}

.contact-banner:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

/* テキスト部分 */
.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 2;
}

.banner-maintext {
  font-size: 18px;
  font-weight: bold;
}

.banner-subtext {
  font-size: 16px;
}
/* イラスト画像部分 */
.banner-image {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 110%; /* 少しはみ出すくらいのサイズ感 */
  z-index: 1;
}

.banner-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ページネーション */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.pagination button {
  padding: 8px 16px;
  cursor: pointer;
}
.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.contact {
  margin-top: 40px;
}
.contact p {
  margin-bottom: 10px;
}

/* FVバナー内のCTAボタンの特別調整 */
.fv-banner {
  margin-top: 20px;
}
.fv-banner .contact-banner {
  max-width: 456px;
  padding: 12px 16px;
  margin: 0;
}

.fv-banner .contact-banner .banner-maintext {
  font-size: 18px;
}

/* FVバナー内の女性イラストを非表示にする */
.fv-banner .banner-image {
  display: none;
}

/* ==========================================
   レスポンシブ設定
   ========================================== */

/* --- タブレット & スマホ (1024px以下) --- */
@media (max-width: 1024px) {
  .fv-banner .contact-banner {
    margin: 0 auto;
  }

  /* 英語のサブタイトル（MEDIA LIST） */
  .sub-title {
    font-size: 12px;
  }

  /* メインの見出し（h2） */
  .media-list h2,
  .heading-group h2 {
    font-size: 20px;
  }
  .intro-container {
    flex-direction: column;
    padding-block: 20px;
  }
  .main-copy {
    font-size: 24px;
  }
  .lead-desc {
    font-size: 16px;
  }
  .sec-title {
    font-size: 20px; /* サイズを調整 */
  }
  .solution-msg {
    font-size: 18px; /* スマホ用に調整 */
    line-height: 1.4; /* 行間も調整 */
  }

  /* タブレット・スマホでは「さくっと」画像を非表示にする */
  .heading-group--simulation::before {
    display: none;
  }
  .arrow-down {
    width: 50px;
    height: 32px;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .trouble-content {
    flex-direction: column;
  }
  .trouble-content p {
    font-size: 15px;
    line-height: 1.5;
  }
  .trouble-content .large-num {
    font-size: 22px;
  }
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 10px;
    gap: 5px 10px;
  }
  .area-sections-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-items: start;
  }
  .summary-row {
    flex-direction: column;
    gap: 5px;
  }
  .summary-value {
    text-align: left;
    width: 100%;
  }
  .summary-total .summary-value {
    text-align: right;
  }
  .result-table th,
  .result-table td {
    font-size: 16px;
    padding: 8px 4px;
  }
  .result-table td:nth-child(2) {
    text-align: right;
  }

  .contact-banner {
    justify-content: center; /* 中央寄せに */
    padding: 12px 10px; /* パディングを調整 */
  }
}

/* --- スマホ (768px以下) --- */
@media (max-width: 768px) {
  .main-visual {
    height: auto;
    padding: 60px 0;
  }

  /* 英語のサブタイトル（MEDIA LIST） */
  .sub-title {
    font-size: 11px;
  }

  .mv-container {
    padding: 0 15px; /* スマホ時は少し余白を狭く */
  }

  .mv-lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .fv-banner .contact-banner {
    margin: 0 auto;
  }

  /* メインの見出し（h2） */
  .media-list h2,
  .heading-group h2 {
    font-size: 20px;
  }
  .lead-text {
    font-size: 18px;
    text-align: left; /* スマホでは左寄せの方が見やすい場合が多い */
  }
  .media-types {
    flex-direction: column;
    align-items: center;
  }

  .trouble-content p {
    font-size: 15px;
    line-height: 1.5;
  }
  .trouble-content .large-num {
    font-size: 22px;
  }

  /* テーブルの横スクロール対応 */
  .adv-list {
    overflow-x: auto;
  }
  .adv-list > .adv-list {
    min-width: 700px; /* テーブル全体の最小幅を指定 */
  }

  .filter-title {
    font-size: 18px;
  }

  /* 横スクロールの注釈 */
  .scroll-notice {
    font-size: 12px;
    color: #555;
    padding-top: 8px;
  }

  #simulation-section {
    padding: 20px;
  }
  .heading-group--simulation h2 {
    flex-direction: column;
    font-size: 20px;
    gap: 4px;
    padding: 20px 15px;
  }
  .heading-group--simulation h2 img {
    width: 40px;
    height: auto;
    margin-bottom: 0;
  }

  .anchor-nav {
    gap: 6px;
  }
  .anchor-btn {
    flex: 1 1 calc(33.33% - 10px); /* スマホで3列に並べる */
    padding: 8px 4px;
    font-size: 12px;
  }

  .area-sections-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-notes p {
    font-size: 12px;
  }

  .contact-banner {
    justify-content: center; /* 中央寄せに */
    padding: 12px 10px; /* パディングを調整 */
  }

  .banner-subtext {
    font-size: 12px;
  }

  .fv-banner .contact-banner .banner-maintext {
    font-size: 16px !important;
  }

  .banner-image {
    position: relative;
    width: 90px; /* 画像サイズを調整 */
    height: auto;
    top: 5px; /* 上に少し移動してはみ出させる */
    right: 0;
  }
}

/* --- シミュレーションレイアウト調整 (PC) --- */
@media screen and (min-width: 960px) {
  .simulation-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }
  .simulation-filters {
    flex: 1;
    /* 左側が長くなった場合にスクロールバーを表示 */
    max-height: calc(100vh - 120px); /* ヘッダー分を引いた高さを最大値に */
    overflow-y: auto;
    position: sticky;
    top: 120px;
  }
  .simulation-results {
    flex: 1;
    position: sticky;
    top: 120px; /* ヘッダーの高さ + 余白 */
  }
}

/* --- 媒体一覧ページ アコーディオン --- */
.pref-accordion-wrapper {
  margin-top: 20px;
}

.pref-title {
  background-color: #f0f7ff;
  border: 1px solid #d4e8ff;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  margin-top: 10px;
  border-radius: 4px;
}

.pref-title:first-child {
  margin-top: 0;
}

.pref-title::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 12px;
  color: var(--color-main);
}

.pref-title.is-active::after {
  transform: translateY(-50%) rotate(180deg);
}

.pref-media-list {
  display: none; /* 初期状態は非表示 */
}

/* --- 媒体一覧ページ 検索バー --- */
.list-search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 600px;
  padding: 0 10px;
  width: 100%;
}

#list-search-input {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 4px;
}

#list-search-button {
  font-size: 16px;
  background-color: var(--color-main);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

#list-search-button:hover {
  background-color: #4a83db;
}

/* --- 媒体一覧 検索結果なしメッセージ --- */
.no-results-message {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}
