html.modal_scroll_lock {
    overflow: hidden;
}

.template_order {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 102;
    padding: 50px;
    background: var(--base-offwhite);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    overscroll-behavior: contain;
    display: flex;
    align-items: safe center;
    justify-content: safe center;
}
.template_order.is-active {
    opacity: 1;
    visibility: visible;
}
.template_order_container {
    border-radius: 50px;
    background: #fff;
    padding: 100px 50px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) transparent;
}
.template_order_container::-webkit-scrollbar {
    width: 6px;
}
.template_order_container::-webkit-scrollbar-track {
    background: transparent;
}
.template_order_container::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 3px;
}
.template_order_container .modal_close {
    width: 32px;
    aspect-ratio: 1;
    object-fit: contain;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 2;
}

.template_order_inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(30px, calc((100vw / 1440) * 50), 50px);
}

.template_order_left {
    width: 35%;
    max-width: 390px;
    display: flex;
    gap: 30px;
}
.template_order_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 20px;
}
.template_order_item_head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.template_order_item_head_inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.template_order_item_head_num {
    width: 50px;
    aspect-ratio: 1;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.template_order_item_head_sub {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_item_head_main {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: -8px;
    margin-bottom: -8px;
}
.template_order_tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.template_order_note {
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
}
.template_order_note--top {
    margin-top: -8px;
    margin-bottom: -8px;
    text-align: left;
}
.template_order_note--price {
    margin-top: -8px;
    margin-bottom: -8px;
    text-align: left;
}
.template_order_note--middle {
    margin-top: 4px;
    text-align: center;
}
.template_order_note--emphasis {
    color: #d63638;
    font-weight: 600;
}

.template_order_swiper {
    width: 100%;
}
.template_order_swiper img {
    width: 100%;
    height: auto;
    display: block;
}
.template_order_swiper .swiper-button-prev,
.template_order_swiper .swiper-button-next {
    border: 1px solid var(--color-text);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: unset;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: #fff;
}
.template_order_swiper .swiper-button-next:after,
.template_order_swiper .swiper-button-prev:after {
    content: "";
    display: block;
    width: 7px;
    height: 12px;
    background: url(../../img/pagination_arrow.svg)no-repeat center center/ contain;
    position: relative;
}
.template_order_swiper .swiper-button-next:after {
    transform: rotate(180deg);
}

.template_order_size {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    background: #fff;
}
.template_order_size_tabs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 0;
}
.template_order_size_tabs_text {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_size_tabs_mark {
    width: 20px;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}
.template_order_size_content {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}
.template_order_size_content_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.template_order_size_content_inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.template_order_size_content_title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_size_content_text {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_size_content .components_btn {
    padding: 4px 8px 4px 14px;
    border: 1px solid var(--color-text);
    margin: 0;
    flex-shrink: 0;
}
.template_order_size_content .components_btn_line {
    height: 10px;
    margin: 0 3px 0 10px;
}
.template_order_size_content .components_btn_text {
    font-size: 10px;
}
.template_order_size_content .components_btn_icon {
    width: 9px;
}

.template_order_info {
    width: 100%;
}
.template_order_info_inner {
    display: flex;
    border: 1px solid var(--gray);
    margin-top: -1px;
}
.template_order_info_inner:nth-of-type(1) {
    border-radius: 3px 3px 0 0;
}
.template_order_info_inner:nth-of-type(2) {
    border-radius: 0 0 3px 3px;
}
.template_order_info_title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    border-right: 1px solid var(--gray);
    padding: 10px 6px;
    text-align: center;
    flex-grow: 1;
    line-height: 1.2;
}
.template_order_info_title_small {
    font-size: 10px;
}
.template_order_info_text {
    width: clamp(100px, calc((100vw / 1440) * 150), 150px);
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.template_order_info_text_yen {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-right: 1px;
}
.template_order_info_text_unit {
    font-size: 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}
/* ラベル未入力時は価格テキストで inner 全幅を埋め、ラベル有り時と同じ高さを確保 */
.template_order_info_inner--no-title {
    justify-content: center;
}
.template_order_info_inner--no-title .template_order_info_text {
    width: 100%;
    padding: 10px 6px;
}
/* サイズタブ非表示の商品ではモーダル内のサイズマーク行も非表示 */
.template_order_size--no-tabs .template_order_size_tabs {
    display: none;
}

.template_order_center {
    width: 30%;
    max-width: 400px;
    flex-direction: column;
}
.template_order_center_pc {
    display: flex;
}
.template_order_center_sp {
    display: none;
}
.template_order_title {
    font-size: clamp(14px, calc((100vw / 767) * 16), 16px);
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--accent-green);
}
.template_order_center_image {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}


.template_order_right {
    width: 40%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.template_order_right .template_order_title {
    margin-bottom: 10px;
}
.template_order_right_inner {
    display: flex;
    flex-direction: column;
}
.template_order_right_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.template_order_right_text {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.05em;
}
.template_order_right_wrap .components_btn {
    padding: 8px 13px 8px 28px;
    flex-shrink: 0;
    background: var(--beige);
    border: 2px solid var(--beige);
    color: #fff;
}
.template_order_right_wrap .components_btn_text {
    font-size: clamp(14px, calc((100vw / 767) * 16), 16px);
}
.template_order_right_wrap .components_btn_line {
    height: 25px;
    margin: 0 8px 0 20px;
    background: #fff;
}
.template_order_right_wrap .components_btn_icon {
    width: 13px;
    filter: brightness(0) invert(1);
}

.template_order_right_inner_colors {
    max-width: 400px;
}
.template_order_colors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px 0 20px;
}
.template_order_colors_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}
.template_order_colors_item p {
    font-size: clamp(14px, calc((100vw / 959) * 16), 16px);
    font-weight: bold;
    letter-spacing: 0.05em;
}
.template_order_colors_item select {
    width: 100%;
    max-width: 175px;
    padding: 8px 40px 7px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--base-gray);
    border: 1px solid var(--base-gray);
    border-radius: 3px;
    box-sizing: border-box;
    appearance: none;
    flex-shrink: 0;
    position: relative;
}
.template_order_colors_item::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 4px;
    transform: translateY(-50%);
    background: url(../../img/template_colors_about_link.svg) no-repeat center center/ contain;
    pointer-events: none;
}

.template_order_right_inner_colors .components_btn_blue {
    padding: 8px 13px 8px 28px;
    margin: 0 0 0 auto;
}
.template_order_right_inner_colors .components_btn_line {
    height: 25px;
    margin: 0 8px 0 20px;
    background: #fff;
}

@media (any-hover: hover) {
    .template_order_right_wrap .components_btn:hover {
        background: #fff;
        color: var(--beige);
    }
    .template_order_right_wrap .components_btn:hover .components_btn_text {
        color: var(--beige);
    }
    .template_order_right_wrap .components_btn:hover .components_btn_line {
        background: var(--beige);
    }
    .template_order_right_wrap .components_btn:hover .components_btn_icon {
        filter: unset;
    }
}


@media screen and (max-width: 1200px) {
    .template_order_inner {
        gap: 20px;
    }
    .template_order_right_wrap {
        flex-direction: column;
    }
    .template_order_right_wrap .components_btn {
        margin: 0 0 0 auto;
    }
    .template_order_colors_item select {
        max-width: 130px;
    }
}

@media screen and (max-width: 1024px) {
    .template_order_inner {
        gap: 40px;
        justify-content: center;
    }
    .template_order_left {
        width: 50%;
        flex-direction: column;
    }
    .template_order_center_pc {
        display: none;
    }
    .template_order_center_sp {
        width: 100%;
        display: flex;
    }
}

@media screen and (max-width: 959px) {
    .template_order_container {
        border-radius: 20px;
        padding: 100px clamp(20px, calc((100vw / 959) * 30), 100px);
    }
    .template_order_item {
        padding: 15px 10px;
    }
}

@media screen and (max-width: 767px) {
    .template_order {
        padding: 50px 30px;
    }
    .template_order_container {
        padding: 70px 20px 50px;
    }
    .template_order_container .modal_close {
        width: 20px;
        top: 20px;
        right: 20px;
    }

    .template_order_inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .template_order_center_sp {
        max-width: 390px;
    }
    .template_order_left {
        width: 100%;
    }
    .template_order_right {
        width: 100%;
        max-width: 390px;
    }
    .template_order_right_inner_colors {
        max-width: 100%;
    }

    .template_order_right_wrap .components_btn {
        margin: 0 auto 0 0;
        padding: 8px 13px 8px 13px;
    }
    .template_order_right_inner_colors .components_btn_blue {
        padding: 8px 13px 8px 13px;
    }
    .components_btn .cart_icon {
        width: 15px;
    }
}