html {
    scroll-behavior: smooth;
}

.brand-intro {
    position: relative;
    width: 100%;
    height: 880px;
    overflow: hidden;
    font-family: 'IBM Plex Sans JP', sans-serif;
    background-color: #000;
}

.brand-intro__color-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background-color: var(--brand-color, #FFD700);
    z-index: 2;
}

.brand-intro__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    font-size: 0;
}

.brand-intro__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.07);
    animation: zoomOut 4s ease-out forwards;
    display: block;
}

@keyframes zoomOut {
    from {
        transform: scale(1.07);
    }
    to {
        transform: scale(1);
    }
}

.brand-intro__content-wrapper {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    background-color: #fff;
    width: 660px;
    height: 660px;
}

.brand-intro__content {
    height: 100%;
    padding: 150px 120px 0;
    box-sizing: border-box;
}

.brand-intro__logo-box {
    position: absolute;
    top: 0;
    right: -100px;
    width: 200px;
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.brand-intro__logo {
    width: 120px;
    height: auto;
}

.brand-intro__title {
    font-size: 32px;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
    margin: 0 0 40px 0;
    max-width: 390px;
    letter-spacing: 3px;
}

.brand-intro__description {
    font-size: 18px;
    line-height: 39px;
    font-weight: 450;
    color: inherit;
    text-align: justify;
}

.brand-intro__description p {
    margin: 0 0 1rem 0;
}

.brand-intro__description p:last-child {
    margin-bottom: 0;
}

.brand-nav {
    width: 100%;
    height: 90px;
    background-color: var(--nav-bg-color, #000);
    position: relative;
    display: flex;
    align-items: center;
    z-index: 100;
}

.brand-nav--fixed {
    position: fixed;
    top: -90px;
    left: 0;
    width: 100%;
    transition: top 0.35s ease;
    z-index: 999;
}

.brand-nav--fixed.brand-nav--visible {
    top: 0;
}

.brand-nav__container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 0;
    align-items: center;
    padding: 0 195px;
    height: 60px;
}

/* 5 items */
.brand-nav__container:has(.brand-nav__item:nth-child(5)):not(:has(.brand-nav__item:nth-child(6))) {
    padding: 0 125px;
}

/* 6+ items */
.brand-nav__container:has(.brand-nav__item:nth-child(6)) {
    padding: 0 125px;
}

.brand-nav__item {
    color: var(--nav-text-color, #fff);
    font-family: 'Roboto Flex', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-nav__item--active {
    color: var(--nav-hover-text-color, #FFD700);
}

@media (hover: hover) {
    .brand-nav__item:hover {
        color: var(--nav-hover-text-color, #FFD700);
    }
}

@media (max-width: 1025px) and (min-width: 768px) {
    .brand-intro {
        height: 61.5vw;
    }

    .brand-intro__color-strip {
        width: 65px;
    }

    .brand-intro__content-wrapper {
        width: 390px;
        height: 390px;
    }

    .brand-intro__content {
        padding: 60px 71px 0px 71px;
    }

    .brand-intro__logo-box {
        right: -50px;
        width: 100px;
        height: 100px;
    }

    .brand-intro__logo {
        width: 75px;
    }

    .brand-intro__title {
        font-size: 18px;
        font-weight: 700;
        max-width: 265px;
        letter-spacing: 2px;
        text-wrap: wrap;
    }

    .brand-intro__description {
        font-size: 14px;
        font-weight: 500;
        line-height: 27px;
        word-break: break-all;
        text-wrap: wrap;
    }

    .brand-intro__description p {
        word-break: break-all;
        text-wrap: wrap;
    }

    .brand-nav {
        height: 70px;
    }

    .brand-nav--fixed {
        top: -70px;
    }

    .brand-nav__container {
        width: 100%;
        padding: 0 115px;
        justify-content: space-between;
        gap: 0;
    }

    .brand-nav__container:has(.brand-nav__item:nth-child(5)):not(:has(.brand-nav__item:nth-child(6))) {
        padding: 0 45px;
    }

    .brand-nav__container:has(.brand-nav__item:nth-child(6)) {
        padding: 0 45px;
    }

    .brand-nav__item {
        font-size: 15px;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    body.single-brand {
        overflow-x: hidden;
    }

    .brand-intro {
        height: auto;
        position: relative;
        overflow: visible;
        margin-bottom: 0;
    }

    .brand-intro__color-strip {
        display: none;
    }

    .brand-intro__background {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .brand-intro__bg-image {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .brand-intro__content-wrapper {
        position: relative;
        width: calc(100vw - 50px);
        height: auto;
        max-width: 100%;
        background: #fff;
        margin-top: -190px;
    }

    .brand-intro__content-wrapper::after {
        content: '';
        position: absolute;
        top: 190px;
        bottom: 0px;
        right: -50px;
        width: 50px;
        background-color: var(--brand-color, #FFD700);
    }

    .brand-intro__content {
        padding: 53px;
        height: auto;
    }

    .brand-intro__logo-box {
        position: absolute;
        top: 0;
        right: -50px;
        width: 100px;
        height: 100px;
    }

    .brand-intro__logo {
        width: 70px;
    }

    .brand-intro__title {
        padding-right: 5px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0;
        margin-bottom: 25px;
        max-width: none;
        min-height: 54px;
    }

    .brand-intro__description {
        font-size: 14px;
        line-height: 1.8;
        font-weight: 450;
        word-break: break-all;
        text-wrap: wrap;
    }

    .brand-intro__description p {
        word-break: break-all;
        text-wrap: wrap;
    }

    .brand-nav__container,
    .brand-nav__container:has(.brand-nav__item:nth-child(4)):not(:has(.brand-nav__item:nth-child(5))),
    .brand-nav__container:has(.brand-nav__item:nth-child(5)):not(:has(.brand-nav__item:nth-child(6))),
    .brand-nav__container:has(.brand-nav__item:nth-child(6)) {
        width: 100%;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
        gap: 5px;
        justify-content: space-between;
        margin: 0;
    }

    /* 3 items only: auto spacing */
    .brand-nav__container:has(.brand-nav__item:nth-child(3)):not(:has(.brand-nav__item:nth-child(4))) {
        gap: 0;
        padding-left: 50px;
        padding-right: 50px;
    }

    .brand-nav__item {
        font-size: 12px;
    }
}
