@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary-brown: #4A3728;
    --light-brown: #8D7361;
    --soft-beige: #F7F3F0;
    /* Warm brown-based beige */
    --accent-gold: #C5A059;
    --text-dark: #2D2D2D;
    /* Softer black */
    --text-white: #FFFFFF;
    --thin-border: 1px solid rgba(74, 55, 40, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    /* Increased for airy feel */
    letter-spacing: 0.08em;
    /* Slightly wider */
    color: var(--text-dark);
    font-size: 15px;
    /* Slightly smaller for elegance */
    background-color: var(--soft-beige);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Section Headings - Neie Style */
.neie-heading {
    text-align: center;
    margin-bottom: 100px;
}

.neie-heading .en {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--light-brown);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.neie-heading .jp {
    font-size: 2rem;
    color: var(--primary-brown);
    position: relative;
    padding-bottom: 20px;
}

.neie-heading .jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--light-brown);
}

/* Base Utility */
.section-margin {
    margin-bottom: 120px;
}

@media (min-width: 768px) {
    .section-margin {
        margin-bottom: 180px;
        /* Even more whitespace */
    }
}

/* Image Handling */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header */
header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(247, 243, 240, 0.92);
    /* Increased opacity for clarity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74, 55, 40, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    /* Very subtle base shadow */
}

header.scrolled {
    background: rgba(247, 243, 240, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Section Headings */
.section-heading-container {
    max-width: 50%;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.section-heading-container img {
    width: 100%;
}

.section-heading-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-brown);
    color: white;
    padding: 0.8rem 2rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--light-brown);
}

/* Parallax */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Swiper Adjustments */
.swiper-slide {
    overflow: hidden;
}

.swiper-pagination-bullet-active {
    background: var(--primary-brown) !important;
}

/* Voice Swiper Pagination visibility */
.voice-swiper .swiper-pagination {
    bottom: 0px !important;
}

.voice-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--light-brown);
    opacity: 0.5;
    margin: 0 6px !important;
}

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

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    display: block;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--accent-gold);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 4rem;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    transition: all 0.3s ease;
    font-family: serif;
    opacity: 0.6;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: 1;
    color: var(--accent-gold);
    scale: 1.1;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .neie-heading {
        margin-bottom: 60px;
    }

    .neie-heading .jp {
        font-size: 18px;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }

    .modal-prev,
    .modal-next {
        font-size: 2.5rem;
        padding: 10px;
    }

    .modal-prev {
        left: 5px;
    }

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

/* Mobile Sticky CTA */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
}

.sticky-cta-mobile a {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    color: white;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary-brown);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-brown);
}