#pm-rate-table .title-lead,
#pm-rate-table .pm-rate-table-main-wrap,
#gold-18kin-link,
#gold-expert-evaluation,
#pt-expert-evaluation {
    margin: 0 5%;
    width: auto;
}

#pm-rate-table .pm-rate-table-main-wrap {
    margin: 0 5%;
    width: auto;
}

#pm-rate-table .pm-rate-table-subtitle {
    margin: 2% 0;
}

#pm-rate-table .pm-rate-table-date {
    text-align: end;
}

#pm-rate-table .pm-tabs-block {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.pm-tabs-block .simplebar-content {
    display: flex;
    flex-wrap: nowrap;
}

#pm-rate-table .pm-type-tab {
    display: inline-block;
    padding: 3.6cqw 2cqw;
    cursor: pointer;
    text-align: center;
    flex-shrink: 0;
    margin-right: 1cqw;
    min-width: 80px;
}

#pm-rate-table .pm-type-tab.active {
    background-color: var(--color-red);
    font-weight: bold;
    color: #fff;
}

/* スクロールバー */
#pm-rate-table .simplebar-track.simplebar-horizontal {
    background-color: var(--color-gray-light);
    border-radius: 0.4em;
    height: 2.8cqw;
}

#pm-rate-table .simplebar-track {
    top: -36%;
}

#pm-rate-table .simplebar-scrollbar::before {
    height: 1.4cqw;
    border-radius: 0.4em;
    opacity: 1;
}

/* 縦方向のトラック（レール）を非表示にする */
#pm-rate-table .pm-tabs-block .simplebar-track.simplebar-vertical {
    display: none !important;
}

/* つまみ（動かす部分）自体にも設定 */
#pm-rate-table .pm-tabs-block .simplebar-scrollbar {
    pointer-events: auto !important;
    cursor: pointer;
}

#pm-rate-table .simplebar-scrollbar:before {
    top: 0% !important;
    bottom: 0% !important;
    left: 1% !important;
    right: 1% !important;
    margin: auto;
    background-color: var(--color-gray-dark) !important;
}

#pm-rate-table .pm-rate-tables-block {
    border: 2px solid #a6a6a6;
    margin-top: 2cqh;
}

#pm-rate-table .pm-rate-tables-block li {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    border-bottom: 2px solid #a6a6a6;
    padding: 1em 0.6em;
}

#pm-rate-table .pm-rate-tables-block li:last-child {
    border-bottom: 0;
}

#pm-rate-table .pm-rate-tables-block li p {
    display: flex;
    align-items: center;
}

#pm-rate-table .pm-rate-tables-block li .rate-price {
    font-weight: 700;
    justify-self: end;
}

#pm-rate-table .pm-rate-tables-block li .diff-rate-plus,
#pm-rate-table .pm-rate-tables-block li .diff-rate-minus {
    justify-self: end;
}

#pm-rate-table .pm-rate-annotation {
    width: fit-content;
    margin: 2cqh 0;
}

#gold-expert-evaluation {
    position: relative;
    padding: 4cqw;
    overflow: hidden;
}

#gold-expert-evaluation .expert-acc-content {
    margin-top: 2cqh;
}

#gold-expert-evaluation .expert-top-block {
    text-align: end;
}

#gold-expert-evaluation .expert-top-block img {
    width: 24%;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 2cqw;
}

#gold-expert-evaluation .expert-comment {
    text-align: left;
}

#gold-expert-evaluation .expert-evaluation-date {
    margin: 2cqh 0;
}

#gold-expert-evaluation .expert-card-img {
    width: 30%;
    border-radius: 50%;
    overflow: hidden;
    float: right;
}

#gold-expert-evaluation .expert-prof-block {
    padding: 3cqw;
    margin-bottom: 2cqh;
}

#gold-expert-evaluation .expert-license-block {
    margin-bottom: 2cqh;
}

#pt-expert-evaluation {
    margin-top: 4%;
}

/**/
@media (max-width: 767px) {
    .gold_price_area_comparison.none_diff {
        padding: 0 1.36em;
    }

    .shop__detail--rate {
        padding: 0 !important;
    }

    .gold_price_area_head h2 {
        font-size: 2.1em;
        line-height: 1.3;
        font-weight: bold;
    }

    .gold_price_area_head {
        position: relative;
        background-color: #f5f5f5;
        padding: 2em 0 1em 0.5em;
    }

    .gold_price_area_head img {
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
    }

    .price_update {
        background-color: #ffffff;
        width: fit-content;
        padding: 0.2em 0.3em;
        font-weight: 500;
        border: 1px solid;
        border-radius: 5px;
        margin-top: 0.5em;
    }

    .gold_price_area_lead {
        width: calc(100% - 1rem);
        margin: 1em auto;
        font-weight: bold;
        line-height: 1.4;
        font-size: 0.85em;
    }

    .gold_price_area .gold_price_area_num {
        font-family: "Oswald";
        display: inline !important;
        font-weight: bold;
        font-weight: 500;
    }

    .gold_price_area_comparison {
        font-size: 0.8em;
        font-weight: 700;
    }

    .gold_price_area_comparison .gold_price_area_num {
        font-size: 1.2em;
    }

    .gold_price_area_num_top {
        font-size: 2em;
    }

    .gold_price_area_table {
        display: flex;
        flex-wrap: wrap;
        padding: 0 0.5em;
        gap: 2%;
    }

    .gold_price_area_table_li_wrap {
        width: 49%;
        text-align: center;
        background-color: #f3f3f3;
        margin-bottom: 2%;
        border-radius: 5px;
        overflow: hidden;
        padding-bottom: 3%;
    }

    .gold_price_area_table
        .gold_price_area_table_li_wrap:nth-child(1)
        p:nth-child(1) {
        background-color: #b27500;
    }

    .gold_price_area_table
        .gold_price_area_table_li_wrap:nth-child(2)
        p:nth-child(1) {
        background-color: #517892;
    }

    .gold_price_area_table
        .gold_price_area_table_li_wrap:nth-child(3)
        p:nth-child(1) {
        background-color: #55734a;
    }

    .gold_price_area_table
        .gold_price_area_table_li_wrap:nth-child(4)
        p:nth-child(1) {
        background-color: #7d7d87;
    }

    .gold_price_area_table_li_wrap p:nth-child(1) {
        color: #ffffff;
        font-weight: bold;
        padding: 0.2em 0;
    }

    .gold_price_area_table_li_wrap p:nth-child(2) {
        font-weight: bold;
        line-height: 1;
        padding-top: 3%;
    }

    .gold_price_area h3 {
        font-size: 1.6em;
        font-weight: 500;
        text-align: center;
        line-height: 1.3;
        margin: 0.4em 0;
        margin-top: 0.6em;
    }

    /* 下のテープル用スタイル */
    .gold_price_area_comparison .theme_color {
        font-size: 0.8em;
        margin-top: 0.5em;
    }

    .gold_price_area_table_lower .gold_price_area_table_lower_price p {
        background-color: #f3f3f3 !important;
        color: #000000;
        margin-right: 0.3em;
    }

    .gold_price_area_table_lower .gold_price_area_table_lower_price {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 5%;
    }

    .gold_price_area_table_lower .text-red {
        margin: 0;
        transform: none;
    }

    .gold_price_area_table_lower img {
        width: 1em;
    }

    .gold_price_area_table_lower .gold_price_area_comparison {
        display: flex;
        align-items: center;
    }

    .gold_price_area_table_lower .gold_price_area_table_li_wrap p:nth-child(1) {
        padding: 0;
    }

    .gold_price_area_table_lower .gold_price_area_table_li_wrap {
        padding-bottom: 0%;
    }

    .gold_price_area_table_lower
        .gold_price_area_table_li_wrap
        .gold_price_area_table_li_head {
        color: #000000;
        font-size: 0.85em;
        padding: 0.2em 0 !important;
    }

    .gold_price_area_table_lower .gold_price_area_table_li_wrap {
        border-radius: 0px;
    }

    .price_lower_header {
        margin: 0 0.4em;
        text-align: center;
        font-size: 1.1em;
        font-weight: 500;
        color: #fff;
        border-radius: 24px 24px 0 0;
        margin-bottom: 0%;
        padding: 0.5em 0;
        line-height: 1.2;
    }

    .lower_gold.gold_price_area_table
        .gold_price_area_table_li_wrap
        p:nth-child(1) {
        background-color: #f7e1bf;
    }

    .lower_pt.gold_price_area_table
        .gold_price_area_table_li_wrap
        p:nth-child(1) {
        background-color: #cddce6;
    }

    .lower_pd.gold_price_area_table
        .gold_price_area_table_li_wrap
        p:nth-child(1) {
        background-color: #c8dcdc;
    }

    .lower_sv.gold_price_area_table
        .gold_price_area_table_li_wrap
        p:nth-child(1) {
        background-color: #d7d7d7;
    }

    .price_lower_header.gold_lower_header {
        background-color: #b27500;
    }

    .price_lower_header.pt_lower_header {
        background-color: #517892;
    }

    .price_lower_header.pd_lower_header {
        background-color: #55734a;
    }

    .price_lower_header.sv_lower_header {
        background-color: #7d7d87;
    }

    .lower_pd .gold_price_area_table_li_wrap {
        width: 100%;
    }

    .lower_pd .gold_price_area_table_lower_price {
        justify-content: center;
        gap: 5%;
        padding-right: 0;
    }

    span.gold_price_area_num.minus {
        margin-left: 0.8em;
    }

    /* 下のテープル用スタイル */
}

/* 新しい価格比較表のスタイル (PC) */
.new-price-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin: 2em 0;
    overflow: hidden;
    border-radius: 24px;
}

.new-price-table th,
.new-price-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
}

.new-price-table th {
    background-color: #e60012;
    color: white;
    font-weight: 400;
}

.new-price-table td:first-child {
    text-align: left;
    padding-left: 20px;
    font-weight: bold;
    color: #545454;
}

.new-price-table .text-red {
    color: #e60012;
    position: static;
    transform: none;
    margin-left: 0;
    font-size: 20px;
    font-weight: bold;
}

.new-price-table .text-red > span {
    font-size: 12px;
}

.new-price-table .text-blue {
    font-size: 16px;
    font-weight: bold;
    font-size: 20px;
    font-weight: bold;
}

.new-price-table .text-blue > span {
    font-size: 12px;
}

.call_cta img {
    width: 100%;
    margin-bottom: 5%;
}

.ex_position {
    font-size: min(2vw, 10px);
    width: fit-content;
    margin: auto;
    margin-top: 0.4em;
}

@media (max-width: 767px) {
    .ex_position {
        font-size: 10px;
    }
}

.new-price-table th:nth-child(1) {
    border-radius: 24px 0 0 0;
}

.new-price-table th:nth-child(3) {
    border-radius: 0 24px 0 0;
}

.new-price-table tr td:nth-child(2) {
    font-size: 20px;
    font-weight: bold;
    color: #545454;
}

.new-price-table tr td:nth-child(2) > span {
    font-size: 12px;
    font-weight: weight;
    color: #545454;
}

/* 新しい価格比較表のスタイル (SP) */
.new_sp_price_table {
    display: block;
    margin: 0 0.45em;
    background-color: #fff;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
}

.new_sp_price_table_row {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 0.8em 0.5em;
    align-items: center;
}

.new_sp_price_table_row:last-child {
    border-bottom: none;
}

.new_sp_price_table_cell_label {
    flex-basis: 35%;
    font-weight: bold;
    font-size: 0.9em;
    text-align: left;
    color: #545454;
}

.new_sp_price_table_cell_price {
    flex-basis: 35%;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
    color: #545454;
}

.new_sp_price_table_cell_price > span {
    font-size: 12px;
    font-weight: normal;
}

.new_sp_price_table_cell_diff {
    flex-basis: 30%;
    text-align: right;
    font-weight: bold;
    font-size: 1em;
    color: #545454;
}

.new_sp_price_table_cell_diff .text-red {
    color: #eb0015 !important;
    font-size: 20px;
}

.new_sp_price_table_cell_diff .text-red > span {
    color: #eb0015 !important;
    font-size: 12px;
}

.new_sp_price_table_cell_diff .text_blue_sp {
    color: #005bab;
    font-size: 20px;
}

.new_sp_price_table_cell_diff .text_blue_sp > span {
    color: #005bab;
    font-size: 12px;
}

/* SP用のtext-blueが他の場所で定義されていない場合 */
.text_blue_sp {
    color: #005bab !important;
    /* !importantで優先度を上げる */
}

p.shop__detail__time.visible.text--right {
    margin-bottom: 0.3em;
}

.rateSection h3.titleSub {
    margin-top: 0.7rem !important;
}

/* 既存のSP用スタイルへの影響を避けるため、詳細度を考慮 */
@media (max-width: 767px) {
    p.shop__detail__time.visible.text--right {
        padding: 0 0.4rem;
    }
}

.shop__detail--rateTable table:not(:first-of-type) {
    margin-top: 0.3rem !important;
    margin-bottom: 0.8rem;
}
