/* === CSS Variables === */
:root {
    /* カラーパレット */
    --primary-blue: #1e40af;
    --primary-blue-light: #2c7bf9;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-lighter: #cae1ff;

    --accent-red: #dc2626;
    --accent-red-light: #ef4444;
    --accent-red-lighter: #ffeded;

    --white-primary: rgb(255, 255, 255);
    --white-secondary: #ffffff;
    --white-tertiary: #f1f5f9;

    /* グレースケール */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* テキストカラー */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-muted: var(--gray-600);
    --text-inverse: var(--white-primary);

    /* その他 */
    --border-color: var(--gray-200);
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* === 基本設定 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 18px;
    overflow-x: hidden;
}

img {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === ローディングアニメーション === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    color: var(--white-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.radio-logos .radio-link {
    display: inline-block;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    margin: 0 10px;
    transition: var(--transition);
}

.radio-logos .radio-link:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px #ff0000;
    outline: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--text-inverse);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === プログレスバー === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--primary-blue));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* === ヘッダー === */
.main-header {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ff7676, rgb(78, 178, 255));
}

.campaign-logo {
    margin-bottom: 40px;
}

.stop-logo {
    width: 80%;
    display: inline-block;
    padding: 32px 40px;
    margin-bottom: 32px;
    background: var(--white-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.stop-logo h1 {
    color: var(--accent-red);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.radio-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    padding: 30px 0;
}

.radio-link {
    width: 40%;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
    background: var(--white-primary);
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-link:hover {
    background: var(--primary-blue-light);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


.radio-logos img {
    height: auto;
    object-fit: cover;

}

.project-intro {
    background: var(--white-tertiary);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: left;
}

/* === セクション共通スタイル === */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary-blue-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title .icon {
    color: var(--primary-blue-light);
    width: 32px;
    height: 32px;
}

/* === トピックス === */
.topics-section {
    background: var(--primary-blue-lighter);
}

.topic-card {
    background: var(--text-primary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-primary);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.topic-card:first-of-type {
    margin-bottom: 80px;
}

.topic-card h3 {
    color: var(--white-primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-card .icon {
    color: var(--primary-blue-light);
    width: 40px;
    height: 40px;
}

.stats-annotation {
    color: var(--white-primary);
    text-align: end;
}


.stats-highlight {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    color: var(--text-inverse);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.stats-highlight span {
    color: var(--text-inverse);
}

.counter {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-blue-lighter);
}

.chart-container {
    background: var(--primary-blue-lighter);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
}


.chart-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.chart-link {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 1.1rem;
}

/* === 最新情報・特別番組 === */
.special-program {
    background: var(--accent-red-lighter);
    border: 1px solid var(--accent-red-light);
    border-left: 4px solid var(--accent-red);
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 24px 0;
}

.special-program h4 {
    color: var(--accent-red);
    font-size: 1.5rem;
    line-height: 2.0;
}

.program-icon {
    color: var(--accent-red);
    width: 32px;
    height: 32px;
}

.broadcast-info {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--accent-red);
    margin: 10px 0 20px 40px;
}

.update-note {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 12px;
}

.fraud-methods {
    margin: 24px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--text-inverse)
}

.warning-icon {
    color: var(--accent-red);
    width: 20px;
    height: 20px;
}

.fraud-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}

.fraud-item {
    background: var(--white-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    border: 1px solid var(--border-color);
}

.fraud-item strong {
    font-size: 1.6rem;
}

.more-info {
    text-align: center;
    margin-top: 24px;
    padding: 20px;
    background: var(--white-secondary);
    border-radius: var(--border-radius);
}

.external-link {
    color: var(--primary-blue-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.external-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* === CM セクション === */
.cm-section {
    background: var(--white-primary);
}

.red {
    color: var(--accent-red-light) !important;
}

.cm-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--accent-red-lighter);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cm-intro span {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 2rem;
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.cm-card {
    background: var(--accent-red-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    color: var(--text-primary)
}

.cm-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.cm-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.cm-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
}

.cm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cm-illustration i {
    width: 32px;
    height: 32px;
}

.cm-card h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
}

.play-button {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    color: var(--text-inverse);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 16px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.play-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.play-button:disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
    transform: none;
}

.play-button i {
    width: 16px;
    height: 16px;
}

.cm-note {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    background: var(--accent-red-lighter);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.volume-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* === 概要セクション === */
.overview-section {
    background: var(--white-tertiary);
}

.overview-content {
    background: var(--white-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.overview-list {
    list-style: none;
    padding: 0;
}

.overview-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.overview-list li:last-child {
    border-bottom: none;
}

.overview-label {
    font-weight: 600;
    min-width: 120px;
    background: var(--primary-blue-lighter);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-blue);
    text-align: center;
}

.special-details {
    margin-top: 32px;
    background: var(--accent-red-lighter);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-red-light);
}

.special-details h4 {
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent-red);
    font-size: 1.8rem;
}

.special-details li {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.program-info ul {
    margin-left: 20px;
    line-height: 1.8;
}

.program-info img {
    width: 90%;
    margin: 50px auto 30px auto;
    display: block;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cast-list {
    margin-left: 20px;
    margin-top: 8px;
}

/* === リンク集 === */
.links-section {
    background: var(--primary-blue-lighter);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.link-card {
    background: var(--white-primary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.link-card h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-icon {
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
}

/* === 協賛社 === */
.sponsors-section {
    background: var(--white-primary);
    text-align: center;
}


.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.sponsor-banner {
    background: var(--white-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.sponsor-banner:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue-light);
}

/* -------広島銀行協会はホバー効果なし(リンクなし)---------------- */
.no-effect:hover {
    box-shadow: none !important;
    border-color: var(--border-color) !important;
    transform: none !important;
}

/* ------- */



.sponsor-banner:focus-within {
    border-color: #ff0000;
    /* 赤色 */
    box-shadow: 0 0 0 2px #ff0000;
    /* 外側の赤い影 */
    outline: none;
}

.sponsor-banner a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-banner a:focus {
    outline: none;
}

.sponsor-banner img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
}


.sponsors-section .update-note {
    background: var(--primary-blue-lighter);
    border: 1px solid var(--primary-blue-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--white-primary);
}


.main-partner {
    background: var(--white-primary);
    color: var(--text-inverse);
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    width: 500px;
    margin: 100px auto 20px auto;
    transition: var(--transition);
}

.main-partner:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.main-partner a {
    text-decoration: none;
    color: inherit;
}

.main-partner:focus-within {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px #ff0000;
    outline: none;
}

.main-partner a:focus {
    outline: none;
}

.update-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 40px;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--primary-blue-lighter);
}

/* === フッター === */
.main-footer {
    background: var(--primary-blue-dark);
    padding: 60px 0 32px;
    text-align: center;
    color: var(--white-primary);
}

.footer-content h3 {
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-content p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-companies {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
    flex-wrap: wrap;
    font-size: 14px;
}

/* === トップに戻るボタン === */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    color: var(--text-inverse);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 画面からはみ出さないように制限 */
    max-width: calc(100vw - 64px);
    max-height: calc(100vh - 64px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.scroll-top:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}


/* === フェードインアニメーション === */
.fade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-item.visible {
    opacity: 1;
    transform: translateY(0);
}





/* -----------------------------------responsive design--------------------------------------------------- */


@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 8px;
    }

    /* -----------header-section----------- */
    .stop-logo {
        padding: 10px;
        width: 100%;
    }

    .radio-logos {
        gap: 0px;
        padding: 0;
    }

    .main-header {
        padding: 40px 0;
    }


    /* ------------topics-section----------- */
    .topic-card {
        padding: 20px 8px;
    }


    .topics-grid,
    .links-grid,
    .cm-grid {
        grid-template-columns: 1fr;
    }

    .stats-highlight {
        font-size: 1.2rem;
    }

    .chart-container {
        padding: 8px;
    }


    /* ------------ special-program-section ----------- */
    .special-program h4 {
        font-size: 1.2rem;
    }

    .special-program p {
        font-size: 1.1rem;
    }

    .program-info li {
        font-size: 1rem;
    }

    .program-icon {
        color: var(--accent-red);
        width: 20px;
        height: 20px;
    }

    .fraud-item {
        display: flex;
        flex-direction: column
    }

    .fraud-item strong {
        font-size: 1.2rem;
    }

    /* -------cm-section---------- */

    .cm-intro span {
        font-size: 1.3rem;
    }

    .cm-image {
        height: 250px;
    }

    .cm-grid {
        gap: 24px;
    }

    /* -----------overview-section---------- */
    .overview-content {
        background: var(--white-primary);
        padding: 8px;
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-light);
    }

    .overview-list li {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .overview-list li span {
        padding: 0 16px;
        font-size: 1.2rem;
        text-align: center;
    }

    .special-details {
        padding: 20px 16px;
    }

    .program-info img {
        width: 100%;
        margin: 30px auto 20px auto;
        display: block;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
    }


    /* ------ sponsors-section------- */
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .main-partner {
        width: 100%;
        max-width: 400px;
        margin: 80px auto 20px auto;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        padding: 0 16px;
        font-size: 0.82rem;
    }

    .footer-companies {
        flex-direction: column;
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .scroll-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .scroll-top:hover {
        transform: translateY(-2px);
    }
}

@media screen and (max-width: 480px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .scroll-top:hover {
        transform: none;
    }
}

@media screen and (max-width: 414px) {
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 375px) {
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 320px) {
    .scroll-top {
        bottom: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* === アクセシビリティ === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
    border-radius: 4px;
}