/* 全体のスタイル - 彩度を落とした深いミッドナイトグレー */
.body-style {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1c22 0%, #111317 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #d1d1d1;
}

/* 広告ポップアップの背景レイヤー */
.ad-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 背後を少し暗くする */
    backdrop-filter: blur(8px); /* 背後をぼかす */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 広告内容のスタイル - 黒ガラス筐体 */
.ad-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 85%;
    max-height: 85%;
    
    /* ガラス質感の設定 */
    background: rgba(30, 33, 38, 0.8); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* 画像のスタイル - 枠線に馴染ませる */
.ad-image {
    max-width: 100%;
    max-height: calc(100vh - 250px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* タイトルのスタイル */
#adTitle {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    letter-spacing: 1px;
}

/* リンクボタンのスタイル - マットなネイビーブルー */
.ad-link {
    margin-top: 25px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    background: #3d5a80; /* 目に優しい落ち着いた青 */
    padding: 12px 30px;
    border-radius: 30px; /* 角を丸くして柔らかい印象に */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-link:hover {
    background: #4a6fa5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 閉じるボタンのスタイル - 右上に配置 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #a0a0a0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 76, 76, 0.2);
    color: #ff4c4c;
}