#jewelry_link {
    width: 100%;
}

#jewelry_link h2.sub_title_2024 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4444444444;
    text-align: center;
    margin: 4%;
}

#jewelry_link .sub_title_2024 span {
    color: #e60012;
}

#jewelry_link .col_box_2024 {
    max-width: 824px;
    font-size: 1vw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 2vw;
    grid-row-gap: 2vw;
    margin: auto;
}

#jewelry_link .col_box_2024 a h3 {
    font-size: 16px;
    line-height: 1em;
    font-weight: 700;
    text-align: center;
    padding: 0 12px;
    margin-top: 0.6em;
}

#jewelry_link .col_box_2024 .img {
    overflow: hidden;
    border: solid 3px #e60012;
    border-radius: 24px;
    padding: 10px;
    position: relative;
    text-decoration: none;
    background-color: #fff;
    width: 100%;
    display: flex;
}

#jewelry_link .col_box_2024 .img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: auto;
}

#jewelry_link .col_box_2024 .img span {
    position: absolute;
    right: 6%;
    bottom: 6%;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    content: "";
    background-image: url(/daiya/wp-content/themes/otakaraya/assets/img/common/icon_arrow_red01.png);
    background-size: cover;
}

#jewelry_link #brand_tokei_sec02 {
    max-width: 824px;
    margin: 40px auto;
}

#jewelry_link #brand_tokei_sec02 > .flex[class*="flex--hasItem"] {
    padding: 0;
}

#jewelry_link #brand_tokei_sec02 .flex__tab {
    display: flex;
    justify-content: space-between;
    gap: 2px 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item {
    width: calc((100% - 4px) / 3);
    flex: 0 0 calc((100% - 4px) / 3);
    max-width: calc((100% - 4px) / 3);
    box-sizing: border-box;
    text-align: center;
    list-style: none;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item:not(:first-child) {
    border-left: 0 solid #f2f2f2;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item > a {
    align-items: center;
    background: #e60012;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 60px;
    padding: 6px;
    width: 100%;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 0;
    cursor: pointer;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item > a::after {
    content: none;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item:first-child > a {
    border-top-left-radius: 1.4rem;
}

#jewelry_link
    #brand_tokei_sec02
    .flex__tab.flex__tab_num_9
    .tab__item:nth-child(3)
    > a {
    border-top-right-radius: 1.4rem;
}

#jewelry_link #brand_tokei_sec02 .flex__tab .tab__item.active > a {
    background: #f2f2f2;
    color: #d82300;
}

#jewelry_link #brand_tokei_sec02 .flex__tabContents {
    width: 100%;
    background-color: #f2f2f2;
    border-radius: 0 0 1.4rem 1.4rem;
    overflow: hidden;
}

#jewelry_link #brand_tokei_sec02 .flex__content {
    display: none;
}

#jewelry_link #brand_tokei_sec02 .flex__content.active {
    display: block;
    background-color: #f2f2f2;
    border-radius: 0 0 1.4rem 1.4rem;
    padding: 20px 18px 16px;
}

#jewelry_link #brand_tokei_sec02 .col_box_2024 {
    max-width: 100%;
    position: relative;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    #jewelry_link h2.sub_title_2024 {
        font-size: 1.6rem;
        margin-top: 7%;
    }

    #jewelry_link #brand_tokei_sec02 {
        margin-top: 32px;
        width: auto;
    }

    #jewelry_link #brand_tokei_sec02 > .flex[class*="flex--hasItem"] {
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    #jewelry_link #brand_tokei_sec02 .flex__tab .tab__item > a {
        min-height: 60px;
        padding: 13px 6px;
        font-size: 0.75rem;
        border-radius: 0;
    }

    #jewelry_link #brand_tokei_sec02 .flex__tab .tab__item:first-child > a {
        border-top-left-radius: 1.2rem;
    }

    #jewelry_link
        #brand_tokei_sec02
        .flex__tab.flex__tab_num_9
        .tab__item:nth-child(3)
        > a {
        border-top-right-radius: 1.2rem;
    }

    #jewelry_link #brand_tokei_sec02 .flex__content.active {
        padding: 5% 5% 10%;
        border-radius: 0 0 1.2rem 1.2rem;
    }

    #jewelry_link #brand_tokei_sec02 .flex__tabContents {
        border-radius: 0 0 1.2rem 1.2rem;
    }

    #jewelry_link .col_box_2024 {
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 6vw;
    }

    #jewelry_link .col_box_2024 .img {
        width: 92%;
        margin: 0 auto;
        border-radius: 14px;
        padding: 10px 6vw;
    }

    #jewelry_link #brand_tokei_sec02 .col_box_2024 {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 3vw;
        grid-row-gap: 4vw;
        padding: 5%;
    }

    #jewelry_link #brand_tokei_sec02 .col_box_2024 .img {
        width: 92%;
        padding: 8px 5vw;
        box-sizing: border-box;
        margin: 0 auto;
        border-radius: 14px;
    }

    #jewelry_link #brand_tokei_sec02 .col_box_2024 a h3 {
        font-size: 0.9rem;
        line-height: 1.2;
        padding: 0 4px;
    }

    #jewelry_link .col_box_2024 a h3 {
        margin-top: 0.4em;
    }
}
