/*
 * fm-kimotsuki.css
 * ＦＭきもつき 専用スタイル
 *
 * 読み込み順：style.css → fm-kimotsuki.css
 * 役割：CSS変数の上書きによるブランドカラー切り替え＋FM局固有UI
 *
 * 配置場所：/wp-content/themes/ojmc/assets/css/fm-kimotsuki.css
 * functions.php での読み込み：ojmc_scripts() 内で wp_enqueue_style('fm-kimotsuki', ...)
 */

/* ============================================================
   1. CSS変数の上書き（ここだけ変えれば全体の色が切り替わる）
   ============================================================ */
:root {
    /* ---- メインカラー：明るい青（ラジオ局らしい活発さ） ---- */
    --osumi-navy:       #0077CC;   /* 大隅テーマの濃紺 → FM青に */
    --color-main:       #0077CC;

    /* ---- アクセントカラー：赤橙（親しみやすく元気な印象） ---- */
    --osumi-orange:     #FF6B35;   /* 大隅テーマの暖オレンジ → FM赤橙に */
    --color-accent:     #FF6B35;

    /* ---- 背景色：白基調（すっきり明るく） ---- */
    --osumi-bg:         #FFFFFF;
    --bg-light-gray:    #F0F7FF;   /* 薄い水色がかったグレー */
    --bg-paper:         #F8FBFF;

    /* ---- テキスト色：やや柔らかく ---- */
    --osumi-text:       #2D3748;
    --color-text:       #2D3748;
    --color-sub:        #4A5568;

    /* ---- フォント：見出しもSansに統一（親しみやすさ優先） ---- */
    --font-serif:       'Noto Sans JP', sans-serif;
    --font-sans:        'Noto Sans JP', sans-serif;

    /* ---- FM固有変数（新規追加） ---- */
    --fm-blue:          #0077CC;
    --fm-blue-dark:     #005599;
    --fm-blue-light:    #E6F3FB;
    --fm-orange:        #FF6B35;
    --fm-orange-light:  #FFF0EB;

    /* ---- ベーズフォントサイズ：大きめ（シニア層にも読みやすく） ---- */
    --base-font-size:   17px;
}

/* ============================================================
   2. ベースフォントサイズ上書き
   ============================================================ */
html {
    font-size: var(--base-font-size);
}

/* ============================================================
   3. ヘッダー：青背景に白ナビ
   ============================================================ */
.header {
    background: var(--fm-blue);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 119, 204, 0.2);
}

/* ロゴテキストを白に */
.site-name {
    color: #ffffff;
}

/* ロゴ画像の右に局名・周波数を表示するサブテキスト */
.logo-text .site-freq {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* PCナビリンクを白に */
.global-nav ul li a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}
.global-nav ul li a:hover {
    color: #ffffff;
    opacity: 1;
}
.global-nav ul li a.current-menu-item,
.global-nav ul li a.current_page_item {
    color: #ffffff;
    border-bottom: 2px solid var(--fm-orange);
    padding-bottom: 2px;
}

/* 検索ボックスを透明白に */
.search-box .search-form {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
}
.search-box input[type="search"] {
    color: #ffffff;
    width: 140px;
}
.search-box input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.search-box button[type="submit"] {
    color: rgba(255, 255, 255, 0.8);
}

/* ハンバーガーボタンのラインを白に（ヘッダーが青のため） */
.sp-nav-trigger span {
    background-color: #ffffff;
}

/* スマホメニュー展開時の背景 */
.sp-nav-content {
    background: var(--fm-blue-dark);
}

/* ============================================================
   4. FM＋＋ リスニングバー
      ヘッダー直下に「今放送中」を常時表示するバー
   ============================================================ */
.fmpp-listening-bar {
    background: var(--fm-orange);
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fmpp-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.fmpp-onair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    /* 点滅アニメーション */
    animation: fmpp-blink 1.4s ease-in-out infinite;
}

@keyframes fmpp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.fmpp-bar-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmpp-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: var(--fm-orange);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}
.fmpp-bar-btn:hover {
    filter: brightness(0.95);
    opacity: 1;
}

@media (max-width: 480px) {
    .fmpp-listening-bar {
        padding: 7px 16px;
    }
    .fmpp-bar-text {
        font-size: 0.78rem;
    }
}

/* ON AIR表示（現在放送中の番組がある場合） */
.fmpp-listening-bar.is-onair-live .fmpp-bar-left {
    flex: 1;
}
.fmpp-listening-bar.is-onair-live .fmpp-bar-text strong {
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-right: 1px;
}

/* ============================================================
   5. ボタン上書き
   ============================================================ */
.btn-primary {
    background: var(--fm-blue);
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background: var(--fm-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 85, 153, 0.35);
}

.btn-accent {
    background: var(--fm-orange);
    color: #ffffff;
    border: 2px solid var(--fm-orange);
}
.btn-accent:hover {
    filter: brightness(1.08);
    opacity: 1;
}

/* ============================================================
   6. セクション見出し上書き
   ============================================================ */
.section-title {
    color: var(--fm-blue);
}

/* 左ボーダー型見出しのアクセントライン */
.fm-section-title,
.index-widget-title,
.widget-title {
    border-color: var(--fm-blue);
    color: var(--fm-blue);
}

/* ============================================================
   7. 記事カード（news-card）上書き
   ============================================================ */
.news-card:hover {
    border-color: var(--fm-orange);
    box-shadow: 0 12px 20px rgba(0, 119, 204, 0.1);
}

.news-tag {
    background: var(--fm-blue);
    color: #ffffff;
    font-size: 0.82rem;
    border-radius: 4px;
}

/* ============================================================
   8. フッター上書き
   ============================================================ */
.footer {
    background-color: var(--fm-blue-dark);
}

/* ============================================================
   9. ウィジェット・サイドバー上書き
   ============================================================ */
.widget-title {
    border-bottom-color: var(--fm-orange);
    color: var(--fm-blue);
}

/* ============================================================
   10. ページネーション上書き
   ============================================================ */
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.index-pagination .page-numbers.current,
.index-pagination .page-numbers:hover {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    color: #ffffff;
}

/* ============================================================
   11. 番組表ページ専用スタイル
   ============================================================ */

/* ページヘッダー */
.program-page-header {
    background: var(--fm-blue);
    padding: 24px 0 28px;
    border-bottom: 3px solid var(--fm-orange);
    text-align: center;
}
.program-page-header h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.program-page-header p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    margin: 0;
}

/* FM局バッジ（3局表示） */
.program-network-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.program-network-badge {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* FM＋＋ リンクバー（番組表ページ内） */
.program-fmpp-bar {
    background: var(--fm-blue-light);
    border-radius: 8px;
    padding: 11px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.program-fmpp-bar p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fm-blue);
    margin: 0;
}
.program-fmpp-link {
    display: inline-block;
    background: var(--fm-blue);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.program-fmpp-link:hover {
    background: var(--fm-blue-dark);
    opacity: 1;
}

/* 曜日タブ */
.program-day-tabs {
    background: #ffffff;
    border-bottom: 0.5px solid #e2e8f0;
    padding: 0 16px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.program-day-tabs::-webkit-scrollbar {
    display: none;
}
.program-day-tab {
    flex-shrink: 0;
    padding: 11px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #718096;
    border-bottom: 3px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.program-day-tab:hover {
    color: var(--fm-blue);
}
.program-day-tab.is-active {
    color: var(--fm-blue);
    border-bottom-color: var(--fm-blue);
}
.program-day-tab-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.program-day-tab .today-badge {
    display: inline-block;
    font-size: 0.62rem;
    background: var(--fm-orange);
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.5;
}

/* 番組カード */
.program-card {
    background: #ffffff;
    border: 0.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 6px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.2s ease;
}
.program-card:hover {
    box-shadow: 0 2px 12px rgba(0, 119, 204, 0.1);
}
.program-card.is-onair {
    border-color: var(--fm-orange);
    border-width: 1.5px;
    background: #fffaf7;
}
.program-card.is-music {
    background: var(--bg-light-gray);
}

/* 時刻列 */
.program-time-col {
    min-width: 56px;
    text-align: center;
    flex-shrink: 0;
}
.program-time-start {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fm-blue);
    line-height: 1;
}
.program-time-end {
    font-size: 0.72rem;
    color: #718096;
    margin-top: 3px;
}

/* 縦の区切り線 */
.program-divider {
    width: 0.5px;
    background: #e2e8f0;
    flex-shrink: 0;
    align-self: stretch;
}

/* 番組情報列 */
.program-info {
    flex: 1;
    min-width: 0;
}
.program-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.program-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.program-tag-live    { background: var(--fm-orange-light); color: var(--fm-orange); }
.program-tag-rec     { background: #EDE7F6; color: #6A1B9A; }
.program-tag-re      { background: #E0F2F1; color: #00695C; }
.program-tag-music   { background: #f0f0f0; color: #718096; }
.program-tag-network { background: var(--fm-blue-light); color: var(--fm-blue); }

.program-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--osumi-text);
    margin: 0 0 3px;
    line-height: 1.4;
}
.program-detail {
    font-size: 0.78rem;
    color: #718096;
    margin: 0;
    line-height: 1.65;
}
.program-music-text {
    font-size: 0.88rem;
    color: #a0aec0;
    font-style: italic;
    margin: 0;
}

/* 放送中カードのアクションボタン（FM＋＋で聴く／シェア） */
.program-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.program-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.5;
    transition: filter 0.2s ease;
    font-family: inherit;
}
.program-card-btn:hover {
    filter: brightness(1.08);
    opacity: 1;
}
.program-card-btn-listen {
    background: var(--fm-orange);
    color: #ffffff;
}
.program-card-btn-share {
    background: var(--fm-white, #ffffff);
    color: var(--fm-blue);
    border: 1px solid var(--fm-blue);
}

/* 時間帯の区切り見出し */
.program-time-block {
    margin-top: 20px;
}
.program-time-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fm-blue);
    padding: 5px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.program-time-heading::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: #e2e8f0;
}

/* PDF ダウンロードバー */
.program-pdf-bar {
    background: #ffffff;
    border: 0.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}
.program-pdf-bar p {
    font-size: 0.88rem;
    color: var(--osumi-text);
    margin: 0;
}
.program-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--fm-orange);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}
.program-pdf-link:hover {
    filter: brightness(1.08);
    opacity: 1;
}

/* ============================================================
   12. 局についてページ（広告料・会員募集）
   ============================================================ */
.station-page-header {
    background: var(--fm-blue);
    padding: 20px 0 22px;
    border-bottom: 3px solid var(--fm-orange);
}
.station-page-header h1 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.station-page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    margin: 0;
}

/* 料金テーブルのアクセントライン */
.ad-table th {
    background: var(--fm-blue);
}
.ad-price-em {
    font-weight: 700;
    color: var(--fm-blue);
}
.ad-price-or {
    font-weight: 700;
    color: var(--fm-orange);
}

/* ============================================================
   13. レスポンシブ補完（スマホ優先）
   ============================================================ */

/* タップ領域を十分に確保 */
@media (max-width: 768px) {
    /* ナビリンクのタップ領域 */
    .sp-nav-list li a {
        display: block;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 44px;
        line-height: 1.5;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    /* 番組カードをスマホ向けにコンパクトに */
    .program-card {
        padding: 11px 12px;
        gap: 10px;
    }
    .program-time-start {
        font-size: 0.95rem;
    }
    .program-name {
        font-size: 0.88rem;
    }
    .program-detail {
        font-size: 0.72rem;
    }

    /* FM＋＋バーをスマホで1行に収める */
    .fmpp-listening-bar {
        gap: 8px;
    }

    /* 記事カードグリッドを1カラムに */
    .index-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* フォントサイズを少し下げる（極小画面） */
    html {
        font-size: 15px;
    }

    /* ボタンを全幅に */
    .btn-primary,
    .btn-accent {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* 番組表の曜日タブを小さく */
    .program-day-tab {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}

/* ハンバーガーメニュー展開中は背景スクロールを止める */
body.is-sp-nav-open {
    overflow: hidden;
}

/* ============================================================
   14. トップページ専用スタイル（front-page.php）
   ============================================================ */

/* Hero */
.fm-hero {
    background: var(--fm-blue);
    padding: 40px 0 44px;
}
.fm-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.fm-hero-text {
    flex: 1;
    min-width: 0;
}
.fm-hero-kicker {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.fm-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 14px;
}
.fm-hero-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin: 0 0 22px;
}
.fm-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.7);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    opacity: 1;
}

/* 周波数バッジ */
.fm-hero-badge {
    flex-shrink: 0;
}
.fm-freq-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
}
.fm-freq-num {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.fm-freq-mhz {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-bottom: 8px;
}
.fm-freq-name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .fm-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .fm-hero-badge {
        display: none; /* SPでは非表示 */
    }
    .fm-hero {
        padding: 28px 0 32px;
    }
}

/* セクション共通 */
.fm-section {
    padding: 40px 0;
}
.fm-today-section {
    background: #ffffff;
}
.fm-rajirogo-section {
    background: var(--bg-light-gray);
}
.fm-about-section {
    background: var(--fm-blue-dark);
    padding: 48px 0;
}
.fm-about-section .fm-section-title {
    color: #ffffff;
}

/* セクション見出し上部の小さなラベル（「最新記事」など） */
.fm-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--fm-orange);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.fm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.fm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fm-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 左に青いボーダーを添えるバリエーション（ラジログ見出しなど） */
.fm-section-title-bordered {
    border-left: 4px solid var(--fm-blue);
    padding-left: 10px;
}

/* 「週間番組表を見る」リンクの配置（本日の番組表の下・右寄せ） */
.fm-week-link-wrap {
    text-align: right;
    margin-top: 14px;
}
.fm-week-link-wrap .fm-more-link {
    display: inline-block;
}
.fm-today-day {
    font-size: 0.82rem;
    font-weight: 400;
    color: #718096;
    margin-left: 4px;
}
.fm-more-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fm-blue);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.fm-more-link:hover {
    opacity: 0.75;
}

/* 番組なし表示 */
.fm-program-empty {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    background: var(--bg-light-gray);
    border-radius: 10px;
}

/* サムネイルプレースホルダー */
.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--fm-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* 記事カードグリッド */
.fm-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .fm-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .fm-card-grid { grid-template-columns: 1fr; }
}

/* 局について */
.fm-about-desc {
    text-align: center;
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    margin: 0 0 28px;
}
.fm-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .fm-about-grid { grid-template-columns: 1fr; }
}
.fm-about-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.fm-about-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-3px);
    opacity: 1;
}
.fm-about-icon {
    font-size: 2rem;
}
.fm-about-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.fm-about-card-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}
.fm-about-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fm-orange);
    margin-top: 4px;
}

/* FAX・メモ */
.fm-fax-note {
    text-align: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-top: 4px;
}
.fm-fax-note p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.7;
}
.fm-fax-note strong {
    color: #ffffff;
    font-size: 1rem;
}
.fm-fax-note a {
    color: var(--fm-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   15. 番組表ページレイアウト（page-program.php）
   ============================================================ */

/* 2カラムレイアウト */
.program-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    padding: 24px 0 60px;
}
.program-main {
    flex: 1;
    min-width: 0;
}
.program-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 80px; /* ヘッダー高さ分 */
}

@media (max-width: 1024px) {
    .program-layout {
        flex-direction: column;
    }
    .program-sidebar {
        width: 100%;
        position: static;
    }
}

/* 凡例バー */
.program-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 8px;
    margin-bottom: 12px;
}
.program-legend-note {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}
@media (max-width: 480px) {
    .program-legend-note { margin-left: 0; width: 100%; }
}

/* お知らせバー（番組内容変更の可能性など） */
.program-notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fm-blue-light);
    border-radius: 8px;
    padding: 11px 16px;
    margin-bottom: 16px;
}
.program-notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}
.program-notice-bar p {
    font-size: 0.82rem;
    color: var(--fm-blue);
    margin: 0;
    line-height: 1.6;
}

/* 番組なし */
.program-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
    background: var(--color-background-secondary);
    border-radius: 10px;
    font-size: 0.92rem;
}

/* 曜日パネル */
.program-day-panel {
    display: none;
}
.program-day-panel.is-active {
    display: block;
}

/* ============================================================
   16. 番組表サイドバー
   ============================================================ */

/* FM＋＋ 大ボタン */
.program-sidebar-fmpp {
    background: var(--fm-blue);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}
.program-sidebar-fmpp-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
}
.program-sidebar-fmpp-btn {
    display: block;
    background: var(--fm-orange);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
    transition: filter 0.2s ease;
    margin-bottom: 10px;
}
.program-sidebar-fmpp-btn:hover {
    filter: brightness(1.08);
    opacity: 1;
}
.program-sidebar-fmpp-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.6;
}

/* ネットワーク情報 */
.program-sidebar-network {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-top: 3px solid var(--fm-blue);
    border-radius: 4px;
    padding: 18px 16px;
    margin-bottom: 16px;
}
.program-sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fm-blue);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}
.program-sidebar-stations {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.program-sidebar-stations li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--color-border-tertiary);
    font-size: 0.88rem;
}
.program-sidebar-stations li:last-child {
    border-bottom: none;
}
.program-sidebar-stations li.station-current {
    font-weight: 700;
    color: var(--fm-blue);
}
.station-freq {
    font-size: 0.82rem;
    color: var(--fm-orange);
    font-weight: 700;
}
.program-sidebar-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* お問い合わせ */
.program-sidebar-contact {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-top: 3px solid var(--fm-orange);
    border-radius: 4px;
    padding: 18px 16px;
    margin-bottom: 16px;
}

/* ============================================================
   17. PDF一覧・局についてページ共通レイアウト
   ============================================================ */

/* 2カラムレイアウト（メイン＋サイドバー） */
.pdf-list-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    padding: 28px 0 60px;
}
.pdf-list-main {
    flex: 1;
    min-width: 0;
}
.pdf-list-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}
@media (max-width: 1024px) {
    .pdf-list-layout {
        flex-direction: column;
    }
    .pdf-list-sidebar {
        width: 100%;
        position: static;
    }
}

/* 本文（広告料・会員募集用） */
.about-entry-content {
    font-size: 1rem;
    line-height: 1.85;
}
.about-entry-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fm-blue);
    border-left: 3px solid var(--fm-blue);
    padding-left: 10px;
    margin: 28px 0 14px;
}
.about-entry-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-blue);
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}
.about-entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 20px;
}
.about-entry-content th {
    background: var(--fm-blue);
    color: #ffffff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
}
.about-entry-content td {
    padding: 9px 12px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
    background: var(--color-background-primary);
    vertical-align: top;
}
.about-entry-content tr:nth-child(even) td {
    background: var(--color-background-secondary);
}
.about-entry-content .wp-block-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
}
.about-entry-content .wp-block-file a {
    color: var(--fm-blue);
    font-weight: 700;
    font-size: 0.92rem;
}
.about-entry-content .wp-block-file__button {
    background: var(--fm-blue) !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    padding: 5px 14px !important;
}

/* ============================================================
   18. PDFカードリスト
   ============================================================ */
.pdf-list-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}
.pdf-list-count-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fm-blue);
    margin: 0 0 4px;
}
.pdf-list-note {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin: 0;
}
.pdf-list-intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

/* PDFカード */
.pdf-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdf-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}
.pdf-card:hover {
    box-shadow: 0 2px 12px rgba(0, 119, 204, 0.1);
}
.pdf-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}
.pdf-card-body {
    flex: 1;
    min-width: 0;
}
.pdf-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.pdf-card-year {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--fm-blue-light);
    color: var(--fm-blue);
    padding: 2px 8px;
    border-radius: 20px;
}
.pdf-card-date {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
}
.pdf-card-size {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}
.pdf-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 3px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-card-desc {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}
.pdf-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.pdf-card-btn {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: filter 0.2s ease;
}
.pdf-card-btn:hover {
    filter: brightness(1.08);
    opacity: 1;
}
.pdf-card-btn-view {
    background: var(--fm-blue);
    color: #ffffff;
}
.pdf-card-btn-dl {
    background: var(--fm-orange-light);
    color: var(--fm-orange);
    border: 1px solid var(--fm-orange);
}

/* PDFなし */
.pdf-list-empty {
    text-align: center;
    padding: 50px 24px;
    background: var(--color-background-secondary);
    border-radius: 10px;
    border: 1px dashed var(--color-border-tertiary);
}
.pdf-list-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}
.pdf-list-empty-text {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin: 0 0 16px;
}
.pdf-list-admin-note {
    font-size: 0.82rem;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 6px;
    padding: 12px 14px;
    color: #555;
    text-align: left;
    line-height: 1.7;
}
.pdf-list-admin-note a {
    color: var(--fm-blue);
    font-weight: 700;
}

@media (max-width: 600px) {
    .pdf-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pdf-card-actions {
        flex-direction: row;
        width: 100%;
    }
    .pdf-card-btn {
        flex: 1;
    }
    .pdf-card-size {
        margin-left: 0;
    }
}

/* ============================================================
   19. フッター（footer.php）
   ============================================================ */

.footer {
    background-color: var(--fm-blue-dark);
    margin-top: 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
}

/* ---- 上段 ---- */
.footer-top {
    background: var(--fm-blue-dark);
    padding: 40px 0 32px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.footer-top-inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* ブランドエリア */
.footer-brand {
    flex-shrink: 0;
    width: 200px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: var(--fm-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}
.footer-logo-text {
    display: flex;
    flex-direction: column;
}
.footer-site-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.footer-site-freq {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
}
.footer-brand-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin: 0 0 16px;
}
.footer-fmpp-btn {
    display: block;
    background: var(--fm-orange);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: filter 0.2s ease;
}
.footer-fmpp-btn:hover {
    filter: brightness(1.1);
    opacity: 1;
}

/* ナビエリア */
.footer-nav-area {
    display: flex;
    gap: 36px;
    flex: 1;
    flex-wrap: wrap;
}
.footer-nav-col {
    min-width: 120px;
}
.footer-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fm-orange);
    margin: 0 0 10px;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-nav-list li {
    border: none;
    padding: 0;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.65);
}
.footer-nav-list li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}
.footer-nav-list li a:hover {
    color: #ffffff;
    opacity: 1;
}

/* ---- 下段 ---- */
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 14px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* フッターナビメニュー（WordPressナビ） */
.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links li a:hover {
    color: #ffffff;
    opacity: 1;
}

/* コピーライト */
.copyright {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    text-align: right;
    line-height: 1.6;
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
    .footer-top-inner {
        flex-direction: column;
        gap: 28px;
    }
    .footer-brand {
        width: 100%;
    }
    .footer-fmpp-btn {
        max-width: 220px;
    }
    .footer-nav-area {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        padding: 28px 0 24px;
    }
    .footer-nav-area {
        flex-direction: column;
        gap: 20px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .copyright {
        text-align: left;
    }
    .footer-links {
        gap: 12px;
    }
}

/* ============================================================
   20. サイドバー共通パーツ（page-about / page-pdf-list / page-program 共通）
       インラインstyle を分離してクラス化
   ============================================================ */

/* FM＋＋ ウィジェットボックス */
.sidebar-fmpp-box {
    background: var(--fm-blue);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.sidebar-fmpp-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin: 0 0 10px;
}
.sidebar-fmpp-box-btn {
    display: block;
    background: var(--fm-orange);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: filter 0.2s ease;
}
.sidebar-fmpp-box-btn:hover {
    filter: brightness(1.08);
    opacity: 1;
}
.sidebar-fmpp-box-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    margin: 8px 0 0;
}

/* Instagram ウィジェットボックス */
.sidebar-instagram-box {
    background: linear-gradient(135deg, #405DE6 0%, #C13584 50%, #FD1D1D 100%);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.sidebar-instagram-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px;
}
.sidebar-instagram-box-btn {
    display: block;
    background: #ffffff;
    color: #C13584;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: filter 0.2s ease;
}
.sidebar-instagram-box-btn:hover {
    filter: brightness(0.95);
    opacity: 1;
}
.sidebar-instagram-box-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    margin: 8px 0 0;
}

/* サイドバー内 お問い合わせ・ナビ共通テキスト */
.sidebar-contact-desc {
    font-size: 0.82rem;
    color: var(--fm-sub);
    line-height: 1.7;
    margin-bottom: 10px;
}
.sidebar-contact-tel {
    font-size: 0.88rem;
    margin-bottom: 5px;
}
.sidebar-contact-mail {
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.sidebar-contact-mail a {
    color: var(--fm-blue);
    text-decoration: none;
}
.sidebar-contact-mail a:hover {
    opacity: 0.75;
}
.sidebar-btn-full {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    padding: 10px;
}

/* サイドバー内 局についてナビ */
.sidebar-about-nav {
    margin-top: 16px;
}
.sidebar-about-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-about-nav-item {
    border-bottom: 0.5px solid var(--fm-border);
}
.sidebar-about-nav-item:last-child {
    border-bottom: none;
}
.sidebar-about-nav-link {
    display: flex;
    align-items: center;
    padding: 9px 4px;
    font-size: 0.88rem;
    color: var(--fm-text);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sidebar-about-nav-link:hover {
    color: var(--fm-blue);
    opacity: 1;
}
.sidebar-about-nav-link.is-current {
    color: var(--fm-blue);
    font-weight: 700;
}

/* 番組表ページ：管理者向けメモ */
.program-admin-memo {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
}
.program-admin-memo a {
    color: var(--fm-blue);
    font-weight: 700;
}

/* 番組表ページ：曜日タブの日付表示 */
.program-day-date {
    display: block;
    font-size: 0.7rem;
    color: #a0aec0;
}
.program-day-date.is-today {
    color: inherit;
}

/* 番組表ページ：PDFリンク（準備中状態） */
.program-pdf-link-disabled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #aaa;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: default;
}

/* サイドバー お問い合わせ内のリンク */
.sidebar-mail-link {
    color: var(--fm-blue);
    text-decoration: none;
}
.sidebar-mail-link:hover {
    opacity: 0.75;
}

/* ============================================================
   21. お問い合わせフォーム（Contact Form 7）スタイル
       固定ページ本文（.entry-content / .about-entry-content）内に
       CF7ショートコードを貼り付けた場合に適用される。
       CF7本体のマークアップ（.wpcf7 / .wpcf7-form 等）を
       上書きし、フォーム全体をカード状に見せる。
   ============================================================ */

/* フォーム全体をカードで囲む */
.entry-content .wpcf7-form {
    background: var(--fm-white, #ffffff);
    border: 0.5px solid var(--fm-border, #E2E8F0);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 2px 14px rgba(0, 119, 204, 0.06);
}

@media (max-width: 480px) {
    .entry-content .wpcf7-form {
        padding: 20px 18px;
        border-radius: 10px;
    }
}

/* 各項目の間隔（CF7は既定で<p>タグで各項目を囲む） */
.entry-content .wpcf7-form p {
    margin-bottom: 20px;
}
.entry-content .wpcf7-form p:last-child {
    margin-bottom: 0;
}

/* ラベル文字 */
.entry-content .wpcf7-form label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--fm-text, #2D3748);
    margin-bottom: 7px;
}

/* 入力欄の折り返し（CF7が自動生成するspan） */
.entry-content .wpcf7-form-control-wrap {
    display: block;
}

/* テキスト・メール・電話・URL・数値・セレクト共通 */
.entry-content .wpcf7-form input[type="text"],
.entry-content .wpcf7-form input[type="email"],
.entry-content .wpcf7-form input[type="tel"],
.entry-content .wpcf7-form input[type="url"],
.entry-content .wpcf7-form input[type="number"],
.entry-content .wpcf7-form input[type="date"],
.entry-content .wpcf7-form select,
.entry-content .wpcf7-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--fm-text, #2D3748);
    background: var(--fm-bg, #F7FAFC);
    border: 1.5px solid var(--fm-border, #E2E8F0);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.entry-content .wpcf7-form textarea {
    min-height: 150px;
    line-height: 1.7;
    resize: vertical;
}

/* フォーカス時 */
.entry-content .wpcf7-form input:focus,
.entry-content .wpcf7-form select:focus,
.entry-content .wpcf7-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--fm-blue);
    box-shadow: 0 0 0 3px var(--fm-blue-light, #E6F3FB);
}

/* チェックボックス・ラジオボタン */
.entry-content .wpcf7-form .wpcf7-checkbox,
.entry-content .wpcf7-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.entry-content .wpcf7-form .wpcf7-list-item {
    margin: 0;
}
.entry-content .wpcf7-form .wpcf7-list-item-label {
    font-size: 0.9rem;
    color: var(--fm-text, #2D3748);
    margin-left: 6px;
}

/* 必須マーク（CF7の [text* your-name] は自動で <span class="wpcf7-form-control-wrap"> のみ。
   本文側で「お名前（必須）」のように手入力している場合の強調表示） */
.entry-content .wpcf7-form label .required,
.entry-content .wpcf7-form label em {
    color: var(--fm-orange);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 4px;
}

/* 入力エラー表示 */
.entry-content .wpcf7-form input.wpcf7-not-valid,
.entry-content .wpcf7-form textarea.wpcf7-not-valid,
.entry-content .wpcf7-form select.wpcf7-not-valid {
    border-color: var(--fm-orange);
    background: var(--fm-orange-light, #FFF0EB);
}
.entry-content .wpcf7-not-valid-tip {
    display: block;
    font-size: 0.78rem;
    color: var(--fm-orange);
    margin-top: 6px;
    font-weight: 600;
}

/* 送信ボタン */
.entry-content .wpcf7-form input[type="submit"] {
    display: inline-block;
    background: var(--fm-orange);
    color: #ffffff;
    border: none;
    font-size: 0.96rem;
    font-weight: 700;
    padding: 13px 42px;
    border-radius: 50px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}
.entry-content .wpcf7-form input[type="submit"]:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.entry-content .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}
.entry-content .wpcf7-form input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* 送信中スピナー位置調整 */
.entry-content .wpcf7-form .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

/* 送信完了・エラーメッセージ */
.entry-content .wpcf7-response-output {
    margin-top: 20px !important;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.7;
    border-width: 1.5px !important;
}
.entry-content .wpcf7-form.sent .wpcf7-response-output {
    color: #1b7a4d;
    background: #EAF7EF;
    border-color: #1b7a4d !important;
}
.entry-content .wpcf7-form.failed .wpcf7-response-output,
.entry-content .wpcf7-form.aborted .wpcf7-response-output,
.entry-content .wpcf7-form.spam .wpcf7-response-output {
    color: var(--fm-orange);
    background: var(--fm-orange-light, #FFF0EB);
    border-color: var(--fm-orange) !important;
}
.entry-content .wpcf7-form.invalid .wpcf7-response-output {
    color: #B23B00;
    background: #FFF4EE;
    border-color: #FF6B35 !important;
}

/* ============================================================
   22. トップページ 2カラムレイアウト（front-page.php）
       「本日の番組表」をサイドバーへ移動し、メインは
       お知らせ／ラジログ／局について を縦積みで表示する。
   ============================================================ */

.fm-front-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0 70px;
}
.fm-front-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.fm-front-block {
    /* お知らせ／ラジログ／局について 各ブロック共通の余白リセット用 */
}
.fm-front-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

@media (max-width: 1024px) {
    .fm-front-layout {
        flex-direction: column;
        padding: 28px 0 50px;
        gap: 8px;
    }
    .fm-front-main {
        gap: 36px;
    }
    .fm-front-sidebar {
        width: 100%;
        position: static;
        /* スマホでは「本日の番組」を一番上に表示する */
        order: -1;
        margin-bottom: 28px;
    }
}

/* ---- サイドバー：本日の番組（現在＋次のみの簡易表示） ---- */
.fm-sidebar-now,
.fm-sidebar-next {
    padding: 10px 0 12px;
    border-bottom: 0.5px solid var(--fm-border, #E2E8F0);
}
.fm-sidebar-next:last-of-type {
    border-bottom: none;
}
.fm-sidebar-now-label,
.fm-sidebar-next-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 7px;
}
.fm-sidebar-now-label {
    background: var(--fm-orange-light);
    color: var(--fm-orange);
}
.fm-sidebar-next-label {
    background: var(--fm-blue-light);
    color: var(--fm-blue);
}
.fm-sidebar-now-title,
.fm-sidebar-next-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fm-text);
    margin: 0 0 3px;
    line-height: 1.5;
}
.fm-sidebar-now-time,
.fm-sidebar-next-time {
    font-size: 0.78rem;
    color: var(--fm-sub);
    margin: 0;
}
.fm-sidebar-empty {
    font-size: 0.82rem;
    color: var(--fm-sub);
    padding: 8px 0 4px;
    margin: 0;
    line-height: 1.7;
}

/* ---- メインカラム内、局についてカード（白背景向けライトテーマ） ---- */
.fm-about-desc-light {
    color: var(--fm-sub);
    font-size: 0.92rem;
    margin: 0 0 20px;
    line-height: 1.75;
}
.fm-about-card-light {
    background: var(--fm-white, #fff);
    border: 0.5px solid var(--fm-border, #E2E8F0);
    color: var(--fm-text);
}
.fm-about-card-light:hover {
    background: var(--fm-blue-light);
    border-color: var(--fm-blue);
    opacity: 1;
}
.fm-about-card-light .fm-about-card-title {
    color: var(--fm-blue);
}
.fm-about-card-light .fm-about-card-desc {
    color: var(--fm-sub);
}
.fm-about-card-light .fm-about-card-link {
    color: var(--fm-orange);
}

/* ---- メインカラム内、FAX案内（白背景向けライトテーマ） ---- */
.fm-fax-note-light {
    background: var(--fm-blue-light);
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    margin-top: 4px;
}
.fm-fax-note-light p {
    font-size: 0.88rem;
    color: var(--fm-text);
    margin: 0;
    line-height: 1.7;
}
.fm-fax-note-light strong {
    color: var(--fm-blue);
}
.fm-fax-note-light a {
    color: var(--fm-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   23. ON AIRバー：放送休止時間帯（header.php）
       番組データはあるが、現在時刻に該当する番組がない状態。
       通常のFM＋＋告知（オレンジ・点滅あり）とは区別し、
       落ち着いたトーンで「休止中」であることを伝える。
   ============================================================ */
.fmpp-listening-bar.is-offair {
    background: var(--fm-blue-dark);
}
.fmpp-listening-bar.is-offair .fmpp-bar-text {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.fmpp-offair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    /* 放送休止中のため点滅させない */
}

/* ============================================================
   24. インラインstyle分離（index.php / front-page.php / 404.php）
       各テンプレートに直書きされていた style="" 属性をここで
       クラス化する。テンプレート側は対応するクラス名を付与するのみ。
   ============================================================ */

/* ---- index.php：サイドバー FM＋＋ウィジェット ---- */
.index-widget-fmpp {
    background: var(--fm-blue);
    border: none;
    padding: 16px 20px;
}
.index-widget-fmpp-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
}
.index-widget-fmpp-btn {
    display: block;
    background: var(--fm-orange);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
}
.index-widget-fmpp-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0;
    text-align: center;
}

/* ---- index.php：カテゴリ一覧の件数表示 ---- */
.index-cat-count {
    font-size: 0.72rem;
    color: #a0aec0;
    margin-left: auto;
}

/* ---- index.php：枠なしウィジェットラッパー（協賛カード用） ---- */
.index-widget-plain {
    padding: 0;
    border: none;
    background: none;
}

/* ---- index.php：中央寄せウィジェット（番組表リンク） ---- */
.index-widget-center {
    text-align: center;
}
.index-widget-program-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}
.index-widget-program-btn {
    display: block;
    font-size: 0.88rem;
    padding: 10px;
}

/* ---- front-page.php：本日の番組サイドバー枠（上ボーダー色をFM青に） ---- */
.fm-sidebar-today-box {
    border-top-color: var(--fm-blue);
}
.fm-sidebar-week-btn {
    margin-top: 14px;
}

/* ---- front-page.php：お知らせが0件のときの案内文 ---- */
.fm-empty-notice {
    text-align: center;
    color: #718096;
    padding: 40px 0;
}

/* ---- front-page.php：ラジログ外部リンクのフォールバック表示 ---- */
.fm-rajirogo-fallback {
    text-align: center;
    margin-top: 8px;
}

/* ---- 404.php：検索フォームの幅制限ラッパー ---- */
.error-search-wrap {
    max-width: 420px;
    margin: 36px auto 0;
}
.error-fmpp-note {
    font-size: 0.82rem;
    color: var(--fm-sub);
    margin-top: 28px;
}

/* ============================================================
   25. 単一記事ページ（single.php）
       .post-layout-wrapper / .post-main-content / .post-sidebar は
       style.css にレイアウト定義済み（20章）のためここでは
       ページ固有パーツのみを追加する。
   ============================================================ */

/* アイキャッチ画像 */
.single-post-thumb {
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
}
.single-post-thumb img {
    width: 100%;
    height: auto;
}

/* カテゴリ・タグ */
.single-post-terms {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 0.5px solid var(--fm-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.single-post-terms-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.single-post-terms-label {
    font-size: 0.8rem;
    color: var(--fm-sub);
    flex-shrink: 0;
}
.single-post-tag {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--fm-blue);
    background: var(--fm-blue-light);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}
.single-post-tag:hover {
    opacity: 0.75;
}

/* 前後の記事ナビゲーション */
.single-post-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}
.single-post-nav-link {
    flex: 1;
    min-width: 0;
    background: var(--fm-white);
    border: 0.5px solid var(--fm-border);
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.single-post-nav-link:hover {
    border-color: var(--fm-blue);
    box-shadow: 0 4px 12px rgba(0,119,204,0.08);
    opacity: 1;
}
.single-post-nav-empty {
    flex: 1;
    border: none;
    background: none;
}
.single-post-nav-next {
    text-align: right;
    align-items: flex-end;
}
.single-post-nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--fm-orange);
}
.single-post-nav-title {
    font-size: 0.86rem;
    color: var(--fm-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 一覧へ戻るボタン */
.single-post-back {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 600px) {
    .single-post-nav {
        flex-direction: column;
    }
    .single-post-nav-next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ============================================================
   26. アーカイブページ（archive.php）
       サイドバーのカテゴリ一覧で、現在表示中のカテゴリを強調表示
   ============================================================ */
.index-cat-link.is-current {
    color: var(--fm-blue);
    font-weight: 700;
}

/* ============================================================
   27-2. 単一記事ページ：カテゴリラベル内リンク（single.php）
       .index-archive-label 内の <a> に付けていた
       style="color:inherit;" をクラス化。
   ============================================================ */
.index-archive-label-link {
    color: inherit;
}

/* ============================================================
   27-3. PDFビューアページ（pdf-viewer.php）
       インラインstyle属性をクラス化。
   ============================================================ */
.pdf-viewer-admin-memo {
    margin: 20px 0;
}
.pdf-viewer-wrap {
    padding: 24px 0 60px;
}
.pdf-viewer-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pdf-viewer-back-btn {
    color: var(--fm-blue);
    border-color: var(--fm-blue);
}
.pdf-viewer-iframe {
    width: 100%;
    min-height: 80vh;
    border: 0.5px solid var(--fm-border, #E2E8F0);
    border-radius: 8px;
    background: #fff;
}

/* ============================================================
   27. アーカイブページ見出し（archive.php）
       index.phpの.index-page-header（薄グレー背景）とは切り離し、
       station-page-header／program-page-headerと同じ
       ブランドブルー背景・オレンジのボーダーで統一。
       タイトル文字は他ページより大きめにして視認性を上げる。
   ============================================================ */
.archive-page-header {
    background: var(--fm-blue);
    padding: 32px 0 34px;
    border-bottom: 3px solid var(--fm-orange);
    text-align: center;
}
.archive-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}
.archive-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

@media (max-width: 600px) {
    .archive-page-header {
        padding: 26px 0 28px;
    }
    .archive-title {
        font-size: 1.5rem;
    }
}