﻿/* -----------------------------------------------------------------------------
**
** 商品詳細CSS
**
----------------------------------------------------------------------------- */
.item-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.item-detail-main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .item-detail-main-image img {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        object-position: center;
    }

/* スマホ対応 */
@media (max-width: 767px) {
    .item-detail-main-image {
        min-height: auto;
    }
    
    .item-detail-main-image img {
        max-height: 250px;
    }
    
    .item-carousel {
        height: 250px !important;
    }
}

.item-detail-price-cards-container {
    background-color: var(--dk-base-color);
    margin-top: 4px;
    padding: 12px;
}

.item-detail-price-card {
    border-radius: 8px;
    border: 1px solid var(--dk-accent-color);
    transition: transform 0.2s;
    background-color: var(--dk-white);
    width: 100%;
    overflow: hidden;
    height: 100%;
    margin-bottom: 12px;
}

    .item-detail-price-card .header {
        background-color: var(--dk-accent-color);
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
    }

@media (min-width: 768px) {
    .item-detail-price-card .header {
        width: 180px;
        min-width: 180px;
        border-radius: 8px 0 0 8px;
    }
}

@media (max-width: 767px) {
    .item-detail-price-card .header {
        border-radius: 8px 8px 0 0;
    }
}

.item-detail-price-card .body {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex: 1;
    align-items: center;
    flex-direction: row;
}

@media (max-width: 575px) {
    .item-detail-price-card .body {
        flex-direction: column;
        align-items: start;
    }
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-arrow {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

    .price-arrow img {
        width: 24px;
        height: auto;
    }

.discount-rate {
    color: var(--dk-red);
    font-weight: bold;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    color: var(--dk-gray1);
    font-size: 0.9rem;
}

.triangle {
    background: var(--dk-base-color);
    height: calc(tan(60deg) * 100px / 2);
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.purchase-options-container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--dk-base-color);
}

.select-container {
    margin-bottom: 1.5rem;
}

.custom-select {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--dk-theme-color);
    border-radius: 8px;
    font-size: 16px;
    appearance: none;
    background: var(--dk-white) url("data:image/svg+xml,...") no-repeat right 1rem center;
    cursor: pointer;
}

.total-price-container {
    border: 2px solid var(--dk-red);
    color: var(--dk-white);
    padding: 18px 0 8px 0;
    border-radius: 8px;
    text-align: center;
}

.badge {
    background-color: var(--dk-red);
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

.notice-container {
    margin-top: 1.5rem;
}

.service-pack-container {
    width: 100%;
}

.service-items-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

.service-group {
}

.service-plus-icon {
    font-size: 2rem;
    color: var(--dk-theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-item {
    flex: 1;
    min-width: 100px;
    max-width: 100px;
    text-align: center;
    padding: 0.75rem;
    background: var(--dk-base-color);
    border-radius: 8px;
    min-height: 100px;
}

@media (max-width: 991px) {
    .service-items-wrapper {
        gap: 0.8rem;
    }
}

@media (max-width: 575px) {
    .service-items-wrapper {
        gap: 0.5rem;
    }
}


.service-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--dk-theme-color);
}

.service-plus {
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.25rem;
}

.service-text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.service-price {
}

@media (max-width: 767px) {
    .service-items-wrapper {
        flex-direction: column;
    }

    .service-plus-icon {
        transform: rotate(90deg);
    }

    .service-items {
        justify-content: center;
    }

    .service-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}
