@charset "utf-8";

h1 {
    font-family: 'Questrial', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding-left: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 72px;
}

h1::after {
    content: '';
    display: block;
    width: 250px;
    height: 2px;
    background-color: #00213B;
}

.ex-wrap {
    padding-left: 40px;
    padding-right: 40px;
    /* max-width: 1600px; */
    padding-top: 72px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

.hishigata {
    width: 16px;
    height: 16px;
    background-image: url(../img/exhibitions/hishigata.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.ex-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin-left: 16px;
}

.ex-title {
    display: flex;
    align-items: center;
}

/* リンクの動き */
.link {
    display: block;
}

.link:hover {
    color: #858383;
}

/* 開催中・開催予定の展示 */



.new-ex-contents {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 128px;
    border-top: solid;
    border-bottom: solid;
    border-color: #CED7DC;
    border-width: 1px;
    max-width: 1200px;
    margin-top: 48px;
}

.new-ex-contents img {
    width: 300px;
    height: 400px;
    object-fit: contain;
    margin-right: 72px;
}

.post-date {
    display: flex;
    align-items: center;
}

.post-date p:first-child {
    padding-left: 8px;
}

.post-date .category {
    border: solid;
    border-color: #00213b;
    border-width: 1px;
    padding: 2px 8px;
    margin-left: 32px;
    font-size: 14px;
}

.post-title {
    margin-top: 24px;
}

.post-title p:nth-child(2) {
    margin-top: 8px;
    padding-left: 8px;
}

/* 過去の展示 */
.past-ex-container .ex-title {
    margin-top: 160px;
}

.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.tab li {
    font-weight: 500;
    color: #858383;
}

.tab li a {
    display: block;
    padding-left: 4px;
    padding-right: 4px;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 16px;
}

/* liにactiveクラスがついた時の形状 */
.tab li.active {
    color: #00213B;
}

.tab li.active a::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background-color: #00213B;
}

/* areaの表示非表示と形状 */
.area {
    display: none;
    opacity: 0;
    background: #fff;
    margin-top: 48px;
}

/* areaにis-activeクラスがついた時の形状 */
.area.is-active {
    display: block;
    animation-name: displayAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

@keyframes displayAnime {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 過去の展示のスタイル */


.past-ex-container .area li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 48px 128px;
    border-top: solid;
    border-color: #CED7DC;
    border-width: 1px;
    margin-left: auto;
    margin-right: auto;
}

.past-ex-container .area li:last-child {
    border-bottom: solid;
    border-color: #CED7DC;
    border-width: 1px;
}

.past-ex-container .area li img {
    width: 184px;
    height: 138px;
    object-fit: cover;
    margin-right: 72px;
}

.footer {
    margin-top: 128px;
}

/* ここからモバイル用 */
@media (max-width: 800px) {
    h1 {
        padding-top: 32px;
        font-size: 20px;
        padding-left: 20px;
    }

    h1::after {
        width: 138px;
        height: 1px;
    }

    .ex-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .new-ex-contents {
        flex-direction: column;
        padding: 48px 0px;
    }

    .new-ex-contents img {
        width: 200px;
        height: 260px;
        margin-right: 0px;
        margin-bottom: 24px;
    }

    .post-date {
        font-size: 14px;
    }

.category {
    font-size: 14px;
}

    .post-date p:first-child {
        padding-left: 0;
    }

    .post-title {
        margin-top: 16px;
        width: 200px;
        font-size: 14px;
    }

    .post-title p:nth-child(2) {
        margin-top: 4px;
        padding-left: 0;
    }

    .hishigata {
        width: 14px;
        height: 14px;
    }

    .ex-title h2 {
        font-size: 16px;
        font-weight: 500;
        margin-left: 8px;
    }

    .past-ex-container .ex-title {
        margin-top: 80px;
    }

    .past-ex-container .area {
        margin-top: 24px;
    }

    .past-ex-container .area li {
        flex-direction: column;
        padding-left: 10px;
        padding-right: 10px;
    }

    .past-ex-container .area li img {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .footer {
        margin-top: 48px;
    }
}