/* 歴史・沿革ページのスタイル */

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 歴史紹介セクション */
.history-intro {
    margin-bottom: 40px;
}

.history-intro-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.intro-image {
    flex-shrink: 0;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    background-color: #f0f0f0;
    padding: 20px 15px;
    border-radius: 4px;
    border-left: 4px solid #333;
}

.intro-text p {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* 歴史詳細セクション */
.history-details {
    margin-bottom: 40px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title img {
    max-width: 100%;
    height: auto;
}

.history-text {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.text-content {
    flex: 1;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.text-content p {
    margin: 0 0 15px 0;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.text-image {
    flex-shrink: 0;
}

.text-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 所蔵品セクション */
.treasures {
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.treasures-content .section-title {
    margin-bottom: 40px;
}

.treasure-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.treasure-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.treasure-item:nth-child(even) {
    flex-direction: row-reverse;
}

.treasure-text {
    width: 60%;
    flex-shrink: 0;
}

.treasure-image {
    width: 35%;
    flex-shrink: 0;
}

.treasure-text h3 {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    background-color: #f0f0f0;
    padding: 20px 15px;
    border-radius: 4px;
    border-left: 4px solid #333;
}

.treasure-text p {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 15px 0;
}

.treasure-text p:last-child {
    margin-bottom: 0;
}

.treasure-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .history-intro-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .intro-text h2 {
        font-size: 20px;
    }
    
    .intro-text p {
        font-size: 15px;
    }
    
    .history-details {
        padding: 20px;
    }
    
    .history-text {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-content {
        font-size: 15px;
    }
    
    .treasures {
        padding: 20px;
    }
    
    .treasure-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .treasure-item:nth-child(even) {
        flex-direction: column;
    }
    
    .treasure-text {
        width: 100%;
    }
    
    .treasure-image {
        width: 100%;
    }
    
    .treasure-text h3 {
        font-size: 18px;
    }
    
    .treasure-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .intro-text h2 {
        font-size: 18px;
    }
    
    .intro-text p {
        font-size: 14px;
    }
    
    .history-details {
        padding: 15px;
    }
    
    .text-content {
        font-size: 14px;
    }
    
    .treasures {
        padding: 15px;
    }
    
    .treasure-text h3 {
        font-size: 16px;
    }
    
    .treasure-text p {
        font-size: 14px;
    }
}
