html, body {
    overflow: scroll !important; /* スクロールを無効化 */
}

/* メインビジュアル（パララックス効果） */
#works.parallax {
    background-image: url('./img/mv_works_pc.webp');
}

/* メインビジュアル（パララックス効果） */
.main-txt{
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: 81%;
    color: #fff;
}

.main-txt h1{
    color: #e8e8e8;
    font-size: 3.2rem;
    letter-spacing: 0.12em;
    font-weight: 400;
    margin-bottom: 16px;
}

.main-txt p{
    color: #e8e8e8;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
}

/* .main-txt .under-line {
    width: 16px;
    margin: 10px auto 20px;
    border-bottom: 1px solid #e8e8e8;
} */

/* タブ関連処理 */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.tab_label {
    color: #c7c2c2;
    font-weight: 300;
    position: relative;
    z-index: 1;
    cursor: pointer;
    margin: 240px 32px 130px; 
    font-size: 1.6em;
    letter-spacing: 0.16rem;
    text-align: center;
    width: 30%;
}

.tab_label.num01{
    text-align: right;
}

.tab_label.num02{
    text-align: left;
}

input[name="tab_switch"]:checked + .tab_label {
    color: #1a1515;
}

.tab_content {
    flex: 100%;
    display: none;
    overflow: hidden;
}

input[name="tab_switch"] {
    display: none;
}

#tab01:checked ~ #tab01_content,
#tab02:checked ~ #tab02_content {
    display: block;
}

/* 縦線を表示するspan */
.tab-divider {
    width: 1px;
    height: 19px; 
    background-color: #c7c2c2; 
    margin: 245px 5px 130px;
}


/* 作者蔵 */
#artist {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto; 
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item img:hover{
    opacity: 0.5;
    transition: 0.5s;
}

/* 常設展示 */
.permanent-item {
    display: flex;
    width: 80%;
    align-items: flex-start;
    margin: 0px 10% 160px;
}

.permanent-image {
    height: 335px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.permanent-image img {
    position: absolute;
    padding: 0;
    width: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: slideshow1 18s linear infinite;
}

.permanent-image img:nth-child(1) {
    animation-delay: 0s; /* 最初の画像はすぐに表示 */
}

.permanent-image img:nth-child(2) {
    animation-delay: 6s; /* 2番目の画像は3秒後に表示 */
}

.permanent-image img:nth-child(3) {
    animation-delay: 12s; /* 3番目の画像は6秒後に表示 */
}

@keyframes slideshow1 {
    0%   { opacity: 0; }
    28%  { opacity: 1; }
    50%  { opacity: 1; }
    75%  { opacity: 0; }
    100% { opacity: 0; }
}

.permanent-details {
    margin-left: 8%;
}

.permanent-details h3 {
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.permanent-details p {
    font-size: 1.4em;
    letter-spacing: 0.16rem;
}

.permanent-details span {
    color: #aaa6a6;
    font-size: 1em;
}

.permanent-artworks{
    margin-bottom: 15px;
}


/* 768px以下 */
@media screen and (max-width: 768px) {
    p{
        font-size: 1.3em !important;
        line-height: 2.4rem !important;
    }

    #works.parallax {
    background-image: url('./img/mv_works_sp.webp');
}
    .main-txt{
        top: 75%;
    } 

    .main-txt h1 {
        font-size: 2.2rem;
    }

    .main-txt p{
        font-size: 1.4rem;
    }

    .tab_label{
        margin: 150px 5px 40px;
        font-size: 1.1em;
        width: 43%;
    }

    .tab-divider{
        height: 11px;
        margin: 154px 10px 40px;
    }

    #artist {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .permanent-item{
        display: block;
        width: 90%;
        margin: 0px 5% 100px;
    }
    
    .permanent-image{
        margin: 0 auto;

    }

    .permanent-image img{
        width: 100%;
    }

    .permanent-details{
        margin-left: 0;
        padding-top: 50px;
        text-align: center;
    }

    .permanent-details h3{
        font-size: 1.4em;
        margin-bottom: 15px;
        line-height: 1.9em;
    }

    .permanent-details p {
        font-size: 1.2em !important;
        letter-spacing: 0.1rem;
    }

    .permanent-artworks{
        margin-bottom: 15px;
    }



    .br-sp {
        display: block;
    }
}

/* スマホサイズ */
@media screen and (max-width: 600px) {

    .permanent-details{
        margin-left: 0;
        padding-top: 10px;
        text-align: center;
    }
}