.right-main {
    position: relative;
    z-index: 0;
    margin-bottom: 38px;
}

.right-main-banner-new,
.right-main-banner-mobile {
    position: relative;
    overflow: hidden;
    height: 506px;
    line-height: 0;
    user-select: none;
}

.right-main-banner-mobile:not(.is-visible) {
    display: none;
}

.right-main .banner-el {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
}

.right-main .banner-el[select] {
    opacity: 1;
    z-index: 1;
}

.banner-el > a,
.banner-el picture,
.banner-el img {
    display: block;
}

.right-main .banner-el img {
    width: 100%;
    height: 100%;
}

.right-main-banner-navi {
    position: absolute;
    bottom: 53px;
    left: 12px;
    right: 12px;
    display: flex;
    z-index: 2;
    pointer-events: none;
}

.right-main-banner-navi[hidden],
.brand-banner-container button[hidden] {
    display: none;
}

.banner-navi-count {
    flex: 1;
    display: grid;
    place-items: center;
}

.navi-count-container {
    width: 16%;
    height: 3px;
    border-radius: 1px;
    background: #f1f1f191;
}

.navi-count-container-element {
    height: 100%;
    background: #7a4dad;
    border-radius: 1px;
    transition: margin-left .5s;
}

.banner-navi-left,
.banner-navi-right,
.brand-banner-navi-left,
.brand-banner-navi-right {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b9b9b92e;
    cursor: pointer;
    pointer-events: auto;
}

.banner-navi-left:hover,
.banner-navi-right:hover,
.brand-banner-navi-left:hover,
.brand-banner-navi-right:hover {
    background: #1212122e;
}

.banner-navi-left::before,
.banner-navi-right::before,
.brand-banner-navi-left::before,
.brand-banner-navi-right::before {
    content: '';
    width: 14px;
    height: 22px;
    background: url('/local/img/arrow-left.svg') center / contain no-repeat;
}

.banner-navi-right::before,
.brand-banner-navi-right::before {
    background-image: url('/local/img/arrow-right.svg');
}

.homepage-title {
    margin: 0;
    text-align: center;
    font-size: 1px;
    color: #eff5f6;
}

.second-banners-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 38px;
}

.second-banners-container .banner-el {
    position: relative;
    transition: filter .3s linear, transform .3s linear;
}

@media (hover: hover) {
    .second-banners-container .banner-el:hover {
        filter: brightness(80%);
        transform: scale(1.02);
    }
}

.erid-action-nav {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    line-height: normal;
}

.erid-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    padding: 2px 8px;
    border: 0;
    border-radius: 2px;
    color: white;
    background: #0005;
    cursor: pointer;
}

.banner-el .erid-label img {
    width: auto;
    height: 13px;
}

.erid-info {
    position: absolute;
    top: 30px;
    right: 0;
    width: max-content;
    padding: 5px 20px;
    border-radius: 2px;
    color: black;
    background: #ededed;
    display: none;
}

.erid-title {
    font-weight: 600;
}

.erid-info div {
    min-height: 24px;
    display: grid;
    place-items: center;
}

.erid-label[aria-expanded="true"] + .erid-info {
    display: block;
}

@media (hover: hover) {
    .erid-action-nav:hover .erid-info {
        display: block;
    }
}

.second-banners-container .erid-label {
    min-height: unset;
    padding: 5px;
}

.second-banners-container .erid-label img {
    height: 11px;
}

.second-banners-container .erid-info {
    background: white;
}

.brand-banner-container {
    --brand-tiles-visible: 7;
    position: relative;
    margin-bottom: 38px;
}

.brand-banner-wrapper {
    overflow: hidden;
}

.brand-banner-items {
    display: flex;
    gap: 1px;
    user-select: none;
}

.brand-banner-items.is-centered {
    justify-content: center;
}

.brand-banner-item {
    flex: 0 0 calc(100% / var(--brand-tiles-visible) - 1px);
    height: 68px;
    overflow: hidden;
}

.brand-banner-item picture {
    display: block;
    transition: transform .3s;
}

.brand-banner-item img {
    display: block;
    width: 100%;
    height: auto;
}

@media (hover: hover) {
    .brand-banner-item picture:hover {
        transform: scale(1.2);
    }
}

.brand-banner-navi-left,
.brand-banner-navi-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.brand-banner-container:hover button,
.brand-banner-container:focus-within button {
    opacity: 1;
    pointer-events: auto;
}

.brand-banner-navi-left {
    left: 10px;
}

.brand-banner-navi-right {
    right: 10px;
}

.seo-text {
    display: flex;
    flex-direction: column;
    margin: 34px 0 12px;
    padding: 10px 20px;
    border-radius: 4px;
    background: white;
}

.seo-text p:first-child {
    margin-bottom: 0;
}

.seo-text:has(#homepage-seo-details[hidden]) .seo-intro {
    opacity: .5;
}

.open-seo-text {
    align-self: center;
    padding: 5px;
    border: 0;
    background: #7a4dad;
    color: white;
    cursor: pointer;
}

@media (601px <= width <= 1000px) {
    .right-main {
        margin-bottom: 10px;
    }
}

@media (width <= 1200px) {
    .right-main-banner-navi {
        bottom: 91px;
    }
}

@media (max-width: 600px) {
    .right-main {
        margin-bottom: 24px;
    }

    .right-main-banner-new,
    .right-main-banner-mobile {
        height: auto;
    }

    .right-main .banner-el[select] {
        position: relative;
    }

    .right-main .banner-el img {
        height: auto;
    }

    .right-main-banner-navi,
    .brand-banner-navi-left,
    .brand-banner-navi-right {
        display: none;
    }

    .second-banners-container {
        overflow: auto;
        margin-bottom: 24px;
    }

    .second-banners-container .banner-el > picture img,
    .second-banners-container .banner-el > a img {
        height: 150px;
    }

    .erid-action-nav {
        top: 10px;
        right: 10px;
    }

    .second-banners-container .erid-info {
        top: 0;
        right: -10px;
        width: 135px;
        min-height: 140px;
        text-align: center;
    }

    .brand-banner-container {
        --brand-tiles-visible: 3.5;
        margin-bottom: 0;
    }

    .brand-banner-item {
        height: auto;
    }

    .seo-text {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .right-main .banner-el,
    .navi-count-container-element {
        transition: none;
    }
}
