@charset "UTF-8";

.shopButtonJS{
    cursor:pointer;
}

#header .hdMenu .shopButton{
    padding-top:50px;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background: url("/jrplus/image/common/hd_online_shop.svg") no-repeat center center;
    background-color: var(--main-color-orange);
    background-size: 50px;
    background-position: center 10px;
        
    border-radius: 0 0 0 35px;
    -webkit-transition: all .3s;
    transition: all .3s;
    border-left: 2px solid var(--main-color-orange);
    border-bottom: 2px solid var(--main-color-orange);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 110px;
    width: 105px;
    margin-bottom: 10px;
    max-width: 15vw;
    
    position: relative;
}

#header .hdMenu .bubble::after {
  content: "";
  position: absolute;
  bottom: -10px; /* 三角をボタンの下に配置 */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;  /* 左側透明 */
  border-right: 10px solid transparent; /* 右側透明 */
  border-top: 10px solid #fff;          /* 中身は白 */
}

#header .hdMenu .bubble::before {
  content: "";
  position: absolute;
  bottom: -12px; /* 外枠の位置を少し下げる */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--main-color-orange); 
}


#header .hdMenu .bubble {
    color: var(--main-color-orange);
    background: url("/jrplus/image/common/hd_online_shop_on.svg") no-repeat center center;
    background-color: #fff;
    background-size: 50px;
    background-position: center 10px;
}




#header .hdMenu .shopButton:hover {
    color: var(--main-color-orange);
    background: url("/jrplus/image/common/hd_online_shop_on.svg") no-repeat center center;
    background-color: #fff;
    background-size: 50px;
    background-position: center 10px;
}


#header .hdMenu .companyButton {
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--main-color-blue);
    border-radius: 0 0 0 0px;
    -webkit-transition: all .3s;
    transition: all .3s;
    border-left: 2px solid var(--main-color-blue);
    border-bottom: 2px solid var(--main-color-blue);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 110px;
    width: 105px;
    margin-bottom: 10px;
    max-width: 15vw;
    overflow-wrap: anywhere;
}
#header .hdMenu .companyButton:hover {
    color: var(--main-color-blue);
    background-color: #fff;
}


#shopButtonSP{

}

.hd_online_shop {
    width: 72px;
    --width: 39%; 
    aspect-ratio: 51 / 50; /* 元画像比率を指定 */
    background: url("/jrplus/image/common/hd_online_shop_sp.svg") no-repeat center / contain;
}

.hd_online_shop:hover {
    color: var(--main-color-orange) !important;
    background-image: url("/jrplus/image/common/hd_online_shop_sp_on.svg");
}

.hd_online_shop.hover{
    color: var(--main-color-orange) !important;
    background-image: url("/jrplus/image/common/hd_online_shop_sp_on.svg");
}



#shopButtonPopup {
    margin-top:120px;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999999;
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
}

#shopButtonPopup .shopBgArea {
    width: 100vw;
    height: 100vh;
    background: #000;
    position: relative;
    z-index: 0;
    opacity: 0.5;
}

#shopButtonPopup.open {
    opacity: 1;
    pointer-events: all;
}

#shopButtonPopup .contentsArea {
    width: 1100px;
    max-width: 90%;
    max-height: calc( 90vh - 120px);
    background: #fff;
    position: absolute;
    z-index: 1;
    top: calc( 50% - 60px);
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}



#shopButtonPopup .contentsArea #onlineShop {
    --PaymentTPadding: 45px;
    --PaymentBPadding: 45px;
    padding: var(--PaymentTPadding) 0 var(--PaymentBPadding);
    display: flex;
    flex-flow: column;
}

#shopButtonPopup .contentsArea #onlineShop .inner.title_inner {
    height: unset;
    padding: 0 0 var(--TitleInnerBPadding);
}

#shopButtonPopup .contentsArea #onlineShop .inner {
    height: 100%;
    max-width: 93%;
    --TitleInnerBPadding: 30px;
}



#shopButtonPopup .inner.title_inner .row .col h2 {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--main-color-orange);
    text-align: center;
}

#shopButtonPopup .contentsArea .closeShopPopupBtn {
    width: 46px;
    aspect-ratio: 1 / 1;
    background: url(/jrplus/image/common/payment/closepopup_btn.svg) center / cover no-repeat;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

#shopButtonPopup .contentsArea #onlineShop .inner {
    height: 100%;
    --TitleInnerBPadding: 30px;
}

#shopButtonPopup .contentsArea #onlineShop .inner .row.shop_row {
    height: calc(90vh - 162px - var(--PaymentTPadding) - var(--PaymentBPadding) - var(--TitleInnerBPadding));
    padding: 0 calc(13px + 4%) 0 0;
    overflow: auto;
}

#shopButtonPopup .simplebar-track {
    background: #CECDCD;
    border-radius: 7px;
}

#shopButtonPopup .simplebar-track .simplebar-scrollbar:before {
    width: 100%;
    top: 0px;
    bottom: 0px;
    left: 0;
    opacity: 1;
    background: var(--main-color-orange);
}

#shopButtonPopup .popup-section-body{
    position: relative;
    margin-left: 2%;
}

#shopButtonPopup .c-clm {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

#shopButtonPopup .border-bottom {
    border-bottom: 1px solid #EA6C00;
    padding-bottom: 4vw;
    margin-bottom: 4vw;
}
#shopButtonPopup .border-last {
    padding-bottom: 0vw;
    margin-bottom: 0vw;
}

#shopButtonPopup .c-clm.--2clm {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    margin-bottom: 40px;
}

#shopButtonPopup .c-clm.--2clm .c-clm__item {
     width: 70%;
     flex: 0 0 70%;
     margin: 0px 0px 0px 2%;
}

#shopButtonPopup .c-clm.--4to2clm {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
}

#shopButtonPopup .c-clm.--4to2clm {
        column-gap: max(38.5px, 2vw);
        row-gap: max(42.5px, 2.60417vw);
}

#shopButtonPopup .c-clm.--4to2clm .c-clm__item {
        width:21%
}

#shopButtonPopup .popup_bn_figure{
    width:28%;
    display: flex;
    align-items: center;
}

#shopButtonPopup .p-pupup__text{
    height: 100%;
    display: flex;
    align-items: center;
}

#shopButtonPopup .eclink{
  display: flex;
  align-items: center;
  position: relative; /* ← 矢印配置の基準 */
  padding-left: 28px; /* 丸アイコン分の余白 */
  text-decoration: none;
}


#shopButtonPopup .eclink::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--main-color-orange);
}

#shopButtonPopup .eclink::after {
  content: "";
  position: absolute;
  left: 5px;   
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
}

#shopButtonPopup .ext-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  background-color: #EA6C00; 
  -webkit-mask: url('/jrplus/image/common/link_window.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask: url('/jrplus/image/common/link_window.svg') no-repeat center;
  mask-size: contain;
}

@media screen and (max-width: 1200px) {
    #shopButtonPopup .c-clm.--4to2clm .c-clm__item {
        width: 46%;
    }

    #shopButtonSP{
        padding-top: 54px;
        text-align: center;
        font-size: 11.5px;
        letter-spacing: 0em;
        color: #004097;
        font-weight: 600;
        background-size: 53px;
        background-position: calc(50% + 7px) 2px;
        white-space: nowrap;
    }

    #shopButtonSP:lang(ja) {
        letter-spacing: -3px; 
    }
}


@media screen and (max-width: 767px) {

    #shopButtonSP{
        padding-top: min(54px , calc(100vw * 0.084) );
        text-align: center;
        font-size: min(11.5px,2vw);
        letter-spacing: 0em;
        color: #004097;
        font-weight: 600;
        background-size: min(53px,70%);
        background-position: calc(50% + 1vw) 2px;
        white-space: nowrap;
    }

    #shopButtonSP:lang(ja) {
        letter-spacing: -3px; 
    }

    #onlineShop .inner{
        font-size: 1.2rem;
    }
    
    #shopButtonPopup {
        margin-top:90px;
    }
    
    #shopButtonPopup .contentsArea {
        height: 100%;
        --max-height: calc( 90vh - 90px);
        --top: calc( 50% - 60px);
        max-height: calc( 90vh - 9vh);
        top: calc( 50% - 7vh);

    }
    #shopButtonPopup .popup_bn_figure {
        width: 100%;
    }
    
    #shopButtonPopup .inner.title_inner .row .col h2 {
        font-size: 2.1rem;
        font-weight: 500;
        text-align: left;
        margin-left: 9px;
        width: 82%;
    }
    #shopButtonPopup .contentsArea #onlineShop .inner.title_inner {
        padding-bottom:20px;
    }
    
    #shopButtonPopup .c-clm.--2clm {
        margin-bottom:15px;
    }
    #shopButtonPopup .c-clm.--4to2clm {
        column-gap: 5px;
        row-gap: 10px;
    }
    
    #shopButtonPopup .c-clm.--2clm .c-clm__item {
        width: 100%;
        flex: 0 0 100%;
        margin: 15px 0px 0px 0px;
    }
    
    #shopButtonPopup .c-clm.--4to2clm .c-clm__item {
        width: 47%;
    }
    
    #shopButtonPopup .contentsArea .closeShopPopupBtn {
        width: 46px;
        top: 15px;
        right: 15px;
    }

    #shopButtonPopup .contentsArea #onlineShop {
        padding: 45px 0 45px;
    }
    
    #shopButtonPopup .contentsArea #onlineShop .inner .row.shop_row {
       height: calc(90vh - 230px);
    }
    #shopButtonPopup .eclink {
        padding-left:14px;
    }

    #shopButtonPopup .eclink::before {
        width: 11px;
        height: 11px;
    }
    #shopButtonPopup .eclink::after {
        left: 3px;
        width: 3px;
        height: 3px;
        border-right: 1px solid #fff;
        border-top: 1px solid #fff;
    }

    #shopButtonPopup .ext-icon {
        width: 10px;
        height: 10px;
        margin-left: 3px;
    }

    .hd_online_shop {
        width: 72px; 
    }

    #shopButtonPopup .border-bottom {
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    #shopButtonPopup .border-last {
        padding-bottom: 1vw;
        margin-bottom: 0vw;
    }

}
