﻿@charset "UTF-8";

/* タブ */
.block-brand-tab {
   margin-bottom: 60px; 
}
.block-brand-tab .tab-btn-list .btn {
    display: none;
}
.block-brand-tab .tab-btn-list .btn+label {
    display: table;
    border: 1px solid var(--base-active-gray);
    text-align: center;
    margin: 5px 10px;
    line-height: 38px;
    float: left;
    cursor: pointer;
}
.block-brand-tab .tab-btn-list .btn:not([value="other"])+label {
    min-width: 40px;
}
.block-brand-tab .tab-btn-list .btn[value="other"]+label {
    padding: 0 20px;
}
.block-brand-tab .tab-btn-list .btn+label:hover {
    background-color: var(--base-white-gray);
    color: var(--base-active-gray);
}
.block-brand-tab .tab-btn-list::after {
    content: "";
    display: block;
    clear: both;
}
.block-brand-tab .tab-search-wrap {
    float: left;
    margin-left: 10px;
    margin-top: 5px;
    position: relative;
    display: flex;
}
.block-brand-tab .tab-search-wrap .search-text {
    line-height: 38px;
    padding: 0 10px;
    outline: 0;
    border: 1px solid var(--base-active-gray);
    min-width: 360px;
    box-sizing: border-box;
}
.block-brand-tab .tab-search-wrap .search-btn {
    font-size: 0;
    padding: 0;
    outline: 0;
    border: 0;
    background: #4C5051 url(../img/usr/common/ico-search-wh.svg) center / auto no-repeat;
    width: 80px;
    aspect-ratio: 1 / 0.5;
    cursor: pointer;
}

/* リスト */
.block-brand-list-wrap .brand-alphabet-list {
    counter-reset: hoge;
}
.block-brand-list-wrap .brand-alphabet-list .brand-type {
    counter-increment: hoge;
    display: flex;
}
.block-brand-list-wrap .brand-alphabet-list .brand-type .alphabet-title {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    margin-right: 17.5%;
    min-width: 20px;
}
.block-brand-list-wrap .brand-alphabet-list .brand-type +  .brand-type {
    margin-top: 40px;
}
.block-brand-list-wrap .brand-list {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - (17.5% + 20px));
}
.block-brand-list-wrap .brand-list .brand-item-wrap {
    width: calc((100% - 120px) / 3);
    margin-right: 60px;
    position: relative;
}
.block-brand-list-wrap .brand-list .brand-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(3n) {
    margin-right: 0;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(n + 4) {
    margin-top: 40px;
}
.block-brand-list-wrap .brand-list .brand-detail-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    right: 0;
    background-color: var(--base-light-gray);
    width: 400%;
    max-width: 1010px;
    padding: 2.8em;
    transition: opacity 0.1s ease;
    z-index: 1;
}
.block-brand-list-wrap .brand-list .brand-detail-content::before {
    content: "";
    background-color: var(--base-light-gray);
    height: calc(tan(60deg) * 40px / 2);
    width: 40px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    position: absolute;
    top: -30px;
    left: 3.5%;
}
.block-brand-list-wrap .brand-list .brand-item.active .brand-detail-content {
    visibility: visible;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(3n-1) .brand-detail-content {
    left: -120%;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(3n-1) .brand-detail-content::before {
    left: 40.8%;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(3n) .brand-detail-content {
    left: -240%;
}
.block-brand-list-wrap .brand-list .brand-item-wrap:nth-child(3n) .brand-detail-content::before {
    left: 77%;
}
.block-brand-list-wrap .brand-list .img-block {
    border: 1px solid var(--base-active-gray);
    max-width: 120px;
    aspect-ratio: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    width: 40%;
    cursor: pointer;
}
.block-brand-list-wrap .brand-list .brand-item .img-block img {
    transition: var(--base-anime-trasition);
}
.block-brand-list-wrap .brand-list .brand-item:hover .img-block img {
    transform: scale(1.05);
}
.block-brand-list-wrap .brand-list .brand-name {
    margin-left: 7%;
    width: 53%;
}
.block-brand-list-wrap .brand-list .brand-name .name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    word-break: break-all;
}
.block-brand-list-wrap .brand-list .brand-name .ja-name {
    display: block;
    font-size: 11px;
    margin-top: 5px;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl,
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist {
    display: none;
    flex-wrap: wrap;
}
.block-brand-list-wrap .brand-list .brand-item.active .brand-detail-content .detail-ttl,
.block-brand-list-wrap .brand-list .brand-item.active .brand-detail-content .detail-shoplist {
    display: flex;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .is-name,
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .is-ttl {
    width: 20%;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .is-text,
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list {
    width: 70%;
    margin-left: auto;
    line-height: 1.8;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .is-ttl {
    font-weight: bold;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .out-link {
    margin-top: 10px;
}
.block-brand-list-wrap .brand-list .close-btn {
    text-align: center;
    margin-top: 20px;
}
.block-brand-list-wrap .brand-list .close-btn-inner {
    position: relative;
    display: inline-block;
    padding-left: 25px;
}
.block-brand-list-wrap .brand-list .close-btn-inner::before,
.block-brand-list-wrap .brand-list .close-btn-inner::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 1px;
    background-color: black;
    display: inline-block;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}
.block-brand-list-wrap .brand-list .close-btn-inner::before {
    transform: rotate(45deg);
}
.block-brand-list-wrap .brand-list .close-btn-inner::after {
    transform: rotate(-45deg);
}
.block-brand-list-wrap .brand-list .brand-detail-close {
    outline: 0;
    border: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist {
    width: 70%;
    margin-left: auto;
    margin-top: 34px;
    display: none;
}
.block-brand-list-wrap .brand-item.active .brand-detail-content .detail-shoplist {
    display: flex;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list {
    max-height: 300px;
    overflow: auto;
    display: block;
    scroll-behavior: smooth;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list::-webkit-scrollbar {
    background-color:#E5E5E5;
    width: 8px;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list::-webkit-scrollbar-thumb {
  background-color : #000;
}

.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list li a {
    display: block;
    position: relative;
    padding: 10px 50px 10px 0;
    border-bottom: 1px solid white;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list li a::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--base-active-gray);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .name {
    display: block;
    font-weight: bold;
    font-size: 24px;
}
.block-brand-list-wrap .brand-list .brand-name .ja-name {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}
/* 検索ページ */
.block-brand-list-wrap .brand-list.list-search {
    width: 100%;
}
.block-brand-list-wrap .brand-list.list-search .brand-detail-content {
    max-width: 1280px;
}

@media screen and (max-width: 768px) { 
    .tab-search-wrap {
        float: none;
        display: block;
    }
    .block-brand-tab .tab-search-wrap {
        margin: 0;
        float: none;
        justify-content: center;
    }
    .block-brand-tab .tab-search-wrap .search-text {
        min-width: auto;
        width: 100%;
        padding: 0 38px 0 10px;
    }
    .block-brand-tab .tab-search-wrap .tab-search-inner {
	    position: relative;
	    width: 75%;
	}
    .block-brand-tab .tab-search-wrap .js-open-tab-btn {
        width: 20%;
        margin-left: auto;
        position: relative;
        font-size: clamp(10px,2vw,14px);
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
	}
    .block-brand-tab .tab-search-wrap .js-open-tab-btn::before {
        content: "";
        display: block;
        width: 50%;
        aspect-ratio: 1 / 0.7;
        background: url(../img/usr/brand/ico-tab-alpha-btn.png) center / auto 100% no-repeat;
        margin-right: auto;
	}
    .block-brand-tab .tab-search-wrap .search-btn {
        background: transparent url(../img/usr/common/ico-search.svg) center / auto 50% no-repeat;
        width: 38px;
        aspect-ratio: 1;
        position: absolute;
        right: 0;
    }
    .block-brand-list-wrap .brand-alphabet-list .brand-type {
        display: block;
    }
    .block-brand-list-wrap .brand-alphabet-list .brand-type .alphabet-title {
        font-size: clamp(13px,2.5vw,16px);
        margin-bottom: 10px;
		margin-right: 0;
    }
	.block-brand-list-wrap .brand-list {
		width: auto;
	}
    .block-brand-list-wrap .brand-list .brand-item-wrap {
        width: calc((100% - 40px) / 3);
        margin-right: 20px;
        flex-basis: auto;
    }
    .block-brand-list-wrap .brand-list .brand-item {
        display: block;
    }
    .block-brand-list-wrap .brand-list .img-block {
        width: auto;
        max-width: 250px;
    }
    .block-brand-list-wrap .brand-list .brand-name {
        margin: 10px 0 0;
        width: auto;
    }
    .block-brand-list-wrap .brand-list .brand-name .name {
        font-size: clamp(12px,3.4vw,16px);
    }
    .block-brand-list-wrap .brand-list .brand-name .ja-name {
        font-size: clamp(12px,3vw,14px);
    }
    .block-brand-list-wrap .brand-list .brand-detail-content {
        width: 340%;
        padding: 1.5em;
    }
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .is-name {
        display: none;
    }
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl {
        display: block;
    }
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .is-text,
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-ttl .out-link {
        width: auto;
        margin-left: 0;
    }
    .block-brand-list-wrap .brand-item.active .brand-detail-content .detail-shoplist,
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list {
        display: block;
        width: auto;
    }    
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .shop-list::-webkit-scrollbar {
        width: 4px;
    }
    .block-brand-list-wrap .brand-list .brand-detail-content .detail-shoplist .is-ttl {
        margin-bottom: 25px;
    }

    /* 頭文字から探す */
    .tab-btn-list {
        position: fixed;
        z-index: 80;
        background-color: #F0F2F4;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 10px;
        border-radius: 1em 1em 0 0;
        visibility: hidden;
        transform: translateY(100%);
        transition: var(--base-anime-trasition);
    }
    .tab-btn-list.active {
        visibility: visible;
        transform: translateY(0);
    }
    .tab-btn-list .tab-ttl {
        text-align: center;
        margin: 0 0 20px;
        position: relative;
    }
    .tab-btn-list .tab-ttl .close-btn {
        display: inline-block;
        width: 20px;
        aspect-ratio: 1;
        background-color: white;
        border-radius: 100%;
        position: absolute;
        right: 0;
    }
    .tab-btn-list .tab-ttl .close-btn::before,.tab-btn-list .tab-ttl .close-btn::after {
        content: "";
        position: absolute;
        width: 70%;
        height: 1px;
        background-color: black;
        display: inline-block;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
    .tab-btn-list .tab-ttl .close-btn::before {
        transform: rotate(45deg);
    }
    .tab-btn-list .tab-ttl .close-btn::after {
        transform: rotate(-45deg);
    }
    .block-brand-tab .tab-btn-list .btn+label {
        background-color: white;
        border: 0;
        margin: 10px;
    }
    .block-brand-tab .tab-btn-list .btn:not([value="other"])+label {
        min-width: calc((100% - 120px) / 6);
    }
    .block-brand-tab .tab-btn-list .btn[value="other"]+label {
        min-width: calc(((100% - 120px) / 6) * 5.5);
    }
}