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

:root {
    --denim-blue: #1b365d;
    --denim-light: #2c4a75;
    --orange-accent: #f97316;
    --orange-pale: #fff7ed;
    --text-color: #333;
    --text-muted: #666;
    --bg-light: #fdfdfd;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Section Margins */
section {
    padding: 60px 0;
}
@media (min-width: 1024px) {
    section {
        padding: 120px 0;
    }
}

/* Section Header Styles - Enhanced */
.section-header {
    width: 100%;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}
.section-header p {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--orange-accent);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.section-header h2 {
    color: var(--denim-blue);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: inline-block;
}
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-header p {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }
    .section-header {
        margin-bottom: 30px;
    }
}
.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--orange-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}
/* Glassmorphism Header */
header.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Card Style - Updated with stronger border and shadow */
.premium-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(27, 54, 93, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (min-width: 768px) {
    .premium-card {
        padding: 2.5rem;
    }
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Hover Images */
.img-reveal {
    overflow: hidden;
    border-radius: 1rem;
}
.img-reveal img {
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.img-reveal:hover img {
    transform: scale(1.08);
}

/* Custom Utilities */
.btn-premium {
    position: relative;
    padding: 1.25rem 2.5rem;
    background: var(--denim-blue);
    color: #fff;
    border-radius: 9999px;
    font-weight: 700;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(27, 54, 93, 0.3);
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--orange-accent);
    transition: all 0.4s ease;
    z-index: -1;
}
.btn-premium:hover::before {
    width: 100%;
}
.btn-premium:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--denim-blue);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    transform: translateX(100%);
}
#mobile-menu.active {
    transform: translateX(0);
}
#mobile-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    transition: color 0.3s;
}
#mobile-menu a:hover {
    color: #fff;
}
#close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Swiper Styling */
.fv-swiper {
    height: auto !important;
}
.fv-swiper .swiper-slide {
    height: auto !important;
}
.fv-swiper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.swiper-pagination-bullet-active {
    background: var(--orange-accent) !important;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(27, 54, 93, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
@media (min-width: 768px) {
    #back-to-top {
        bottom: 110px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: var(--denim-blue);
        backdrop-filter: none;
    }
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Custom Table */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}
.price-table tr {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.price-table td {
    padding: 1.5rem 2rem;
}
.price-table td:first-child {
    border-radius: 1rem 0 0 1rem;
    font-weight: 700;
}
.price-table td:last-child {
    border-radius: 0 1rem 1rem 0;
    text-align: right;
    color: var(--orange-accent);
    font-size: 1.25rem;
    font-weight: 800;
}

/* Parallax Overlay */
.parallax-bg {
    position: relative;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}
@media (min-width: 1024px) {
    .parallax-bg {
        background-attachment: fixed;
    }
}
.parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 54, 93, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal {
    opacity: 0;
}
.reveal.active {
    animation: fadeInUp 1s ease forwards;
}

/* SP CTA */
.sp-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}
.sp-sticky-cta a {
    flex: 1;
    height: 54px;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-tel { background: var(--orange-accent); color: #fff; }
.btn-mail { background: var(--denim-blue); color: #fff; }

/* Modal Overlay Layout */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

#modal-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 1rem;
}

#modal-content img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
}

/* Modal Controls */
#modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5100;
}

#modal-close:hover {
    background: var(--orange-accent);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 5100;
}

.modal-nav:hover {
    background: var(--orange-accent);
    transform: translateY(-50%) scale(1.1);
}

#modal-prev { left: 30px; }
#modal-next { right: 30px; }

@media (max-width: 768px) {
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    #modal-prev { left: 10px; }
    #modal-next { right: 10px; }
    #modal-close { top: 20px; right: 20px; }
}

/* Gallery Background Section */
#gallery {
    position: relative;
    background: var(--denim-blue); /* Fallback */
    overflow: hidden;
    z-index: 1;
}

#gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/gallery_7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    opacity: 0.7; /* 70% opacity */
    z-index: -1;
}
@media (min-width: 1024px) {
    #gallery::before {
        background-attachment: fixed;
    }
}

#gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(27, 54, 93, 0.95) 0%, 
        rgba(27, 54, 93, 0.7) 50%, 
        rgba(27, 54, 93, 0.95) 100%
    );
    z-index: -1;
}

/* Utility: Mobile only line break */
.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}
