@charset "utf-8";

#brand {
    background-color: #f2f2f2;
    border: none;
}

#brand:last-of-type {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Brand Text Section - SEO */
.brand-text-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.brand-text-section h4 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    padding-left: 20px;
}

.brand-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.brand-text-list li {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
    padding: 10px 0 10px 20px;
    border-bottom: 1px dotted #ddd;
}

.brand-text-list li:hover {
    color: #932536;
}

.brand-toc {
    padding: 20px 0;
    margin: 0px auto;
    max-width: 960px;
}

.brand-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    max-width: 100%;
}

.brand-toc li {
    margin: 0;
    padding: 0;
}

.brand-toc a {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 15px 0 15px 20px;
    background-color: #f0f0f0;
    border-left: 4px solid #932536;
    border-bottom: 1px dotted #ddd;
    transition: 0.3s;
}

.brand-toc a:hover {
    color: #932536;
    background-color: #e8e8e8;
}

#brand section {
    margin-bottom: 20px;
}

#brand {
    padding: 60px 0;
}
#brand .lists li {
    display: block;
    aspect-ratio: 230 / 100;
    margin-bottom: 20px;
    max-width: 262px;
    background-color: #fff;
    box-sizing: border-box;
    min-height: 70px;
}
#brand .lists.clm3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#brand .lists li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* ここ大事 */
    padding: 3px 20px;
    border: 1px solid #cecece;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgb(0, 0, 0, 0.15);
    transition: 0.3s;
    min-width: 0;
    box-sizing: border-box;
}
#brand .lists li a:hover {
    box-shadow: none;
    transition: 0.3s;
}
#brand .lists.clm1 li a img {
    max-width: 580px;
}
#brand .lists.clm3 li a img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
#brand .lists.clm4 li a img {
    max-width: 130px;
}
#brand .bnr {
    display: flex;
    gap: 40px;
    margin: 20px 0 40px;
    transition: 0.3s;
}
#brand .bnr a {
    transition: 0.3s;
}
#brand .bnr a:hover {
    opacity: 0.7;
    transition: 0.3s;
}
#brand .txt {
    font-size: 1.7rem;
    text-align: center;
}

/* 一般 */
@media only screen and (max-width: 1024px) {
    #brand .lists li {
        max-width: 100%;
    }

    #brand .lists.clm3 {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    #brand {
        padding: 60px 0;
    }

    .brand-text-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    .brand-text-section h4 {
        font-size: clamp(1.4rem, calc(1.1rem + 0.35vw), 1.8rem);
    }

    .brand-text-list li {
        font-size: clamp(1.2rem, calc(0.95rem + 0.25vw), 1.5rem);
    }

    .brand-toc ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .brand-toc a {
        font-size: clamp(1.3rem, calc(1rem + 0.3vw), 1.6rem);
    }

    .brand-text-section {
        display: none;
    }
}

/* 750px～375px：2列 */
@media only screen and (max-width: 750px) {
    #brand .lists.clm3 {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

/* 375px以下：1列 */
@media only screen and (max-width: 375px) {
    #brand .lists.clm3 {
        grid-template-columns: 1fr;
        width: 100%;
    }
    #brand .lists.clm1 li a img {
        max-width: 80%;
    }
    #brand .lists.clm3 li a img {
        max-width: 80%;
    }
    #brand .lists.clm4 li a img {
        max-width: 80%;
    }
    #brand .bnr {
        gap: 20px;
    }
    #brand .txt {
        font-size: 1.7rem;
    }
}
