@charset "utf-8";

/* ========== 資料館ページ ========== */

.museum-site {
    background: #efefef;
}

.museum-main {
    padding: 44px 0 56px;
    background: #efefef;
}

.museum-maincopy {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 32px;
    line-height: 1.8;
}

.museum-maincopy span {
    display: inline-block;
    font-family: "Dela Gothic One", sans-serif;
    color: #1C1987;
    font-size: 35px;
    font-weight: bold;
    line-height: 1.2;
    border-bottom: 4px solid #1C1987;
    padding-bottom: 6px;
}

.museum-heading {
    margin: 34px 0 20px;
    padding-bottom: 6px;
    color: #1C1987;
    border-bottom: 1px dashed #1C1987;
    font-size: 1.35rem;
    font-weight: bold;
}

/* グリッド */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    text-align: center;
}

/* カード */
.museum-item {
    text-align: center;
}

.museum-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: zoom-in;
}

.museum-item p {
    margin-top: 0.5rem;
    color: #393939;
    font-size: 0.875rem;
    line-height: 1.6;
    min-height: 2.8em;
}

.museum-date {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.4em;
    margin-top: 0.3em;
}

.museum-date strong {
    color: #1C1987;
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1;
}

/* EC-CUBE標準部分を非表示 */
body.museum_page .ec-headerRole,
body.museum_page .ec-headerNaviRole,
body.museum_page .ec-headerSearch,
body.museum_page .ec-headerTitle,
body.museum_page .ec-headerNav,
body.museum_page .ec-headerCategoryArea,
body.museum_page .ec-categoryNaviRole,
body.museum_page .ec-topicpath,
body.museum_page .ec-footerRole {
    display: none !important;
}

body.museum_page .ec-layoutRole,
body.museum_page .ec-layoutRole__contents,
body.museum_page .ec-layoutRole__main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* PC */
@media (min-width: 768px) {
    .museum-maincopy span {
        font-size: 5rem;
    }

    .museum-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem 2rem;
    }

    .museum-item p {
        font-size: 0.875rem;
    }
}

/* スマホ */
@media (max-width: 767px) {
    .museum-main {
        padding-top: 34px;
    }

    .museum-maincopy span {
        font-size: 35px;
    }

    .museum-heading {
        font-size: 1.25rem;
    }
}

/* 資料館：各カテゴリー見出し */
.museum-heading {
    width: 100%;
    margin: 40px 0 24px;
    padding: 10px 15px;

    color: #fff;
    background-color: #1c1987;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;

    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 既存の装飾が疑似要素で入っている場合に消す */
.museum-heading::before,
.museum-heading::after {
    display: none;
}