/* --- Base Styles --- */
:root {
    --primary: #1A1A1A;
    /* Muted Charcoal/Dark from Luce */
    --accent: #B59D5F;
    /* Luce Gold/Bronze */
    --bg-light: #FDFCF8;
    /* Luce Warm Cream */
    --text-dark: #333333;
    /* Luce Dark Gray Text */
    --text-light: #FDFCF8;
    --gold-light: #E5DCC3;
    --warm-muted: #8C8C8C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Serif JP', serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2,
h3 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.mobile-only {
    display: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Moving CSS Gradient Background --- */
.moving-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #FDFCF8 0%, #E5DCC3 50%, #FDFCF8 100%);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    opacity: 0.6;
}

.moving-gradient.alternate {
    background: linear-gradient(135deg, #fdfaf5 0%, #e0e0e0 50%, #fdfaf5 100%);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite reverse;
}

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

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

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

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    /* Matching Luce Dark Accent */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    /* Initial white for visibility on full screen image */
    letter-spacing: 2px;
}

.header.scrolled .logo,
.header.scrolled .nav-links a {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    /* Initial white for visibility */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: 0.4s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: 0.4s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: #fff;
    /* White initial color for visibility */
}

.header.scrolled .hamburger {
    color: #fff;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 700;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

/* --- First View --- */
.fv-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.parallax-scene {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    z-index: 1;
    opacity: 0.3;
    /* Subtle parallax background */
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-gradient {
    background: linear-gradient(45deg, #FDFCF8, #E5DCC3, #FDFCF8);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
}

.fv-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to the left */
}

.fv-text-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 900px;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Align text items to left */
    text-align: left;
    /* Align text to left */
    z-index: 3;
}

.fv-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
    justify-content: flex-start;
    /* Align badges to left */
    align-items: center;
}

.fv-badge {
    background: var(--accent);
    color: #fff;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fv-title {
    font-size: 48px;
    /* Reduced from 56px */
    line-height: 1.3;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.fv-title .line {
    display: block;
}

.fv-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fv-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay to ensure text readability */
    z-index: 2;
}

.fv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.fv-img.active {
    opacity: 1;
}

.cta-button-wrapper .mdc-button {
    background-color: var(--primary);
    color: #fff;
    padding: 22px 40px;
    font-size: 16px;
    border-radius: 2px;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.3);
}

.cta-button-wrapper .mdc-button:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* --- Sections --- */
.about-section {
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.7;
    z-index: 0;
}

.menu-section {
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/bg2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.7;
    z-index: 0;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/gallery.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.7;
    z-index: 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/contact.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.7;
    z-index: 0;
}


.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            rgba(181, 157, 95, 0.15) 0,
            rgba(181, 157, 95, 0.15) 2px,
            rgba(255, 105, 180, 0.15) 2px,
            rgba(255, 105, 180, 0.15) 4px,
            rgba(0, 191, 255, 0.15) 4px,
            rgba(0, 191, 255, 0.15) 6px,
            rgba(50, 205, 50, 0.15) 6px,
            rgba(50, 205, 50, 0.15) 8px,
            rgba(255, 165, 0, 0.15) 8px,
            rgba(255, 165, 0, 0.15) 10px,
            transparent 10px,
            transparent 20px);
    z-index: 0;
    pointer-events: none;
}




.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section .container {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(26, 35, 126, 0.08);
    position: relative;
    z-index: 1;
    border: 2px solid var(--accent);
    background: linear-gradient(to bottom right, #ffffff, #fdfaf5);
}

.service-intro-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px;
}

.service-item {
    margin: 40px auto;
}

.service-item:first-child {
    margin-top: 0;
}

.service-item:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 48px;
    color: var(--primary);
    letter-spacing: 0.15em;
    margin-bottom: 100px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.section-title .ja {
    display: block;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.5em;
    margin-top: 10px;
    font-weight: 700;
    position: relative;
}

.section-title .ja::before,
.section-title .ja::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    transform: rotate(45deg);
    margin: 0 15px;
    vertical-align: middle;
}

.section-sub-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-dark);
}

/* --- Split Layout (40/60) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.text-side {
    flex: 0 0 calc(40% - 20px);
}

.image-side {
    flex: 0 0 calc(60% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-img:hover {
    transform: scale(1.03);
}

/* --- Service Section Enhancements --- */
.service-name {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent);
    transition: 0.4s;
}

.split-layout:hover .service-name::after {
    width: 100%;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--accent);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-inner p {
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.phone-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-box a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-box a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: var(--primary);
    color: #fff;
}

.phone-box a .material-icons {
    font-size: 30px;
}

.phone-box a:hover .material-icons {
    animation: phoneShake 0.5s ease-in-out infinite;
}

@keyframes phoneShake {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    45% {
        transform: rotate(-15deg);
    }

    60% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

/* --- Menu Section --- */
.menu-cta {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 5px solid var(--accent);
}

.menu-tel {
    margin-top: 20px;
}

.menu-tel p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.menu-tel a.tel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 8px 25px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
    transition: all 0.3s ease;
}

.menu-tel a.tel-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.menu-tel a.tel-btn .material-icons {
    font-size: 24px;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid var(--accent);
    aspect-ratio: 1/1;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- Contact Section --- */
.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

.contact-info {
    flex: 0 0 45%;
}

.map-side {
    flex: 0 0 50%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gold-light);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item span {
    color: var(--accent);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.gallery-item {
    cursor: pointer;
}

.large-cta {
    background-color: var(--primary) !important;
    padding: 20px 40px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
}

/* --- Fixed Mobile Footer --- */
.fixed-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 0;
    /* Full width */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.fixed-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    padding: 18px;
    /* Slightly taller */
    width: 100%;
    border-radius: 0;
    /* Full left to right */
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.fixed-footer-btn:active {
    transform: scale(0.98);
}

.fixed-footer-btn .material-icons {
    font-size: 22px;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* --- Footer --- */
.footer {
    background: #222;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .fv-content {
        justify-content: center;
        align-items: flex-end;
        /* Move to bottom */
    }

    .fv-text-wrapper {
        padding: 0 20px 80px;
        /* Increase bottom padding */
        align-items: center;
        text-align: center;
    }

    .fv-badges {
        justify-content: center;
    }

    .fv-title {
        font-size: 28px;
        /* Reduced from 32px */
    }

    .fv-cta {
        margin-bottom: 20px;
    }

    .fv-badges {
        gap: 8px;
        margin-bottom: 20px;
    }

    .fv-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .section .container {
        padding: 40px 20px;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .text-side,
    .image-side {
        flex: 0 0 100%;
        width: 100%;
        text-align: left;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
    }

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

    .split-img {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1/1;
        margin: 0 auto;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 50px;
    }

    .section-sub-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .contact-card {
        flex-direction: column;
        text-align: left;
        /* Align to the left on SP */
    }

    .contact-info,
    .map-side {
        flex: 0 0 100%;
        width: 100%;
    }

    .map-side {
        height: 250px;
        margin-top: 30px;
    }

    .info-item {
        justify-content: flex-start;
        /* Align icons and text to the left */
    }

    .fixed-mobile-footer {
        display: block;
    }

    body {
        padding-bottom: 60px;
        /* Adjusted for full-width bar */
    }

    .back-to-top {
        right: 20px;
        bottom: 95px;
        /* Stay above fixed footer on mobile */
        width: 45px;
        height: 45px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .phone-box a {
        font-size: 18px;
        padding: 10px 20px;
        gap: 8px;
    }

    .phone-box a .material-icons {
        font-size: 22px;
    }

    .mobile-only {
        display: inline;
    }
}