@charset "UTF-8";


/* 変数指定 */
: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;
}

* {
    box-sizing: border-box;
}

a {
    display: block;
}
a:hover {
    color: #222 !important;
}
a:hover p{
    color: #222;
}
a.link-none:hover {
    opacity: 1;
    color: #222 !important;
}
article#contents {
    padding-bottom: 0 !important;
}



/* カテゴリベースリセット */
.category_base {
    padding: 0;
    margin: 0;

    /* コンテナクエリを指定 */
    container-type: inline-size;  /* または size */
}
.category_base .featured_category {
    margin: 0;
}

.category_base img {
  width: 100%;
  height: auto;
  display: block;
}

/* 売れ筋ランキング見出し装飾 */
.category-ranking > h2 {
    font-size: 5vw;
    padding-left: 10px;
    border-bottom: 3px dashed #000;
    position: relative;
    font-weight: 600;
    padding-bottom: 5px;
    width: 91%;
    margin: 0 auto;
    display: block;
}
.category-ranking {
    position: relative;
}
.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;
}

.section {
    width: 100%;
    margin-bottom: 7%;
}

/* 画像-正方形カルーセル */
.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;
    }
}

/* 画像-長方形カルーセル */
.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%;
            }
        }
    }


}

/* 画像-カルーセル カテゴリページ用 */
.category .carousel {
    width: 100%;
    margin: 0 auto;

    .carousel-inner__center {
        .center-item {
            &:nth-last-of-type(1) {
                margin-right: 0;
            }
        }
    }
}

/* 見出し */
.title {
    box-sizing: border-box;
    padding: 0 2.5%;
}

/* タブ切り替え */
.tab input  {
    display: none;
}
.tab {
    width: 100%;
    margin: 0 auto;
}
.tab .tab-hed {
    display: flex;
    justify-content: space-between;
    /* margin-bottom: 2%; */
}
.tab .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;
}

.tab .tab-content {
    display: none;
    border: 1px solid #393939;
    background: #f3f3f3;
    box-sizing: border-box;
    padding: 3%;
}

.tab .tab-content ul {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 2.5%;
    margin-bottom: 0%;
}

.tab .tab-content li {
    width: 23%;
    margin-top: 3%;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #FFF;
    aspect-ratio: 400/225;
}
.tab .tab-content li:nth-of-type(1),
.tab .tab-content li:nth-of-type(2),
.tab .tab-content li:nth-of-type(3),
.tab .tab-content li:nth-of-type(4) {
    margin-top: 0;
}
.tab .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;
}
.tab .tab-content li .categry_text {
    font-size: min(2.5vw, 12px);
    text-align: center;
}
.tab .tab-content li a {
    padding: 5%;
}
.tab .tab-content li img{
    border-radius: 5px;
}

/* タブ1枚目から探す */
.tab #tab-item-1:checked ~ .tab-hed .tab-label.item-1 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.tab #tab-item-1:checked ~ .tab-content.item-1 {
    display: block;
}

/* タブ2枚目から探す */
.tab #tab-item-2:checked ~ .tab-hed .tab-label.item-2 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.tab #tab-item-2:checked ~ .tab-content.item-2 {
    display: block;
}

/* タブ3枚目から探す */
.tab #tab-item-3:checked ~ .tab-hed .tab-label.item-3 {
    background: #222;
    color: #fcfcfc;
    border: none;
}
.tab #tab-item-3:checked ~ .tab-content.item-3 {
    display: block;
}

/* 見出しのサブテキスト */
.category_base .flex {
    display: flex;
    align-items: center;
    gap: 3%;
}
.category_base .flex .more_text {
    font-size: 20px;
    color: #1076c9;
    padding-bottom: 12%;
}