@charset "utf-8";
/* ========== 基本スタイル ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== タイトル ========== */
.gallery-title {
    text-align: center;
    font-size: 2.9rem;
    margin-bottom: 10px;
    color: #00b7de;
}

.gallery-subtitle {
    text-align: center;
    /*font-size: 1rem;*/
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* ========== カテゴリフィルター ========== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #00b7de;
    background-color: white;
    color: #00b7de;
    border-radius: 25px;
    cursor: pointer;
    /*font-size: 0.95rem;*/
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    background-color: #ecf0f1;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: #00b7de;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ========== カルーセルセクション ========== */
.carousel-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
	font-style: italic;
	font-size: 2.0rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.carousel-btn {
    background-color: rgba(0, 183, 222, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: #42deff;
    transform: scale(1.1);
}

.carousel-btn.prev {
    order: -1;
}

.carousel-caption {
    text-align: center;
    color: #7f8c8d;
    /*font-size: 0.95rem;*/
    margin-bottom: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #00b7de;
    width: 30px;
    border-radius: 5px;
}

/* ========== グリッドギャラリー ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 15px;
    background-color: #f8f9fa;
}

.gallery-item-category {
    display: inline-block;
    background-color: #e8f4f8;
    color: #00b7de;
    padding: 5px 12px;
    border-radius: 12px;
    /*font-size: 0.8rem;*/
    margin-bottom: 8px;
    font-weight: 500;
}

.gallery-item-title {
    /*font-size: 0.95rem;*/
    color: #2c3e50;
    font-weight: 600;
}

/* ========== モーダル ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 5px;
    max-width: 80%;
}

/* ========== レスポンシブ対応 ========== */
/* タブレット: 2列 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .carousel-wrapper {
        gap: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* モバイル: 1列 */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-container {
        padding: 20px 15px;
    }

    .gallery-title {
        /*font-size: 1.5rem;*/
    }

    .gallery-subtitle {
      /*  font-size: 0.9rem;*/
    }

    .category-filter {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .carousel-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .carousel-wrapper {
        gap: 8px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-container {
        aspect-ratio: 4 / 3;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }

    .modal-caption {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;  /* ← ここが重要 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

