@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@400&family=Kosugi+Maru&display=swap");

.hero,
.hero__carousel,
.hero__inner,
.hero__slide {
    height: 100vh;
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: rgb(34, 34, 34);
}

.hero__carousel,
.hero__inner,
.hero__slide {
    position: relative;
}

.hero__slide {
    overflow: hidden;
}

.hero .carousel-fade .carousel-item {
    transition-property: opacity;
    transition-duration: 800ms;
    transition-timing-function: cubic-bezier(0.02, 0.01, 0.47, 1);
    transition-delay: 0s;
}

.hero__background,
.hero__overlay,
.hero__content {
    position: absolute;
    inset: 0;
}

.hero__background {
    z-index: 0;
    background-image: var(--hero-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero__overlay {
    z-index: 1;
    background: rgba(34, 34, 34, 0.3);
}

.hero__content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 3.9vw, 50px);
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
    color: rgb(255, 255, 255);
    text-align: center;
}

.hero__title,
.hero__subtitle {
    color: inherit;
    font-family:
        "Dosis",
        var(--font-cjk-primary),
        var(--font-cjk-secondary),
        sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.hero__title {
    margin: 0;
    font-size: 30px;
    letter-spacing: 50px;
    opacity: 0.9;
}

.hero__subtitle {
    margin: 0;
    font-size: 16px;
    letter-spacing: 10px;
    opacity: 0.6;
    animation: hero-fade-in-down 1s ease 0.7s both;
}

.hero__description {
    margin: 0;
    color: inherit;
    font-family:
        var(--font-cjk-primary),
        var(--font-cjk-secondary),
        sans-serif;
    font-size: clamp(17px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    animation: hero-fade-in-down 1s ease 1.3s both;
}

.hero--ko .hero__description {
    letter-spacing: 0.05em;
}

.hero--ja .hero__description {
    font-family:
        "Kosugi Maru",
        var(--font-cjk-primary),
        var(--font-cjk-secondary),
        sans-serif;
    letter-spacing: 0.48em;
}

.hero__control {
    z-index: 3;
    top: calc(50% - 35px);
    bottom: auto;
    display: block;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgb(255, 255, 255);
    color: rgb(17, 17, 17);
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 40px;
    opacity: 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.3, 0.1, 0.58, 1);
}

.hero__control--prev {
    right: auto;
    left: -20px;
    margin-left: 10px;
}

.hero__control--next {
    right: -20px;
    left: auto;
    margin-right: 10px;
}

.hero__control .fa {
    line-height: inherit;
}

.hero .hero__control:focus {
    opacity: 0;
}

.hero .hero__control--prev:focus-visible {
    left: 0;
}

.hero .hero__control--next:focus-visible {
    right: 0;
}

.hero .hero__control:focus-visible {
    color: rgb(17, 17, 17);
    opacity: 0.8;
    outline: 2px solid rgb(255, 255, 255);
    outline-offset: 3px;
}

@keyframes hero-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) {
    .hero:hover .hero__control--prev {
        left: 0;
        opacity: 0.5;
    }

    .hero:hover .hero__control--next {
        right: 0;
        opacity: 0.5;
    }

    .hero:hover .hero__control:hover {
        color: rgb(17, 17, 17);
        opacity: 0.8;
    }
}

@media (max-width: 992px) {
    .hero__title {
        font-size: 26px;
        letter-spacing: 40px;
    }

    .hero__subtitle {
        font-size: 16px;
        letter-spacing: 8px;
    }
}

@media (max-width: 767px) {
    .hero__title {
        font-size: 26px;
        letter-spacing: 24px;
    }

    .hero__subtitle {
        font-size: 14px;
        letter-spacing: 4px;
    }
}

@media (max-width: 500px) {
    .hero__title {
        font-size: 26px;
        letter-spacing: 12px;
    }

    .hero__subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .carousel-item {
        transition-duration: 0.01ms;
    }

    .hero__subtitle,
    .hero__description {
        animation: none;
    }

    .hero__control {
        transition-duration: 0.01ms;
    }
}
