/* 背景のポップアップ */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ポップアップが表示状態のとき */
.popup-container.show {
    display: flex;
    opacity: 1;
}

/* ポップアップ内容 */
.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* 表示アニメーション */
.popup-container.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

/* ✕ボタン */
.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}
.popup-close:hover {
    color: #d33;
}

/* タイトル中央揃え */
.popup-content h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* 段落左揃え */
.popup-content p {
    text-align: left;
    line-height: 1.6;
    font-size: 1rem;
    margin: 10px 0;
}

/* スマホ対応 */
@media (max-width: 1200px) {
    .popup-content {
        padding: 20px;
        border-radius: 8px;
    }
    .popup-content h2 {
        font-size: 3rem;
        margin-bottom: 1.5px;
    }
    .popup-content p {
        font-size: 3rem;
        line-height: 1.5;
    }
}
