/*
Theme Name: BANG! BANG!! Theme
Author: R.Kabutomori
Description: For FMSendai(dateFM) "BANG!BANG!!
Version: 1.2
*/

/* --- カラー設定：ダークモード --- */
:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #FF8C00;
    --border-color: #444;
}

/* --- 全体の設定 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: url(./images/cursor.png), auto;
    font-size: calc(var(--text-font-size) * 1em);
    text-shadow: 1px 1px 2px rgba(from var(--text-shadow-color) r g b / var(--text-shadow-opacity));
}

/* --- 透明指定時のテキストシャドウ無効化 --- */
/* transparent属性・クラス指定 */
[transparent], .transparent,
/* 見出し要素 */
h1[transparent], h2[transparent], h3[transparent], h4[transparent], h5[transparent], h6[transparent],
h1.transparent, h2.transparent, h3.transparent, h4.transparent, h5.transparent, h6.transparent,
/* リンク要素 */
a[transparent], a.transparent,
/* クルー名 */
.crew-name[transparent], .crew-name.transparent,
/* 透明カラーコード指定 */
*[style*="color:#ffffff00"], *[style*="color: #ffffff00"],
*[style*="color:#00000000"], *[style*="color: #00000000"],
*[style*="color:rgba(255,255,255,0)"], *[style*="color: rgba(255,255,255,0)"],
*[style*="color:rgba(0,0,0,0)"], *[style*="color: rgba(0,0,0,0)"],
*[style*="color:transparent"], *[style*="color: transparent"],
/* WordPressクラス + 透明色 */
.has-transparent-color,
p.has-text-color.has-link-color[style*="#ffffff00"],
span.has-text-color.has-link-color[style*="#ffffff00"],
div.has-text-color.has-link-color[style*="#ffffff00"],
h1.has-text-color.has-link-color[style*="#ffffff00"],
h2.has-text-color.has-link-color[style*="#ffffff00"],
h3.has-text-color.has-link-color[style*="#ffffff00"],
h4.has-text-color.has-link-color[style*="#ffffff00"],
h5.has-text-color.has-link-color[style*="#ffffff00"],
h6.has-text-color.has-link-color[style*="#ffffff00"],
a.has-text-color.has-link-color[style*="#ffffff00"] {
    text-shadow: none !important;
}

/* スマホ表示時の横スクロール防止 */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* 横スクロールを完全に防止 */
        width: 100%;
        max-width: 100%;
    }
}

a {
    color: var(--link-color);
    transition: opacity 0.3s;
    text-shadow: 1px 1px 3px var(--link-shadow-color);
    font-size: calc(var(--link-font-size) * 1em);
}
a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

h2, h3, h4 {
    font-weight: bold;
    color: var(--heading-color);
    text-shadow: 2px 2px 4px rgba(from var(--heading-shadow-color) r g b / var(--heading-shadow-opacity)), 
                 0 0 8px rgba(from var(--heading-shadow-color) r g b / calc(var(--heading-shadow-opacity) * 0.75));
}

/* セクションタイトルは黒文字なのでシャドウを無効化 */
.section-title {
    text-shadow: none;
}

/* --- サイトの基本レイアウト --- */
.site-container {
    position: relative; /* オーバーレイより手前に表示するために必要 */
    z-index: 1; /* オーバーレイより手前に表示するために必要 */
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* スマホ表示時のコンテナ調整 */
@media (max-width: 768px) {
    .site-container {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden; /* コンテナ内の横スクロールも防止 */
    }
}

.site-header, .site-footer {
    padding: 20px 40px;
}
.site-main { padding: 0; }
.site-header { text-align: center; border-bottom: 1px solid var(--border-color); }
.site-footer { text-align: center; }

/* --- セクション共通のスタイル --- */
.site-main > section {
    padding: 40px 50px;
}

/* スマホ表示時のセクションパディング調整 */
@media (max-width: 768px) {
    .site-main > section {
        padding: 20px 15px; /* パディングを縮小してはみ出し防止 */
    }
    
    .site-header, .site-footer {
        padding: 15px 20px; /* ヘッダー・フッターのパディングも調整 */
    }
}

.section-title {
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-align: center;
    padding: 10px;
    margin-bottom: 30px;
    font-size: 1.5em;
    text-shadow: none; /* 黒文字なので黒いシャドウは不要 */
}

/* --- 自動再生ビデオセクション --- */
.autoplay-video-section {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    margin: 0 -50px; /* 親のpaddingを相殺 */
}

.autoplay-video {
    width: 100%;
    height: auto;
    display: block;
}

/* スマホ表示時のビデオ調整 */
@media (max-width: 768px) {
    .autoplay-video-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 -15px; /* スマホ時のpaddingを相殺 */
    }
    .autoplay-video {
        max-width: 100%;
        object-fit: contain; /* アスペクト比を保ったまま収める */
    }
}

/* --- 番組説明セクション --- */
.program-description-section {
    text-align: center;
    padding: 40px 50px; /* 適度な余白 */
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(255,140,0,0.02));
    border-bottom: 1px solid var(--border-color);
}

.program-description h3 {
    font-size: 1.5em; /* サイズ維持 */
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
    /* h3として見出しのスタイル（色・シャドウ）を自動継承 */
}

/* スマホ表示時の番組説明調整 */
@media (max-width: 768px) {
    .program-description-section {
        padding: 30px 20px; /* スマホ用パディング */
    }
    
    .program-description h3 {
        font-size: 1.3em; /* スマホでは少し小さく */
        line-height: 1.5;
    }
}

/* --- 2×2インタラクショングリッドセクション --- */
.interaction-grid-section {
    padding: 30px 50px; /* 40px → 30px に変更 */
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(255,140,0,0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.interaction-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
}

/* --- 各グリッドアイテムの共通スタイル --- */
.grid-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 15px; /* 20px → 15px に変更 */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255,140,0,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.grid-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(255,140,0,0.2);
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* --- アイコンスタイル --- */
.grid-icon {
    font-size: 2.5em; /* 3em → 2.5em に縮小 */
    margin-bottom: 12px; /* 15px → 12px に縮小 */
    filter: drop-shadow(0 0 10px rgba(255,140,0,0.3));
}

/* --- タイトルスタイル --- */
.grid-title {
    font-size: 1.3em; /* 1.4em → 1.3em に縮小 */
    font-weight: bold;
    color: var(--heading-color);
    margin: 0 0 15px 0; /* 20px → 15px に縮小 */
    text-shadow: 2px 2px 4px rgba(from var(--heading-shadow-color) r g b / var(--heading-shadow-opacity));
}

/* --- コンテンツエリア --- */
.grid-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.grid-description {
    font-size: 0.85em; /* 0.9em → 0.85em に縮小 */
    color: var(--text-color);
    margin: 8px 0 0 0; /* 10px → 8px に縮小 */
    opacity: 0.8;
    line-height: 1.4;
}

/* --- 各アイテム個別のスタイル --- */

/* radiko */
.grid-radiko {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,123,255,0.05));
}

.radiko-banner-image {
    max-width: 128px; /* 115％拡大版 */
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.grid-radiko:hover .radiko-banner-image {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.grid-radiko-link {
    display: inline-block;
    text-decoration: none;
}

/* メッセージ */
.grid-message {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
}

/* フォロー */
.grid-follow {
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
}

/* ハッシュタグ */
.grid-hashtag {
    background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(255,140,0,0.05));
}

/* --- ボタンスタイル --- */
.grid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 180px;
    gap: 8px;
}

.message-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.message-btn:hover {
    background: linear-gradient(135deg, #218838, #1cb085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.follow-btn-large {
    padding: 15px 25px !important; /* 通常より大きく */
    font-size: 1.1em !important;
    min-width: 220px !important;
}

.follow-btn {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.follow-btn:hover {
    background: linear-gradient(135deg, #333333, #555555);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hashtag-btn {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255,140,0,0.3);
}

.hashtag-btn:hover {
    background: linear-gradient(135deg, #FF6347, #FF4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.4);
}

/* --- アイコン用スタイル --- */
.x-icon {
    font-family: "Times New Roman", serif;
    font-weight: bold;
    font-size: 1.2em;
}

.hashtag-symbol {
    font-size: 1.3em;
    font-weight: bold;
}

/* --- Xフォローボタンの調整 --- */
.manual-follow-button {
    display: none; /* デフォルトは非表示 */
}

.twitter-follow-button {
    margin: 10px 0;
}

/* --- アニメーション効果 --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.grid-item:hover .grid-icon {
    animation: float 2s ease-in-out infinite;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .interaction-grid-section {
        padding: 20px 20px; /* 30px → 20px に縮小 */
    }
    
    .interaction-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 15px;
        min-height: auto;
    }
    
    .grid-item {
        padding: 12px; /* 16px → 12px に縮小 */
        min-height: 170px;
    }
    
    .grid-icon {
        font-size: 2.2em;
        margin-bottom: 8px;
    }
    
    .grid-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .grid-button {
        padding: 10px 16px;
        font-size: 0.9em;
        min-width: 160px;
    }
    
    .follow-btn-large {
        padding: 12px 20px !important;
        font-size: 1em !important;
        min-width: 180px !important;
    }
    
    .radiko-banner-image {
        max-width: 101px; /* スマホ時も115％拡大版 */
    }
}

@media (max-width: 480px) {
    .interaction-grid-container {
        gap: 15px;
    }
    
    .grid-item {
        padding: 15px;
        min-height: 180px;
    }
    
    .grid-button {
        padding: 8px 12px;
        font-size: 0.85em;
        min-width: 140px;
    }
}

/* --- グリッドアイテムの順序（タブレット表示時） --- */
@media (max-width: 768px) {
    .grid-radiko { order: 1; }
    .grid-message { order: 2; }
    .grid-follow { order: 3; }
    .grid-hashtag { order: 4; }
}

/* --- 出演者紹介 (CREW) --- */
.crew-members {
    display: flex;
    justify-content: space-between; /* 横一列に均等配置 */
    flex-wrap: nowrap; /* 折り返さない */
    gap: 15px;
}
.crew-member {
    width: 30%; /* 3人を均等に分ける */
    text-align: center;
}

/* スマホ表示時は縦並びに変更 */
@media (max-width: 768px) {
    .crew-members {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;
        gap: 30px; /* 間隔を広げる */
    }
    .crew-member {
        width: 80%; /* 幅を広げる */
        max-width: 300px; /* 最大幅を制限 */
    }
}
.crew-member img {
    width: 100%; /* 横幅いっぱいに */
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形を保つ */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-bottom: 10px;
}
.crew-name { 
    color: var(--crew-name-color); 
    font-size: calc(var(--crew-name-size) * 1em); /* カスタマイザーで調整可能 */
    font-weight: bold; /* 太字にして目立たせる */
    text-shadow: 1px 1px 2px var(--crew-name-shadow-color);
}
.crew-description { 
    font-size: 0.8em; 
    text-align: center; 
}

/* テキスト背景マスクの適用 */
.text-with-mask {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

.text-with-mask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-bg-mask-color);
    opacity: var(--text-bg-mask-opacity);
    filter: blur(calc(var(--text-bg-mask-blur) * 1px));
    border-radius: 4px;
    z-index: -1;
    transform: scale(1.1); /* 少し大きくしてテキストを完全にカバー */
}

/* カスタマイザーで有効化された場合のみ適用 */
body[data-text-mask="yes"] .crew-description {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

body[data-text-mask="yes"] .crew-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-bg-mask-color);
    opacity: var(--text-bg-mask-opacity);
    filter: blur(calc(var(--text-bg-mask-blur) * 1px));
    border-radius: 4px;
    z-index: -1;
    transform: scale(1.1);
}

body[data-text-mask="yes"] .program-description h3 {
    position: relative;
    padding: 15px 20px;
    border-radius: 6px;
}

body[data-text-mask="yes"] .program-description h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-bg-mask-color);
    opacity: var(--text-bg-mask-opacity);
    filter: blur(calc(var(--text-bg-mask-blur) * 1px));
    border-radius: 6px;
    z-index: -1;
    transform: scale(1.05);
}

body[data-text-mask="yes"] .corner-item p {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

body[data-text-mask="yes"] .corner-item p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-bg-mask-color);
    opacity: var(--text-bg-mask-opacity);
    filter: blur(calc(var(--text-bg-mask-blur) * 1px));
    border-radius: 4px;
    z-index: -1;
    transform: scale(1.1);
}

/* クルー専用マスクが有効な場合の個別設定 */
body[data-crew-mask="yes"] .crew-description-1::before {
    background-color: var(--crew-1-mask-color) !important;
    opacity: var(--crew-1-mask-opacity) !important;
}

body[data-crew-mask="yes"] .crew-description-2::before {
    background-color: var(--crew-2-mask-color) !important;
    opacity: var(--crew-2-mask-opacity) !important;
}

body[data-crew-mask="yes"] .crew-description-3::before {
    background-color: var(--crew-3-mask-color) !important;
    opacity: var(--crew-3-mask-opacity) !important;
}

/* クルー名前色の個別設定 */
body[data-crew-name-individual="yes"] .crew-name-1 {
    color: var(--crew-1-name-color) !important;
}

body[data-crew-name-individual="yes"] .crew-name-2 {
    color: var(--crew-2-name-color) !important;
}

body[data-crew-name-individual="yes"] .crew-name-3 {
    color: var(--crew-3-name-color) !important;
}

.crew-social-icons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.crew-social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.social-icon-x { background-color: #000; }
.social-icon-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-icon-youtube { background-color: #FF0000; }

/* --- コーナー紹介 (PROGRAM MENU) --- */
.corners-grid {
    display: grid;
    /* 画面幅に合わせて列数を自動調整する。各アイテムの最小幅は300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* アイテム間の隙間 */
}
.corner-item {
    border: 2px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column; /* 画像とテキストを縦に並べる */
}
.corner-item a {
    display: block;
}
.corner-item img {
    display: block;
    margin-bottom: 15px;
    width: 100%;
}
.corner-text {
    flex-grow: 1; /* テキストエリアが残りのスペースを埋める */
}
.corner-item h4 {
    margin: 0 0 10px 0;
}
.corner-item p {
    margin: 0;
}

/* 劇場リンクの下線を消すための調整 */
.corner-theater-link {
    text-decoration: none;
}

/* --- リンク付きコーナーの文字色を調整 --- */
.corner-item-link,
.corner-item-link:hover {
    text-decoration: none; /* 下線を消す */
}

.corner-item-link .corner-text h4 {
    color: var(--heading-color); /* カスタマイザー設定色 */
    text-shadow: 2px 2px 4px rgba(from var(--heading-shadow-color) r g b / var(--heading-shadow-opacity)), 
                 0 0 8px rgba(from var(--heading-shadow-color) r g b / calc(var(--heading-shadow-opacity) * 0.75));
}

.corner-item-link .corner-text p {
    color: var(--text-color); /* 本文は白色に */
}

/* --- ホバーエフェクト --- */
.crew-member img {
    transition: transform 0.3s ease-in-out;
}
.crew-member a:hover img {
    transform: scale(1.08); /* 8%拡大 */
    opacity: 0.8;
}

/* --- リンクホバー時のカーソル --- */
a:hover,
button:hover,
.movie-trigger:hover { /* リンクやボタンなどクリックできる要素に適用 */
    cursor: url(./images/cursor-hover.png), pointer;
}

/* --- 投稿記事表示スタイル --- */
.single-post-content {
    padding: 40px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.post-article {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--heading-color);
    text-shadow: 2px 2px 4px rgba(from var(--heading-shadow-color) r g b / var(--heading-shadow-opacity));
}

.post-featured-image {
    margin: 20px 0;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.post-meta {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.post-meta time {
    margin-right: 15px;
}

.post-categories a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 5px;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 30px 0 15px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-footer .post-meta {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: left;
}

.post-footer .post-meta time {
    margin-right: 15px;
}

.post-footer .post-categories a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 5px;
}

.post-tags {
    color: var(--text-color);
    font-size: 0.9em;
}

.post-tags a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 3px;
}

/* スマホ表示調整 */
@media (max-width: 768px) {
    .single-post-content {
        padding: 20px 15px;
    }
    
    .post-article {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.6em;
    }
    
    .post-content {
        font-size: 1em;
    }
}

/* --- リンク・バナー --- */
.extra-links, .sponsor-banner {
    text-align: center;
    margin-top: 40px;
}
.link-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    padding: 15px 40px;
    margin: 10px;
    border-radius: 5px;
}

/* ポップアップは変更なし */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.popup-content { max-width: 90%; max-height: 90%; }
.popup-content video { max-width: 100%; max-height: 90vh; border: 3px solid #fff; }

/* --- フッタースポンサー --- */
.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 30px; /* 縦・横の隙間 */
    margin-top: 20px;
}

.sponsor-logos a,
.sponsor-logos span {
    display: inline-block;
}

.sponsor-logos img {
    height: auto;
    width: auto;
}

/* サイズの定義 */
.sponsor-small img { max-height: 40px; }
.sponsor-normal img { max-height: 60px; }
.sponsor-large img { max-height: 80px; }

/* 改行の定義 */
.sponsor-break-after {
    /* この要素の後で改行を入れる */
    flex-basis: 100%;
    height: 0;
}

/* --- 背景画像設定 --- */
body.has-background-image.bg-stretch {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body.has-background-image.bg-repeat {
    background-size: auto !important;
    background-position: top left !important;
    background-repeat: repeat !important;
    background-attachment: scroll !important;
}

/* --- 背景画像が設定された時のコンテナのスタイル --- */
.site-container.has-background-image {
    background-color: transparent;
    box-shadow: none;
    position: relative;
}

/* --- 背景画像オーバーレイ設定（画面全体） --- */
body.has-background-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, var(--overlay-opacity));
    z-index: 0;
    pointer-events: none; /* クリックを透過させる */
}

/* --- 背景画像が設定された時のコンテナのスタイル --- */
.site-container.has-background-image {
    background-color: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1; /* オーバーレイより前面に表示 */
}

/* --- radikoバナーのスタイル調整 --- */
.radiko-banner {
    padding: 20px 0; /* 上下の余白を少し調整 */
    border-top: 1px solid var(--border-color); /* 上のセクションとの区切り線 */
}
.radiko-banner-inner {
    text-align: center; /* バナーとテキストを中央揃えに */
}
.radiko-banner-inner a {
    display: inline-block;
}
.radiko-banner-inner img {
    max-width: 300px; /* バナーの最大幅を300pxに制限（この数値を変更すれば大きさを調整できます） */
    height: auto;
}
.radiko-text {
    margin-top: 10px;
    font-size: 0.9em;
}

/* --- Twitterエンベッドのスマホ対応 --- */
@media (max-width: 768px) {
    .twitter-embed-container {
        margin: 30px 0;
        max-width: 100%;
        overflow: hidden; /* はみ出し防止 */
    }
    
    .sns-section {
        padding: 30px 15px; /* パディングを調整 */
    }
    
    .hashtag-post-button {
        padding: 12px 20px; /* ボタンサイズをスマホ用に調整 */
        font-size: 1em;
    }
}

.message-social-section {
    padding: 40px 50px;
    text-align: center;
}

.message-button-container {
    margin-bottom: 30px;
}

.message-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    transition: opacity 0.3s;
    text-shadow: none; /* 黒文字なので黒シャドウ不要 */
}

.message-button:hover {
    opacity: 0.8;
}

.twitter-embed-container {
    margin: 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hashtag-post-container {
    margin-top: 30px;
}

.hashtag-post-button {
    display: inline-block;
    background-color: #1DA1F2; /* Twitter青色 */
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1em;
    transition: opacity 0.3s;
}

.hashtag-post-button:hover {
    opacity: 0.8;
}

/* --- テキスト視認性向上のためのユーティリティクラス --- */

/* 1. テキストシャドウ（輪郭強調） */
.text-outline {
    text-shadow: 
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0 0 3px #000,
         0 0 5px #000;
    color: #ffffff;
    font-weight: bold;
}

.text-outline-white {
    text-shadow: 
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0 0 3px #fff,
         0 0 5px #fff;
    color: #000000;
    font-weight: bold;
}

/* 2. 半透明背景ボックス */
.text-bg-dark {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.text-bg-light {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.text-bg-accent {
    background-color: rgba(255, 140, 0, 0.8);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* 3. グラデーション背景 */
.text-gradient-dark {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

.text-gradient-blue {
    background: linear-gradient(135deg, rgba(65,105,225,0.8), rgba(65,105,225,0.6));
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

/* 4. ボーダー付き強調 */
.text-border {
    border: 2px solid #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
}

.text-border-accent {
    border: 2px solid #FF8C00;
    background-color: rgba(255, 140, 0, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
}

/* 5. 大きなフォント + 太字 */
.text-large-bold {
    font-size: 1.5em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.text-xl-bold {
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

/* 6. 蛍光マーカー風 */
.text-highlight-yellow {
    background: linear-gradient(transparent 40%, #ffff00 40%, #ffff00 80%, transparent 80%);
    color: #000000;
    font-weight: bold;
    padding: 2px 4px;
}

.text-highlight-green {
    background: linear-gradient(transparent 40%, #32CD32 40%, #32CD32 80%, transparent 80%);
    color: #000000;
    font-weight: bold;
    padding: 2px 4px;
}

/* 7. 立体的なテキスト */
.text-3d {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25);
}

/* 8. ボックスシャドウ付き */
.text-shadow-box {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.5) inset;
    font-weight: bold;
    display: inline-block;
}

/* 9. レスポンシブ対応 */
@media (max-width: 768px) {
    .text-large-bold {
        font-size: 1.3em;
    }
    
    .text-xl-bold {
        font-size: 1.6em;
    }
    
    .text-bg-dark,
    .text-bg-light,
    .text-bg-accent,
    .text-gradient-dark,
    .text-gradient-blue,
    .text-border,
    .text-border-accent,
    .text-shadow-box {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}