#diamond_price_section {
    overflow: unset;
    margin-top: 0 !important;
}

#diamond_price_section .jewelrySoubaBox__table__scroll {
    max-height: 100%;
}
.tablelist {
    width: 100%;
    margin: 0px auto 4rem;
    display: none;
}

.tablelist.active {
    display: contents;
}

.tab_selectbox {
    width: 100%;
    display: none;
}

.tab_selectbox.active {
    display: table-header-group;
}

.selectbox-5 {
    display: none;
}

.selectbox-5.active {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.selectbox-5.active::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: "";
    pointer-events: none;
}

.selectbox-5.active select {
    appearance: none;
    padding: 0.4em calc(0.8em + 5px) 0.4em 0.4em;
    background-color: var(--theme_color);
    color: #fff;
    font-size: 0.8em;
    cursor: pointer;
}

.scroll-box {
    width: 100%;
    margin: 0 auto 2rem auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #faf1dd;
}

.scroll-box .f_area.slick-initialized > * {
    display: block;
    opacity: 1;
}

.scroll-box .f_area .slick-prev.slick-arrow {
    left: 0.5rem;
}

.scroll-box .f_area .slick-next.slick-arrow {
    right: 0.5rem;
}

.scroll-box .f_area .slick-prev.slick-arrow::before,
.scroll-box .f_area .slick-next.slick-arrow::before {
    font-family: "Noto Sans JP", "Roboto", sans-serif;
    line-height: 1;
    opacity: 1;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    transform: scale(1.5);
}

.tabbox {
    position: relative;
    box-sizing: border-box;
    color: #fff;
    text-align: justify;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    margin: 0 0.75rem;
    border-bottom: 1px solid #999998;
}

#diamond_price_section .jewelrySoubaBox__table__scroll {
    display: inline-block;
    max-width: 100%;
    padding-right: 12px;
    overflow: auto;
    border-radius: 24px;
    scrollbar-color: var(--theme_color);
}

.table__head--emphasis::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid var(--theme_color);
    border-right: 2px solid var(--theme_color);
    position: absolute;
    right: 11px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s;
    pointer-events: none;
}

.table__head--emphasis::before {
    content: "";
    display: block;
    background-color: #ffffff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.selectbox-5.active::after {
    background-color: #b88e8e00;
}

@media screen and (max-width: 767px) {
    #diamond_price_section .jewelrySoubaBox__table table,
    #diamond_price_section .jewelrySoubaBox__table table,
    #diamond_price_section .jewelrySoubaBox__table table,
    #diamond_price_section .jewelrySoubaBox__table__scroll table {
        width: 100%;
    }

    .table__head--emphasis {
        width: 20%;
    }

    #jewelry_souba_carat .jewelrySoubaBox {
        width: calc(100% + 0rem);
    }
}
#diamond_price_section .diamond_price_list_area .jewelrySoubaBox {
    margin: 0rem 0rem 0;
}

.diamond_price_list_area {
    .carat-select-container {
        position: relative;
        width: 100%;
        margin: 3% auto;
    }

    .carat_select {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        border-radius: 5px;
        cursor: pointer;
        font-size: var(--font-xl);
        font-weight: 500;
        width: 90%;
        margin: auto;
        position: relative;
        padding: 10px 40px 10px 10px;
        box-sizing: border-box;
        max-width: 450px;
    }

    .carat_select::after {
        content: "";
        display: block;
        background-color: var(--theme_color);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .carat_select::before {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        border-bottom: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        position: absolute;
        right: 20px;
        top: 50%;
        z-index: 2;

        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s;
    }

    .carat-select-container.is-open .carat_select::before {
        transform: translateY(-50%) rotate(-135deg);
    }

    .scroll-box {
        display: none;
        position: absolute;
        background-color: #000000bd;
        border: 1px solid #ccc;
        border-radius: 5px;
        z-index: 100;
        max-height: 300px;
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-top: 5px;
        width: 70%;
        left: 50%;
        transform: translateX(-50%);
        top: 10%;
        padding: 2% 0;
    }

    .scroll-box .tabbox {
        padding: 15px;
        cursor: pointer;
        transition: background-color 0.2s;
        font-size: var(--font-l);
    }

    .scroll-box .tabbox:hover {
        background-color: #ffffff21;
    }

    .tabbox.active {
        background: #e6001200;
    }

    .tabbox {
        position: relative;
        padding-left: 40px !important;
    }

    /* チェックマーク */
    .tabbox.is-placeholder::before,
    .tabbox.active::before {
        content: "";
        display: block;
        width: 10px;
        height: 20px;
        border-bottom: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        transform: rotate(45deg);
        position: absolute;
        left: 15px;
        top: 12px;
    }

    .diamond_price_list_top_text {
        font-size: var(--font-l);
        text-align: center;
        font-weight: 500;
        width: 90%;
        margin: auto;
    }

    .jewelry__category__time.text--center {
        font-size: var(--font-m);
        margin-bottom: 5%;
    }
}

#diamond_price_section .jewelrySoubaBox__table {
    padding: 0rem 5% 0;
}

.diamond_price_list_area {
    background-color: #faf1dd;
    padding: 5% 0;
    margin: 0 -1rem;
    margin-top: 2em;
}
/* 全体を囲むラッパー */
.table-overlay-wrapper {
    position: relative;
    top: 17px;
}

/* 左側の縦長バー */
.vertical-bar-overlay {
    position: absolute;
    left: 0;
    top: 0;
    /* ヘッダーの高さに合わせて調整 */
    width: 30px;
    height: 100%;
    background-color: #555;
    color: white;
    z-index: 3;
    /* 最も手前に */
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.vertical-bar-overlay .text {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

/* クラリティのラベル列 */
.clarity-labels-overlay {
    position: absolute;
    left: 0;
    top: 42px;
    width: 110px;
    z-index: 2;
}

.clarity-labels-overlay .label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 53px;
    background-color: #555;
    color: white;
    box-sizing: border-box;
    font-weight: bold;
    margin-bottom: 3px;
}

#diamond_price_section .jewelrySoubaBox__table table {
    overflow: visible;
    margin-top: 0rem;
}

/* 既存のテーブルをスクロールさせるための設定 */
.table-scroll-container {
    overflow-x: auto;
    padding-left: 113px;
    /* オーバーレイで隠す部分の幅を確保 */
}

/* 元テーブルの1列目を非表示にする */
.table-scroll-container th:first-child,
.table-scroll-container td:first-child {
    /* 様々な方法がありますが、今回は文字とpaddingで隠します */
    font-size: 0;
    color: transparent;
    padding: 0;
    border: none;
    width: 0;
}

#diamond_price_section
    .jewelrySoubaBox__table
    table
    .table__items
    td:first-child {
    opacity: 0;
}

#diamond_price_section .jewelrySoubaBox__table table thead th + th {
    border-left: solid 3px #faf1d1;
}

#diamond_price_section
    .jewelrySoubaBox__table
    table
    .table__items
    .table__item {
    height: 56px;
    vertical-align: middle;
    background-color: #fff;
    border: 3px solid #faf1dd;
}

.d_table {
    /* overflow: scroll; */
    max-width: 737px;
}
[data-simplebar] .simplebar-track.simplebar-horizontal {
    background-color: #ffffff;
    border-radius: 5em;
    height: 14px;
}

[data-simplebar] .simplebar-scrollbar::before {
    height: 14px;
    border-radius: 5em;
    opacity: 1;
}

.d_table {
    .simplebar-wrapper {
        padding-bottom: 25px;
    }

    .simplebar-scrollbar:before {
        top: 0px;
        background-color: var(--theme_color);
    }

    .attendList {
        margin: 1.5rem 5%;
    }
}

#diamond_price_section .jewelrySoubaBox__table__scroll {
    overflow: unset;
}

.table-scroll-container {
    overflow-x: auto;
    width: 100%;
}

.table-scroll-container table {
    border-collapse: collapse;
}

.table-scroll-container thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

.table-scroll-container tbody td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background-color: #555;
    color: white;
    z-index: 1;
}

.table-scroll-container thead th.table__head--emphasis {
    left: 0;
    z-index: 3;
    background-color: #f0f0f0;
}

.diamond-price-table-container {
    position: relative;
    padding-left: 40px;
    box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 10px;
}

.diamond-price-table-container table {
    width: 100%;
}

.vertical-bar {
    position: absolute;
    left: 0;
    top: 75px;
    width: 30px;
    height: 86.7%;
    background-color: #555;
    border-radius: 5px;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.vertical-bar .text {
    writing-mode: vertical-rl;

    letter-spacing: 2px;
}

.vertical-bar .high,
.vertical-bar .low {
    font-weight: bold;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

.clarity-cut-overlay {
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 3;
    display: flex;
    width: 100%;
    font-size: min(2vw, 12.5px);
    width: calc(100% - 40px);
}

.clarity-cut-overlay > div {
    padding: 3px 20px;
    text-align: center;
    color: white;
    border-radius: 5px;
}

.clarity-cut-overlay .clarity {
    background-color: var(--theme_color);
    width: 111px;
    margin-right: 3px;
    flex-shrink: 0;
}

.clarity-cut-overlay .cut {
    background-color: #555;
    flex-grow: 1;
}

.diamond-price-table-container tbody tr td:first-child {
    background-color: #555;
    color: white;
    font-weight: bold;
}

#diamond_price_section .jewelrySoubaBox__table__scroll {
    border-radius: 0px;
    padding: 0;
}

#diamond_price_section
    .jewelrySoubaBox__table
    table
    thead
    th.table__head--emphasis {
    background-color: var(--theme_color);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: solid 3px #faf1d1;
}

.d_table select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    dl.attendList {
        padding: 0% 5%;
    }
}

td.color {
    padding-top: 14px;
    padding-bottom: 14px;
    font-weight: 400;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #545454;
    border: 1px solid #faf1dd;
    font-size: 14px;
    font-size: 0.875rem;
}

td.price {
    height: 56px;
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #faf1dd;
    text-align: center;
}

#diamond_price_section .jewelry_form .form__answer .price input {
    font-weight: bold;
}

#diamond_price_section .jewelrySoubaBox__table table thead th {
    width: 111px;
    font-size: 0.9rem !important;
    padding-top: 8px;
}

#diamond_price_section .jewelrySoubaBox__table table thead th {
    padding-bottom: 7px;
}

#diamond_price_section
    .jewelrySoubaBox__table
    table
    thead
    th.table__head--emphasis {
    padding-top: 5px;
}

@media (min-width: 768px) {
    #diamond_price_section .jewelrySoubaBox__table table thead th {
        padding: 7px;
    }
}

@media (max-width: 767px) {
    td.price {
        font-size: 14px;
    }

    #diamond_price_section .jewelrySoubaBox__table table thead th {
        font-size: 0.675rem;
    }

    #diamond_price_section .jewelry_form .form__answer .price input {
        width: 80%;
    }
}

p.caution {
    margin-top: 25px;
}
.wd_carattable_flex_arrowtext {
    position: relative;
    display: block;
    width: 15%;
    height: 100%;
    line-height: 20px;
    font-size: 16px;
    font-weight: 700;
    color: black !important;
    text-align: center;
}

.wd_carattable_flex_arrowtext_s {
    position: relative;
    display: block;
    width: 64px;
    height: 32px;
    line-height: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme_color);
    text-align: center;
}

.wd_carattable_flex_arrowbox {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
}

.wd_carattable_flex_arrowbar_container {
    display: flex;
    width: 64%;
    height: auto;
    justify-content: space-between;
    align-items: center;
}

.wd_carattable_flex_arrowbar {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: calc(100% - 192px);
    height: 12px;
    margin-top: 10px;
    background-color: #f3bdb2;
}

.wd_carattable_flex_arrowbox img {
    width: 100%;
}

.wd_carattable_flex_kind span {
    font-size: var(--font-l);
    transform: translate(0, -10px);
}

.wd_carattable_superbox_container {
    height: 100%;
    background: #ededed;
}

.wd_carattable_superbox {
    position: relative;
    display: block;
    padding: 25px 3%;
}

.wd_carattable_flex {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: 100%;
    margin-top: 10px;
    align-items: flex-end;
}

.wd_carattable_flex_cell {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: 100%;
    margin-top: 10px;
}

.wd_carattable_caratitem {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 7%;
    padding: 10px 1px;
    line-height: 16px;
    word-break: break-all;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    text-align: center;
}

.wd_carattable_coloritem {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 9%;
    padding: 10px 1px;
    line-height: 16px;
    word-break: break-all;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    text-align: center;
}

.wd_carattable_cutitem {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 15%;
    padding: 10px 1px;
    line-height: 16px;
    word-break: break-all;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    text-align: center;
}

.wd_carattable_clarityitem {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 9%;
    padding: 10px 1px;
    line-height: 16px;
    word-break: break-all;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    text-align: center;
}

.wd_carattable_flex_kind {
    width: 100%;
    height: 100%;
    line-height: 40px;
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 700;
    position: relative;
    color: black !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .wd_carattable_caratitem {
        line-height: 12px;
        font-size: 12px;
    }

    .wd_carattable_coloritem {
        line-height: 12px;
        font-size: var(--font-l);
    }

    .wd_carattable_flex_kind {
        width: 100%;
        height: 100%;
        line-height: 23px;
        text-align: center;
        font-size: 24px;
        font-weight: 700;
        position: relative;
        color: black !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .wd_carattable_flex_kind span {
        font-size: small;
        transform: translate(0, 0);
    }

    .wd_carattable_cutitem {
        line-height: 12px;
        font-size: 12px;
        position: relative;
        box-sizing: border-box;
        width: 14.5%;
        padding: 7px 1px;
        word-break: break-all;
        font-weight: 700;
        background-color: #ffffff;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #diamond_price_section
        > div.wd_carattable_superbox_container
        > div:nth-child(5)
        > div:nth-child(2)
        > div:nth-child(2) {
        width: 20%;
    }

    .wd_carattable_clarityitem {
        line-height: 12px;
        font-size: 12px;
    }

    .clarity-cut-overlay {
        font-size: 12px;
    }
}
.renew_2024_titlesub {
    color: #040303;
}

#carat_table_area {
    margin-bottom: 80px;
}

.carat-approximate_table_div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1rem;
    box-sizing: border-box;
}

.carat-approximate_table_div::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    vertical-align: middle;
    margin-left: -20px;
}

.carat-approximate_table_div h1 {
    padding-right: 50%;
    font-size: 1.1rem;
}

#carat_table_area > table > tbody > tr:nth-child(1) > td:nth-child(4) {
    padding: 0;
}

#carat_table_area > table > tbody > tr:nth-child(8) > td.link > a {
    padding: 20% 0;
}

.carat-approximate_table_link {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: relative;
    display: block;
    font-size: 14px;
    color: white;
    font-weight: 600;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    box-sizing: border-box;
}

.carat-approximate_table_link:hover {
    color: #fff;
    background-color: #cc1d2c;
    text-decoration: none;
}

.carat-approximate_table_link span.link_txt {
    padding: 5px;
}

#carat_table_area table {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    table-layout: fixed;
    border-collapse: separate;
    /* table-layout: auto; */
}

#carat_table_area table thead tr th {
    padding: 12px 5px !important;
    vertical-align: middle;
    text-align: center;
    font-weight: bold !important;
    color: #fff;
    background: #505154;
    font-size: var(--font-m);
}

#carat_table_area table thead tr th:first-child {
    border-top-left-radius: 9px;
}

#carat_table_area table thead tr th:last-child {
    border-top-right-radius: 9px;
}

#carat_table_area table td {
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: middle;
    padding: 12px 30px;
    background: #f2f2f2;
    font-weight: bold;
    height: 56px;
}

#carat_table_area table th {
    white-space: nowrap !important;
}

#carat_table_area table tr td.link:nth-child(4),
#carat_table_area > table > tbody > tr:nth-child(2) > td:nth-child(4),
#carat_table_area > table > tbody > tr:nth-child(1) > td:nth-child(4) {
    width: 55%;
    color: white;
    background: var(--theme_color);
    padding: 0;
}

#carat_table_area table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 9px;
}

/* 右下 (ユーザー指定の12行目の最後のセル) */
/* 12行目が必ず最後の行とは限らない場合に備え、両方指定します */
#carat_table_area table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 9px;
}

.wd_carattable_flex_arrow_img_left {
    width: 15%;
    margin-left: 9%;
}

.wd_carattable_flex_arrow_img_right {
    width: 15%;
    margin-right: 9%;
}

@media (max-width: 767px) {
    .wd_carattable_flex_arrow_img_left {
        width: 15%;
        margin: 0;
    }

    .wd_carattable_flex_arrow_img_right {
        width: 15%;
        margin: 0;
    }

    .attendList {
        margin: 1.5rem 0%;
    }

    #carat_table_area table {
        width: 100%;
        margin: 0 auto;
        font-size: 12px;
        table-layout: auto;
    }

    .carat-approximate_table_link {
        width: 100%;
        /* padding: 8px 10px; */
        font-size: 12px;
    }

    #carat_table_area table thead tr th {
        margin-left: 4px;
        padding: 15px 0;
    }

    #carat_table_area table tr td {
        padding: 8px 0;
    }

    #carat_table_area table tr td:nth-child(1) {
        width: 15%;
        color: #040303;
        min-height: 56px;
    }

    #carat_table_area table tr td:nth-child(2) {
        width: 15%;
        color: #040303;
        min-height: 56px;
    }

    #carat_table_area table tr td:nth-child(3) {
        width: 15%;
        color: #040303;
        min-height: 56px;
    }

    #carat_table_area table tr td.link:nth-child(4),
    #carat_table_area > table > tbody > tr:nth-child(2) > td:nth-child(4),
    #carat_table_area > table > tbody > tr:nth-child(1) > td:nth-child(4) {
        width: 55%;
        color: white;
        background: #eb2127;
        padding: 0;
    }

    .wd_carattable_superbox_container {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .carat-approximate_table_link {
        width: 100%;
        padding: 12px;
        font-size: 12px;
    }
}

.arrow-set {
    display: flex;
    /* gap: 4px; */
}

.arrow-set span {
    width: 12px;
    height: 12px;
    border-right: 3px solid #ff6f7d;
    border-bottom: 3px solid #ff6f7d;
    transform: rotate(-45deg);
    opacity: 1;
}

/* 左矢印（濃い→薄い） */
.arrow-set.left span:nth-child(1) {
    opacity: 1;
}

.arrow-set.left span:nth-child(2) {
    opacity: 0.7;
}

.arrow-set.left span:nth-child(3) {
    opacity: 0.4;
}

.arrow-set.left span:nth-child(4) {
    opacity: 0.2;
}

/* 右矢印（濃い→薄い） */
.arrow-set.right span:nth-child(1) {
    opacity: 1;
}

.arrow-set.right span:nth-child(2) {
    opacity: 0.7;
}

.arrow-set.right span:nth-child(3) {
    opacity: 0.4;
}

.arrow-set.right span:nth-child(4) {
    opacity: 0.2;
}

/* 右側は向き反転 */
.arrow-set.right {
    transform: rotate(180deg);
}

.wd_carattable_superbox_point_item_bar {
    border-bottom: 1px dashed #494949;
    background-color: unset;
    width: 92%;
    margin: 0 4%;
}

.wd_carattable_superbox_point_item_bar:last-child {
    display: none;
}

.wd_carattable_flex_arrow_daiya_img {
    width: 100%;
    height: 100%;
}

/* 矢印をまとめるコンテナ */
.arrow-stack {
    display: flex;
    /* 矢印を横並びにする */
}

/* 矢印（シェブロン）1つ分の共通スタイル */
.chevron {
    display: block;
    width: 15px;
    height: 15px;
    border-style: solid;
    border-width: 5px;
}

/* 色の指定 */
.chevron.light {
    border-color: #f7aaaa;
    /* 明るい赤 */
}

.chevron.dark {
    border-color: #e74c3c;
    /* 濃い赤 */
}

/* 左向き ( < ) の設定 */
.arrow-stack.left .chevron {
    /* 枠線のうち、上と左だけを表示 */
    border-width: 5px 0 0 5px;
    /* -45度回転させる */
    transform: rotate(-45deg);
}

/* 右向き ( > ) の設定 */
.arrow-stack.right .chevron {
    /* 枠線のうち、上と右だけを表示 */
    border-width: 5px 5px 0 0;
    /* 45度回転させる */
    transform: rotate(45deg);
}

.arrow-stack .chevron:not(:first-child) {
    margin-left: -10px;
}
.diamond_simulation_tool {
    overflow: unset;
    margin-bottom: 0;
    margin-top: 4rem;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item:not(:first-child) {
    border-left: none;
}

.diamond_simulation_tool .jewelry_form,
.diamond_simulation_tool .d_flex__content {
    display: none;
}

.diamond_simulation_tool .jewelry_form.active,
.diamond_simulation_tool .d_flex__content.active {
    display: block;
}

.diamond_simulation_tool .d_flex__tab {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item {
    flex: 1;
    padding: 10px 0px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    position: relative;
    margin-right: -10px;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item,
.diamond_simulation_tool .c_tab_item {
    color: #656565;
    background-color: #cecece;
    font-size: var(--font-xl);
}

.diamond_simulation_tool .d_tab__item:hover,
.diamond_simulation_tool .c_tab_item:hover,
.diamond_simulation_tool .jewelry_form select:hover {
    cursor: pointer;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item:last-child {
    margin-right: 0;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item.active {
    z-index: 2;
}

.diamond_simulation_tool .d_flex__tab .d_tab__item.active,
.diamond_simulation_tool .c_tab_item.active {
    background-color: var(--theme_color);
    color: #fff;
}

.diamond_simulation_tool .d_flex__content {
    background-color: #ffefdd;
    border-top: 3px solid var(--theme_color);
    padding: 5% 5%;
}

.diamond_simulation_tool .c_tab {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8%;
}

.diamond_simulation_tool .c_tab_item {
    width: 48%;
    padding: 3% 0;
    text-align: center;
    border-radius: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.diamond_simulation_tool .diamond_simulation_tool_top_text {
    font-size: var(--font-l);
    margin-bottom: 8%;
}

.diamond_simulation_tool .jewelry_form select {
    background-color: #fff;
    font-size: var(--font-xl);
    font-weight: 500;
    width: 100%;
    padding: 3% 8%;
    border-radius: 5px;
    margin-bottom: 3%;
}

.diamond_simulation_tool select:focus,
.diamond_simulation_tool input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.diamond_simulation_tool .jewelry_form dd {
    position: relative;
}

.diamond_simulation_tool .jewelry_form dd::before,
.diamond_simulation_tool .gold_type_wrap::before {
    content: "";
    display: block;
    background-color: var(--theme_color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.diamond_simulation_tool .jewelry_form dd::after,
.diamond_simulation_tool .gold_type_wrap::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    position: absolute;
    right: 17px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s;
    pointer-events: none;
}

.diamond_simulation_tool .jewelry_form dd::before,
.diamond_simulation_tool .jewelry_form dd::after {
    top: 40%;
}

.diamond_simulation_tool .jewelry_form dd::after {
    right: 27px;
}

.diamond_simulation_tool .jewelry_form dd::before {
    right: 20px;
}

.diamond_simulation_tool button {
    position: relative;
    background-color: var(--theme_color);
    margin: auto;
    display: block;
    color: #fff;
    width: 85%;
    border-radius: 5em;
    margin-top: 5%;
    font-style: var(--font-l);
    text-align: center;
    padding: 15px;
    max-width: 300px;
    font-weight: bold;
}

.diamond_simulation_tool button::before {
    background-image: url("<?php echo $img_url; ?>");
    background-size: contain;
    position: absolute;
    width: 30px;
    height: 30px;
    content: "";
    background-repeat: no-repeat;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.diamond_simulation_tool .form__answer {
    padding: 2% 5%;
    background-color: #fff;
    border-radius: 5px;
    text-align: end;
    border: 1.5px solid var(--theme_color);
    width: 85%;
    margin: auto;
    margin-top: 1rem;
}

.diamond_simulation_tool .price {
    font-weight: bold;
    font-size: var(--font-2xl);
}

.diamond_simulation_tool .price span {
    font-weight: bold;
    font-size: var(--font-l);
}

.diamond_simulation_tool .gold-form .form_wrap {
    display: flex;
    align-items: center;
    gap: 1%;
}

.diamond_simulation_tool .gold-form .form_liner {
    position: relative;
    font-size: var(--font-l);
    font-weight: 500;
}

.diamond_simulation_tool .gold-form select {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.diamond_simulation_tool .gold-form input[type="number"] {
    width: 100%;
    padding: 15px 30px;
    border-radius: 5px;
    background-color: #fff;
    text-align: right;
}

.diamond_simulation_tool .form_liner_weight {
    width: 30%;
}

.diamond_simulation_tool .form_liner_gold_type {
    flex: 1;
}

.diamond_simulation_tool .gold-form .form_liner_weight::before {
    content: "g";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 13px;
}

.diamond_simulation_tool .gold-form {
    margin-bottom: 8%;
    padding-bottom: 8%;
    border-bottom: 1.5px solid #cecece;
}

@media (min-width: 768px) {
    .diamond_simulation_tool .d_flex__content {
        padding: 5% 10%;
    }

    .diamond_simulation_tool .c_tab {
        margin-bottom: 6%;
    }

    .diamond_simulation_tool .gold-form {
        margin-bottom: 6%;
        padding-bottom: 6%;
    }
}

.anchor-link-search a:last-child {
    grid-column: 1 / -1;
}
