@charset "UTF-8";

/* 通販モーダルウィンドウ */
.modal-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 90%;
    background-color: #fff;
    border-radius: 5px;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .modal-window {
        width: 65%;
    }
}

.modal-window h2 {
    font-family: 'Hiragino Kaku Gothic Pro', "游ゴシック", YuGothic, 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    color: #EA6D5E;
    text-align: center;
    margin-bottom: 10px;
}

.modal-window .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 20px;
    gap: 30px;
}

.modal-window .row img {
    max-width: 100%;
}

/* 閉じるボタン */
.button-close {
    margin: 25px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 10px;
    color: #fff;
    appearance: none;
    border: none;
    border-radius: 20rem;
    background-color: #EA6D5E;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 130%;
}
.button-close span {
    font-size: 120%;
    margin-left: 0.5em;
    margin-top: 0.1em;
}

/* オーバーレイ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.buy_box{
    border: 1px solid #d0d0d0;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}

.buy_btns {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
}

.buy_btn {
    font-family: 'Hiragino Kaku Gothic Pro', "游ゴシック", YuGothic, 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    /*padding: 0.5em 1.5em;*/
    /*text-align: center;*/
    /*text-decoration: none;*/
    /*color: #008ec3;*/
    /*background: #fff;*/
    /*border-radius: 30px;*/
    /*border: 2px solid #008ec3;*/
    /*transition: transform ease .3s;*/
}

.buy_btn span {
    display: inline-block;
    text-decoration: none;
    transition: transform ease .3s;
}

.buy_ar {
    width: 20px;
    height: 23px;
    margin-left: 5px;
}

/*20240129 モーダル修正*/
body > div.modal-window > div > div > div > div.buy_btns {
    flex-wrap: wrap;
    max-width: 270px;
    justify-content: center;
    margin: 10px auto 0;
}
body > div.modal-window > div > div > div > div.buy_btns.skinbarrier-bb{
    max-width: 440px;
}
body > div.modal-window > div > div > div > div > div.buy_btn:nth-child(1),
body > div.modal-window > div > div > div > div > div.buy_btn:nth-child(2) {
    width: calc(50% - 7.5px);
}
body > div.modal-window > div > div > div > div > div.buy_btn:nth-child(3){
    min-width: 270px;
}
body > div.modal-window > div > div > div > div > div.buy_btn > a {
    padding: 0.5em 1.5em;
    text-align: center;
    text-decoration: none;
    color: #008ec3;
    background: #fff;
    border-radius: 30px;
    border: 2px solid #008ec3;
    transition: transform ease .3s;
    width: 100%;
    line-height: 1.53;
}

body > div.modal-window > div > div > div > div.buy_btns > div.buy_btn > a:hover {
    cursor: pointer;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 10px 0 rgba(0, 0, 0, 0.12), 0 4px 7px -2px rgba(0, 0, 0, 0.2);
}

#product-body > p.large {
    /*height: 92px;*/
    letter-spacing: -0.02em;;
    height: max-content;
    padding-bottom: 5px;
}

@media screen and (max-width: 768px) {
    body > div.modal-window > div > div > div > div.buy_btns {
        flex-direction: column;
        align-items: center;
    }
    body > div.modal-window > div > div > div > div.buy_btns.skinbarrier-bb{
        max-width: 270px;
    }
    body > div.modal-window > div > div > div > div.buy_btns > div.buy_btn {
        width: 100%;
    }

    #product-body > p.large {
        height: max-content;
        padding-bottom: 10px;
    }
}

