/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent Text Copying */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Font size for Paragraphs: PC 16px, SP 14px */
p {
    font-size: 14px !important;
}

@media (min-width: 768px) {
    p {
        font-size: 16px !important;
    }
}

/* Center H3 on Mobile (SP) */
@media (max-width: 767px) {
    h3 {
        text-align: center !important;
    }
}

/* Moving Gradient Backgrounds */
.moving-gradient-dark {
    background: linear-gradient(-45deg, #111111, #2c2c2c, #1a1a1a, #000000);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

.moving-gradient-light {
    background: linear-gradient(-45deg, #ffffff, #f5f5f5, #e0e0e0, #ffffff);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

.moving-gradient-gold {
    background: linear-gradient(-45deg, #AA8529, #C5A059, #D4AF37, #AA8529);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Image Hover Effect */
.img-wrap {
    overflow: hidden;
}

.img-wrap img {
    transition: transform 0.7s ease;
}

.img-wrap:hover img {
    transform: scale(1.05);
}

/* Fade-in Animation for Intersection Observer */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Header backdrop */
.header-glass {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hamburger Menu Icon (Black solid color guaranteed) */
.hamburger-line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #000000;
    /* Strict requirement: Black */
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Animation / State transition */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Swiper Custom Styles for Gallery */
.gallery-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    overflow: hidden;
}

.gallery-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 80%;
    /* SP表示時のスライド幅 */
    max-width: 600px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .gallery-swiper .swiper-slide {
        width: 50%;
        /* PC表示時のスライド幅 */
    }
}

.swiper-slide .img-wrap {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.swiper-slide-active .img-wrap {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet {
    background: #C5A059 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #C5A059 !important;
    background: rgba(255, 255, 255, 0.9);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Mobile specific padding overrides */
@media (max-width: 767px) {
    .p-8 {
        padding: 40px 10px !important;
    }

    .px-8 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}