/* ******************************* */
/* パーツ：ボタン */
/* ******************************* */
.parts_button01 a {
    align-items: center;
    background: #03afe8;
    color: #ffffff;
    display: flex;
    font-weight: 500;
    height: 80px;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 280px;
    /* max-width: 300px; */
    padding: 10px 25px;
    position: relative;
    transition: 0.3s ease-in-out;
}

.parts_button01 a:before {
    background-color: #6bb6ff;
    content: '';
    height: 2px;
    position: absolute;
    right: -2em;
    top: calc(50% - 2px);
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    transition: 0.3s;
    width: 12px;
}

.parts_button01 a:after {
    background-color: #6bb6ff;
    content: '';
    height: 2px;
    position: absolute;
    right: -2em;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    width: 60px;
}

.parts_button01 a:hover:before,
.parts_button01 a:hover:after {
    right: -2.5em;
}

.parts_button01 a:hover {
    background: #edf6ff;
    color: #6bb6ff;
}

/* ボタン配色変更 */
.parts_button02 a {
    align-items: center;
    background: #efaa0a;
    color: #ffffff;
    display: flex;
    font-weight: 500;
    height: 80px;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 280px;
    /* max-width: 300px; */
    padding: 10px 25px;
    position: relative;
    transition: 0.3s ease-in-out;
}

.parts_button02 a:before {
    background-color: #f64c03;
    content: '';
    height: 2px;
    position: absolute;
    right: -2em;
    top: calc(50% - 2px);
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    transition: 0.3s;
    width: 12px;
}

.parts_button02 a:after {
    background-color: #f64c03;
    content: '';
    height: 2px;
    position: absolute;
    right: -2em;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    width: 60px;
}

.parts_button02 a:hover:before,
.parts_button02 a:hover:after {
    right: -2.5em;
}

.parts_button02 a:hover {
    background: #f8d3ac;
    color: #f64c03;
}

/* ************************ */
/* ポップアップパーツ */
/* ************************ */
.popup_box {
    background-color: #0499bb;
    border-radius: 20px;
    color: white;
    font-size: min(0.8rem, 0.8vw);
    margin: min(1rem, 1vw);
    padding: min(0.5rem, 0.5vw);
    padding-left: min(2rem,2vw);
    padding-right: min(2rem,2vw);
}

#popup {
    display: none;
    /* label でコントロールするので input は非表示に */
}

.popup-open {
    cursor: pointer;
    /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
}

.popup-overlay {
    display: none;
    /* input にチェックが入るまでは非表示に */
}

#popup:checked~.popup-overlay {
    background-color: #00000070;
    display: block;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
}

.popup-window {
    background-color: rgb(209, 234, 251);
    border-radius: 6px;
    left: 50%;
    max-width: 800px;
    padding: 10px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;

    /* パディングのみ注意 */
    p {
        padding: 0.5rem;
    }
}

.popup-text {
    margin: 0;
}

.popup-text:not(:last-of-type) {
    margin-bottom: 1em
}

.popup-close {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: -26px;
}

/* *************************** */
/* メディアクエリ */
/* *************************** */
@media (max-width: 768px) {
    .popup_box {
        background-color: #03b6de;
        border-radius: 20px;
        color: white;
        font-size: min(3rem, 3vw);
        margin: min(2rem, 2vw);
        padding: min(2rem, 2vw);
        padding-left: min(10rem,10vw);
        padding-right: min(10rem,10vw);
    }

    .popup-window {
        max-height: 90vh;
    }
}