/**
 * Overlay Ad Styles
 */

/* オーバーレイ広告のコンテナ */
.overlay-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

/* 背景のオーバーレイ */
.overlay-ad-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* コンテンツボックス */
.overlay-ad-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: overlayFadeIn 0.3s ease-out;
}

/* 閉じるボタン */
.overlay-ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.overlay-ad-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #212529;
}

/* タイトル */
.overlay-ad-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #212529;
}

/* サブタイトルラッパー */
.overlay-ad-subtitle-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

/* サブタイトル1行目 */
.overlay-ad-subtitle1,
.overlay-ad-subtitle2 {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
}

.overlay-ad-subtitle1 {
    margin-bottom: 5px;
}

/* 画像コンテナ */
.overlay-ad-image {
    margin-bottom: 30px;
    text-align: center;
}

.overlay-ad-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.overlay-ad-image a {
    display: block;
    line-height: 0;
}

/* CTAボタン */
.overlay-ad-cta {
    display: inline-block;
    background-color: #4169E1;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.overlay-ad-cta:hover {
    background-color: #3555c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

.overlay-ad-cta-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* アニメーション */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .overlay-ad-content {
        padding: 30px 20px;
        width: 95%;
    }

    .overlay-ad-title {
        font-size: 24px;
    }

    .overlay-ad-subtitle1,
    .overlay-ad-subtitle2 {
        font-size: 14px;
    }

    .overlay-ad-cta {
        font-size: 16px;
        padding: 12px 30px;
    }

    .overlay-ad-image {
        padding: 15px;
    }
}