.product-Header{
    position: relative;
    /* margin-top: -75px; */
    margin-bottom: 50px;
    z-index: auto;
}
@media screen and (max-width: 768px) {
    .product-Header{
        margin-top: 0;
    }
}
.product-Header__Title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
    color: black;
    font-size: 3.6rem;
    font-family: mincho;
    text-align: center;
}
.product-Header__Title *{
    color: black;
    font-size: 3.6rem;
    font-family: mincho;
}


/*** 商品リスト ***/
.product-List{
    margin-bottom: 30px;
}
.product-List[aria-hidden=true]{
    display: none;
}
.product-List__Title{
    color: #c8a700;
    font-size: 2rem;
    font-family: mincho;
    padding-bottom: 5px;
}
.product-List__Items{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.product-List__Item{
    font-family: mincho;
}
.product-List__Item a:hover{
    opacity: 0.8;
}
.product-List__Item img {
    border: 1px solid #efefef;
}

.product-List__Detail{
    display: flex;
    align-items: center;
    float: right;
    color: black;
    text-decoration: none;
    width: fit-content;
    background-color: #c8a700;
    border-radius: 5px;
    padding: 5px 10px;
}
.product-List__Detail::before{
    content: url('/images/icon-arrow-right-circle-fill.svg');
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin-right: 1px;
}






/*** 注文ページ プログレスバー ***/
.product-OrderProgress{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}
.product-OrderProgress__Item{
    display: flex;
    flex-direction: column;
    align-items: center;

    /* ::afterで使う工程間の線引用 */
    position: relative;
    z-index: 2;

    width: calc(100% / 4);
    text-align: center;
}
.product-OrderProgress__Item span{
    content: '';
    background-color: #bdbdbd;
    color: #009900;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 100px;
    background-color: #c8a700;
}
.product-OrderProgress__Item.--current ~ * span{
    background-color: #bdbdbd;
}
.product-OrderProgress__Item:not(:last-child)::after{
    content: '';
    display: inline-block;
    position: absolute;
    top: 22px;
    left: 50%; /* 50%だけ右にずらす */
    z-index: -1;
    width: 100%;
    height: 2px;
    background-color: #c8a700;
}
.product-OrderProgress__Item.--current:not(:last-child)::after{
    background-color: #bdbdbd;
}
.product-OrderProgress__Item.--current ~ *:not(:last-child)::after{
    background-color: #bdbdbd;
}




/*** 注文ページレイアウト ***/
/* .product-OrderLayout{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
}
.product-OrderLayout.--row-reverse{
    flex-direction: row-reverse;
}
.product-OrderLayout__Right{
    flex-grow: 1;
    flex-basis: 600px;
}
.product-OrderLayout__Left{
    flex-grow: 1;
    flex-basis: 300px;
}
.product-OrderLayout__Left.--carousel{
    width: 300px;
} */
.product-OrderLayout{
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}
.product-OrderLayout__Left{
    grid-column: 1;
}
.product-OrderLayout__Right{
    grid-column: 2;
}
.product-OrderLayout__Carousel{
    width: min(calc(100vw - 30px), 350px);
}

@media screen and (max-width: 600px){
    .product-OrderLayout{
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .product-OrderLayout__Left{
        display: contents;
    }
    .product-OrderLayout__Right{
        display: contents;
    }
    .product-OrderLayout__Carousel{
        justify-self: center;
        grid-row: 1;
    }
    .product-OrderLayout__Header{
        grid-row: 2;
    }
    .product-OrderLayout__Form{
        grid-row: 3;
    }
    .product-OrderLayout__Estimation{
        grid-row: 4;
    }
    
}





/*** 原寸大画像のポップアップ ***/
.product-OrderForm__DialogImagePopup button{
    color: black;
    padding: 10px;
    background-color: #ddd;
}
.product-OrderForm__DialogImagePopup::backdrop{
    background-color: rgba(0, 0, 0, 0.6);
}




/*** 注文ページヘッダー ***/
.product-OrderHeader{
    margin-bottom: 30px;
}
.product-OrderHeader__Title{
    font-size: 2.6rem;
    font-family: mincho;
    padding-bottom: 10px;
}
.product-OrderHeader__SubTitle{
    font-size: 1.6rem;
    color: #c8a700;
    font-family: mincho;
    padding-bottom: 15px;
}
.product-OrderHeader__Description{
    color: black;
    background: linear-gradient(to left, rgba(255,255,255, 0.3), rgba(255,255,255, 0.7));
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.product-OrderHeader__Spec{
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #fff;
}




/*** 注文フォーム ***/
.product-OrderForm{
}
.product-OrderForm .-invalid{
    border: 2px solid red;
}
.product-OrderForm__Title{
    font-size: 2.6rem;
    border-bottom: 1px dotted #bfbfbf;
    margin-bottom: 15px;
}
.product-OrderForm__Group{
    display: contents;
}
.product-OrderForm__Group.--hidden{
    display: none;
}
.product-OrderForm__Label{
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.product-OrderForm__Label.--error{
    color: red;
}
.product-OrderForm__Label.--required::before{
    content: '必須';
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    background-color: #e3342f;
    padding: 2px 10px;
    border-radius: 5px;
}
.product-OrderForm__ImageSelects{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.product-OrderForm__ImageOption{
    text-align: center;
    font-size: 1.6rem;
}
.product-OrderForm__ImageOption:has(input:checked){
    color: #ffc107;
}
.product-OrderForm__ImageOption img{
    border: 2px solid #fff;
    border-radius: 5px;
    margin-bottom: 5px;
}
/*.product-OrderForm__ImageSelects:has(input:checked) > */
.product-OrderForm__ImageSelects:has(input:checked) .product-OrderForm__ImageOption:has(:not(input:checked)) img{
    opacity: 0.3;
}
.product-OrderForm__ImageSelects:has(input:checked) .product-OrderForm__ImageOption:has(input:checked) img{
    opacity: 1;
    border-color: #ffc107;
}
.product-OrderForm__Quantity{
    color: black;
    font-size: 2.0rem;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
    margin-bottom: 30px;
}
.product-OrderForm__Quantity *{
    color: black;
}
.product-OrderForm__CourseMenuSelectMethods{
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.product-OrderForm__CourseMenuSelectMethods > *{
    background-color: #fff;
    color: #000;
    font-size: 1.8rem;
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    width: 50%;
    padding: 15px;
    /* opacity: 0.3; */
}
.product-OrderForm__CourseMenuSelectMethods > *:has(input:checked){
    color: #fff;
    background-color: #009CFF;
}
.product-OrderForm__FileUploadLabel{
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 5px;
    background-color: #ffffd7;
    border-radius: 5px;
    padding: 60px 15px;
    /* margin-top: 25px; */
    margin-bottom: 10px;
}
.product-OrderForm__FileUploadLabel *{
    color: black;
    font-size: 2.4rem;
}
.product-OrderForm__FileUploadLabel:hover{
    opacity: 0.8;
}

.product-OrderForm__FileUpload{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.product-OrderForm__FileUploadMessage{
    font-size: 1.2rem;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #fff;
}
.product-OrderForm__CourseMenu{
    /* writing-mode: vertical-rl;
    text-orientation: upright;
    resize: none; */
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
} 
.product-OrderForm__CourseMenuText{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.product-OrderForm__CourseMenuText textarea{
    height: 7.5em;
}
.--error .product-OrderForm__CourseMenuText input[value='']{
    border: 1px solid red;
}
.product-OrderForm__AddCourseMenuText{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}
.product-OrderForm__AddCourseMenuText:hover{
    opacity: 0.7;
}
.product-OrderForm__HasAnotherShippingAddress{
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 30px;
}
.product-OrderForm__HasAnotherShippingAddress > *{
    padding: 15px;
    border-top: 1px solid #ced4da;
}
.product-OrderForm__HasAnotherShippingAddress > *:first-child{
    border-top-width: 0;
}
.product-OrderForm__HasAnotherShippingAddress *{
    color: black;
}
.product-OrderForm__HasAnotherShippingAddress > div{
    display: none;
    background-color: #f4f4f4;
}
.product-OrderForm__HasAnotherShippingAddress > label:has(input[value=yes]:checked) + div{
    display: block;
}
.product-OrderForm__PaymentMethods{
    display: flex;
    border-radius: 5px 5px 0 0;
}
.product-OrderForm__PaymentMethod{
    flex-grow: 1;
    background-color: #198754;
    padding: 30px 0;
    text-align: center;
    position: relative;
}
.product-OrderForm__PaymentMethod:focus-within {
    outline: 1px auto Highlight;
    outline: 1px auto -webkit-focus-ring-color;
    outline-offset: 3px;
}
.product-OrderForm__PaymentMethod input{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  
    opacity: 0;
}
.product-OrderForm__PaymentMethod *{
    color: #fff;
}
.product-OrderForm__PaymentMethod img{
    width: 30px;
}
.product-OrderForm__PaymentMethod:has(input:checked){
    background-color: #146c43;
}
.product-OrderForm__Payments{
    background-color: #efefef;
    padding: 30px;
}
.product-OrderForm__Payments *{
    color: black;
}
.product-OrderForm__Payment[aria-hidden=true]{
    display: none;
}
.product-OrderForm__DialogAntiSocial *{
    color: black;
}
.product-OrderForm__DialogAntiSocial button{
    padding: 10px;
    background-color: #ddd;
}
.product-OrderForm__DialogAntiSocial::backdrop{
    background-color: rgba(0, 0, 0, 0.6);
}




/*** 見積もり価格表 ***/
.product-OrderEstimation{
    position: sticky;
    top: 75px;
    background-color: #eee;
    border-radius: 5px;
    padding: 15px;
}
.product-OrderEstimation *{
    font-size: 1.6rem;
    color: black;
}
.product-OrderEstimation__List{
    padding-bottom: 20px;
}
.product-OrderEstimation__Item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
}
.product-OrderEstimation__Item.--border-bottom{
    border-bottom: 1px solid #aaa;
    padding-bottom: 20px;
    margin-bottom: 10px;
}
.product-OrderEstimation__Item.--total{
    font-weight: bold;
    padding-top: 20px;
}
.product-OrderEstimation__Item.--total *{
    font-size: 1.8rem;
}
.product-OrderEstimation__Item.--total dd{
    color: red;
}
.product-OrderEstimation__Submit{
    position: relative;
    text-align: center;
}
.product-OrderEstimation__Submit > button{
    font-weight: bold;
    background-color: #ffca2c;
    width: 85%;
    padding: 20px;
    margin-bottom: 15px;
}
.product-OrderEstimation__Submit.--backward > button{
    color: #fff;
    background-color: #6c757d;
}
.product-OrderEstimation__Submit svg{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: 0 -50%;
    z-index: 10;
}
.product-OrderEstimation__Submit svg.arc {
    animation: arc-anim 0.8s infinite linear;
}
@keyframes arc-anim {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.product-OrderEstimation__Submit.--submitted button{
    opacity: 0.5;
    pointer-events: none;
}
.product-OrderEstimation__Submit.--submitted svg{
    display: inline-block;
}


/**** 支払い ****/
#card_number, #card_expiry, #card_cvc{
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}



/**** サンクスページ ****/
.product-PostOrder{
    margin-bottom: 30px;
}
.product-PostOrder__Title{
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 30px;
}
.product-PostOrder__FlowWrapper{
    width: fit-content;
    border: 1px solid #fff;
    padding: 15px 30px;
    margin: auto;
}
.product-PostOrder__Flow{
    display: flex;
    justify-content: center;
    /* padding-left: 50px;
    padding-right: 50px; */
    padding-bottom: 15px;
}
.product-PostOrder__Flow > *{
    display: flex;
}
.product-PostOrder__Flow > *:after{
    content: '';
    width: 25px;
    height: 25px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    margin-left: 30px;
    margin-right: 30px;
    align-self: center;
}
.product-PostOrder__Flow > *:last-child:after{
    width: 0;
    height: 0;
    border-top-width: 0;
    border-right-width: 0;
    margin: 0;
}
.product-PostOrder__Flow img{
    max-width: 100px;
    min-width: 80px;
}

@media screen and (max-width: 600px){
    .product-PostOrder__Flow{
        display: block;
    }
    .product-PostOrder__Flow > *{
        flex-direction: column;
    }
    .product-PostOrder__Flow > *:after{
        margin: 0 0 30px 0;
        transform: rotate(135deg);
    }
    .product-PostOrder__Flow img{
        height: auto;
    }
}

.product-PostOrder__LineAdd{
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}
.product-PostOrder__LineAdd a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    /* width: fit-content; */
    background-color: #00A75B;
    padding: 5px 15px;
}
.product-PostOrder__LineAdd a:hover{
    opacity: 0.8;
}
.product-PostOrder__LineAdd a img{
    width: 15px;
}
.product-PostOrder__LineAdd > img{
    width: 60px;
}

