/* =========================================
   SyncueSong トップバナーモーダル
========================================= */

/* モーダル表示中は背景をスクロールさせない */
body.syncue-modal-open {
    overflow: hidden;
}

/* トップバナー設置部分 */
.syncue-banner-section {
    width: 100%;
    padding-bottom: 1rem;
}

/* button標準デザインを解除 */
.syncue-banner-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.syncue-banner-trigger:focus-visible {
    outline: 4px solid #f0c800;
    outline-offset: -4px;
}

/* モーダル背景 */
.syncue-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

/* モーダル表示時 */
.syncue-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* モーダル本体 */
.syncue-modal__dialog {
    position: relative;

    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

    transform: translateY(20px) scale(0.97);
    transition: transform 0.2s ease;
}

.syncue-modal.is-open .syncue-modal__dialog {
    transform: translateY(0) scale(1);
}

/* 閉じるボタン */
.syncue-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.syncue-modal__close:hover {
    background: #000000;
    transform: scale(1.08);
}

.syncue-modal__close:focus-visible {
    outline: 3px solid #f0c800;
    outline-offset: 3px;
}

/* モーダル画像 */
.syncue-modal__image-wrap {
    width: 100%;
    background: #222222;
}

.syncue-modal__image {
    display: block;
    width: 100%;
    height: auto;
}

/* 本文部分 */
.syncue-modal__body {
    padding: 28px 32px 32px;
    color: #333333;
}

.syncue-modal__label {
    display: inline-block;

    margin-bottom: 10px;
    padding: 5px 10px;

    background: #f0c800;
    color: #292929;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.syncue-modal__body h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.35;
}

.syncue-modal__body p {
    margin: 0 0 26px;

    color: #555555;
    font-size: 16px;
    line-height: 1.9;
}

/* 外部リンクボタン */
.syncue-modal__external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 54px;
    padding: 12px 20px;
    box-sizing: border-box;

    background: #f0c800;
    color: #292929;

    border-radius: 12px;

    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.syncue-modal__external-link:hover {
    background: #ffd900;
    transform: translateY(-2px);
}

.syncue-modal__external-link:focus-visible {
    outline: 3px solid #333333;
    outline-offset: 3px;
}

/* スマホ */
@media (max-width: 768px) {
    .syncue-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .syncue-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .syncue-modal__close {
        top: 8px;
        right: 8px;

        width: 38px;
        height: 38px;

        font-size: 18px;
    }

    .syncue-modal__body {
        padding: 22px 20px 24px;
    }

    .syncue-modal__body h2 {
        font-size: 23px;
    }

    .syncue-modal__body p {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.8;
    }

    .syncue-modal__external-link {
        min-height: 50px;
        font-size: 15px;
    }
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {

    .syncue-modal,
    .syncue-modal__dialog,
    .syncue-modal__close,
    .syncue-modal__external-link {
        transition: none;
    }
}