/* ============================================================
   公開画面 共通スタイル
   ============================================================ */

/* ---- ベーススタイル（公開画面共通） ---- */
/* リセット・フォント・コンテナは common.css で定義 */
body {
  overflow-x: hidden; /* カルーセルtransformのはみ出しによる横スクロール防止 */
}

/* ---- パンくずリスト ---- */
.breadcrumb-bar { background: #f5f5f5; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 13px; flex-wrap: wrap; }
.breadcrumb-link { color: #1a5bab; }
.breadcrumb-separator { color: #aaa; }
.breadcrumb-current { color: #666; }
.breadcrumb-ellipsis { color: #aaa; }
@media (max-width: 768px) {
  .breadcrumb-bar { padding: 8px 0; }
  .breadcrumbs {
    font-size: 12px;
    gap: 4px;
    flex-wrap: nowrap;          /* 折り返し無効 */
    overflow-x: auto;           /* 横スクロール有効 */
    -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
    white-space: nowrap;        /* テキスト折り返し無効 */
    scrollbar-width: none;      /* Firefox: スクロールバー非表示 */
    -ms-overflow-style: none;   /* IE/Edge: スクロールバー非表示 */
  }
  .breadcrumbs::-webkit-scrollbar { display: none; } /* Chrome/Safari: スクロールバー非表示 */
  .breadcrumbs li { flex-shrink: 0; } /* 各項目を縮まないよう固定 */
}

/* ---- ページ下部パンくずリスト ---- */
.page-breadcrumb-bottom {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

/* ---- メインレイアウト ---- */
.site-main { min-height: 60vh; }

/* ---- セクション ---- */
.section { padding: 48px 0; }
.section--gray { background: #f8f8f8; }
.section-title { font-size: 22px; font-weight: bold; color: #1a1a2e; margin-bottom: 24px; padding-bottom: 10px; border-bottom: 2px solid #1a1a2e; }
.section-title--sm { font-size: 18px; }
/* トップページ: home.css のデザインに合わせて旧スタイルをリセット */
#home .section-title { border-bottom: none; padding-bottom: 0; }


/* ---- トップページ: メインビジュアル ---- */
.main-visual { background: #1a1a2e; color: #fff; height: 400px; display: flex; align-items: center; justify-content: center; }
.main-visual-inner { text-align: center; }
.main-visual h2 { font-size: 28px; font-weight: bold; margin-bottom: 12px; }
.main-visual p { font-size: 15px; color: #aaa; }

/* ---- お知らせ一覧 ---- */
.news-list { list-style: none; }
.news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; align-items: baseline; }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 13px; color: #888; white-space: nowrap; }
.news-title { font-size: 14px; }
.news-title a { color: #333; }
.news-title a:hover { color: #1a5bab; }

/* ---- コンテンツリンクグリッド ---- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.content-card { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; transition: box-shadow 0.15s; }
.content-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.content-card-img { width: 100%; /* height: 140px; */ background: #d0d0d0; object-fit: cover; }
.content-card-img-placeholder { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #c0c8d8 0%, #e0e4ed 100%); display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; }
.content-card-body { padding: 14px; }
.content-card-title { font-size: 14px; font-weight: bold; color: #1a1a2e; margin-bottom: 4px; }
.content-card-meta { font-size: 12px; color: #888; }
.content-grid--no-date .content-card-title { text-align: center; }

/* ---- タイル画像表示スタイル（テンプレート管理 image_style） ---- */
.content-card-img--crop169 { aspect-ratio: 16 / 9; height: auto; display: block; }
.content-card-img--crop43  { aspect-ratio: 4 / 3;  height: auto; display: block; }
.content-card-img-placeholder--crop43 { aspect-ratio: 4 / 3; }

.content-card-img-frame {
  width: 100%; aspect-ratio: 4 / 3; background: #eef1f5;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.content-card-img-frame .content-card-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; background: transparent; display: block;
}
@media (max-width: 767px) {
  .content-card-img-frame { aspect-ratio: auto; background: none; }
  .content-card-img-frame .content-card-img { width: 100%; height: auto; max-width: 100%; max-height: none; }
}

/* ---- ページコンテンツ ---- */
.page-content { max-width: 70rem; margin: 0 auto; }
.page-title { font-size: 26px; font-weight: bold; color: #1a1a2e; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid #e0e0e0; }
.page-body { font-size: 15px; line-height: 1.9; }
.page-body h2 { font-size: 20px; font-weight: bold; margin: 32px 0 12px; }
.page-body h3 { font-size: 17px; font-weight: bold; margin: 24px 0 8px; }
.page-body h1.ql-h-border-on,
.page-body h2.ql-h-border-on,
.page-body h3.ql-h-border-on { border-left: 4px solid #1a1a2e; padding-left: 10px; }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin: 0 0 16px 24px; }
.page-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.page-body th, .page-body td { border: 1px solid #dee2e6; padding: 8px 12px; }
.page-body th { background: #f8f9fa; font-weight: bold; }
/* 本文内の画像はインラインフローを許可（WYSIWYG で横並びにしたレイアウトを保持） */
.page-body img {
  display: inline-block;
  vertical-align: top;
}
/* 本文内の iframe（YouTube 埋め込み等）をレスポンシブ対応 */
.page-body iframe {
  max-width: 100%;
  display: block;       /* インラインのままだと幅制御が効かないためblock固定 */
  margin: 16px auto;    /* block要素の中央揃えは margin:auto が必要（text-align:center は効かない） */
}
/* Quill エディタが出力するクラスの公開ページ向けスタイル */
/* ── テキスト揃え ── */
/* NOTE: .ql-align-center は text-align:center のみ。
         block要素（iframe等）を中央揃えにするには下記の個別ルールが必要。 */
.page-body .ql-align-center  { text-align: center; }
/* ql-align-center 内の iframe は margin:auto で明示的に中央揃え（display:block との競合防止） */
.page-body .ql-align-center iframe { margin-left: auto; margin-right: auto; }
.page-body .ql-align-right   { text-align: right; }
.page-body .ql-align-justify { text-align: justify; }
/* ── 文字サイズ ── */
.page-body .ql-size-small { font-size: 0.75em; }
.page-body .ql-size-large { font-size: 1.5em; }
.page-body .ql-size-huge  { font-size: 2.5em; }
/* ── インデント（1〜8段階）── */
.page-body .ql-indent-1 { padding-left: 3em; }
.page-body .ql-indent-2 { padding-left: 6em; }
.page-body .ql-indent-3 { padding-left: 9em; }
.page-body .ql-indent-4 { padding-left: 12em; }
.page-body .ql-indent-5 { padding-left: 15em; }
.page-body .ql-indent-6 { padding-left: 18em; }
.page-body .ql-indent-7 { padding-left: 21em; }
.page-body .ql-indent-8 { padding-left: 24em; }

/* ---- カテゴリ一覧 ---- */
.category-page-list { list-style: none; }
.category-page-item { border-bottom: 1px solid #f0f0f0; }
.category-page-link { display: flex; gap: 16px; padding: 16px 0; align-items: flex-start; }
.category-page-link:hover { background: #fafbff; text-decoration: none; }
.category-page-date { font-size: 13px; color: #888; white-space: nowrap; min-width: 90px; }
.category-page-title { font-size: 15px; color: #1a1a2e; }

/* ---- 番組審議会 ---- */
.council-list { list-style: none; }
.council-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.council-item:last-child { border-bottom: none; }
.council-date { font-size: 13px; color: #888; white-space: nowrap; min-width: 100px; font-weight: bold; padding-top: 3px; }
.council-body { flex: 1; min-width: 0; }
.council-title { font-size: 15px; margin-bottom: 8px; }
.council-title a { color: #1a1a2e; }
.council-title a:hover { color: #1a5bab; }
.council-summary { font-size: 13px; color: #666; line-height: 1.7; }

/* ---- お問い合わせフォーム ---- */
.contact-steps { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 14px; }
.contact-step { padding: 6px 16px; border-radius: 20px; background: #e0e0e0; color: #888; font-weight: bold; }
.contact-step--active { background: #1a1a2e; color: #fff; }
.contact-step-arrow { color: #aaa; }
.contact-form { max-width: 640px; }
.contact-form-group { margin-bottom: 20px; }
.contact-label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 6px; }
.required-mark { color: #e53e3e; }
.required-badge { background: #e53e3e; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 2px; margin-left: 6px; }
.contact-input {
  width: 100%; padding: 10px 12px; border: 1px solid #ced4da;
  border-radius: 4px; font-size: 14px; font-family: inherit;
}
select.contact-input { background: #fff; }
.contact-textarea { min-height: 180px; resize: vertical; }
.contact-hint { font-size: 12px; color: #888; margin-top: 4px; }
.contact-submit-btn { display: inline-block; padding: 12px 40px; background: #1a1a2e; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; }
.contact-submit-btn:hover { background: #2d2d5e; text-decoration: none; }
.contact-back-btn { display: inline-block; padding: 12px 32px; background: #f0f0f0; color: #333; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; cursor: pointer; }
.contact-back-btn:hover { background: #e0e0e0; text-decoration: none; }
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.confirm-table th { width: 160px; background: #f5f5f5; padding: 12px 16px; border: 1px solid #dee2e6; font-size: 14px; font-weight: bold; vertical-align: top; }
.confirm-table td { padding: 12px 16px; border: 1px solid #dee2e6; font-size: 14px; }
.complete-msg { text-align: center; padding: 60px 0; }
.complete-msg-icon { font-size: 56px; color: #3d9a56; margin-bottom: 16px; }
.complete-msg-title { font-size: 22px; font-weight: bold; margin-bottom: 16px; color: #1a1a2e; }
.complete-msg-body { color: #666; margin-bottom: 16px; line-height: 1.8; }
.complete-msg-home-link { display: inline-block; margin-top: 24px; padding: 12px 40px; background: #1a1a2e; color: #fff; border-radius: 4px; font-size: 15px; font-weight: bold; }
.complete-msg-home-link:hover { background: #2d2d5e; text-decoration: none; }

/* ---- アナウンサー一覧 ---- */
.announcer-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.announcer-grid--large { grid-template-columns:repeat(4, 1fr); gap:32px; }
.announcer-card { text-align:center; text-decoration:none; color:inherit; display:block; }
.announcer-card:hover .announcer-icon-placeholder { opacity:0.85; }
.announcer-card:hover .announcer-name { color:#1a5bab; }
.announcer-icon-wrap { margin-bottom:12px; }
.announcer-icon-placeholder {
  width:120px; height:120px; border-radius:50%; margin:0 auto;
  background:linear-gradient(135deg, #c0c8d8 0%, #e0e4ed 100%);
  display:flex; align-items:center; justify-content:center;
  color:#888; font-size:13px; transition:opacity 0.15s;
}
.announcer-grid--large .announcer-icon-placeholder { width:140px; height:140px; }
.announcer-name { font-size:15px; font-weight:bold; color:#1a1a2e; margin-bottom:2px; }
.announcer-kana { font-size:12px; color:#888; margin-bottom:4px; }
.announcer-role { font-size:12px; color:#1a5bab; }

/* ---- cast サブカテゴリ タイル: 丸サムネイル ---- */
[data-cat-slug^="cast-"] .content-card-img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: block;
}
[data-cat-slug^="cast-"] .content-card-img-placeholder {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  aspect-ratio: 1;
}
/* [20260911-03] 対応: cast系カテゴリでは content-card-img-frame（レターボックス枠）自体を無効化する。
   frame は cast 上書き（.content-card-img 対象）の対象外のため、これがないと
   contain_responsive 選択時に円形サムネイルの周囲へ不要な矩形の余白枠が表示されてしまう。 */
[data-cat-slug^="cast-"] .content-card-img-frame {
  all: unset;
  display: block;
}

/* ---- 出演者カテゴリフィルター ---- */
.cast-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cast-filter-pill {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 20px;
  border: 1.5px solid #c8d4e8;
  font-size: 13px;
  font-weight: bold;
  color: #1a5bab;
  background: #f0f5ff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}
.cast-filter-pill:hover { background: #dde8ff; border-color: #1a5bab; }
.cast-filter-pill.is-active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.cast-result-count { font-size: 13px; color: #888; margin-bottom: 20px; }
.cast-result-count strong { color: #1a1a2e; font-size: 15px; }
.cast-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
  background: #f0f4f8; /* 専用色未定義のサブカテゴリ用フォールバック */
  color: #4a6080;
}
.cast-badge--announcer   { background: #e8f0fe; color: #1a5bab; }
.cast-badge--personality { background: #fef3e8; color: #b35a00; }
.cast-badge--reporter    { background: #e8feef; color: #1a7a3e; }

/* ---- アナウンサー詳細 ---- */
.announcer-profile { display:flex; gap:40px; align-items:flex-start; margin-bottom:40px; }
.announcer-profile-photo { flex-shrink:0; }
.announcer-profile-img-placeholder {
  width:200px; height:200px; border-radius:50%;
  background:linear-gradient(135deg, #c0c8d8 0%, #e0e4ed 100%);
  display:flex; align-items:center; justify-content:center;
  color:#888; font-size:14px;
}
.announcer-profile-body { flex:1; min-width:0; }
.announcer-profile-role { font-size:13px; color:#1a5bab; font-weight:bold; margin-bottom:6px; }
.announcer-profile-name { font-size:28px; font-weight:bold; color:#1a1a2e; margin-bottom:4px; }
.announcer-profile-kana { font-size:14px; color:#888; margin-bottom:20px; }
.announcer-profile-table { width:100%; border-collapse:collapse; font-size:14px; }
.announcer-profile-table th { width:90px; padding:8px 12px; background:#f5f5f5; border:1px solid #e0e0e0; font-weight:bold; color:#555; vertical-align:top; white-space:nowrap; }
.announcer-profile-table td { padding:8px 12px; border:1px solid #e0e0e0; line-height:1.7; }
.announcer-message { background:#f8f9ff; border-left:4px solid #1a1a2e; padding:20px 24px; border-radius:0 6px 6px 0; }
.announcer-message-title { font-size:16px; font-weight:bold; color:#1a1a2e; margin-bottom:12px; }
.announcer-message p { font-size:14px; color:#555; line-height:1.9; margin:0; }

/* ---- ページヘッダー画像 ---- */
.page-header-image { max-width: 100%; max-height: 960px; object-fit: contain; display: block; margin: 0 auto 24px; border-radius: 6px; }

/* ---- ページメタ情報 ---- */
.page-meta { font-size: 13px; color: #888; margin-bottom: 24px; }

/* ---- 戻るリンク ---- */
.page-back { margin-top: 40px; padding-top: 20px; border-top: 1px solid #f0f0f0; font-size: 14px; }
.page-back a { color: #1a5bab; }

/* ---- 子カテゴリリスト ---- */
.sub-cat-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.sub-cat-item {
  display: inline-block; padding: 7px 20px;
  border: 1px solid #c8d4e8; border-radius: 20px;
  font-size: 13px; color: #1a5bab; background: #f0f5ff;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sub-cat-item:hover { background: #1a5bab; color: #fff; text-decoration: none; }

/* ---- 空コンテンツメッセージ ---- */
.no-content { color: #888; padding: 40px 0; text-align: center; font-size: 14px; }

/* ---- バナー ---- */
.banner-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; justify-content: center; }
.banner-item { }
.banner-item img { width: 200px; height: 80px; object-fit: cover; display: block; }
.banner-placeholder { width: 200px; height: 80px; background: linear-gradient(135deg, #c0c8d8, #e0e4ed); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #888; }

/* ---- スロットアイテム ---- */
.slot-area { padding: 12px 0; }
.slot-area__group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.slot-area__group + .slot-area__group { margin-top: 12px; }
.slot-item--banner { display: block; text-decoration: none; flex-shrink: 0; }
.slot-item--banner img { max-width: 300px; max-height: 100px; width: auto; height: auto; display: block; }
.slot-item--banner:hover { opacity: .85; }
.slot-item--sns {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--sns-brand, #333);
  padding: 4px;
}
.slot-item--sns svg { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
.slot-item--sns img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.slot-item--sns:hover { opacity: .8; }
.slot-item--sns-follow .sns-follow-text { font-size: 13px; font-weight: bold; }
.slot-item--youtube { display: block; height: 100px; aspect-ratio: 16 / 9; flex-shrink: 0; }
.slot-item--youtube iframe { width: 100% !important; height: 100% !important; display: block; }

/* ---- トップカルーセル ---- */
/* .container (max-width:1100px; padding:0 20px) のコンテンツ幅 = 1060px に合わせる */
.carousel-section { margin: 0 auto; overflow: hidden; max-width: 1060px; }
/* 既存 .carousel { padding: 0 28px } を上書き（詳細度を上げてリセット） */
/* 高さを16:9比率で算出: center slide幅 = viewport × 70% → 39.375vw、最大360px */
.carousel-section .carousel { position: relative; width: 100%; height: min(39.375vw, 360px); overflow: hidden; background: #1e293b; padding: 0; contain: paint; }
.carousel-section .carousel__track { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel-section .carousel__slide {
  position: absolute; top: 0; left: 0;
  height: 100%;
  background: #1e293b;
  overflow: hidden;
  opacity: .5;
  transition: transform .4s ease, opacity .4s ease;
  cursor: pointer;
}
.carousel-section .carousel__slide.is-active { opacity: 1; cursor: default; }
/* 中心スライドのリンクのみクリック可 */
.carousel-section .carousel__slide .carousel__link { display: block; width: 100%; height: 100%; pointer-events: none; }
.carousel-section .carousel__slide.is-active .carousel__link { pointer-events: auto; }
.carousel-section .carousel__img { width: 100%; height: 100%; display: block; object-fit: contain; }
.carousel-section .carousel__blank {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.carousel-section .carousel__blank-title {
  color: #fff; font-size: 22px; font-weight: bold;
  text-align: center; padding: 0 24px; max-width: 700px;
}
/* YouTube: iframe を直接埋め込み（インライン再生） */
.carousel-section .carousel__youtube { width: 100%; height: 100%; display: block; }
.carousel-section .carousel__youtube iframe { width: 100% !important; height: 100% !important; display: block; border: 0; pointer-events: none; }
.carousel-section .carousel__slide.is-active .carousel__youtube iframe { pointer-events: auto; }
.carousel-section .carousel__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.carousel-section .carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0;
  transition: background .2s;
}
.carousel-section .carousel__dot.is-active { background: #fff; }
.carousel-section .carousel__prev,
.carousel-section .carousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: none;
  font-size: 18px; padding: 12px 14px; cursor: pointer; line-height: 1;
  z-index: 10;
}
.carousel-section .carousel__prev { left: 0; }
.carousel-section .carousel__next { right: 0; }
.carousel-section .carousel__prev:hover,
.carousel-section .carousel__next:hover { background: rgba(0,0,0,.65); }
@media (max-width: 767px) {
  /* SP: center slide幅 = viewport × 75% → height = 75% × 9/16 × 100vw = 42.1875vw */
  .carousel-section .carousel { height: 42.1875vw; }
  .carousel-section .carousel__blank-title { font-size: 16px; }
}

/* ---- 市町村リンク ---- */
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-link { padding: 6px 14px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; color: #555; }
.city-link:hover { background: #f0f4ff; border-color: #3d6bbf; text-decoration: none; }

/* ---- フッター（旧デザイン）: 新デザインは common.css の .footer で定義 ---- */

/* ---- 404ページ ---- */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-size: 96px; font-weight: bold; color: #1a1a2e; line-height: 1; margin-bottom: 8px; letter-spacing: -2px; }
.error-title { font-size: 22px; margin-bottom: 16px; color: #555; }
.error-body { color: #888; margin-bottom: 32px; line-height: 1.8; }
.error-links { margin-top: 24px; }
.error-image { display: block; max-width: 260px; width: 100%; height: auto; margin: 0 auto 24px; }
.error-reason-list { display: inline-block; text-align: left; margin: 16px 0; padding-left: 20px; color: #888; line-height: 1.8; }
.error-links .contact-submit-btn { color: #fff; text-decoration: none; }

/* ---- ページネーション ---- */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; list-style: none; }
.page-item { display: inline-block; padding: 7px 14px; border: 1px solid #dee2e6; border-radius: 3px; font-size: 14px; color: #1a5bab; cursor: pointer; }
.page-item:hover { background: #f0f4ff; text-decoration: none; }
.page-item--current { background: #1a1a2e; color: #fff; border-color: #1a1a2e; cursor: default; }
.page-item--current:hover { background: #1a1a2e; }
.page-ellipsis { border: none; color: #aaa; cursor: default; }
.page-ellipsis:hover { background: transparent; }
.page-next, .page-prev { font-size: 16px; }

/* ---- アイテムセクション（公開画面） ---- */
.item-section { margin-top: 40px; padding-top: 24px; border-top: 2px solid #f0f0f0; }
.item-section-label { font-size: 12px; font-weight: bold; color: #aaa; letter-spacing: 0.08em; margin-bottom: 12px; }
.item-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.item-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  text-decoration: none; color: #333;
  transition: background 0.15s, border-color 0.15s;
}
.item-card:hover { background: #f0f4ff; border-color: #3d6bbf; text-decoration: none; }
.item-card-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: #f8f9fa; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.item-card-name { font-size: 13px; font-weight: bold; color: #1a1a2e; }
.item-card-desc { font-size: 11px; color: #888; margin-top: 2px; }
@media (max-width: 767px) {
  .item-cards { flex-direction: column; }
}

/* ---- バナーセクション（公開画面） ---- */
.banner-section { margin: 32px 0 0; padding-top: 24px; border-top: 2px solid #f0f0f0; }
.banner-section-label { font-size: 11px; font-weight: bold; color: #bbb; letter-spacing: 0.08em; text-align: center; margin-bottom: 10px; }
.banner-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.banner-item { display: block; text-decoration: none; flex-shrink: 0; }
.banner-item:hover { opacity: .85; }
.banner-img-mock {
  background: linear-gradient(135deg, #c0c8d8, #e0e4ed);
  border: 1px solid #d0d4dc; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #888;
}
.banner-img-mock--wide  { width: 300px; height: 60px; }
.banner-img-mock--large { width: 300px; height: 100px; }
@media (max-width: 767px) {
  .banner-list { gap: 8px; }
  .banner-img-mock--wide,
  .banner-img-mock--large { width: 100%; max-width: 300px; }
}

/* ---- 番組表セクション（section4 / js_yobi） ---- */
.section4 { margin: 40px 0; padding-top: 28px; border-top: 2px solid #f0f0f0; }
.tv-timetable-heading { font-size: 14px; font-weight: bold; color: #888; letter-spacing: 0.08em; margin-bottom: 14px; }

/* 曜日ボタン列 */
.yobiBtnList {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.yobiBtn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 14px; font-weight: bold; color: #555;
  background: #f0f0f0; border-radius: 999px;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.yobiBtn:hover { background: #e0e8f8; color: #1a1a2e; text-decoration: none; }
.yobiBtn-active {
  background: #1a1a2e; color: #fff;
  border-color: #1a1a2e;
}

/* カードグリッド（2列 PC / 1列 SP） */
.yobiCardList {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 番組グリッドカード（縦型：画像→タイトル→時間） */
.prog-card { display: block; text-decoration: none; color: inherit; }
.prog-card:hover .carousel-card-img { opacity: .85; }
.prog-card .carousel-card-img { aspect-ratio: 16/9; margin-bottom: 8px; }
.prog-card .carousel-card-title { font-size: 13px; font-weight: bold; color: #1a1a2e; line-height: 1.3; }
.prog-card .carousel-card-meta { font-size: 11px; color: #888; margin-top: 3px; }

/* card2 カードスタイル */
.card2 {
  display: flex; flex-direction: row;
  text-decoration: none; color: inherit;
  border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card2:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); border-color: #3d6bbf; text-decoration: none; }
.card2__head {
  flex-shrink: 0;
  width: 120px;
}
.card2__img {
  width: 100%; height: 100%; min-height: 80px;
  background: linear-gradient(135deg, #c0c8d8, #e0e4ed);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #888;
}
.card2__body {
  padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: center;
}
.card2__title { font-size: 13px; font-weight: bold; color: #1a1a2e; line-height: 1.4; }
.card2__time { font-size: 11px; color: #888; margin-top: 4px; }
.card2__desc { font-size: 12px; color: #666; margin-top: 4px; }

/* SP（〜767px）: 2列 */
@media (max-width: 767px) {
  .yobiCardList { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card2__head { width: 90px; }
}

/* ---- YouTube ライブ配信（緊急時） ---- */
.yt-live { background: #111; color: #fff; padding: 24px 0; }
.yt-live-inner { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.yt-live-badge { background: #e53e3e; color: #fff; font-size: 13px; font-weight: bold; padding: 4px 10px; border-radius: 3px; letter-spacing: .05em; animation: blink 1.2s step-start infinite; }
@keyframes blink { 50% { opacity: .4; } }
.yt-live-label { font-size: 16px; font-weight: bold; }
.yt-live-frame { aspect-ratio: 16/9; max-width: 800px; background: #222; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #555; font-size: 14px; }


/* ---- 最新ニュース（カルーセル：4件表示＋スライド） ---- */
/* news-cards はカルーセルトラックの別名として扱う */
.news-cards {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 16px; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.news-cards::-webkit-scrollbar { display: none; }
.news-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden;
  transition: box-shadow .15s;
  scroll-snap-align: start;
  flex: 0 0 calc(25% - 12px); /* 4件表示 */
  min-width: 200px;
}
.news-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); text-decoration: none; }
.news-card-img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #c0c8d8, #e0e4ed); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #888; }
.news-card-body { padding: 12px; }
.news-card-title { font-size: 14px; font-weight: bold; color: #1a1a2e; line-height: 1.4; margin-bottom: 6px; }
.news-card-date { font-size: 12px; color: #888; }
.section-more { text-align: right; margin-top: 16px; font-size: 13px; }

/* ニュースカルーセルラッパー（prev/nextボタン用） */
.news-carousel { position: relative; padding: 0 28px; }

/* ---- 放送中セクション（program-bg） ---- */
.program-bg { background: #16213e; color: #fff; padding: 24px 0; }
.program-wrapper { display: flex; }
.program-item { flex: 1; padding: 0 28px; }
.program-item + .program-item { border-left: 1px solid rgba(255,255,255,.15); }
.program-day-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.program-day-box1 { display: flex; align-items: center; gap: 10px; }
.program-icon-mock { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: bold; flex-shrink: 0; }
.program-day { font-size: 12px; color: #ffb84d; font-weight: bold; }
.program-day-box2 a { font-size: 12px; color: #7ad0ff; }
.program-day-box2 a:hover { color: #fff; text-decoration: none; }
.program-tv-wrap, .program-radio-wrap { display: flex; flex-wrap: wrap; gap: 14px; }
.program-tv-item, .program-radio-item { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.program-img-mock { width: 60px; height: 45px; background: rgba(255,255,255,.14); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #aaa; flex-shrink: 0; }
.program-tv-item p, .program-radio-item p { font-size: 13px; color: #ddd; }

/* ---- カルーセル ---- */
.carousel { position: relative; padding: 0 28px; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 16px; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; width: 200px; }
.carousel-item a { display: block; text-decoration: none; color: inherit; }
.carousel-item a:hover { text-decoration: none; }
.carousel-card-img { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #c0c8d8, #e0e4ed); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #888; margin-bottom: 8px; transition: opacity .15s; }
.carousel-item a:hover .carousel-card-img { opacity: .85; }
.carousel-card-title { font-size: 13px; font-weight: bold; color: #1a1a2e; line-height: 1.3; }
.carousel-card-meta { font-size: 11px; color: #888; margin-top: 3px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid #ddd; cursor: pointer;
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1); z-index: 1;
}
.carousel-btn:hover { background: #f0f0f0; }
.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }
/* アナウンサー用（円形・縦長） */
.carousel-item--announcer { width: 130px; text-align: center; }
.carousel-item--announcer .carousel-card-img { aspect-ratio: 1/1; border-radius: 50%; }
.carousel-item--announcer .carousel-card-title { font-size: 13px; }

/* 新着コンテンツ用（16:9 横長） */
.carousel-item--wide { width: 280px; }
.carousel-item--wide .carousel-card-img { aspect-ratio: 16/9; border-radius: 6px; }

/* ---- section-header-row ---- */
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header-row .section-title { margin-bottom: 0; }
.section-more-link { font-size: 13px; color: #1a5bab; }
.section-more-link:hover { text-decoration: underline; }

/* ---- カテゴリ: 放送中バナー ---- */
.onair-banner { background: #16213e; border-radius: 8px; padding: 18px 24px; margin: 32px 0 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.onair-banner-badge { background: #e53e3e; color: #fff; font-size: 12px; font-weight: bold; padding: 3px 8px; border-radius: 3px; white-space: nowrap; animation: blink 1.2s step-start infinite; }
.onair-banner-img { width: 100px; height: 56px; background: rgba(255,255,255,.14); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #aaa; flex-shrink: 0; }
.onair-banner-body { flex: 1; }
.onair-banner-title { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.onair-banner-time { font-size: 12px; color: #aaa; }
.onair-banner-link { color: #7ad0ff; font-size: 13px; white-space: nowrap; }
.onair-banner-link:hover { color: #fff; text-decoration: none; }

/* ---- カテゴリ: 番組表リンク ---- */
.timetable-links { display: flex; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; justify-content: center; }
.timetable-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-weight: bold; color: #1a1a2e; text-decoration: none; transition: background .15s; }
.timetable-link-btn:hover { background: #e8eaf6; text-decoration: none; }

/* ---- page.html: SNSリンク ---- */
.sns-links { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 14px 0 28px; }
.sns-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 13px; font-weight: bold; transition: opacity .15s; color: #fff; }
.sns-link:hover { opacity: .8; text-decoration: none; }
.sns-link--x { background: #000; }
.sns-link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sns-link--youtube { background: #ff0000; font-size: 16px; }
.sns-link--line { background: #06c755; }

/* ---- page.html: リード文 ---- */
.page-lead { font-size: 15px; color: #555; line-height: 1.8; margin: 12px 0 28px; }

/* ---- page.html: バナー ---- */
.page-banner-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; justify-content: center; }
.page-banner-item { display: block; text-decoration: none; }
.page-banner-img { width: 300px; height: 100px; background: linear-gradient(135deg, #c0c8d8, #e0e4ed); border: 1px solid #d0d4dc; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #888; transition: opacity .15s; }
.page-banner-item:hover .page-banner-img { opacity: .85; }

/* ---- レスポンシブ追加分 ---- */
@media (max-width: 767px) {
  .news-card { flex: 0 0 calc(50% - 8px); min-width: 160px; } /* SP: 2件表示 */
  .program-wrapper { flex-direction: column; }
  .program-item { padding: 0; }
  .program-item + .program-item { border-left: none; border-top: 1px solid rgba(255,255,255,.15); margin-top: 20px; padding-top: 20px; }
  .carousel { padding: 0 28px; }
  .timetable-links { flex-direction: column; }
  .page-banner-wrap { flex-direction: column; }
  .page-banner-img { width: 100%; max-width: 340px; }
}

/* ---- 会社情報リスト ---- */
.company-nav-list { list-style: none; padding: 0; margin: 0 0 40px; }
.company-nav-list li { border-bottom: 1px solid #e8eaf0; }
.company-nav-list li:first-child { border-top: 1px solid #e8eaf0; }
.company-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 8px; text-decoration: none; color: #1a1a2e;
  transition: background .15s;
}
.company-nav-item:hover { background: #f5f7fa; text-decoration: none; }
.company-nav-item__title { font-size: 15px; font-weight: bold; }
.company-nav-item__arrow { font-size: 18px; color: #aab0c0; flex-shrink: 0; margin-left: 12px; }

/* ---- イベント・スポーツページ ---- */
/* 第2階層カテゴリの絞り込みピル（/cast の .cast-filter-pill と同じ見た目・同じJSフィルター方式） */
.event-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.event-filter-pill {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 20px;
  border: 1.5px solid #c8d4e8;
  font-size: 13px;
  font-weight: bold;
  color: #1a5bab;
  background: #f0f5ff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.event-filter-pill:hover { background: #dde8ff; border-color: #1a5bab; }
.event-filter-pill.is-active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.event-result-count { font-size: 13px; color: #888; margin-bottom: 20px; }
.event-result-count strong { color: #1a1a2e; font-size: 15px; }

.event-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.event-card {
  display: block; text-decoration: none; color: inherit;
}
.event-card:hover .event-card-img,
.event-card:hover .event-card-img-frame { opacity: .85; }
.event-card-img {
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #c0c8d8, #e0e4ed);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #888; margin-bottom: 10px;
  transition: opacity .15s;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* ---- タイル画像表示スタイル（テンプレート管理 image_style） ---- */
/* original: クロップせず画像本来の比率のまま表示 */
.event-card-img--original { aspect-ratio: auto; }
.event-card-img--original img { height: auto; object-fit: contain; }
/* crop_43: 4:3 でクロップ表示（crop_169＝無印は既存の16:9のまま） */
.event-card-img--crop43 { aspect-ratio: 4 / 3; }
/* contain_responsive: レターボックス枠（画像全体を欠けさせずに表示） */
.event-card-img-frame {
  width: 100%; aspect-ratio: 4 / 3; background: #eef1f5;
  border-radius: 6px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 12px; color: #888;
  transition: opacity .15s;
}
.event-card-img-frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; background: transparent; display: block;
}
@media (max-width: 767px) {
  .event-card-img-frame { aspect-ratio: auto; background: none; }
  .event-card-img-frame img { width: 100%; height: auto; max-width: 100%; max-height: none; }
}
.event-card-title {
  font-size: 13px; font-weight: bold; color: #1a1a2e;
  line-height: 1.4; text-align: center;
}
.event-card-meta { font-size: 11px; color: #888; text-align: center; margin-top: 3px; }

/* ---- 番号順カテゴリリスト（汎用テーマ：③リスト表示 表示番号順） ---- */
.cat-num-list { list-style: none; margin: 0; padding: 0; }
.cat-num-item { border-bottom: 1px solid #e8e8e8; }
.cat-num-item:first-child { border-top: 1px solid #e8e8e8; }
.cat-num-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 12px; text-decoration: none; color: #1a1a2e;
  transition: background .12s;
}
.cat-num-link:hover { background: #f0f4ff; text-decoration: none; }
.cat-num-no { font-size: 13px; font-weight: bold; color: #bbb; min-width: 28px; flex-shrink: 0; text-align: right; }
.cat-num-title { flex: 1; font-size: 15px; }
.cat-num-arrow { color: #bbb; font-size: 16px; flex-shrink: 0; }

/* ---- レスポンシブ (SP: 767px以下) ---- */
@media (max-width: 767px) {
  .announcer-grid, .announcer-grid--large { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .announcer-profile { flex-direction: column; align-items: center; text-align: center; }
  .announcer-profile-body { text-align: left; }
  .announcer-profile-img-placeholder { width: 160px; height: 160px; }
  .page-title { font-size: 20px; }
  .section { padding: 32px 0; }
}

/* ============================================================
   GO TOP ボタン（②）
   ============================================================ */
#go-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sidebar-bg, #1a1a2e);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.15s;
  z-index: 900;
}
#go-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#go-top-btn:hover {
  background: #2d3a6b;
}
@media (max-width: 767px) {
  #go-top-btn { bottom: calc(1.75rem + 8px); right: 16px; width: 44px; height: 44px; font-size: 20px; }
}

/* ---- カテゴリページ リスト表示 ---- */
.cat-page-list { list-style: none; padding: 0; margin: 0 0 32px; }
.cat-page-list__item { border-bottom: 1px solid #e8eaf0; }
.cat-page-list__item:first-child { border-top: 1px solid #e8eaf0; }
.cat-page-list__link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 8px; text-decoration: none; color: #1a1a2e;
  transition: background .15s;
}
.cat-page-list__link:hover { background: #f5f7fa; text-decoration: none; }
.cat-page-list__thumb {
  width: 80px; height: 56px; object-fit: contain;
  background: #f0f2f5; border-radius: 4px; flex-shrink: 0;
}
.cat-page-list__body { flex: 1; min-width: 0; }
.cat-page-list__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cat-page-list__date { font-size: 12px; color: #888; margin: 0; }
.cat-page-list__title { font-size: 15px; font-weight: bold; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-page-list__arrow { font-size: 18px; color: #aab0c0; flex-shrink: 0; margin-left: 8px; }

/* ---- NEWバッジ ---- */
.new-badge { display: inline-block; font-size: 10px; font-weight: bold; padding: 1px 6px; letter-spacing: .06em; line-height: 1.6; vertical-align: middle; flex-shrink: 0; }
.new-badge--overlay { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; z-index: 1; pointer-events: none; }
.new-badge--a { background: #e53e3e; color: #fff; border-radius: 3px; }
.new-badge--b { background: #e53e3e; color: #fff; border-radius: 0; }
.new-badge--c { background: #e67e22; color: #fff; border-radius: 3px; }
.new-badge--d { border: 1.5px solid #e53e3e; color: #e53e3e; border-radius: 3px; }
.new-badge--e { background: #e53e3e; color: #fff; border-radius: 3px; font-style: italic; }

/* cat_list テンプレート / お知らせウィジェット: サムネイルなし時のプレースホルダー */
.cat-page-list__thumb--noimg {
  width: 80px; min-width: 80px; height: 56px;
  background: #e8eaf0; border-radius: 4px; flex-shrink: 0;
}
@media (max-width: 767px) {
  .cat-page-list__link { gap: 10px; padding: 12px 4px; }
  .cat-page-list__thumb { width: 64px; height: 44px; }
  .cat-page-list__thumb--noimg { width: 64px; height: 44px; }
  .cat-page-list__title { font-size: 14px; }
}

/* ---- page-pinned-list: 固定ページ＋時系列リストテンプレート ---- */
.pinned-page-body {
  padding: 20px 0 32px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
}
.pinned-page-body p  { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.pinned-page-body h2 { font-size: 16px; font-weight: bold; color: #1a1a2e; margin: 24px 0 12px; }
.pinned-page-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pinned-page-body th,
.pinned-page-body td { border: 1px solid #e0e0e0; padding: 8px 12px; text-align: left; }
.pinned-page-body th { background: #f5f5f5; font-weight: bold; white-space: nowrap; }
.article-list-heading {
  font-size: 17px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1a2e;
}

/* ---- ページネーション（prev/next 型） ---- */
.pagination__btn {
  display: inline-block; padding: 8px 20px;
  border: 1px solid #dee2e6; border-radius: 4px;
  font-size: 14px; color: #1a5bab; background: #fff;
  text-decoration: none; transition: background .15s;
}
.pagination__btn:hover { background: #f0f4ff; text-decoration: none; }
.pagination__btn--disabled {
  color: #aaa; background: #f8f8f8; cursor: default; pointer-events: none;
}
.pagination__info { font-size: 14px; color: #555; padding: 0 12px; }

/* ---- 本文内ドキュメント添付リンク（.doc-attachment） ---- */
.doc-attachment {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid #b0bec5; border-radius: 4px;
  background: #f5f7fa; color: #1a3a5c; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s;
  vertical-align: middle; max-width: 100%; margin: 2px 0;
}
.doc-attachment:hover { background: #e8edf5; border-color: #78909c; text-decoration: none; }
.doc-attachment__icon { font-size: 18px; flex-shrink: 0; }
.doc-attachment__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 拡張子別アイコン */
.doc-attachment[data-ext="pdf"]  .doc-attachment__icon::before { content: "📕"; }
.doc-attachment[data-ext="doc"]  .doc-attachment__icon::before { content: "📘"; }
.doc-attachment[data-ext="docx"] .doc-attachment__icon::before { content: "📘"; }
.doc-attachment[data-ext="xls"]  .doc-attachment__icon::before { content: "📗"; }
.doc-attachment[data-ext="xlsx"] .doc-attachment__icon::before { content: "📗"; }
.doc-attachment[data-ext="ppt"]  .doc-attachment__icon::before { content: "📙"; }
.doc-attachment[data-ext="pptx"] .doc-attachment__icon::before { content: "📙"; }
/* data-ext が指定されている場合はデフォルトの絵文字を非表示にして ::before を使用 */
.doc-attachment[data-ext] .doc-attachment__icon { font-size: 0; }
.doc-attachment[data-ext] .doc-attachment__icon::before { font-size: 18px; }

/* ---- 特設ページ一覧（トップページ グローバルナビ直下） ---- */
.special-page-list {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff3cd;
  border-top: 3px solid #e67e00;
  border-bottom: 3px solid #e67e00;
  padding: 12px 0;
  text-align: center;
}
.special-page-list__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.special-page-list__heading {
  font-size: 14px;
  font-weight: bold;
  color: #c0392b;
  margin: 0;
  white-space: nowrap;
}
.special-page-list__icon { margin-right: 4px; }
.special-page-list__items {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.special-page-list__link {
  display: inline-block;
  padding: 6px 18px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s;
}
.special-page-list__link:hover {
  background: #a93226;
  text-decoration: none;
  color: #fff;
}
.special-page-list__ext-icon { margin-left: 4px; font-size: 12px; }

/* ===== 特設ページ: LJI カテゴリ別ブロック ===== */
#detail-area .lji-update-time {
  font-size: 11px;
  color: rgb(56,182,1);
  text-align: right;
  margin: 0 0 10px;
}
.lji-section {
  margin-bottom: 16px;
  border: 1px solid #c8cdd5;
  border-radius: 3px;
  overflow: hidden;
}
.lji-section-title {
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: #fff;
  background: #1a3560;
  border-left: 5px solid #e8a000;
  line-height: 1.3;
}
.lji-section-body {
  background: #fff;
}
.lji-article {
  padding: 10px 14px;
  border-bottom: 1px solid #e8eaed;
}
.lji-article:last-child {
  border-bottom: none;
}
.lji-article .detail {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
}
.lji-article .publishDate {
  font-size: 11px;
  color: #999;
  margin: 4px 0 0;
}

/* ===== トップページ: 県内ニュース (NewsDigXML) スライダー ===== */
.newsdig-section { background: #f8f8f8; }

/* スライダー外枠: ボタン + ビューポート を横並び */
.newsdig-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 左右ナビゲーションボタン */
.newsdig-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.newsdig-btn:hover:not(:disabled) { background: #5b9bd5; }
.newsdig-btn:disabled { opacity: 0.25; cursor: default; }

/* ビューポート: はみ出したアイテムを隠す */
.newsdig-viewport {
  flex: 1;
  overflow: hidden;
  /* box-shadow が切れないよう上下に余白 */
  padding: 6px 0;
  margin: -6px 0;
  cursor: grab;
}
.newsdig-viewport.is-dragging { cursor: grabbing; }

/* トラック: アイテムを横一列に並べ、JS で translateX */
.newsdig-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* アイテム: 幅は JS が --nd-w を設定（デフォルト 240px） */
.newsdig-item {
  flex: 0 0 var(--nd-w, 240px);
  width: var(--nd-w, 240px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  color: #333;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.newsdig-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  text-decoration: none;
}

.newsdig-item__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}
.newsdig-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.newsdig-item__noimg {
  width: 100%;
  height: 100%;
  background: #d0d8e4;
}

.newsdig-item__date {
  font-size: 12px;
  color: #888;
  padding: 10px 12px 4px;
  line-height: 1.4;
}
.newsdig-item__title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  padding: 0 12px 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===== カテゴリトップページ: 子カテゴリ時系列新着ボックス ===== */
.chrono-box {
  margin: 28px 0;
  padding: 20px 20px 24px;
  background: #f8f8f8;
  border-radius: 8px;
}
.chrono-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.chrono-box__title {
  font-size: 17px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 0;
}
.chrono-box__more {
  font-size: 13px;
  color: #5b9bd5;
  text-decoration: none;
  white-space: nowrap;
}
.chrono-box__more:hover { text-decoration: underline; }

/* 天気ページ共通画像スタイル */
.weather-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ─── サイト内検索ページ ─── */
.search-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* 検索フォーム */
.search-page-form {
  margin-bottom: 24px;
}
.search-page-form-inner {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 16px;
  gap: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32,33,36,.1);
  transition: box-shadow .2s;
}
.search-page-form-inner:focus-within {
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
}
.search-page-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #202124;
  background: transparent;
}
.search-page-input::placeholder { color: #9aa0a6; }
.search-page-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  color: #4285f4;
  font-weight: bold;
}
.search-page-btn:hover { text-decoration: underline; }

/* 件数サマリ */
.search-page-summary {
  font-size: 14px;
  color: #70757a;
  margin-bottom: 20px;
}
.search-page-summary strong { color: #202124; }
.search-page-count {
  margin-left: 4px;
}

/* 検索結果リスト */
.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-result-item {
  padding: 12px 0;
  border-bottom: 1px solid #ebebeb;
}
.search-result-item:last-child { border-bottom: none; }

/* URL パス（緑） */
.search-result-url {
  font-size: 13px;
  color: #188038;
  margin-bottom: 3px;
  word-break: break-all;
}

/* タイトル（青リンク） */
.search-result-title {
  display: block;
  font-size: 18px;
  color: #1a0dab;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
}
.search-result-title:hover { text-decoration: underline; }
.search-result-title:visited { color: #681da8; }

/* 日付 */
.search-result-date {
  font-size: 13px;
  color: #70757a;
}

/* 0件メッセージ */
.search-no-result {
  font-size: 15px;
  color: #202124;
  padding: 24px 0;
}

@media (max-width: 600px) {
  .search-page { padding: 20px 12px 48px; }
  .search-result-title { font-size: 16px; }
}
