.search-result .quote-item { margin: 20px 0; border: 1px solid #c2ced9; border-radius: 6px; background: #fff; padding: 20px; overflow-wrap: anywhere; }
.quote-item h2 { font-size: 1.15rem; margin-top: 0; }
.quote-numbers { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.quote-numbers label { display: block; }
.quote-numbers input { max-width: 130px; padding: 10px; font: inherit; font-size:16px; border:1px solid #b9c2cf; border-radius:4px; box-sizing: border-box; }
.quote-total { padding: 16px; margin: 20px 0; background: #e7edf3; border-radius: 6px; }
.quote-price-scroll { overflow-x: auto; margin: 15px 0; }
.quote-prices { border-collapse: collapse; width: 100%; min-width: 480px; }
.quote-prices th, .quote-prices td { border: 1px solid #c2ced9; padding: 8px; text-align: center; }
.quote-prices caption { text-align: left; padding: 6px 0; }
.quote-prices th { background: #e7edf3; }
.site-header nav a { white-space: nowrap; }
.cart-clear-action { margin: 16px 0 0; }
@media (max-width: 600px) { .header-inner { flex-wrap: wrap; gap: 12px; } .contact-steps { gap: 5px; font-size: .85rem; } .quote-item { padding: 14px; } }

.item-name {
    height: auto;
    margin: 0;
    padding: 5px;
    &.noitems {
        font-size: 16px;
    }
}
.cart_btn_wrap .continue_btn {
    background: #fff;
    border: 1px solid #ff7725;
    box-sizing: border-box;
    color: #ff7725;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    font-variation-settings: "wght" 700;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto 20px auto auto;
    padding: 0 20px 0 30px;
    position: relative;
    height: 45px;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    transition: var(--common-transition);
    min-width: 130px;
    &.btn_add {
        background: #ff7725;
        border: 3px solid #ff7725;
        margin: auto;
        padding: 0 15px 0 35px;
        color: #fff;
        &:hover {
            background: #fff;
            border: 3px solid #ff7725;
            color: #ff7725;
        }
        &::before, &::after {
            content: "";
            background: #fff;
            border: none;
            margin: auto;
            transition: all .3s ease-in;
            position: absolute;
            left: 10px;
            top: -2px;
            bottom: 0;
            height: 3px;
            width: 15px;
        }
        &:hover::before,
        &:hover::after {
            content: "";
            background: #ff7725;
            color: #ff7725;
        }
        &::after {
            transform: rotate(90deg);
        }
    }
}

/* /cart/ 商品入力欄：各クラスを個別に調整できます。 */
.cart-products-input {
    width: 100%;
    min-width: 0;
}
.cart-products-input .cart-entry-list {
    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
}
.cart-products-input .cart-entry {
    background: #fff;
    border: none;
    border-radius: 3px;
    margin: 2px 0 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
    @media (max-width: 1024px) {
        flex-direction: column;
        gap: 10px;
    }
    @media (max-width: 640px) {
        padding: 10px 0;
    }
    &:nth-of-type(n+2)::before {
        content: "";
        background: #f1f1f1;
        position: absolute;
        top: -20px;
        margin: auto;
        height: 1px;
        width: 98%;
    }
    .cart-entry-main {
        display: inline-flex;
        flex-direction: row;
        justify-content: center;
        position: relative;
        width: max(55%,540px);
        padding: 10px 0 10px 10px;
        @media (max-width: 1024px) {
            width: max(100%,540px);
        }
        @media (max-width: 640px) {
            align-items: start;
            gap: 10px;
            padding: 0;
            width: 100%;
        }
    }
    .cart-entry-prices {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        margin: auto 0;
        position: relative;
        padding: 0 10px;
        height: 90px;
        width: max(45%, 450px);
        @media (max-width: 1024px) {
            max-width: 700px;
            width: 100%;
        }
        @media (max-width: 640px) {
            padding: 0 3px;
        }
        .cart-entry-price-caption {
            color: #666;
            caption-side: bottom;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            font-size: 11px;
            line-height: 1;
            padding-bottom: 5px;
            height: 25px;
        }
    }

}
.cart-products-input .cart-entry-prices table {
    background: #f4f4f4;
    border-collapse: collapse;
    border-radius: 3px;
    table-layout: fixed;
    text-align: center;
    font-size: 14px;
    margin: 0;
    max-height: none;
    height: auto;
    min-width: 0;
    width: 100%;
    @media (max-width: 640px) {
        font-size: 12px;
    }
    tr {
        display: table-row;
    }
    th, td {
        display: table-cell;
        font-size: 15px;
        text-align: center;
        padding: 12px 6px;
        overflow-wrap: anywhere;
        vertical-align: middle;
        width: auto;
        @media (max-width: 640px) {
            font-size: 13px;
            padding: 8px 3px;
        }
    }
    @media (max-width: 640px) {
        th:first-of-type, td:first-of-type {
            width: 42.5px;
        }
    }
    thead {
        display: table-header-group;
        tr {
            border-bottom: 1px solid #d1d9e4;
        }
    }
    tbody {
        display: table-row-group;
    }
    .cart-products-input .cart-entry-prices th {
        background: #edf3fb;
        color: #253e65;
        font-weight: bold;
    }
}

.cart-products-input .cart-entry-image {
    float: none;
    margin: 0;
    padding: 0;
    width: 100px;
    @media (max-width: 640px) {
        height: 80px;
        width: 80px;
    }
    img {
        display: block;
        height: 80px;
        object-fit: contain;
        max-width: 100%;
        width: 80px;
        @media (max-width: 640px) {
            height: 80px;
            width: 80px;
        }
    }
}
.cart-products-input .cart-entry-info {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    .cart-entry-name {
        padding: 0;
        font-size: 15px;
        font-weight: bold;
        line-height: 1.2;
        overflow-wrap: anywhere;
        margin: 0;
        height: auto;
    }
    .cart-entry-id {
        color: #666;
        font-size: 11px;
        margin: 0 0 5px;
    }
}
.cart-products-input .cart-entry-quantities {
    display: flex;
    gap: 0 12px;
    margin: 0;
    padding: 0;
    text-align: center;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    @media (max-width: 640px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
    .cart-entry-quantity {
        background: #f0f0f0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        height: 40px;
        min-width: 200px;
        @media (max-width: 640px) {
            background: #fff;
            width: 100%;
        }
        label {
            display: block;
            font-weight: bold;
            font-size: 13px;
            padding: 0 10px;
            width: 100%;
        }
    }
}
.cart-products-input .cart-entry-quantities {
    .cart-entry-spinner {
        display: flex;
        align-items: center;
        gap: 0px;
        height: 38px;
        input {
            appearance: textfield;
            border: 0 solid #b8c0cb;
            border-radius: 0px;
            box-shadow: none;
            padding: 0px;
            margin: 0;
            font-size: 16px;
            text-align: center;
            height: 100%;
            min-width: 0;
            width: 50px;
            @media (max-width: 640px) {
                background: #f0f0f0;
            }
            &::-webkit-inner-spin-button,
            &::-webkit-outer-spin-button {
                appearance: none;
                margin: 0;
            }
        }
        button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 38px;
            height: 38px;
            padding: 0;
            margin: 0;
            border: 1px solid #bcc6d3;
            border-radius: 3px;
            background: #f3f6fa;
            color: #164890;
            font-size: 20px;
            cursor: pointer;
            &.btnspinner {
                background: #5680a6;
                border: 0;
                border-radius: 0;
                color: #fff;
                cursor: pointer;
                line-height: 1;
                display: inline-flex;
                flex-direction: column;
                justify-content: center;
                font-size: 20px;
                font-family: "YuGothic";
                font-weight: bold;
                margin: 0;
                align-items: center;
                min-height: auto;
                height: 38px;
                width: 36px;
                &.minus {
                    background: #7a9ab7;
                }
            }
            &:hover {
                background: #e2ebf7;
            }
        }
        span {
            flex-shrink: 0;
            font-size: 14px;
            white-space: nowrap;
        }
    }
}

.cart-products-input .cart-entry-remove {
    background: #fff;
    border: 1px solid #ae0000;
    border-radius: 50%;
    color: #ae0000;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    padding: 0 0 1px 0;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    min-height: auto;
    height: 20px;
    width: 20px;
    white-space: nowrap;
    @media (max-width: 640px)  {
        border-radius: 0;
        padding: 0;
        bottom: 0;
        top: 90px;
        left: 4px;
        height: 25px;
        width: 55px;
    }
    a:hover {
        background: #cacaca;
    }
}

.cart-products-input .cart-entry-shipping { margin: 14px 0; font-size: 13px; }
.cart-products-input .cart-entry-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 24px 0 16px; }
.cart-products-input .cart-entry-actions > * { margin: 0; }
.cart-products-input .cart-entry-actions button { min-height: 45px; padding: 8px 26px; }
.cart-products-input .cart-entry-clear {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 24px;
    width: 100%;
}
.cart-products-input .cart-entry-clear button {
    background: #fff;
    border: 1px solid #dec7c7;
    border-radius: 3px;
    color: #a73131;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 12px;
    min-height: 40px;
}




/* カート内商品の確認 */
.cart-products-check {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding: 5px;
    text-align: left;
    @media (max-width: 768px) {
        flex-direction: column;
    }
    .cart-products-check-left,
    .cart-products-check-right {
        display: inline-flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .cart-products-check-left {
        align-items: flex-start;
        width: 70%;
        @media (max-width: 768px) {
            width: 100%;
        }
        form {
            width: 100%;
        }
    }
    .cart-products-check-right {
        background: #fff;
        border: 5px solid #dde1e1;
        border-radius: 2px;
        display: inline-flex;
        flex-direction: column;
        justify-content: flex-start;
        margin: 2px 0 10px 10px;
        padding: 15px;
        height: 100%;
        width: 30%;
        @media (max-width: 768px) {
            margin: 0 auto;
            width: 100%;
        }
        .item_wrap {
            flex-direction: column;
            width: auto;
            @media (max-width: 768px) {
                gap: 5px;
                margin: 0 auto;
            }
            .item-select {
                padding: 5px;
                text-align: left;
                display: flex;
                flex-direction: row;
                justify-content: flex-end;
                @media (max-width: 768px) {
                    padding: 0;
                }
                .item-stock {
                    background: #f0f0f0;
                    @media (max-width: 768px) {
                        width: 100%;
                    }
                }
            }
        }
    }
}

.cart-products-check .cart-entry {
    .cart-entry-main {
        display: inline-flex;
        flex-direction: row;
        justify-content: center;
        position: relative;
        padding: 10px 0 10px 10px;
        width: 100%;
        @media (max-width: 1024px) {
            display: inline-grid;
            grid-template-columns: 100px 1fr;
        }
       .cart-entry-info {
            float: none;
            min-width: 0;
            margin: 0;
            padding: 0;
            width: 100%;
            width: min(100%, 500px);
        }
    }
}

.cart-products-check {
    .cart-entry-quantity-term,
    .cart-entry-quantity-num,
    .reference-price {
        display: inline-flex;
        margin: 0 10px 0 0;
        background: #f0f0f0;
        height: 40px;
        flex-direction: row;
        font-size: 12px;
        justify-content: space-between;
        span {
            align-items: baseline;
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 8px;
            white-space: nowrap;
        }
        .unit {
            border: none !important;
            font-size: 21px;
            font-weight: bold;
            font-variation-settings: "wght" 700;
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            padding: 5px;
            text-align: center;
            box-sizing: border-box;
            width: auto;
            height: 100%;
        }
    }
    .price {
        display: inline-flex;
        flex-direction: column;
        justify-content: flex-end;
        min-width: 230px;
        width: auto;
        align-items: flex-end;
        @media (max-width: 1024px) {
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            grid-column: 2;
            min-width: 230px;
            width: auto;
        }
    }
}


.contact-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    align-items: center;
    @media(max-width:768px){
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        margin-top: 30px;
        align-items: center;
    }
    .button, button {
        min-width: 120px;
        width: auto;
    }
}

@media (max-width: 640px) {
    .cart-products-input .cart-entry-spinner { gap: 4px; }
    .cart-products-input .cart-entry-spinner input { width: 48px; }
    .cart-products-input .cart-entry-spinner button { width: 32px; }
}
