@charset "utf-8";

/* 背景オーバーレイ */
#custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000000000;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}
#custom-modal-overlay.is-active {
    display: block;
    opacity: 1;
}

/* ポップアップ本体 */
div.custom-yoyaku-modal {
    position: fixed;
    z-index: 1000000001;
    width: 90%;
    max-width: 500px;
    top: 50%;
    left: 50%;
    display: none; 
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: all 0.5s ease;
    text-align: center;
}

div.custom-yoyaku-modal.is-active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.custom-pr_box { width: 100%; position: relative; }
.custom-popup-bnr { margin: 0; }
.custom-popup-bnr img { width: 100%; vertical-align: bottom; }
.custom-popup-bnr a:hover,
.custom-popup-bnr a:hover img{
    opacity:0.95;
}

/* --- 閉じるボタン（HTML/CSS版） --- */
.custom-close-window {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
}

.custom-close-modal {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: #ffffff; /* ボタンの背景色 */
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    appearance: none;
    transition: transform 0.2s;
    border-radius: 100px;
}

.custom-close-modal:hover {
    transform: scale(1.1);
}

/* ×印の作成 */
.custom-close-modal span::before,
.custom-close-modal span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #333;
}

.custom-close-modal span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-close-modal span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 共通のボタンスタイル */
.custom-popuplink-area {
    margin: 0;
}
.custom-popuplink-area a {
    color: #555;
    font-weight: 500;
    font-size: 21px;
    background: #fff;
    width: 50%;
    text-align: center;
    margin: 3% auto 0;
    border-radius: 100px;
}
.custom-popuplink-text {
    display: block;
    width: 100%;
    line-height: 60px;
    font-size: 32px;
    background: #fbffb9; /* 背景色 */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .custom-popuplink-area a {
        color: #555;
        font-weight: 500;
        font-size: 15px;
        background: #fff;
        width: 50%;
        text-align: center;
        margin: 3% auto 0;
        border-radius: 100px;
        line-height: 1;
        padding: 15px 0;
    }
}