/* ギャラリーページ専用CSS */

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #fff;
    margin-bottom: 0;
}

.page-title {
    font-size: 48px;
    font-weight: normal;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

/* プロジェクトセクション */
.project-section {
    background-color: #fff;
    padding: 60px 0;
}

.project-title {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.project-title2 {
    text-align: center;
    font-size: 20px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.project-divider {
    width: 60px;
    height: 1px;
    background-color: #ccc;
    margin: 0 auto 50px;
}

/* ページ全体の設定 */
.gallery-main {
    background-color: #f8f8f8;
    min-height: calc(100vh - 120px);
    padding-bottom: 0;
}

/* ギャラリー画像レイアウト */
.gallery-images {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px; /* モバイル用の余白追加 */
}

.image-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.gallery-image-item {
    flex: 1;
    max-width: 355px;
}

.gallery-image-item img {
    width: 100%;
    height: auto; /* 修正: 高さを自動に変更してアスペクト比を保持 */
    display: block; /* 画像下の余白を除去 */
    border-radius: 4px; /* 角を少し丸くして見た目を改善（オプション） */
}

/* モバイル専用の調整 */
@media (max-width: 480px) {
    .gallery-images {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .image-row {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .gallery-image-item {
        max-width: 100%;
    }
}