@charset "UTF-8";

.compare-chart {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
}

.compare-chart::-webkit-scrollbar {
    background: #fff;
    width: 5px;
    height: 5px;
}

.compare-chart::-webkit-scrollbar-thumb {
    background-color: #E6E6E6;
}

.compare-chart__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
}

.compare-chart__item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    border: 1px solid #E6E6E6;
    padding: 0 1.5rem;
}

.compare-chart__item:not(:first-of-type) {
    border-left: none;
}

.compare-chart__item .itemBox {
    padding-bottom: 1.5rem;
}

.compare-chart__item .productName {
    text-align: center;
    text-decoration: underline;
    transition: .3s;
}

.compare-chart__item .productPrice {
    text-align: center;
}

.compare-chart__item .tax {
    font-size: 65%;
}

.compare-chart__item .productName:hover {
    text-decoration: none;
}

.chart-tag {
    display: flex;
    column-gap: .8rem;
    justify-content: center;
    margin-top: .5rem;
}

.chart-tag__item {
    padding: .4rem 1rem .6rem;
    background-color: #F5F5DD;
    border-radius: 1.4rem;
    font-size: 1rem;
}

.balanceWrapper {
    padding: 0 .4rem;
}

.balanceText {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

/* hrのスタイル */
.hr-1 {
    margin: 30px auto;
}

@media screen and (min-width: 768px) {
    .compare-chart__list {
        justify-content: center;
    }
}

@media screen and (max-width: 767px) {
    .compare-chart__list {
        grid-auto-columns: 200px;
    }

    .compare-chart__item {
        font-size: 1.2rem;
    }
}