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




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

/* アクティブなナビゲーション */
.nav-links a.active {
    color: #a5a5a5;
    font-weight: bold;
}

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

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

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

/* ギャラリー画像レイアウト - グリッドレイアウト */
.gallery-images {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-image-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image-item img:hover {
    opacity: 0.9;
}

.image-caption {
    padding: 15px 20px;
    background: #fff;
    text-align: center;
}

.plant-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.plant-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* お問い合わせセクション */
.contact {
    background-color: #f0f0f0;
    padding: 60px 0;
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #666;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #333;
    color: #fff;
    padding: 12px 40px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    letter-spacing: 1px;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    background-color: #555;
}

/* フッター */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.6;
}

.space3 {
    height: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .project-title {
        font-size: 24px;
    }
    
    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .gallery-image-item img {
        height: 180px;
    }
    
    .plant-name {
        font-size: 15px;
    }
    
    .plant-info {
        font-size: 11px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* モバイルメニュー */
	/*
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.mobile-menu-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.mobile-menu-open a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
}
*/

@media (max-width: 480px) {
    .gallery-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-section {
        padding: 40px 0;
    }
    
    .contact {
        padding: 40px 0;
    }
}