@charset "utf-8";

#visual img {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    height: 100vh;
    width: auto;
}

.slideshow {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slide {
    opacity: 0;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 99;
}

#hero-area {
    margin-bottom: 10vh;
}

#hero-area h1 {
    width: 85%;
    margin: 10vh auto 0;
    text-align: center;
    position: relative;
    z-index: 30;
    height: 50vh;
}

.info {
    width: 80%;
    margin: 0 auto;
}

#wrapper {
    overflow: hidden;
}

section {
    margin: 20vh 0;
}

#about {
    position: relative;
    width: 80%;
    margin: 20vh auto;
    padding-bottom: 10vh;
}

#event,
#movie,
#access {
    width: 80%;
    margin: 20vh auto;
}

.about-text {
    rotate: -3deg;
}

.about-name {
    position: absolute;
    width: 8em;
    bottom: 2em;
    right: 4vw;
}

.heading-profile {
    width: fit-content;
    margin: 0 auto;
}

#profile>div {
    font-size: var(--font-size-R);
    margin: 5vh -75vw;
    padding: 4em 0;
    background-color: var(--color-black);
}

.profile-container {
    rotate: 5deg;
}

.profile-container div {
    width: 30em;
    margin: 0 auto;
}

.profile-container p {
    margin: 1em 0;
}

.exhibition-individual-container {
    rotate: -6deg;
}

.exhibition-individual-container div {
    width: 30em;
    margin: 0 auto;
}

.exhibition-individual-container p {
    margin: 1em 0;
}

.exhibition-group-container {
    rotate: 2deg;
}

.exhibition-group-container>div {
    width: 32em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 0 auto;
}

.year {
    white-space: nowrap;
}

#gallery {
    width: 100%;
}

.heading-gallery {
    width: fit-content;
    margin: 0 auto 0.5em;
}

.gallery-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-slider__wrap.left {
    display: flex;
    animation: scroll-left var(--scroll-speed, 60s) linear infinite;
    width: fit-content;
}

.gallery-slider__wrap.right {
    display: flex;
    animation: scroll-right var(--scroll-speed, 60s) linear infinite;
    width: fit-content;
}

.gallery-slider {
    display: flex;
}

.gallery-slider li img {
    height: clamp(120px, 18vh, 240px);
    width: auto;
    margin-right: 40px;
    margin-bottom: 5vh;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--scroll-width)));
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(calc(-1 * var(--scroll-width)));
    }

    to {
        transform: translateX(0);
    }
}

.gallery-button {
    display: block;
    padding: 0.5em 4em;
    width: fit-content;
    margin: 0 auto 5vh;
    border: 1.8px solid var(--color-black);
    border-radius: 0.1em;
    -webkit-transition: all .4s;
    transition: all .4s
}

.gallery-button span {
    letter-spacing: .5em;
}

.gallery-button:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    -webkit-text-stroke: 0.08em var(--color-white);
    text-stroke: 0.08em var(--color-white);
}

.iframeWrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.iframeWrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


#access h2,
#access p {
    margin: 1em 0;
}

#access p:nth-of-type(3) {
    margin: 1em 0 0;
}

#access p:nth-of-type(4) {
    margin: 0 0 1em;
}

.map-container {
    display: flex;
    gap: 2em;
}

.map-container img {
    height: 20vh;
}

.infinite-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.track picture {
    width: 140vw;
    flex-shrink: 0;
    margin-right: 8vw;
    /* 間隔を追加 */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.pc-img {
    display: block;
}

.tablet-img {
    display: none;
    height: 100%;
}

.sp-img {
    display: none;
    height: 100%;
}

@media only screen and (max-width: 1366px) {

    #about,
    #profile,
    #movie,
    #access {
        padding: 0 4vw;
    }

    #about {
        padding-bottom: 10vh;
    }

    .exhibition-group-container {
        padding: 8em 58%;
    }

    .exhibition-group-container div div p:nth-child(1) {
        white-space: normal;
    }

    .map-container {
        flex-direction: row;
        width: 100%;
    }

    .map-container img {
        height: 10em;
    }
}

/* タブレットの横向き（min-width: 600px, max-width: 1024px） + landscape */
@media screen and (min-width: 600px)and (max-width:1280px) and (orientation: landscape) {
    .pc-img {
        display: block;
    }

    .tablet-img {
        display: none;
    }

    .sp-img {
        display: none;
    }

    #visual img {
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        height: 100vh;
        width: auto;
    }

    #hero-area h1 {
        width: 85%;
        margin: 30vh auto 0;
        text-align: center;
        position: relative;
        z-index: 30;
        height: 50vh;
    }
}

/* タブレットの縦向き（min-width: 600px, max-width: 1024px） + portrait */
@media screen and (min-width: 600px) and (orientation: portrait) {
    .pc-img {
        display: none;
    }

    .tablet-img {
        display: block;
    }

    .sp-img {
        display: none;
    }

    #visual img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    #hero-area h1 {
        margin-top: 20px;
    }

    #hero-area h1 img {
        display: block;
        height: 100%;
        width: auto;
        margin: 0 auto;
    }

    #profile>div {
        font-size: var(--font-size-R);
        margin: 5vh -50%;
        background-color: var(--color-black);
    }
}



/* タブレット（1280px） */
@media only screen and (max-width: 1280px) {

    #hero-area {
        width: 100%;
    }



    #wrapper {
        width: 100%;
        padding: 0;
    }

    section {
        width: 82%;
        margin: 10vh auto;
    }

    #about,
    #event,
    #movie,
    #access {
        margin: 10vh auto;
    }

    .info {
        height: 40%;
        width: 90%;
        margin: 20px auto;

    }

    .exhibition-group-container {
        rotate: 0.6deg;
    }
}

/* スマホ（〜767px） */
@media only screen and (max-width: 767px) {
    .pc-img {
        display: none;
    }

    .tablet-img {
        display: none;
    }

    .sp-img {
        display: block;
    }

    #hero-area {
        width: 100%;
    }

    #visual img {
        position: absolute;
        width: 100%;
        height: auto;
    }

    #hero-area h1 {
        width: 100%;
        margin-top: 20px;
    }

    #hero-area h1 img {
        display: block;
        height: 100%;
        width: auto;
        margin: 0 auto;
    }

    section {
        margin: 10vh auto;
    }

    #about,
    #event,
    #movie,
    #access {
        width: 100%;
    }

    #about {
        padding-right: 4em;
        padding-left: 4em;
    }

    #profile>div {
        font-size: var(--font-size-R);
        margin: 5vh -50%;
        background-color: var(--color-black);
    }

    .profile-container {
        rotate: 4deg;
    }

    .exhibition-individual-container {
        rotate: -3deg;
    }

    .exhibition-group-container {
        padding: 8em 25%;
        rotate: 0.6deg;
    }

    .exhibition-individual-container div {
        width: 24em;
        margin: 0 auto;
    }

    #access {
        padding-left: 2em;
        padding-right: 2em;
    }
}