@charset "UTF-8";


/* 変数指定 */
.new_category-tab_base :root {
    margin-bottom: min(4cqw, 1.5rem);
    margin-bottom-min: min(2cqw, .8rem);
    gap: min(3.6cqw, 1.6rem);
    
    active-color: #0072ff;
    aside-width: 22%;
    aside-max-width: 350px;
}

.new_category-tab_base * {
    box-sizing: border-box;
}

.new_category-tab_base a {
    display: block;
}
.new_category-tab_base a:hover {
    color: #222 !important;
}
.new_category-tab_base a:hover p{
    color: #222;
}
.new_category-tab_base a.link-none:hover {
    opacity: 1;
    color: #222 !important;
}
.new_category-tab_base article#contents {
    padding-bottom: 0 !important;
}

.new_category-tab_base .category_base img {
  width: 100%;
  height: auto;
  display: block;
}
.new_category-tab_base .category-ranking {
    position: relative;
}
.new_category-tab_base .category-ranking::after {
    content: "";
    position: absolute;
    top: 3vw;
    left: 5vw;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #fffdc2;
    border-radius: 50%;
    z-index: -1;
}

.new_category-tab_base .section {
    width: 100%;
    margin-bottom: 7%;
}

/* 画像-正方形カルーセル */
.new_category-tab_base .carousel {
    width: 100%;
    
    .carousel-inner__center {
        position: relative;
        display: flex;
        gap: 2cqw;
        overflow-x: scroll;

        /* スクロールバーあるときは余白を小さく */
        margin-bottom: var(margin-bottom-min);

        /* スクロールバーの余白 */
        padding-bottom: 3%;

        .center-item {
            position: relative;
            min-width: 26cqw;
            width: 38cqw;
            border-radius: 5px;
            overflow: hidden;
    
            & a {
                width: 100%;
                display: block;
            }

            &:nth-last-of-type(1) {
                margin-right: 2.5%;
            }
        }

        /* アイテム数が少なく、スマホでスライダーにならない場合の処理 */
        &.itemcount-1-2 {
            padding: 0;

            /* スクロールバーがない分余白を大きく */
            margin-bottom: var(margin-bottom); 
        }   
        /* アイテム数が少ない場合の処理 */
        &.item-width-max {
            overflow-x: auto;
        }
    }

    .slider-arrow,.slider-radio-wrap {
        display: none;
    }
}

/* 画像-長方形カルーセル */
.new_category-tab_base .carousel.carousel__category {

    .carousel-inner__center {
        position: relative;
        display: flex;
        gap: 2cqw;
        overflow-x: scroll;

        .center-item {
            position: relative;
            min-width: 90cqw;
            width: 90cqw;
            border-radius: 5px;
            overflow: hidden;
    
            & a {
                width: 100%;
                display: block;
            }

            &:nth-last-of-type(1) {
                margin-right: 2.5%;
            }
        }

        /* アイテム数が少ない場合の処理 */
        &.item-width-max {
            padding: 0;
            overflow-x: auto;

            .center-item {
                width: 100%;
            }
        }
    }


}

/* 画像-カルーセル カテゴリページ用 */
.new_category-tab_base .category .carousel {
    width: 100%;
    margin: 0 auto;

    .carousel-inner__center {
        .center-item {
            &:nth-last-of-type(1) {
                margin-right: 0;
            }
        }
    }
}

/* 見出し */
.new_category-tab_base .title {
    box-sizing: border-box;
    padding: 0 2.5%;
}

/* タブ切り替え */
.new_category-tab_base input  {
    display: none;
}
.new_category-tab_base {
    width: 100%;
    margin: 0 auto;
}
.new_category-tab_base .tab-hed {
    display: flex;
    justify-content: space-between;
    /* margin-bottom: 2%; */
}
.new_category-tab_base .tab-hed .tab-label {
    width: 50%;
    display: flex;
    justify-content: center;
    background: #ffffff;
    font-size: min(3.6vw, 18px);
    padding: .5em 0;
    border: 1px solid #393939;
    border-bottom: none;
    cursor:pointer;
}

.new_category-tab_base .tab-content {
    display: none;
    border: 1px solid #393939;
    background: #f3f3f3;
    box-sizing: border-box;
    padding: 3%;
}

.new_category-tab_base .tab-content ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5%;
    margin-bottom: 0%;
}

.new_category-tab_base .tab-content li {
    margin-top: 3%;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #FFF;
}
.new_category-tab_base .tab-content li:nth-of-type(1),
.new_category-tab_base .tab-content li:nth-of-type(2),
.new_category-tab_base .tab-content li:nth-of-type(3),
.new_category-tab_base .tab-content li:nth-of-type(4) {
    margin-top: 0;
}
.new_category-tab_base .tab-content .title {
    width: 100%;
    text-align: center;
    border: none;
    background: none;
    aspect-ratio: auto;
    font-size: min(4.1vw, 20px);
    font-weight: 600;
    margin-bottom: .3em;
    color: #222;
}
.new_category-tab_base .tab-content li .categry_text {
    font-size: min(2.5vw, 12px);
    text-align: center;
    color: #222;
}
.new_category-tab_base .tab-content li a {
    padding: 5%;
}

.new_category-tab_base .tab-content li img{
    border-radius: 5px;
}

/* 20260212 M.YAMAZAKI 【追加】ADD STR */

/* 1枚目 */
.new_category-tab_base input[id$="-item-1"]:checked ~ .tab-hed .tab-label.item-1 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base input[id$="-item-1"]:checked ~ .tab-content.item-1 {
    display: block;
}

/* 2枚目 */
.new_category-tab_base input[id$="-item-2"]:checked ~ .tab-hed .tab-label.item-2 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base input[id$="-item-2"]:checked ~ .tab-content.item-2 {
    display: block;
}

/* 3枚目 */
.new_category-tab_base input[id$="-item-3"]:checked ~ .tab-hed .tab-label.item-3 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base input[id$="-item-3"]:checked ~ .tab-content.item-3 {
    display: block;
}

/* 4枚目 */
.new_category-tab_base input[id$="-item-4"]:checked ~ .tab-hed .tab-label.item-4 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base input[id$="-item-4"]:checked ~ .tab-content.item-4 {
    display: block;
}
/* 20260212 M.YAMAZAKI 【追加】ADD END */


/* 20260212 M.YAMAZAKI 【削除】DEL STR */

/* タブ1枚目から探す */
/* .new_category-tab_base #tab-item-1:checked ~ .tab-hed .tab-label.item-1 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base #tab-item-1:checked ~ .tab-content.item-1 {
    display: block;
} */

/* タブ2枚目から探す */
/* .new_category-tab_base #tab-item-2:checked ~ .tab-hed .tab-label.item-2 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base #tab-item-2:checked ~ .tab-content.item-2 {
    display: block;
} */

/* タブ3枚目から探す */
/* .new_category-tab_base #tab-item-3:checked ~ .tab-hed .tab-label.item-3 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base #tab-item-3:checked ~ .tab-content.item-3 {
    display: block;
} */

/* タブ4枚目から探す */
/* .new_category-tab_base #tab-item-4:checked ~ .tab-hed .tab-label.item-4 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.new_category-tab_base #tab-item-4:checked ~ .tab-content.item-4 {
    display: block;
} */
/* 20260212 M.YAMAZAKI 【削除】DEL END */

/* 文字のみボタンのレイアウト */
.new_category-tab_base ul.aspect_col_4 {
    grid-template-columns: repeat(4, 1fr);
}
.new_category-tab_base ul.aspect_col_3 {
    grid-template-columns: repeat(3, 1fr);
}
.new_category-tab_base ul.aspect_col_2 {
    grid-template-columns: repeat(2, 1fr);
}
.new_category-tab_base ul.aspect_col_1 {
    grid-template-columns: 1fr;
}

.new_category-tab_base ul.aspect_col_4 li a,
.new_category-tab_base ul.aspect_col_3 li a,
.new_category-tab_base ul.aspect_col_2 li a,
.new_category-tab_base ul.aspect_col_1 li a {
    padding: 10px 5px;
    position: relative;
}

.new_category-tab_base ul.aspect_col_4 li a::after,
.new_category-tab_base ul.aspect_col_3 li a::after,
.new_category-tab_base ul.aspect_col_2 li a::after,
.new_category-tab_base ul.aspect_col_1 li a::after {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    top: 43%;
    right: 7%;
    border-top: solid 2px #222222;
    border-right: solid 2px #222222;
    transform: rotate(45deg);
    transition: 0.2s;
}

.new_category-tab_base ul:nth-child(n+2) {
    margin-top: 12px;
}


/* タブ内ランキング */
.new_category-tab_base .tab-content .ranking li a {
    padding: 0;
}

.new_category-tab_base .tab-content .ranking li dl {
    width: 195px;
    padding: 10px;
}

.new_category-tab_base .tab-content .ranking ul {
    gap: 15px!important;
    padding-bottom: 5px;
}

.new_category-tab_base .ranking .item-list-datail dt img {
    min-height: auto;
    border-radius: 0;
}
