body {
    background-color: #686C89;
    font-family: "Kiwi Maru", serif;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 4em; 
    margin: 1em 0; 
    color: #EEEEEE;
}

.exhibition-buttons {
    width: 40%;
}

.exhibition-button {
    border: 3px solid #86633D;
    background-color: #c8c8c8;
    color: #000000;
    border-radius: 10px;
    width: 30%;
    margin: 0 1%;
    padding: 3%;
    font-size: 2em;
}

.exhibition-button.active {
    border: 3px solid #C7B29C;
    background: #FFFFFF;
}

.exhibition-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2%;
}

[data-tab="4"] {
    width: 55%;
}

[data-tab="5"] {
    width: 40%;
}

.exhibition-content {
    display: none;
    flex-direction: column;
    width: 30%;
}

.exhibition-content.active {
    display: flex;
    flex-direction: column;
}

.exhibition-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}



.exhibition-frame {
    background-image: url(gakubuchi.png);
    background-size: cover;
    background-position: center;
    width: 95%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 13%;
    position: relative;
    
}



.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;  
  height: 140%;
  transform: translate(-50%, -50%); 
  object-fit: fill;
  pointer-events: none;
}

.exhibition-frame-open {
    background-image: url(gakubuchi.png);
    background-size: cover;
    background-position: center;
    width: 95%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 13%;
}

.exhibition-syoukai-img {
    width: 63%;
    height: auto;
    object-fit: cover;
    display: block;
}

.exhibition-title-img {
    width: 80%;
    margin-top: 50px;
}

.exhibition-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    margin: auto 8%;
}

.exhibition-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    display: inline-block;
    width: 80%;
    height: 4px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #E7E4E0;
}

.exhibition-name {
    color: #FFFFFF;
    width: 60%;
    margin: 3% auto;
    font-size: 1.2em;
}

.exhibition-dantai {
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.exhibition-bun {
    color: #FFFFFF;
    margin: auto 8%;
    height: 80px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: 1em;
    padding-bottom: 3%;
}

.exhibition-bun::-webkit-scrollbar {
    display: none;
}

.exhibition-setumei {
    position: relative;
}

/* 左上角 */
.exhibition-setumei::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-top: 4px solid #E7E4E0;
    border-left: 4px solid #E7E4E0;
}

/* 右上角 */
.exhibition-setumei::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-top: 4px solid #E7E4E0;
    border-right: 4px solid #E7E4E0;
}

/* 左下角 */
.exhibition-setumei span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-bottom: 4px solid #E7E4E0;
    border-left: 4px solid #E7E4E0;
}

/* 右下角 */
.exhibition-setumei span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-bottom: 4px solid #E7E4E0;
    border-right: 4px solid #E7E4E0;
}

@media screen and (max-width :480px) {
    .exhibition-buttons {
        width: 90%;
    }

    .exhibition-content {
        display: none;
        flex-direction: column;
        width: 80%;
    }

    .exhibition-frame {
        background-image: url(gakubuchi.png);
        background-size: cover;
        background-position: center;
        width: 95%;
        height: 340px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 13%;
    }
}