@charset "utf-8";

/* フェードスライダーの設定 */
.l-main-visual {
    position: relative;
    width: 100%;
    height: 400px; /* ★縦の長さはお好みで調整 */
    overflow: hidden;
    background-color: #333;
}

.p-fade-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.p-fade-slider__item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.p-fade-slider__item.is-active {
    opacity: 1;
    z-index: 2;
}

.p-fade-slider__item img {
    width: 100%;
    height: 100%;
    /* ★画像の中央付近を維持してトリミング */
    object-fit: cover;
    object-position: center;
}

.p-fade-slider__content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

/* --- 有料道路位置図セクション --- */
.p-map-area {
    margin-top: 60px;
    padding-bottom: 60px;
    text-align: center; /* 子要素を中央寄せ */
}

.p-map-area__img {
    display: inline-block;
    width: 100%;       /* スマホ等、狭い画面では幅いっぱいに広がる */
    max-width: 800px;  /* ★PCでの「ちょうど良いサイズ」の上限 */
    margin: 0 auto;
    padding: 0 20px;   /* スマホ時に画像の端が画面にくっつかないよう余白を確保 */
    box-sizing: border-box;
}

.p-map-area__img img {
    width: 100%;       /* max-width(800px)の範囲内で100%表示 */
    height: auto;      /* 比率を維持してレスポンシブ対応 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 軽く影をつけると地図が浮き立って綺麗です */
}
/* ------------------------------------- */

.campaign01 {
    font-size: 16px;
    margin-bottom: 15px;
}

.map {
    padding: 50px 50px 0 50px;
}

.map img {
    border-radius: 8px;
}

.c-contact-box__address {
    margin-bottom: 0;
}

.c-contact-box__tel {
    margin-bottom: 0;
}

.u-mb-40 {
  margin-bottom: 40px;
}

/* =======================================================
   地図画像の横スクロール対応（スマホ用）
   ======================================================= */
@media screen and (max-width: 768px) {
  /* 画像を囲むボックスをスクロール可能にする */
  .p-scrollable-map {
    overflow-x: auto; /* 横スクロールを許可 */
    -webkit-overflow-scrolling: touch; /* なめらかなスクロール */
    padding-bottom: 10px; /* スクロールバーのための余白 */
    margin-right: -20px; /* 画面端まで広げる調整（親要素のpadding打ち消し） */
    padding-right: 20px; /* 右端の余白 */
  }

  /* 画像自体の設定 */
  .p-scrollable-map img {
    min-width: 800px; /* ★画像をこれ以上小さくしない（800pxで固定） */
    width: auto !important; /* 本来の比率を維持 */
    height: auto;
  }

  /* スクロールを促すヒントを表示する場合（任意） */
  .p-scrollable-map::before {
    content: "← スクロールしてご覧ください →";
    display: block;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.8);
  }
}

/* --- 季節の照明リスト --- */
.p-season-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-season-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  line-height: 1.5;
}

.season-badge {
  display: inline-block;
  width: 40px;
  text-align: center;
  padding: 5px 0;
  margin-right: 15px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  flex-shrink: 0;
}

/* 季節ごとの色分け */
.season-spring {
  background-color: #81c784;
} /* 淡い緑 */
.season-summer {
  background-color: #29b6f6;
} /* スカイブルー */
.season-autumn {
  background-color: #ff9800;
} /* 橙 */
.season-winter {
  background-color: #fdd835;
  color: #333;
} /* 黄 */

/* --- 照明パターンテーブル --- */
.c-table--lighting th {
  background-color: #f0f2f5;
  white-space: nowrap;
  text-align: center;
  padding: 10px;
}
.c-table--lighting td {
  padding: 10px;
  font-size: 14px;
  vertical-align: middle;
}

/* カラーバー（グラデーション表示用） */
.c-color-bar {
  width: 100%;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 2px;
}

/* ユーティリティ */
.u-text-center {
  text-align: center;
}

/* =======================================================
   Q&Aページ用 スタイル
   ======================================================= */

/* --- カテゴリナビゲーション --- */
.p-qa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.p-qa-nav__item {
  display: block;
  padding: 12px 20px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  color: var(--color-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.p-qa-nav__item:hover {
  background-color: var(--color-main);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Q&Aリスト (Details/Summary) --- */
.p-qa-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-qa-box {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.c-qa-box[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--color-main);
}

/* Qエリア (クリック部分) */
.c-qa-box__head {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  cursor: pointer;
  position: relative;
  background-color: #fff;
  list-style: none; /* デフォルトの三角を消す */
}

/* Chrome/Safari等のデフォルト三角消し */
.c-qa-box__head::-webkit-details-marker {
  display: none;
}

.c-qa-box__head:hover {
  background-color: #f8fafb;
}

/* Qアイコン */
.icon-q {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-main);
  color: #fff;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.c-qa-box__head .text {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 5px;
  padding-right: 30px; /* 開閉アイコンのスペース */
  flex: 1;
}

/* 開閉アイコン (+/-) */
.icon-toggle {
  position: absolute;
  right: 20px;
  top: 30px;
  width: 20px;
  height: 20px;
}
.icon-toggle::before,
.icon-toggle::after {
  content: "";
  position: absolute;
  background-color: #ccc;
  transition: transform 0.3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.icon-toggle::before {
  width: 100%;
  height: 2px;
} /* 横棒 */
.icon-toggle::after {
  width: 2px;
  height: 100%;
} /* 縦棒 */

/* Open時のアイコン変化 */
.c-qa-box[open] .icon-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg); /* 縦棒を回転させて横棒に重ねる（-にする） */
  opacity: 0;
}
.c-qa-box[open] .icon-toggle::before {
  background-color: var(--color-main);
}

/* Aエリア (回答部分) */
.c-qa-box__body {
  border-top: 1px solid #f0f0f0;
  background-color: #fcfcfc; /* わずかにグレー */
}

.c-qa-box__body-inner {
  display: flex;
  align-items: flex-start;
  padding: 25px 20px;
}

/* Aアイコン */
.icon-a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent); /* オレンジ */
  color: #fff;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.c-qa-box__body .text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  padding-top: 5px;
  flex: 1;
}

.c-qa-box__body .text p {
  margin-bottom: 10px;
}
.c-qa-box__body .text p:last-child {
  margin-bottom: 0;
}

/* 定義リスト（QA内用） */
.c-def-list-qa {
  margin-top: 10px;
  border-top: 1px dashed #ddd;
}
.c-def-list-qa dt {
  font-weight: 700;
  color: var(--color-main);
  margin-top: 10px;
  display: list-item;
  list-style-type: disc;
  margin-left: 20px;
}
.c-def-list-qa dd {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ユーティリティ */
.u-text-alert {
  color: #d32f2f;
  font-weight: 700;
  font-size: 14px;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .p-qa-nav {
    gap: 10px;
    justify-content: center;
  }

  .icon-q,
  .icon-a {
    width: 30px;
    height: 30px;
    font-size: 16px;
    margin-right: 15px;
  }

  .c-qa-box__head {
    padding: 15px;
  }

  .c-qa-box__head .text {
    font-size: 15px;
    padding-top: 2px;
  }

  .icon-toggle {
    top: 20px; /* 位置調整 */
  }

  .c-qa-box__body-inner {
    padding: 20px 15px;
  }
}

/* =======================================================
   お問い合わせ先一覧ページ用 スタイル
   ======================================================= */

/* --- お問い合わせテーブル --- */
.c-table--contact {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 600px;
}

.c-table--contact th,
.c-table--contact td {
  padding: 15px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* ヘッダー */
.c-table--contact thead th {
  background-color: #f0f2f5;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  white-space: nowrap;
}
.c-table--contact .col-name {
  width: 30%;
}
.c-table--contact .col-address {
  width: 45%;
}
.c-table--contact .col-tel {
  width: 25%;
}

/* セルごとの調整 */
.c-table--contact td {
  background-color: #fff;
}

.u-text-bold {
  font-weight: 700;
}
.u-block {
  display: block;
}
.u-mt-5 {
  margin-top: 5px !important;
}

/* 電話番号リンク */
.tel-link {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}
.tel-link::before {
  content: "📞"; /* またはアイコンフォント */
  font-size: 14px;
  margin-right: 5px;
  color: var(--color-main);
}
.tel-link:hover {
  color: var(--color-main);
  text-decoration: underline;
}

/* マップアイコン（前回作成済みのものを再利用、または以下で定義） */
.u-icon-map {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: text-bottom;
  margin-left: 8px;
}
.u-icon-map:hover {
  opacity: 0.7;
}

/* --- コンタクトCTAエリア --- */
.p-contact-cta {
  background-color: #f8fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
}

/* プライマリーボタン */
.c-btn-primary {
  display: inline-block;
  background-color: var(--color-main);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.c-btn-primary:hover {
  background-color: #00424f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}
.c-btn-primary--wide {
  min-width: 280px;
}
.c-btn-primary::after {
  content: "✉";
  margin-left: 10px;
  font-weight: normal;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .c-table--contact th,
  .c-table--contact td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .c-table--contact thead {
    display: none; /* スマホではヘッダー非表示 */
  }

  .c-table--contact tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
  }

  .c-table--contact td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
  }
  .c-table--contact td:last-child {
    border-bottom: none;
  }

  /* ラベル表示（必要であれば） */
  .c-table--contact td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
  }

  .p-contact-cta {
    padding: 30px 20px;
  }
}

/* =======================================================
   路線別通行台数一覧ページ用 スタイル
   ======================================================= */

/* --- データテーブル --- */
.c-table--data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 600px; /* スマホで横スクロール */
}

.c-table--data th,
.c-table--data td {
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

/* ヘッダー */
.c-table--data thead th {
  background-color: #f0f2f5;
  font-weight: 700;
  color: var(--color-text);
}

/* 路線名セル */
.c-table--data .cell-road {
  text-align: left;
  background-color: #f8fafb;
  font-weight: 700;
}
.c-table--data .cell-road a {
  color: var(--color-main);
  text-decoration: underline;
}

/* 合計行 */
.c-table--data .row-total td {
  background-color: #fff8e1; /* 薄い黄色 */
  font-weight: 700;
  border-top: 2px solid #f39800;
}

/* テキスト装飾 */
.u-text-bold {
  font-weight: 700;
}
.u-text-right {
  text-align: right;
}

/* --- グラフエリア --- */
.p-chart-area {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 30px;
}

.p-chart-placeholder {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 4px;
  overflow: hidden;
}

/* --- ダウンロードリスト --- */
.p-download-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ワイドなPDFボタン */
.c-btn-pdf--wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.c-btn-pdf--wide:hover {
  background-color: #f0fdf4; /* 薄い緑 */
  border-color: var(--color-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.c-btn-pdf--wide .text {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.c-btn-pdf--wide .text::before {
  /* PDFアイコン（CSS流用または画像） */
  content: "PDF";
  background-color: #d32f2f;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  margin-right: 10px;
  font-weight: bold;
}

.c-btn-pdf--wide .size {
  font-size: 12px;
  color: #888;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .c-table--data th,
  .c-table--data td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .p-chart-area {
    padding: 15px;
  }

  .c-btn-pdf--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .c-btn-pdf--wide .size {
    margin-left: auto; /* 右寄せ */
  }
}

/* =======================================================
   回数券販売所一覧ページ用 スタイル
   ======================================================= */

/* --- 凡例ボックス --- */
.p-legend-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.p-legend-title {
  font-weight: 700;
}

/* --- 取扱路線バッジ --- */
.c-road-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  line-height: 1;
  vertical-align: middle;
}

/* 女神大橋（ピンク/紫系：ライトアップや優美なイメージ） */
.c-road-badge--megami {
  background-color: #d81b60;
}
/* 西海パールライン（青/水色系：海・パールのイメージ） */
.c-road-badge--saikai {
  background-color: #0288d1;
}
/* 全路線（緑またはゴールド） */
.c-road-badge--all {
  background-color: #2e7d32;
}

/* --- 販売所テーブル --- */
.c-table--shop th {
  background-color: #f0f2f5;
  white-space: nowrap;
  width: 15%;
}

/* 名称・住所列 */
.c-table--shop td:nth-child(1) {
  min-width: 250px;
}

.c-table--shop strong {
  display: block;
  color: var(--color-main);
  font-size: 16px;
  margin-bottom: 5px;
}

.c-table--shop a {
  color: var(--color-text);
  text-decoration: none;
}
.c-table--shop a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

/* マップアイコン */
.u-icon-map {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: text-bottom;
  margin-left: 8px;
}
.u-icon-map:hover {
  opacity: 0.7;
}

/* 注釈など */
.u-text-accent {
  color: #d32f2f;
  font-weight: 700;
}

/* 約款リンクエリア */
.p-terms-link {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 6px;
  text-align: center;
}
.p-terms-link p {
  margin-bottom: 20px;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .c-table--shop th,
  .c-table--shop td {
    font-size: 14px;
    padding: 10px;
  }

  .c-table--shop strong {
    font-size: 15px;
  }

  .p-legend-box {
    font-size: 12px;
    gap: 10px;
  }
}

/* =======================================================
   有料道路料金一覧ページ用 スタイル
   ======================================================= */

/* --- 料金一覧テーブル用 --- */
.c-table--price-list th {
  white-space: nowrap;
  text-align: center;
  background-color: #f0f2f5;
  padding: 10px 5px;
  font-size: 13px;
  vertical-align: middle;
}
.c-table--price-list td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 5px;
}

/* 道路名セル */
.c-table--price-list .cell-road {
  text-align: left;
  background-color: #fff;
  min-width: 150px;
  font-weight: 700;
}
.c-table--price-list .cell-road a {
  color: var(--color-main);
  text-decoration: underline;
}
.c-table--price-list .cell-road small {
  font-weight: normal;
  color: #666;
  font-size: 12px;
}

/* 料金種別バッジ */
.c-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #d32f2f;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}
.c-badge--cash {
  background-color: #757575; /* グレー */
}
.c-badge--etc {
  background-color: #1e88e5; /* 青 */
}
.c-badge--handicap {
  background-color: #e53935; /* 赤 */
}

/* 文字色ユーティリティ */
.u-text-blue {
  color: #0000ff;
  font-weight: 700;
}
.u-text-red {
  color: #ff0000;
  font-weight: 700;
}
.u-text-right {
  text-align: right;
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .c-table--price-list {
    font-size: 12px;
    min-width: 800px; /* 横スクロールさせる */
  }
}

/* --- 料金一覧テーブル --- */
.c-table--price-list {
  min-width: auto; /* 【変更】800px固定を解除し、自動調整にする */
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed; /* 【追加】列幅を均等配分しやすくする */
}

.c-table--price-list th,
.c-table--price-list td {
  border: 1px solid #e5e7eb;
  padding: 12px 5px; /* 【変更】左右の余白を少し詰める */
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  word-break: break-all; /* 【追加】長すぎる単語は折り返す */
}

/* ヘッダー */
.c-table--price-list thead th {
  background-color: var(--color-main);
  color: #fff;
  font-weight: 700;
  white-space: normal; /* 【変更】nowrap(折り返しなし)をやめ、折り返しを許可する */
  line-height: 1.4; /* 【追加】行間を少し狭める */
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 13px; /* 【追加】ヘッダー文字を少し小さくして収まりを良くする */
}

/* 列幅の調整 */
.c-table--price-list thead th.col-road {
  width: 25%; /* 道路名は少し広めに */
  min-width: auto; /* 固定幅解除 */
}
.c-table--price-list thead th.col-type {
  width: 10%;
  min-width: auto; /* 固定幅解除 */
}

/* 道路名セル */
.c-table--price-list .cell-road {
  background-color: #f8fafb;
  font-weight: 700;
  text-align: left;
  padding-left: 10px;
}
.c-table--price-list .cell-road a {
  color: var(--color-main);
  text-decoration: underline;
  display: inline-block; /* リンクの挙動安定化 */
}
.c-table--price-list .cell-road small {
  display: block;
  font-weight: normal;
  font-size: 11px; /* 注釈は小さく */
  color: #666;
  margin-top: 4px;
}

/* 料金種別セル */
.c-table--price-list .cell-type {
  background-color: #fff;
}

/* 障がい者割引行の背景 */
.c-table--price-list .row-discount td {
  background-color: #fff8f8;
  color: #555;
}
.c-table--price-list .row-discount .cell-road {
  background-color: #f8fafb; /* 道路名セルは維持 */
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  /* スマホ時はどうしても7列入らないため、横スクロールを許容するか、
       文字を極小にする必要がありますが、ここではスクロールを出さない優先で調整 */

  .c-table--price-list th,
  .c-table--price-list td {
    padding: 8px 2px; /* パディングを極限まで詰める */
    font-size: 11px; /* 文字サイズを小さく */
  }

  .c-table--price-list thead th {
    font-size: 10px;
  }

  /* バッジサイズ調整 */
  .c-badge {
    padding: 2px 4px;
    font-size: 10px;
    min-width: auto;
  }
}

/* =======================================================
   交通規制情報ページ用 スタイル
   ======================================================= */

/* --- 1. ダッシュボード（サマリー） --- */
.p-traffic-dashboard {
  background-color: #f8fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 50px;
}

.p-traffic-dashboard__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
  text-align: center;
}

.p-traffic-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; /* 常に2列に固定 */
  gap: 15px;
}

/* もしスマホなど画面が狭い時に1列にしたい場合は以下も追加（任意） */
@media screen and (max-width: 600px) {
  .p-traffic-dashboard__grid {
    grid-template-columns: 1fr !important; /* スマホでは1列 */
  }
}

/* ステータスカード */
.c-status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  transition: transform 0.2s;
}

.c-status-card__road {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.c-status-card__state {
  font-size: 16px;
  font-weight: 700;
}

/* 状態別の色 */
/* 平常（緑/青） */
.c-status-card--green {
  border-top: 4px solid #2e7d32;
}
.c-status-card--green .c-status-card__state {
  color: #2e7d32;
}

/* 注意（オレンジ） */
.c-status-card--orange {
  border-top: 4px solid #f57f17;
  background-color: #fff8e1;
}
.c-status-card--orange .c-status-card__state {
  color: #e65100;
}

/* 通行止め（赤） */
.c-status-card--red {
  border-top: 4px solid #d32f2f;
  background-color: #ffebee;
}
.c-status-card--red .c-status-card__state {
  color: #c62828;
}

/* --- 2. 規制情報テーブル --- */
.c-table--regulation th {
  background-color: #f0f2f5;
  white-space: nowrap;
  text-align: center;
  width: 15%;
}

.c-table--regulation td {
  vertical-align: middle;
}

/* 規制種別タグ */
.c-status-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
}

/* 通行止 */
.c-status-tag--closed {
  background-color: #d32f2f;
}
/* 片側交互通行 */
.c-status-tag--traffic {
  background-color: #f57f17;
}
/* 注意・徐行 */
.c-status-tag--caution {
  background-color: #fbc02d;
  color: #333;
}
/* 工事 */
.c-status-tag--construction {
  background-color: #0288d1;
}

/* --- 3. 規制なし表示 --- */
.p-no-regulation {
  padding: 30px;
  background-color: #fff;
  border: 1px dashed #ccc;
  border-radius: 6px;
  text-align: center;
}

.p-no-regulation__text {
  margin: 0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-no-regulation__text::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
}

/* --- 4. 外部リンクボタン --- */
.p-external-links {
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 6px;
}

.c-btn-external {
  display: inline-block;
  background: #005c6e;
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.c-btn-external::after {
  content: "\2197"; /* 右上矢印 */
  margin-left: 8px;
}

.c-btn-external:hover {
  background: #00424f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* --- レスポンシブ対応 (SP) --- */
@media screen and (max-width: 768px) {
  .p-traffic-dashboard__grid {
    grid-template-columns: 1fr 1fr; /* スマホは2列 */
  }

  /* テーブルをカード型っぽく見せるなどの調整が必要ならここへ */
  /* 今回は c-table-wrap の横スクロールで対応 */
}

/* =======================================================
   ながさき女神大橋道路用 追加スタイル
   ======================================================= */

/* --- 重要なお知らせアラート (ETC不可など) --- */
.c-alert-box {
  background-color: #fff4f4; /* 薄い赤 */
  border: 2px solid #e02424;
  padding: 20px 25px;
  border-radius: 6px;
  color: #333;
  position: relative;
  padding-left: 60px; /* アイコンスペース */
}

.c-alert-box::before {
  content: "!";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: #e02424;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-size: 20px;
}

.c-alert-box__title {
  font-size: 18px;
  font-weight: 700;
  color: #e02424;
  margin-bottom: 10px;
}

.c-alert-box p {
  margin: 0;
  line-height: 1.6;
}

/* --- 回数券テーブルの色変え --- */
.c-table--ticket th {
  background-color: #0088a3; /* 少し明るい青緑 */
}

/* --- 観光スポットカラムレイアウト (画像+テキスト) --- */
.p-spot-column {
  display: flex;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

/* 逆配置用クラス */
.p-spot-column--reverse {
  flex-direction: row-reverse;
}

.p-spot-column__img {
  flex: 1;
  min-width: 400px;
  margin: 0;
}

.p-spot-column__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 250px;
}

/* ボタン（矢印付き） */
.c-btn-arrow {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-main);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--color-main);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.c-btn-arrow::after {
  content: ">";
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s;
}

.c-btn-arrow:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.c-btn-arrow:hover::after {
  transform: translateX(3px);
}

/* 箇条書きリスト */
.u-list-disc {
  list-style: disc;
  padding-left: 1.5em;
  margin-top: 15px;
}
.u-list-disc li {
  margin-bottom: 5px;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .p-road-intro__text {
    order: 2;
  }
  .c-alert-box {
    padding-left: 20px;
    padding-top: 60px; /* アイコン分のスペースを上に確保 */
    text-align: center;
  }
  .c-alert-box::before {
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
  }

  /* カラムレイアウトを縦並びに */
  .p-spot-column,
  .p-spot-column--reverse {
    flex-direction: column;
  }

  .p-spot-column__img {
    width: 100%;
    min-width: auto;
  }

  .p-spot-column__img img {
    min-height: 200px;
  }

  .p-spot-column__body {
    padding: 20px;
  }
}

/* =======================================================
   ながさき出島道路用 スタイル
   ======================================================= */

/* ユーティリティ: マージン調整 */
.u-mb-10 {
  margin-bottom: 10px !important;
}
.u-mb-20 {
  margin-bottom: 20px !important;
}

/* ※以下は他のページと共通のスタイル定義が含まれています。
   既に定義済みの場合はスキップしてください。
*/

/* --- 観光スポットリスト (カード型・共通) --- */
.p-spot-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.p-spot-item {
  display: flex;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.p-spot-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.p-spot-item__img {
  width: 35%; /* 出島道路ページは少し画像を小さめにしてテキストエリアを確保しても良い */
  min-width: 240px;
  margin: 0;
  overflow: hidden;
}

.p-spot-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.p-spot-item:hover .p-spot-item__img img {
  transform: scale(1.05);
}

.p-spot-item__body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-spot-item__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  /* スポットリストを縦並びに */
  .p-spot-item {
    flex-direction: column;
  }
  .p-spot-item__img {
    width: 100%;
    min-width: auto;
    height: 200px;
  }
  .p-spot-item__body {
    padding: 20px;
  }
  .p-spot-item__title {
    font-size: 18px;
  }
}
/* =======================================================
   公社の概要ページ用スタイル
   ======================================================= */

/* セクション間隔 */
.p-about-section {
  margin-bottom: 70px;
}

/* --- 1. 目的・業務ボックス --- */
.p-policy-box {
  background-color: #f0fdf4; /* 薄い緑系（新デザインのトーンに合わせて調整可） */
  border: 1px solid #ccebd4;
  border-left: 5px solid var(--color-main);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 4px;
}

/* アウトライン版（主な業務） */
.p-policy-box--outline {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #f39800; /* アクセントカラー */
}

.p-policy-box__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

/* アイコン装飾（疑似要素） */
.p-policy-box__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 10px;
  opacity: 0.6;
}

.p-policy-box__text {
  line-height: 1.8;
  margin-bottom: 0;
}

.p-policy-list {
  margin: 0;
  padding-left: 1.5em;
}
.p-policy-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- 2. 基本情報エリア --- */
.p-company-info {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.p-company-info__data {
  flex: 1;
}

.p-company-info__img {
  width: 35%;
  min-width: 280px;
}

.p-company-info__img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.p-company-info__img figcaption {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* シンプルな定義リスト */
.c-def-list--simple {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 20px;
  background: transparent;
  padding: 0;
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  font-size: 16px;
}

.c-def-list--simple dt {
  font-weight: 700;
  color: var(--color-text);
  min-width: 5em; /* ラベル幅確保 */
}
.c-def-list--simple dt::after {
  content: "：";
}
.c-def-list--simple dt::before {
  content: none; /* 前回の装飾を消す */
}

/* 役員リスト */
.p-officer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eee;
}

.p-officer-list li {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  align-items: baseline;
}

.p-officer-list .role {
  font-weight: 700;
  width: 100px; /* 役職の幅 */
  color: var(--color-main);
}
.p-officer-list .name {
  font-weight: 500;
  font-size: 16px;
  margin-right: 10px;
}
.p-officer-list .note {
  font-size: 12px;
  color: #888;
}

/* PDFボタン */
.c-btn-pdf {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  transition: all 0.3s;
}
.c-btn-pdf::before {
  content: "PDF";
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 10px;
}
.c-btn-pdf:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* --- 3. テーブル装飾 --- */
.c-table--striped th {
  background-color: #f2f4f6;
  color: #333;
  font-weight: 700;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
}
.c-table--striped td {
  border: 1px solid #ddd;
  vertical-align: middle;
}
.c-table--striped tr:nth-child(even) td {
  background-color: #fafafa;
}

/* ユーティリティ */
.u-text-center {
  text-align: center !important;
}
.u-text-right {
  text-align: right !important;
}
.u-link-arrow {
  font-size: 12px;
  color: var(--color-main);
  margin-left: 10px;
  text-decoration: none;
}
.u-link-arrow::after {
  content: ">";
  margin-left: 4px;
}
.u-mt-20 {
  margin-top: 20px !important;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  /* 会社情報を縦並びに */
  .p-company-info {
    flex-direction: column-reverse;
  }
  .p-company-info__img {
    width: 100%;
    margin-bottom: 20px;
  }

  /* 役員リストの調整 */
  .p-officer-list li {
    flex-direction: column;
    gap: 4px;
  }
  .p-officer-list .role {
    width: auto;
    font-size: 13px;
    opacity: 0.8;
  }

  /* テーブルのフォントサイズ調整 */
  .c-table--striped th,
  .c-table--striped td {
    font-size: 13px;
    padding: 8px;
    white-space: nowrap; /* 折り返さずスクロールさせる */
  }
}

/* =======================================================
   西海パールライン等用 追加スタイル
   ======================================================= */

/* --- 道路概要の逆配置（テキスト左・画像右） --- */
.p-road-intro--reverse {
  flex-direction: row-reverse;
}

/* スマホでは縦並び（画像が上）に戻す場合 */
@media screen and (max-width: 768px) {
  .p-road-intro--reverse {
    flex-direction: column-reverse; /* 画像(img)を上に */
    align-items: flex-start;
  }
  .p-road-intro--reverse .p-road-intro__img {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* --- 動画埋め込みレスポンシブコンテナ --- */
.c-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.c-video-wrap iframe,
.c-video-wrap object,
.c-video-wrap embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ユーティリティ: 中央揃え */
.u-text-center {
  text-align: center;
}

/* --- 観光スポットリスト (カード型) --- */
.p-spot-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.p-spot-item {
  display: flex;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.p-spot-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.p-spot-item__img {
  width: 40%;
  min-width: 240px;
  margin: 0;
  overflow: hidden;
}

.p-spot-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.p-spot-item:hover .p-spot-item__img img {
  transform: scale(1.05);
}

.p-spot-item__body {
  padding: 25px;
  flex: 1;
}

.p-spot-item__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.p-spot-item__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 10px;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  /* 道路概要の画像とテキストを縦並びに */
  .p-road-intro {
    flex-direction: column;
  }
  .p-road-intro__img {
    width: 100%;
  }

  /* スポットリストを縦並びに */
  .p-spot-item {
    flex-direction: column;
  }
  .p-spot-item__img {
    width: 100%;
    min-width: auto;
    height: 200px; /* 画像高さ固定 */
  }
  .p-spot-item__body {
    padding: 20px;
  }
  .p-spot-item__title {
    font-size: 18px;
  }
}

/* =======================================================
   有料道路個別ページ (川平有料道路など) 用スタイル
   ======================================================= */

/* --- 周辺案内カラムレイアウト --- */
.p-spot-column {
  display: flex;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb; /* 薄い枠線 */
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

/* 逆配置（画像左・テキスト右など）用 */
.p-spot-column--reverse {
  flex-direction: row-reverse;
}

.p-spot-column__body {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
  padding-top: 0;
  padding-bottom: 0;
}

.p-spot-column__img {
  flex: 0 0 300px; /* 画像幅固定 */
  max-width: 100%;
}

.p-spot-column__img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .p-spot-column,
  .p-spot-column--reverse {
    flex-direction: column-reverse; /* 画像を上に */
    align-items: flex-start;
  }

  .p-spot-column__img {
    flex: auto;
    width: 100%;
    margin-bottom: 15px;
  }
}

/* --- 情報ボックス（アラート・注意喚起用） --- */
.c-info-box--alert {
  background-color: #fff4f4; /* 薄い赤色背景 */
  border: 1px solid #ffcdd2; /* 薄い赤色の枠 */
  border-left: 5px solid #d32f2f; /* 左側に太い赤線でアクセント */
  padding: 20px;
  border-radius: 4px;
  color: #333;
  margin-bottom: 20px;
}

.c-info-box__text {
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

/* ユーティリティ */
.u-mt-30 {
  margin-top: 30px !important;
}

/* --- 割引案内ボックス --- */
.c-info-box--discount {
  background-color: #f8fafb; /* 薄いグレー/青系 */
  border: 1px solid #e5e7eb;
  padding: 30px;
  border-radius: 8px;
  margin-top: 20px;
}

.c-info-box__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-main); /* メインカラー（青緑） */
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.c-info-box__text {
  line-height: 1.8;
}

/* 強調テキスト（赤系） */
.u-text-accent {
  color: #d32f2f;
  font-weight: 700;
}

/* --- 確認事項チェックボックス --- */
.c-check-box {
  background-color: #fff;
  border: 2px solid #f39800; /* オレンジ枠 */
  border-radius: 6px;
  padding: 20px;
}

.c-check-box__title {
  font-weight: 700;
  color: #f39800;
  margin-bottom: 10px;
}

.c-check-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-check-box__list li {
  color: #d32f2f; /* 赤文字 */
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* テーブル調整 */
.c-table--compact th,
.c-table--compact td {
  text-align: center;
  white-space: nowrap;
}

/* --- ユーティリティ --- */
.u-mt-10 {
  margin-top: 10px !important;
}
.u-mt-30 {
  margin-top: 30px !important;
}
.u-mt-40 {
  margin-top: 40px !important;
}
.u-text-small {
  font-size: 15px;
  color: #666;
}

.u-text-small a {
    color: red;
}

/* --- セクション共通 --- */
.p-road-section {
  margin-bottom: 60px;
}

/* --- 1. 道路概要 --- */
.p-road-intro {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.p-road-intro__img {
  flex: 1;
  min-width: 300px;
  margin: 0;
}
.p-road-intro__img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.p-road-intro__text {
  flex: 1.5;
}

/* 定義リスト (区間・延長など) */
.c-def-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin-top: 20px;
  padding: 20px;
  background: #f8fafb;
  border-radius: 6px;
  font-size: 14px;
}
.c-def-list dt {
  font-weight: 700;
  color: var(--color-main);
  display: flex;
  align-items: center;
}
.c-def-list dt::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--color-accent);
  margin-right: 8px;
  border-radius: 2px;
}
.c-def-list dd {
  margin: 0;
}

/* --- 2. 料金表 --- */
.c-sub-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  border-left: 4px solid var(--color-text);
  padding-left: 10px;
  color: var(--color-text);
}

.c-table-wrap {
  overflow-x: auto; /* スマホで横スクロール */
  -webkit-overflow-scrolling: touch;
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* スマホで潰れないように */
  font-size: 15px;
}

.c-table th,
.c-table td {
  padding: 12px 10px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
  text-align: center;
}

.c-table th {
  background-color: #f0f2f5;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* 価格テーブルの装飾 */
.c-table--price th {
  background-color: var(--color-main);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  width: 20%;
}

.c-table--etc th {
  background-color: #6a1b9a; /* ETCっぽい紫 */
}

.c-table--price td {
  font-weight: 700;
  background: #fff;
}

.price-accent {
  color: #d32f2f;
  font-size: 1.1em;
}

/* 情報ボックス (注意書き等) */
.c-info-box {
  background: #fff8e1; /* 薄い黄色 */
  border: 1px solid #ffecb3;
  padding: 20px;
  border-radius: 6px;
}

.c-info-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f57f17;
  display: flex;
  align-items: center;
}
.c-info-box__title::before {
  content: "!";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #f57f17;
  color: #fff;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 14px;
}

.c-info-box__diagram img {
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border: 1px solid #ccc;
}

/* --- 3. 割引ブロック --- */
.p-discount-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 6px;
}
.c-table--compact th,
.c-table--compact td {
  padding: 8px 10px;
  font-size: 14px;
}
.c-table--compact th {
  background: #eee;
  color: #333;
  text-align: left;
  width: 20%;
}

/* --- 4. お問い合わせボックス --- */
.c-contact-box {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-left: 5px solid var(--color-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.c-contact-box__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.c-contact-box__tel a {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-en);
}
.c-contact-box__tel a:hover {
  color: var(--color-main);
}

/* --- 5. ギャラリー --- */
.p-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.p-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 5px;
}
.p-gallery-item__caption {
  font-size: 13px;
  color: #666;
}

/* --- レスポンシブ対応 (SP) --- */
@media screen and (max-width: 768px) {
  .p-road-intro {
    flex-direction: column;
  }
  .p-road-intro__img {
    width: 100%;
    min-width: auto;
  }
  .c-def-list {
    grid-template-columns: 1fr; /* 縦並び */
    gap: 5px;
  }
  .c-def-list dt {
    margin-top: 10px;
  }
  .c-def-list dt:first-child {
    margin-top: 0;
  }

  .c-table th,
  .c-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* =======================================================
   サイトマップページ用スタイル
   ======================================================= */

.p-sitemap-container {
  margin-top: 40px;
}

/* セクション設定 */
.p-sitemap-section {
  margin-bottom: 50px;
}

/* サイトマップ用見出し */
.c-sitemap-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  padding: 10px 15px;
  background-color: #f8fafb; /* 薄いグレー背景 */
  border-left: 5px solid var(--color-main); /* 左側にメインカラーの線 */
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

/* リストレイアウト（グリッド） */
.p-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PCは2列 */
  gap: 0 40px; /* 横の間隔 */
}

/* リストアイテム */
.p-sitemap-item {
  border-bottom: 1px dashed #e5e7eb;
}

/* リンクスタイル */
.p-sitemap-item > a {
  display: block;
  padding: 12px 5px 12px 20px; /* 左パディングを広めに */
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition:
    color 0.3s,
    background 0.3s;
  font-weight: 500;
}

/* リンク頭のアイコン（矢印） */
.p-sitemap-item > a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: rotate(45deg);
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -4px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

/* ホバー時 */
.p-sitemap-item > a:hover {
  color: var(--color-main);
  background-color: #fafafa;
}

.p-sitemap-item > a:hover::before {
  border-color: var(--color-main);
  transform: rotate(45deg) translateX(3px);
}

/* ネストされたサブリスト（例：女神大橋下のライトアップ） */
.p-sitemap-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 10px 20px; /* 親リンクの下、少し右にずらす */
}

.p-sitemap-sublist li a {
  display: block;
  padding: 8px 0 8px 15px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

/* サブリストのアイコン（ドット） */
.p-sitemap-sublist li a::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #ccc;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -2px;
  transition: background-color 0.3s;
}

.p-sitemap-sublist li a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

.p-sitemap-sublist li a:hover::before {
  background-color: var(--color-main);
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .p-sitemap-list {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 0;
  }

  .c-sitemap-heading {
    font-size: 18px;
  }
}

/* =======================================================
   リンク集ページ用スタイル
   ======================================================= */

.p-page-lead {
  margin-bottom: 40px;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* セクション間隔 */
.p-links-sec {
  margin-bottom: 60px;
}

/* リンク集専用の見出し装飾（下線付き） */
.c-sec-title--border {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-main);
  margin-bottom: 25px;
  font-size: 22px;
}

/* --- リンクカードグリッド --- */
.p-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 市町村など数が多い場合の3列用バリエーション */
.p-links-grid--cols3 {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* リンクカード本体 */
.c-link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  position: relative;
  min-height: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.c-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--color-main);
}

/* リンクテキスト */
.c-link-card__text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  padding-right: 20px; /* アイコン分の余白 */
  display: block;
}

.c-link-card__text small {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  font-weight: normal;
}

/* URL表記（あれば） */
.c-link-card__url {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
  font-family: var(--font-en);
  word-break: break-all;
}

/* 外部リンクアイコン（CSSで疑似要素作成） */
.c-link-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 15px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005c6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s;
}

.c-link-card:hover::after {
  transform: translate(2px, -2px);
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .p-links-grid,
  .p-links-grid--cols3 {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 15px;
  }

  .c-link-card {
    padding: 15px;
    min-height: auto;
  }

  .map {
    padding: 50px 0 0;
}
}

/* =======================================================
   リンク集バナー用スタイル
   ======================================================= */
.c-link-banner {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff; /* 背景が透過のバナー対策 */
    border: 1px solid #e5e7eb; /* 薄い枠線 */
}

.c-link-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--color-main);
}

.c-link-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =======================================================
   下層ページ共通 & 情報公開資料ページ用スタイル
   ======================================================= */

/* --- レイアウト調整 --- */
/* サイドバー付き2カラムレイアウト用 */
.l-inner--two-column {
  display: flex;
  gap: 50px; /* ★50pxに変更 */
  padding-top: 60px;
  padding-bottom: 100px;
}

.l-main-content {
  flex: 1; /* 残りの幅をすべて使う */
  min-width: 0; /* flexアイテムのはみ出し防止 */
}

/* スマホ表示 */
@media screen and (max-width: 900px) {
  .l-inner--two-column {
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
  }
  /* スマホではサイドバーを下に、あるいは順序入れ替え */
  .p-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

/* --- 下層ページ用ヒーローエリア --- */
.p-sub-hero {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-main) 0%, #0088a3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px; /* ヘッダー境界調整 */
  position: relative;
  overflow: hidden;
  margin-bottom: 45px;
}

/* 背景装飾（薄い波紋など） */
.p-sub-hero::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 100%;
  top: 0;
  left: -10%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 1;
}

.p-sub-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.p-sub-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-sub-hero__title .ja {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.p-sub-hero__title .en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.15em;
  opacity: 0.9;
  font-weight: 400;
}

/* パンくずリスト簡易スタイル */
.c-breadcrumbs {
  padding: 15px 20px;
  font-size: 12px;
  color: #666;
  background-color: transparent;
}

/* --- コンテンツエリア：情報公開資料 --- */
.p-disclosure-lead {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ドキュメントリストスタイル */
.p-doc-list {
  list-style: none;
  margin: 0 0 60px 0;
  padding: 0;
  border-top: 2px solid var(--color-main);
}

.p-doc-list__item {
  border-bottom: 1px solid #e5e7eb;
}

.p-doc-list__item a {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  background: #fff;
  position: relative;
}

.p-doc-list__item a:hover {
  background-color: #f8fafb;
  color: var(--color-main);
}

/* PDFアイコン */
.p-doc-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #d32f2f; /* PDF Red */
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  font-family: var(--font-en);
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 15px;
  flex-shrink: 0;
  min-width: 40px;
}

/* ファイル名テキスト */
.p-doc-list__text {
  font-weight: 700;
  font-size: 16px;
  flex: 1; /* 余白を埋める */
  line-height: 1.4;
}

/* ファイルサイズ */
.p-doc-list__size {
  font-size: 12px;
  color: #888;
  margin-left: 10px;
  white-space: nowrap;
}

/* 右矢印アイコン（CSSで作成） */
.p-doc-list__item a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: rotate(45deg);
  margin-left: 15px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.p-doc-list__item a:hover::after {
  border-color: var(--color-accent);
  transform: rotate(45deg) translate(2px, -2px);
}

/* スマホ調整 */
@media screen and (max-width: 600px) {
  .copyright {
    padding: 0;
  }

  .l-footer__inner {
    padding: 30px 20px 20px !important;
  }

  .l-footer__content {
    margin-bottom: 30px !important;
  }

  .l-footer__bottom {
    padding-top: 15px !important;
  }

  .p-sub-hero__title .ja {
    font-size: 28px;
  }

  .p-doc-list__item a {
    flex-wrap: wrap; /* 小さい画面では折り返し */
  }
  .p-doc-list__size {
    width: 100%;
    margin-left: 55px; /* アイコン分ずらす */
    margin-top: 5px;
  }
  .p-doc-list__text {
    font-size: 14px;
  }
}

/* --- Adobe Reader 注釈 --- */
.p-adobe-note {
  background: var(--color-bg-gray);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #666;
}

.p-adobe-note p {
  margin: 0;
  line-height: 1.5;
}

.p-adobe-note__link img {
  height: 30px;
  width: auto;
  vertical-align: bottom;
}

@media screen and (max-width: 600px) {
  .p-adobe-note {
    flex-direction: column;
    text-align: center;
  }
}

/* =======================================================
   長崎県道路公社 リニューアル用スタイル (Clean Version)
   ======================================================= */

/* --- 変数定義 --- */
:root {
  --color-main: #005c6e; /* メインカラー：海と橋（濃いティール） */
  --color-accent: #f39800; /* アクセント：オレンジ */
  --color-text: #333333; /* テキスト黒 */
  --color-bg-gray: #f4f7f8; /* 背景用グレー */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Roboto", sans-serif;
  --header-height: 80px; /* ヘッダーの高さ */
}

/* --- ベースリセット & 全体設定 --- */
body {
  font-family: var(--font-ja);
  color: var(--color-text);
  line-height: 1.6;
}

/* 旧CSS(main.css)のスタイルを強力に打ち消すリセット */
header,
header.pc,
header.res {
  background: #fff !important;
  height: auto !important;
  min-height: auto !important;
  position: static !important;
  display: block !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  background-image: none !important;
}

/* メインコンテンツの位置調整（固定ヘッダーの高さ分下げる） */
.main-contents {
  padding-top: var(--header-height) !important;
}

/* 共通コンテナ */
.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* セクションタイトル */
.c-sec-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text);
  font-family: var(--font-ja);
  letter-spacing: 0.05em;
}
.c-sec-title--left {
  text-align: left;
}

/* =======================================================
   1. ヘッダー (Header) - Full Width Adjusted
   ======================================================= */
.l-header {
  position: fixed !important;
  left: 0;
  width: 100%;
  height: var(--header-height) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  z-index: 99999 !important;
  border-bottom: 1px solid #e5e7eb;
}

.l-header__inner {
  width: 100% !important; /* ★全幅にする */
  max-width: none !important; /* ★最大幅制限を解除 */
  height: 100%;
  margin: 0;
  padding: 0 40px !important; /* ★左右に余裕を持たせる */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box; /* パディングを含める */
}

/* ロゴ */
.l-header__logo {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
  float: none !important;
}
.l-header__logo img {
  height: 50px !important;
  width: auto !important;
  display: block;
  max-width: none !important;
  margin: 0 !important;
}

/* PCナビゲーション */
.l-header__nav-pc {
  display: flex !important;
  align-items: center;
  gap: 30px;
}
.nav-pc-list {
  display: flex !important;
  gap: 30px; /* ★メニュー間の間隔も少し広げる */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-pc-list li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
  width: auto !important;
}
.nav-pc-list a {
  text-decoration: none !important;
  color: var(--color-text) !important;
  font-weight: 700;
  font-size: 14px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  transition: color 0.3s;
  background: none !important;
  padding: 0 !important;
  border: none !important;
}
.nav-pc-list a span.en {
  font-family: var(--font-en);
  color: var(--color-main);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.nav-pc-list a:hover {
  color: var(--color-main) !important;
}

/* スマホ対応時の余白調整 */
@media screen and (max-width: 768px) {
  .l-header__inner {
    padding: 0 20px !important; /* スマホでは余白を少し狭める */
  }
}

/* お問い合わせボタン */
.btn-contact {
  display: inline-block !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(243, 152, 0, 0.2);
  line-height: 1 !important;
  border: none !important;
  height: auto !important;
}
.btn-contact:hover {
  background: #ffaa22 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(243, 152, 0, 0.3);
}

/* SP用パーツ（PCでは非表示） */
.l-header__hamburger,
.l-header__drawer {
  display: none !important;
}

/* =======================================================
   2. トップページ：メインビジュアル (Hero)
   ======================================================= */
.l-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.l-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: var(--color-main); /* 動画読み込み前の色 */
}
.l-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.l-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.l-hero__copy {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  font-family: var(--font-ja);
}

/* =======================================================
   3. トップページ：交通規制情報パネル (Traffic Panel)
   ======================================================= */
.l-traffic-panel {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  margin-bottom: 60px;
}
.traffic-board {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-top: 5px solid var(--color-main);
}
.traffic-board__header {
  background: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.traffic-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.traffic-title .icon {
  margin-right: 8px;
}
.traffic-update {
  font-size: 12px;
  color: #666;
}

.traffic-board__body {
  padding: 20px;
}

.traffic-status {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}
.traffic-status:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.traffic-status .label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  margin-right: 15px;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}
.traffic-status.is-emergency .label {
  background: #e02424;
}
.traffic-status.is-construction .label {
  background: #d97706;
}

.traffic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.traffic-list li {
  margin-bottom: 5px;
  font-size: 14px;
}
.traffic-list .road-name {
  font-weight: 700;
  color: var(--color-main);
  margin-right: 10px;
}
.traffic-board__footer {
  background: #f8f9fa;
  text-align: center;
  padding: 10px;
}
.btn-more {
  font-size: 12px;
  color: var(--color-main);
  text-decoration: none;
  font-weight: 700;
}
.btn-more:after {
  content: " >";
}

.status-content p {
  margin-bottom: 0;
}

/* =======================================================
   4. 有料道路グリッド (Roads)
   ======================================================= */
.p-roads {
  padding: 60px 0;
  background: var(--color-bg-gray);
}

/* ベース（トップページ用）：幅に合わせて自動配置（最大4列） */
.p-roads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* 下層ページ（有料道路一覧）用：2列に固定 */
.p-road-section .p-roads__grid {
  grid-template-columns: repeat(2, 1fr);
}

/* スマホ表示時は1列にする */
@media screen and (max-width: 768px) {
  .p-roads__grid,
  .p-road-section .p-roads__grid {
    grid-template-columns: 1fr;
  }
}
.road-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: block;
}
.road-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.road-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}
.road-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.road-card:hover .road-card__img img {
  transform: scale(1.05);
}
.road-card__body {
  padding: 20px;
}
.road-card .road-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 8px;
}
.road-card .road-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* =======================================================
   5. トップページ：お知らせ & サイドバー
   ======================================================= */
.p-news-area {
  padding: 80px 0;
}
.l-inner--flex {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* 左：お知らせリスト */
.p-news {
  flex: 2; /* メイン */
}
.p-news__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-main);
  padding-bottom: 10px;
}
.p-news__header .c-sec-title {
  margin-bottom: 0;
}
.p-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-news__list li {
  border-bottom: 1px solid #eee;
}
.p-news__list a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s;
}
.p-news__list a:hover {
  background: #fafafa;
}
.p-news__list time {
  font-family: var(--font-en);
  color: #888;
  margin-right: 15px;
  font-size: 14px;
  flex-shrink: 0;
}
.p-news__list .news-cat {
  background: #eee;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 15px;
  flex-shrink: 0;
}
.p-news__list .news-title {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

/* 左カラム内のバナー調整 */
.p-news-banner {
  margin-top: 30px; /* お知らせリストとの間隔 */
}

.p-news-banner .sidebar-banner-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 右：サイドバー (旧コンテンツ) */
.p-sidebar {
  flex: 1; /* 幅1 */
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 280px;
}

/* バナーボタン (PRICE, BIDDING, ABOUT) - 調整済み */
.p-sidebar__buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.banner-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid #ddd;
  border-left-width: 5px;
  border-radius: 4px;
  background: #fff;
  padding: 20px 15px; /* ★縦幅を調整 */
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.banner-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--color-main);
}
.banner-btn--price {
  border-left-color: #005c6e;
}
.banner-btn--bid {
  border-left-color: #f39c12;
}
.banner-btn--about {
  border-left-color: #333;
}

/* ボタン内テキスト拡大 */
.banner-btn .en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px; /* ★大きく */
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.banner-btn .ja {
  font-size: 15px; /* ★大きく */
  color: #555;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* サイドバーメニュー (ユーティリティ) */
.p-sidebar__nav {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #eee;
}
.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav-list li {
  border-bottom: 1px dashed #ddd;
}
.sidebar-nav-list li:last-child {
  border-bottom: none;
}
.sidebar-nav-list a {
  display: block;
  padding: 12px 5px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
  transition: color 0.3s;
}
.sidebar-nav-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.sidebar-nav-list a:hover {
  color: var(--color-main);
  background: #fff;
}

/* サイドバーバナー画像 */
.p-sidebar__banners {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-banner-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.sidebar-banner-img:hover img {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* =======================================================
   6. トップページ：ピックアップ (Pickup)
   ======================================================= */
.p-pickup-area {
  background-color: var(--color-bg-gray);
  padding-top: 100px; /* ★余白たっぷり */
  padding-bottom: 80px;
  margin-top: 60px;
}
.p-pickup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.pickup-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  background: #fff;
}
.pickup-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.pickup-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================================================
   7. フッター (New Light Design - Adjusted)
   ======================================================= */

.l-footer {
  background-color: #fff;
  color: var(--color-text);
  padding-top: 0;
  margin-top: 0;
  position: relative;
  border-top: 1px solid #e5e7eb;
}

/* 上部のアクセントボーダー */
.l-footer__border {
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--color-main) 70%,
    var(--color-accent) 70%
  );
}

.l-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px;
}

.l-footer__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

/* --- 左側：組織情報 --- */
.l-footer__org {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

/* 電話番号・FAXの行デザイン */
.tel-row {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-main);
  font-family: var(--font-en);
  margin-top: 5px;
  display: flex;
  align-items: center;
}
.tel-label {
  margin-right: 8px;
}
.tel-link {
  text-decoration: none;
  color: var(--color-main);
  transition: opacity 0.3s;
}
.tel-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* お問い合わせボタン */
.footer-btn-area {
  margin-top: 20px;
}

.footer-contact-btn {
  display: block; /* 横幅を調整しやすくするためblock指定 */
  background-color: var(--color-main);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.3s,
    transform 0.2s;
  text-align: center;
  box-sizing: border-box; /* パディングを含めた幅計算 */

  /* ★ここが修正ポイント：幅をロゴやテキストの見た目に合わせる */
  width: 100%;
  max-width: 300px; /* 必要以上に広がらないように制限 */
}

.footer-contact-btn:hover {
  background-color: #00424f;
  transform: translateY(-2px);
  color: #fff;
}
.footer-contact-btn .icon-mail {
  margin-right: 8px;
  font-size: 16px;
  vertical-align: middle;
}

/* --- 右側：ナビゲーション（3列） --- */
.l-footer__nav {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.nav-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  display: inline-block;
  min-width: 120px;
}

.nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-group li {
  margin-bottom: 10px;
}

.nav-group a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  transition: color 0.3s;
  display: inline-block;
  position: relative;
  padding-left: 12px;
}

/* リンク頭のポッチ */
.nav-group a::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #ccc;
  position: absolute;
  left: 0;
  top: 9px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.nav-group a:hover {
  color: var(--color-main);
  text-decoration: underline;
}
.nav-group a:hover::before {
  background-color: var(--color-main);
}

/* --- 最下部：コピーライトエリア --- */
.l-footer__bottom {
  border-top: 1px solid #eee;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}
.bottom-links a {
  text-decoration: none;
  color: #666;
  font-size: 12px;
  transition: color 0.3s;
}
.bottom-links a:hover {
  color: var(--color-main);
}

.copyright {
  font-size: 11px;
  color: #999;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 768px) {
  .l-footer__content {
    flex-direction: column;
    gap: 50px;
  }

  .l-footer__nav {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 30px;
  }

  .footer-btn-area {
    max-width: 100%;
  }
  .footer-contact-btn {
    max-width: 100%; /* スマホでは幅いっぱいでもOK */
  }

  .nav-label {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
}

footer p {
  margin-bottom: 0;
}

/* =======================================================
   フッターバナーエリア
   ======================================================= */
.l-footer__banners {
  margin-bottom: 40px; /* 下のコピーライトエリアとの余白 */
  padding-top: 40px;   /* 上のコンテンツエリアとの余白 */
  border-top: 1px dashed #e5e7eb; /* 区切り線 */
}

.footer-banner-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* PCは4列均等配置 */
  gap: 20px; /* バナー同士の隙間 */
}

.footer-banner-list li {
  margin: 0;
}

/* フッター内でのバナー画像の調整（高さが揃うように） */
.footer-banner-list .c-link-banner img {
  border-radius: 4px; /* 少し丸みを抑える */
}

/* --- レスポンシブ対応 (SP/タブレット) --- */
@media screen and (max-width: 960px) {
  .footer-banner-list {
    grid-template-columns: repeat(3, 1fr); /* タブレット・スマホは2列 */
    gap: 15px;
  }
}

/* =======================================================
   8. レスポンシブ (SP Layout)
   ======================================================= */
@media screen and (max-width: 1200px) {
  /* PCナビ非表示 */
  .l-header__nav-pc {
    display: none !important;
  }

  /* ハンバーガー表示 */
  .l-header__hamburger {
    display: block !important;
    position: relative !important;
    z-index: 100001 !important;
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
  }
  .l-header__hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-main);
    position: absolute;
    left: 11px;
    transition: 0.3s;
  }
  .l-header__hamburger span:nth-child(1) {
    top: 16px;
  }
  .l-header__hamburger span:nth-child(2) {
    top: 23px;
  }
  .l-header__hamburger span:nth-child(3) {
    top: 30px;
  }

  /* Open時 */
  .l-header__hamburger.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
    background: #fff;
  }
  .l-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .l-header__hamburger.is-active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
    background: #fff;
  }

  /* ドロワーメニュー */
  .l-header__drawer {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-main) !important;
    z-index: 100000 !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .l-header__drawer.is-active {
    transform: translateX(0);
  }
  .drawer-inner {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
  }
  .drawer-list {
    list-style: none !important;
    padding: 0 !important;
    text-align: center;
    margin: 0 auto !important;
  }
  .drawer-list li {
    margin-bottom: 0 !important;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .l-header__drawer.is-active .drawer-list li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }
  .drawer-list a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 700;
    display: block !important;
    padding: 20px 10px !important;
    background: none !important;
  }
  .drawer-btn {
    margin-top: 40px;
    text-align: center;
  }
  .drawer-btn .btn-contact {
    background: #fff !important;
    color: var(--color-main) !important;
    width: 80%;
    max-width: 300px;
  }
  body.is-locked {
    overflow: hidden;
  }
}

@media screen and (max-width: 768px) {
  .l-hero {
    height: 50vh;
  }
  .l-hero__copy {
    font-size: 2rem;
  }

  .l-inner--flex {
    flex-direction: column;
  }
  .p-sidebar {
    max-width: 100%;
    margin-top: 40px;
  }

  .l-footer__inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-nav {
    grid-template-columns: 1fr;
  }
  .p-pickup-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-news__list a {
    align-items: baseline;
  }
  .p-news__list .news-title {
    font-size: 13px;
  }
}

/* =======================================================
   CSS製サイドバーバナー (No Image Version)
   ======================================================= */

.c-banner-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px; /* 余白調整 */
  border-radius: 8px; /* 角丸 */
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.c-banner-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  color: #fff; /* ホバー時も文字色白 */
}

/* テキストエリア */
.c-banner-box__inner {
  position: relative;
  z-index: 2;
}

.c-banner-box__sub {
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: var(--font-ja);
}

.c-banner-box__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  font-feature-settings: "palt";
  font-family: var(--font-ja);
}

/* アイコン装飾 */
.c-banner-box__icon {
  font-size: 32px;
  opacity: 0.8;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 背景装飾（薄い円） */
.c-banner-box::before {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 1;
}

/* --- カラーバリエーション --- */

/* 1. 世界遺産（長崎らしい青緑グラデーション） */
.c-banner-box--heritage {
  background: linear-gradient(135deg, #005c6e 0%, #0088a3 100%);
}

/* 2. ムービー（アクティブなオレンジ・赤系） */
.c-banner-box--movie {
  background: linear-gradient(135deg, #e65c00 0%, #f9d423 100%);
}
/* ムービーの文字には少し影をつけて読みやすく */
.c-banner-box--movie .c-banner-box__title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 3. フォトアルバム（鮮やかなグリーン・自然） */
.c-banner-box--photo {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

@media screen and (max-width: 900px) {
  .l-inner--two-column {
    flex-direction: column !important; /* 強制的に縦並び */
  }
  .p-sidebar-wrap {
    width: 100% !important; /* 横幅いっぱい */
    margin-top: 40px;
  }
}

/* --- サイドバーのレスポンシブ対応 --- */

/* 1. タブレット・スマホでサイドバーを下に落とす（ブレイクポイントの調整） 
   ※既存の768pxだとiPad縦などで窮屈になるため、960px以下で切り替えます */
@media screen and (max-width: 960px) {
  /* Flexボックス（archive.phpなどで使用しているクラス）を縦並びにする */
  .l-inner--flex {
    flex-direction: column;
  }

  /* サイドバーの幅制限を解除し、全幅にする */
  .p-sidebar {
    width: 100%;
    max-width: 100% !important; /* 既存の320px制限を強制解除 */
    margin-top: 50px; /* 上部との余白 */
    margin-left: 0 !important; /* 左マージンリセット */
  }

  /* 右側のラッパーを使用している場合の対応 */
  .p-sidebar-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 40px;
  }
}

/* 2. サイドバー内部のデザイン調整（タブレット・スマホ用） */
@media screen and (max-width: 960px) {
  /* 3つのボタン（PRICE, BIDDING, ABOUT）を横並びにする */
  .p-sidebar__buttons {
    display: grid;
    /* 幅に応じて自動調整（最低幅220pxを確保して並べる） */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
  }

  /* ボタンの高さを揃える */
  .banner-btn {
    height: 100%;
    padding: 15px 10px;
  }

  /* ナビゲーションメニューを2列にして高さを抑える */
  .sidebar-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列表示 */
    gap: 0 30px; /* 列の間隔 */
  }

  /* リストアイテムの線調整 */
  .sidebar-nav-list li {
    border-bottom: 1px dashed #e5e7eb;
  }
}

/* 3. スマホ縦持ち（画面幅が狭い時）の微調整 */
@media screen and (max-width: 550px) {
  /* 狭い画面ではボタンを縦積みに戻す */
  .p-sidebar__buttons {
    grid-template-columns: 1fr;
  }

  /* ナビゲーションも1列に戻す */
  .sidebar-nav-list {
    grid-template-columns: 1fr;
  }
}

/* --- お知らせエリアのレスポンシブ修正（はみ出し防止） --- */
@media screen and (max-width: 960px) {
  /* 1. レイアウトを縦並びにする */
  .l-inner--flex {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 要素間の間隔 */
  }

  /* 2. お知らせエリアの幅を親要素に合わせる */
  .p-news {
    width: 100%;
    max-width: 100%;
    flex: auto; /* flex: 2 を解除 */
  }

  /* 3. お知らせタイトルの折り返しを許可する */
  /* これがないと長いタイトルが画面を突き破ってしまいます */
  .p-news__list .news-title {
    white-space: normal; /* 折り返し許可 */
    overflow: visible; /* はみ出し非表示を解除 */
    text-overflow: clip; /* ...を解除 */
    line-height: 1.5; /* 読みやすく行間を空ける */
  }

  /* 4. リストアイテムのレイアウト調整 */
  .p-news__list a {
    flex-wrap: nowrap; /* 日付・カテゴリとタイトルを分ける */
    align-items: flex-start; /* 上揃え */
  }

  /* 5. サイドバー（右側だったもの）の幅リセット */
  .p-sidebar {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 20px;
    margin-bottom: 50px;
  }
}

/* --- スマホヘッダーのロゴ調整 --- */
@media screen and (max-width: 768px) {
  /* ロゴ画像の高さを小さくする（PCは50px設定） */
  .l-header__logo img {
    height: 28px !important; /* 30px前後に縮小 */
    width: auto !important;
  }

  /* ロゴエリアが横幅を占有しすぎないように制限 */
  .l-header__logo {
    max-width: 80%;
    display: flex;
    align-items: center;
  }

  /* ヘッダー全体の高さもスマホ用に少しスリムにする（任意） */
  .l-header {
    height: 60px !important;
  }

  /* ヘッダーが低くなった分、コンテンツの開始位置も調整 */
  .main-contents {
    padding-top: 60px !important;
  }
}

/* --- スマホヘッダーのロゴ調整 --- */
@media screen and (max-width: 768px) {
  /* ロゴ画像の高さを小さくする（PCは50px設定） */
  .l-header__logo img {
    height: 28px !important; /* 30px前後に縮小 */
    width: auto !important;
  }

  /* ロゴエリアが横幅を占有しすぎないように制限 */
  .l-header__logo {
    max-width: 80%;
    display: flex;
    align-items: center;
  }

  /* ヘッダー全体の高さもスマホ用に少しスリムにする（任意） */
  .l-header {
    height: 60px !important;
  }

  /* ヘッダーが低くなった分、コンテンツの開始位置も調整 */
  .main-contents {
    padding-top: 60px !important;
  }
}

/* --- 交通規制パネル：スマホでの日時表示位置調整 --- */
@media screen and (max-width: 768px) {
  /* ヘッダー内を強制的に縦並びにする */
  .traffic-board__header {
    display: flex;
    flex-direction: column !important; /* 縦並び */
    align-items: flex-start !important; /* 左寄せ */
    justify-content: flex-start !important;
    gap: 8px; /* タイトルと日時の間隔 */
  }

  /* 更新日時のスタイル調整 */
  .traffic-update {
    margin-left: 0 !important; /* 横並び用の余白をリセット */
    margin-top: 0;
    font-size: 12px;
    color: #666;
    text-align: left;
  }
  .l-inner {
    padding: 0 10px;
  }
}

/* --- お問い合わせテーブルのはみ出し防止修正 --- */
@media screen and (max-width: 768px) {
  /* 1. テーブル自体の幅固定（600px）を解除し、ブロック要素化する */
  .c-table--contact {
    min-width: 0 !important; /* 強制解除 */
    width: 100%;
    display: block; /* テーブルの挙動をブロックに変える */
    border: none; /* 外枠をリセット（td側に枠があるため） */
  }

  /* 2. tbodyもブロック化して幅を合わせる */
  .c-table--contact tbody {
    display: block;
    width: 100%;
  }

  /* 3. セル内のテキストが長い場合に折り返すようにする */
  .c-table--contact td {
    word-break: break-all; /* 長い住所やURLの折り返し */
    overflow-wrap: break-word;
    box-sizing: border-box; /* パディングを含めた幅計算 */
  }

  /* 4. ラッパーのスクロールバーが出ないようにする */
  .c-table-wrap {
    overflow-x: visible;
  }
}

/* --- 回数券販売所一覧のレスポンシブ対応（PC表示のまま横スクロール） --- */
@media screen and (max-width: 960px) {
  /* スマホ等でテーブルが潰れて読めなくなるのを防ぐため、最低幅を確保 */
  .c-table--shop {
    min-width: 800px !important; 
  }
  
  /* テーブルを囲んでいる枠で横スクロールを許可する */
  .c-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important; /* スマホで滑らかにスクロールさせる */
    padding-bottom: 10px; /* スクロールバー用の余白 */
  }
}

/* --- 通行台数一覧のレスポンシブ対応（カード型表示） --- */
@media screen and (max-width: 768px) {
  /* 1. テーブルの幅制限を解除しブロック化 */
  .c-table--data {
    display: block;
    width: 100%;
    min-width: 0 !important; /* PC用の600px制限を解除 */
    border: none;
    box-sizing: border-box;
  }

  .c-table--data thead {
    display: none; /* ヘッダー行を非表示 */
  }

  .c-table--data tbody {
    display: block;
    width: 100%;
  }

  /* 2. 行（tr）をカード化 */
  .c-table--data tr {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-sizing: border-box;
  }

  /* 3. セル（td）をリスト行のように配置 */
  .c-table--data td {
    display: flex;
    justify-content: space-between; /* ラベルと値を左右両端に配置 */
    align-items: center;
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    box-sizing: border-box;
    font-size: 14px;
  }

  .c-table--data td:last-child {
    border-bottom: none;
  }

  /* 4. ラベル（擬似要素）の表示 */
  /* HTMLの data-label="R5年度..." を左側に表示 */
  .c-table--data td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #005c6e; /* メインカラー */
    margin-right: 20px;
    text-align: left;
    font-size: 13px;
    flex: 1; /* ラベル領域確保 */
  }

  /* 5. 路線名セル（カードのタイトル部分）のデザイン */
  .c-table--data .cell-road {
    display: block;
    text-align: center;
    background-color: #f8fafb;
    border-bottom: 2px solid #005c6e;
    padding: 15px;
  }

  .c-table--data .cell-road::before {
    display: none; /* 路線名ラベルは不要 */
  }

  .c-table--data .cell-road a,
  .c-table--data .cell-road {
    font-size: 16px;
    font-weight: 700;
    color: #005c6e;
    text-decoration: none;
  }

  /* 6. 「合計」行の特別デザイン */
  .c-table--data .row-total td {
    background-color: #fffcf5; /* 薄い黄色背景 */
    font-weight: 700;
    color: #333;
  }

  .c-table--data .row-total .cell-road {
    background-color: #f39800; /* オレンジ背景 */
    color: #fff;
    border-bottom: none;
  }
}

/* ドロワーメニュー (ハンバーガーの中身) */
.l-header__drawer {
  display: block !important;
  position: fixed !important;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-main) !important;
  z-index: 100000 !important;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  flex-direction: column;
}
.l-header__drawer.is-active {
  transform: translateX(0);
}

.drawer-inner {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* 縦スクロール有効化 */
  padding: 80px 20px 40px; /* 上はヘッダー分あける */
  -webkit-overflow-scrolling: touch;
}

/* グループ分けのスタイル */
.drawer-group {
  margin-bottom: 30px;
  padding-bottom: 20px;
}
.drawer-group:last-child {
  border-bottom: none;
}

/* 見出し（ラベル） */
.drawer-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* リスト */
.drawer-list {
  list-style: none !important;
  padding: 0 !important;
  text-align: center;
  margin: 0 auto !important;
}
.drawer-list li {
  margin-bottom: 0 !important;
  display: block !important;
  width: 100% !important;
}

.drawer-list a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px; /* 文字サイズ調整 */
  font-weight: 700;
  display: block !important;
  padding: 12px 10px !important; /* タップしやすい範囲 */
  transition: opacity 0.3s;
}
.drawer-list a:hover {
  opacity: 0.7;
}

/* お問い合わせボタンエリア */
.drawer-btn {
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
}
.drawer-btn .btn-contact {
  background: #fff !important;
  color: var(--color-main) !important;
  width: 80%;
  max-width: 300px;
  padding: 15px !important;
}

/* 背景固定用 */
body.is-locked {
  overflow: hidden;
}

/* --- フッターのスマホ表示調整 --- */
@media screen and (max-width: 768px) {
  /* 1. 見出し（メインメニュー等）を非表示にする */
  .l-footer__nav {
    display: none;
  }

  /* 2. レイアウト調整 */
  .l-footer__nav {
    grid-template-columns: 1fr; /* 1列表示 */
    gap: 0; /* グループ間の隙間をなくす */
  }

  .l-footer .nav-group {
    margin-bottom: 0; /* グループ下の余白削除 */
  }

  .l-footer .nav-group ul {
    margin: 0;
    padding: 0;
  }

  /* 3. リスト項目のデザイン調整（線で区切る） */
  .l-footer .nav-group li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee; /* 区切り線 */
  }

  .l-footer .nav-group a {
    display: block; /* リンクを行全体に広げる */
    padding: 15px 0 15px 15px; /* タップしやすい広さに */
  }

  /* リンク頭のポッチ位置調整 */
  .l-footer .nav-group a::before {
    top: 21px; /* 上からの位置調整 */
    left: 0;
  }
}

/* --- 規制情報テーブルの列幅調整 --- */

/* 1列目：規制種別（文字数が少ないので狭く） */
.c-table--regulation th:nth-child(1) {
  width: 10%;
  min-width: 80px;
}

/* 2列目：規制区間 */
.c-table--regulation th:nth-child(2) {
  width: 10%;
}

/* 3列目：期間・時間 */
.c-table--regulation th:nth-child(3) {
  width: 20%;
}

/* 4列目 */
.c-table--regulation th:nth-child(4) {
  width: 20%;
  min-width: 200px; /* 最低幅も確保 */
}

/* 5列目：備考（ここを一番広くする） */
.c-table--regulation th:nth-child(5) {
  width: 40%; /* 残りのスペースを大きく割り当て */
  min-width: 200px; /* 最低幅も確保 */
}

/* =======================================================
   料金表の横スクロール対応（スマホ用）
   ======================================================= */
@media screen and (max-width: 768px) {
  /* 1. 外枠を横スクロール可能にする */
  .p-scrollable-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 5px; /* スクロールバーの余白 */
  }

  /* 2. スクロールヒントの表示（必要な場合） */
  .p-scrollable-table::before {
    content: "← スクロールしてご覧ください →";
    display: block;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-bottom: 5px;
    white-space: nowrap;
  }

  /* 3. テーブルの形状を強制的に「表」に戻す */
  .p-scrollable-table table.c-table {
    display: table !important; /* ブロック化を解除 */
    width: auto !important; /* 100%固定を解除 */
    min-width: 600px; /* ★最低幅を確保してスクロールさせる */
    border-collapse: collapse;
  }

  /* 4. 非表示になっていたヘッダー（<thead>）を復活させる */
  .p-scrollable-table thead {
    display: table-header-group !important;
  }

  .p-scrollable-table tbody {
    display: table-row-group !important;
  }

  .p-scrollable-table tr {
    display: table-row !important;
    margin-bottom: 0 !important;
    border: none !important;
  }

  /* 5. セル（th, td）の縦積みを解除してセルに戻す */
  .p-scrollable-table th,
  .p-scrollable-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 8px 10px !important;
    border: 1px solid #e5e7eb !important; /* 枠線を復活 */
    text-align: center !important;
    white-space: nowrap; /* 文字を折り返さず1行で見せる */
    font-size: 13px;
    vertical-align: middle;
  }

  /* 縦積み用に入っていたラベル（data-label="普通車"など）を消す */
  .p-scrollable-table td::before {
    content: none !important;
    display: none !important;
  }

  /* 普通車などのセル内改行を許可したい場合は以下を追加 */
  /* .p-scrollable-table th { white-space: normal; } */
}

/* --- ページ内リンク用カードのスタイル調整 --- */
a.c-status-card {
  text-decoration: none !important; /* 下線を消す */
  color: inherit; /* 文字色をそのままにする */
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

a.c-status-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- ページ内リンク（アンカー）のスクロール位置調整 --- */
html {
  scroll-behavior: smooth; /* スムーズにスクロールさせる */
  scroll-padding-top: 100px; /* 固定ヘッダーの高さ分＋余裕を開けて停止する */
}

/* =======================================================
   PCヘッダー ドロップダウンメニュー追加
   ======================================================= */
@media screen and (min-width: 1201px) {
  /* 親要素の基準位置 */
  .nav-pc-list li {
    position: relative;
  }

  /* サブメニュー（ドロップダウン）の基本設定 */
  .nav-pc-list .sub-menu {
    position: absolute;
    top: calc(100% + 15px); /* 少し下に配置してホバーでフワッと上げる */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border-top: 3px solid var(--color-main);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100000;
    list-style: none !important;
    margin: 0 !important;
  }

  /* 親メニューにホバーした時にサブメニューを表示 */
  .nav-pc-list li.has-child:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    top: 100%; /* 親要素の直下へ移動させる（アニメーション） */
  }

  /* サブメニューのリスト項目 */
  .nav-pc-list .sub-menu li {
    width: 100%;
    border: none !important;
  }

  /* サブメニューのリンク（親メニューの縦並び設定を上書き） */
  .nav-pc-list .sub-menu a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text) !important;
    text-align: left;
    background: #fff !important;
    transition:
      background 0.2s,
      color 0.2s;
  }

  /* サブメニューのホバー時 */
  .nav-pc-list .sub-menu a:hover {
    background: #f8fafb !important;
    color: var(--color-main) !important;
  }

  /* サブメニュー内の英語表記(EN)は不要なので隠す */
  .nav-pc-list .sub-menu a span.en {
    display: none !important;
  }
}

/* --- ページ内リンク（アンカー）のスクロール位置調整 --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* 固定ヘッダーの高さ＋余白分を開けて停止させる */
}

/* =======================================================
   スマホ ハンバーガーメニュー内のアコーディオン
   ======================================================= */
@media screen and (max-width: 1200px) {
    
    /* テキストは中央から左寄せに変更（開閉ボタンを置くため） */
    .drawer-list > li > a {
        text-align: left !important;
        padding-left: 20px !important;
    }

    /* 親メニュー行（リンクとボタンの並び） */
    .drawer-list__parent {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .drawer-list__parent > a {
        flex: 1;
        padding-right: 0 !important;
        text-align: left !important;
        padding-left: 20px !important;
    }

    /* 開閉ボタン (+マーク) */
    .drawer-toggle {
        background: transparent;
        border: none;
        width: 50px;
        height: 50px;
        position: relative;
        cursor: pointer;
        padding: 0;
        margin-right: 10px;
    }

    /* 十字アイコン */
    .drawer-toggle::before,
    .drawer-toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: #fff;
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .drawer-toggle::before { width: 14px; height: 2px; } /* 横棒 */
    .drawer-toggle::after { width: 2px; height: 14px; }  /* 縦棒 */

    /* 開いた時（縦棒を消してマイナスにする） */
    .has-child-sp.is-open .drawer-toggle::after {
        transform: translate(-50%, -50%) rotate(90deg);
        opacity: 0;
    }

    /* サブメニュー全体 */
    .drawer-sub-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.15); /* 少し暗くして階層をわかりやすく */
    }

    /* サブメニューの各項目 */
    .drawer-sub-list li {
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2) !important;
        transform: none !important; /* ハンバーガー全体のフワッとアニメと干渉させない */
        opacity: 1 !important;
    }
    .drawer-sub-list li:last-child {
        border-bottom: none !important;
    }
    
    .drawer-sub-list a {
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 15px 10px 15px 40px !important; /* インデントをつける */
        position: relative;
        text-align: left;
    }
    
    /* サブメニューの頭に小さな横線 */
    .drawer-sub-list a::before {
        content: "-";
        position: absolute;
        left: 20px;
        color: rgba(255,255,255,0.5);
    }
}

/* =======================================================
   【修正版】コンテンツが少ないページのフッター固定（Chromeバグ対応版）
   ======================================================= */

/* 1. iOS Chromeでバグを引き起こしていた設定を完全にリセット（重要） */
html, body {
    height: auto !important;
    display: block !important;
    min-height: auto !important;
    margin: 0;
}
.l-footer {
    margin-top: 0 !important;
}

/* 2. メインコンテンツに「最低限の高さ」を設定し、物理的にフッターを押し下げる */
/* 画面の高さ(100vh) から、ヘッダー(約80px)とフッター(約350px)の合計値を引いています */
.main-contents,
.l-inner--two-column {
    min-height: calc(100vh - 430px) !important;
    min-height: calc(100dvh - 430px) !important; /* 最新ブラウザ用 */
}

/* 3. ページトップボタンが画面の途中に浮いてしまうバグを修正 */
#page-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    margin: 0 !important;
    z-index: 9999 !important;
}

/* =======================================================
   サイドバー：ホバー式ドロップダウンメニュー
   ======================================================= */
/* 親要素を基準にする */
.sidebar-nav-list li.has-child-sidebar {
    position: relative;
}

/* サブメニューの基本設定（最初は隠す） */
.sidebar-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f1f4f5; /* 少し背景色を変えて階層を表現 */
    border-radius: 4px;
}

/* マウスオーバー時（ホバー）に展開する */
.sidebar-nav-list li.has-child-sidebar:hover .sidebar-sub-menu {
    max-height: 200px; /* サブメニューが開く最大高さ */
    opacity: 1;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* サブメニューの各項目 */
.sidebar-sub-menu li {
    border-bottom: 1px dashed #ddd !important;
}
.sidebar-sub-menu li:last-child {
    border-bottom: none !important;
}

/* サブメニューのリンクデザイン */
.sidebar-sub-menu a {
    padding: 10px 10px 10px 25px !important;
    font-size: 13px !important;
    color: #555 !important;
    background: transparent !important;
}

/* サブメニューのホバー時 */
.sidebar-sub-menu a:hover {
    color: var(--color-main) !important;
    background: #fff !important;
}

/* サブメニュー先頭のアイコン（矢印からドットに変更） */
.sidebar-sub-menu a::before {
    content: "" !important;
    width: 4px !important;
    height: 4px !important;
    background-color: #aaa !important;
    border: none !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 10px !important;
}
.sidebar-sub-menu a:hover::before {
    background-color: var(--color-main) !important;
}

/* =======================================================
   入札結果：縦スクロールリスト
   ======================================================= */
.p-scrollable-list {
    max-height: 500px; /* ★約5件分の高さ（ここで高さを調整できます） */
    overflow-y: auto;  /* 縦にはみ出た分をスクロールさせる */
    border-bottom: 1px solid #e5e7eb; /* スクロール枠の一番下に線を入れる */
    padding-right: 15px; /* スクロールバーと文字が被らないように余白 */
    margin-bottom: 30px;
}

/* --- スクロールバーのデザイン調整 (PCのChrome/Edge/Safari用) --- */
.p-scrollable-list::-webkit-scrollbar {
    width: 8px; /* バーの太さ */
}
.p-scrollable-list::-webkit-scrollbar-track {
    background: #f1f4f5; /* スクロールバーの背景色 */
    border-radius: 4px;
}
.p-scrollable-list::-webkit-scrollbar-thumb {
    background: #c1c9cc; /* 動くバーの色 */
    border-radius: 4px;
}
.p-scrollable-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-main); /* マウスを乗せた時の色 */
}