/* Basic Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography polish */
body {
    word-break: break-word;
}

h1,
h2,
h3,
.font-oswald {
    line-height: 1.25;
}

/* Header dynamic change on scroll */
header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.98);
}

/* Section transitions */
section,
.section-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

section.visible,
.section-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper overrides for FV */
.fvSwiper {
    height: auto;
}

.fvSwiper .swiper-slide img {
    width: 100% !important;
    height: auto !important;
}

/* Gallery Swiper consistency */
.gallerySwiper .swiper-slide img {
    width: 100%;
    height: 250px;
    /* Standardize mobile height */
    object-fit: cover;
}

@media (min-width: 768px) {
    .gallerySwiper .swiper-slide img {
        height: 350px;
        /* Standardize desktop height */
    }
}

/* Swiper Pagination Style */
.swiper-pagination-bullet {
    background: #C5A059 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Modal styles */
#modal {
    display: none;
}

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

#modalImg {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#modalClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#modalClose:hover {
    transform: scale(1.1);
}

#modalPrev,
#modalNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: background 0.3s ease;
}

#modalPrev:hover,
#modalNext:hover {
    background: rgba(255, 255, 255, 0.2);
}

#modalPrev {
    left: 40px;
}

#modalNext {
    right: 40px;
}

@media (max-width: 768px) {

    #modalPrev,
    #modalNext {
        display: none !important;
    }
}

/* Gallery Hover */
.gallerySwiper .swiper-slide {
    transition: transform 0.5s ease;
}

.gallerySwiper .swiper-slide:hover {
    transform: scale(0.98);
}

/* Disable selection for anti-copy */
.anti-copy {
    user-select: none;
    -webkit-user-select: none;
}

/* Custom spacing for sections */
.mt-section-pc {
    margin-top: 120px;
}

.mt-section-sp {
    margin-top: 50px;
}

.mb-section-pc {
    margin-bottom: 120px;
}

.mb-section-sp {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .mt-section-pc {
        margin-top: 50px;
    }

    .mb-section-pc {
        margin-bottom: 50px;
    }

    /* Adjust text sizes for better fit on small screens */
    .section-text h3 {
        font-size: 1.25rem;
    }

    /* Ensure paragraphs are left aligned on mobile */
    p {
        text-align: left;
    }
}

/* Button hover micro-animations */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Section Titles */
.section-title-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    color: #C5A059;
}

.section-title-en {
    font-family: 'Oswald', sans-serif;
    color: #C5A059;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-title-jp {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #C5A059;
}

@media (max-width: 768px) {
    .section-title-wrap {
        margin-bottom: 30px;
    }

    .section-title-jp {
        font-size: 1.5rem;
    }
}

/* Responsive BR */
@media (min-width: 768px) {
    br.md\:hidden {
        display: none;
    }
}

/* Shadow logic */
.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}