body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.main-content {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ポップアップのオーバーレイ */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ポップアップ本体 */
#popup-box {
    background-color: #ffffff;
    padding: 30px 40px; /* パディングは維持 */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 900px;
    width: 90%;
    box-sizing: border-box;
    position: relative; /* ★重要：子要素の絶対配置の基準にする */
    animation: fadeIn 0.5s ease-out;
}

#popup-box h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

#popup-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.popup-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.popup-button:hover {
    background-color: #0056b3;
}

/* ★ここから追加・修正 */
.close-button {
    position: absolute; /* 親要素(#popup-box)を基準に絶対配置 */
    top: 10px; /* 上からの位置 */
    right: 15px; /* 右からの位置 */
    background: none; /* 背景色なし */
    border: none; /* 枠線なし */
    font-size: 1.8em; /* 文字サイズを大きくして「✗」を見やすく */
    color: #666; /* 色 */
    cursor: pointer; /* マウスカーソルをポインタに */
    padding: 0; /* 余計なパディングをなくす */
    line-height: 1; /* 行の高さを調整 */
    transition: color 0.2s ease; /* ホバー時のアニメーション */
    z-index: 1; /* 他のコンテンツの上に表示 */
}

.close-button:hover {
    color: #333; /* ホバーで色を濃く */
}

.small-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 20px;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}