.p-gallery {
    background: linear-gradient(to right, #d6eace 0%, #bde4f9 100%);
    padding: 100px 16px;
    min-height: 50vh;
}

.p-gallery-inner {
    margin-inline: auto;
    text-align: center;
}

.p-gallery-title {
    font-size: 48px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.p-gallery-text {
    margin-top: 40px;
    font-size: 18px;
}

/* スライダー */
.p-gallery-slider {
    margin-top: 60px;
    padding-block: 20px;
}

.gallery-swiper {
    overflow: visible;
}

.gallery-swiper .swiper-slide {
    width: 50%;
}

@media screen and (max-width: 1200px) {
    .gallery-swiper .swiper-slide {
        width: 60%;
    }
}

@media screen and (max-width: 1000px) {
    .gallery-swiper .swiper-slide {
        width: 70%;
    }
}

.p-gallery-slide-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.p-gallery-slide-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.p-gallery-slide-caption {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: #fff;
    letter-spacing: 0.05em;
}

/* グリッドリスト（予備） */
.p-gallery-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.p-gallery-item {
    overflow: hidden;
}

.p-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-gallery-item:hover img {
    transform: scale(1.05);
}

.p-gallery .p-top_info-content-button {
    margin-top: 60px;
}

.p-gallery-note {
    max-width: 1440px;
    margin-inline: auto;
    margin-top: 40px;
    padding-inline: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

@media screen and (max-width: 768px) {
    .p-gallery {
        padding: 60px 16px;
    }

    .p-gallery-title {
        font-size: 32px;
    }

    .p-gallery-slider {
        margin-top: 40px;
    }

    .gallery-swiper .swiper-slide {
        width: 100%;
    }

    .p-gallery-slide-caption {
        padding: 12px 16px;
        font-size: 14px;
    }

    .p-gallery-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
