/* Menu Fixed Top */
body {
    margin: 0;
    padding: 0;
    /* padding-top: 5.27vw; */
    background-image: url(../img/back.jpg);
    background-repeat: repeat;
    background-position: top left;
    height: auto;
}

section {
    background-image: url(../img/back.jpg);
    background-repeat: repeat;
    background-position: top left;
}

a {
    display: block;
}

img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.inner {
    /* max-width: 1200px; */
    width: 90%;
    margin: 0 auto;
}

/* Menu Fixed Top */
.menu {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: url(http://www.hs-crowd.co.jp/clip-craft/products/uq_aaa/common/images/menu_back.jpg) center 0;
    background-size: 100% 100%;
}

.menu ul {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.menu ul li {
    float: none !important;
    width: 10vw !important;
    /* 150px / 1500px * 100 */
    height: auto !important;
}

.menu ul li a {
    display: block;
    width: 100%;
    height: auto;
}

.menu ul li img {
    width: 100%;
    height: auto;
    display: block;
}



/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    -webkit-filter: blur(10px);
    filter: blur(10px);
    transition: opacity 1s ease-out, transform 1s ease-out, -webkit-filter 0.5s ease-out;
    transition: opacity 1s ease-out, transform 1s ease-out, filter 0.5s ease-out;
    transition: opacity 1s ease-out, transform 1s ease-out, filter 0.5s ease-out, -webkit-filter 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    -webkit-filter: blur(0);
    filter: blur(0);
}

.ttl {
    margin-bottom: 6px;
}

.fv-container {
    position: relative;
    width: 100%;
    height: auto;
    /* Ensure it takes full height if needed, or just auto */
    overflow: hidden;
}

.logo {
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40vw;
}

.logo img {
    width: 120%;
    height: auto;
    display: block;
}


/* news */
.news {
    padding-top: 4%;
}

.news__box {
    width: 90%;
    margin: 0 auto;
}

/* contents */
.contents {
    padding-top: 1%;
}

.contents__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

.contents__link {
    aspect-ratio: 16 / 8;
}

.contents__link img {
    -o-object-fit: cover;
    object-fit: cover;
}

.splide__pagination {
    bottom: -2em;
}

.splide__pagination__page.is-active {
    transform: scale(1);
    background: #c4598e;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    margin: 0 10px;
}

/* concept1 */
.concept1 {
    padding-top: 1%;
}

.concept1__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

/* concept2 */
.concept2 {
    padding-top: 1%;
}

.concept2__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

/* concept3 */
.concept3 {
    padding-top: 1%;
}

.concept3__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

/* concept4 */
.concept4 {
    padding-top: 1%;
}

.concept4__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

/* character */
.character {
    padding-top: 1%;
}

.character__box {
    width: 90%;
    padding-bottom: 2.67%;
    margin: 0 auto;
}

.character__tab__box {
    display: flex;
    justify-content: center;
}

.character__tab {
    width: calc(100% / 6);
    margin: 0 0.44%;
    cursor: pointer;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    transition: .3s;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -ms-transition: .3s;
    -o-transition: .3s;
}

.character__tab.active {
    filter: unset;
    -webkit-filter: unset;
}

.character__tab:hover {
    filter: unset;
    -webkit-filter: unset;
}


.character__content {
    position: relative;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.character__content.active-content {
    display: block;
    opacity: 1;
    -webkit-animation: fadeIn 0.5s ease-in-out forwards;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.character__content__item__left img {
    transition: opacity 0.1s ease;
    opacity: 1;
}

.character__content__item__left img.fade-out {
    opacity: 0;
}

.character__content__item__left {
    width: 60%;
}

.character__content__item__right {
    position: absolute;
    width: 50%;
    top: 1%;
    right: 0;
}

.character__content__item__txt {
    width: 85%;
    margin: 0 auto;
}

.character__content__item__voice__box {
    width: 35%;
    display: flex;
    justify-content: end;
    margin-top: 8.9%;
    margin-left: auto;
}

.voice {
    cursor: pointer;
    margin: 0 1%;
}

.character__content__item__change__box {
    width: 85%;
    margin-left: auto;
    display: flex;
    justify-content: end;
    margin-top: 1.78%;
    cursor: pointer;
}

.character__content__item__modal__box {
    width: 85%;
    margin-left: auto;
    margin-top: 3.56%;
}

.character__content__item__modal {
    cursor: pointer;
    transition: opacity 0.3s;
    aspect-ratio: 16 / 9;
}

.character__content__item__modal:hover {
    opacity: 0.7;
}

.character__content__item__modal:nth-child(n+2) {
    margin-top: 1.05%;
}

.character__content__item__modal img {
    -o-object-fit: cover;
    object-fit: cover;
}

.banner__box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.banner__item {
    width: 33%;
    height: auto;
    transition: .5s;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.banner__item:nth-child(n+4) {
    margin-top: 0.2%;
}

.banner__item:hover {
    opacity: 0.7;
}

.banner__item img {
    -o-object-fit: cover;
    object-fit: cover;
}

footer {
    padding-top: 5%;
    background-image: url(../img/back.jpg);
    background-repeat: repeat;
    background-position: top left;
}

/* Page Top Button */
.page-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 3%;
    /* Adjust based on image size */
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}

.page-top.show {
    opacity: 1;
    visibility: visible;
}

.page-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.5s ease;
}

.modal.show {
    background-color: rgba(255, 255, 255, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .close {
    opacity: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}