/* Global Styles */
/* Base Styles based on Noto Sans JP */
body {
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 16px;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Lightbox images should be exception for pointer-events if they need to be clickable, 
   but Fancybox usually handles its own. Actually, making them pointer-events: none 
   might break the lightbox links. Let's fix that. */
.gal-link img,
.img-organic,
.img-parallelogram,
.img-floating img,
.img-recommend,
.img-elegant,
.img-representative {
    pointer-events: auto;
}

/* Section Vertical Spacing */
.section-margin {
    margin-bottom: 0px;
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Section Titles (Text-only Stylish Design) */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .sub-title {
    display: block;
    color: red;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.text-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.text-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: red;
    opacity: 1;
}

/* Vertical Text for ScrollDown */
.vertical-text {
    writing-mode: vertical-rl;
}

/* Scroll Line Animation */
.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* Vertical-bottom for images to remove gap */
.vertical-bottom {
    vertical-align: bottom;
}

/* Swiper Fade Effect - Only fade active (controlled via JS) */

/* Smooth Links on SP Menu */
.sp-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.sp-link:hover {
    opacity: 1;
}

/* Parallax Effect Override for Mobile */
@media (max-width: 767px) {
    #menu-recommend {
        background-attachment: scroll !important;
    }
}

/* Gallery Hover */
.galSwiper .swiper-slide-active {
    opacity: 1;
}

/* Hamburger Animation */
#menu-trigger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

#menu-trigger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Right Click Prevention Overlay (Optional, but JS is better) */
::selection {
    background: #C5A059;
    color: white;
}

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

/* --- Section Specific Image Styles --- */

/* TV Section: Parallelogram Clip */
.img-parallelogram {
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transition: clip-path 0.5s ease;
}

.img-parallelogram:hover {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* About Section: Floating Frame */
.img-floating {
    position: relative;
    padding: 15px;
}

.img-floating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid #C5A059;
    z-index: -1;
    transition: all 0.5s ease;
}

.img-floating:hover::before {
    top: 20%;
    left: 20%;
}

/* Service Section: Soft Organic Curves */
.img-organic {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Menu Price Section: Editorial Solid Offset Style */
.img-elegant {
    background: white;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 15px 15px 0px -2px #C5A059;
    transition: all 0.4s ease;
}

.img-elegant:hover {
    box-shadow: 5px 5px 0px -2px #C5A059;
    transform: translate(10px, 10px);
}

/* Message Section: Glassmorphism & Refined Representative Style */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card-dark {
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-stroke {
    position: relative;
}

.glass-stroke::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.img-representative {
    border-radius: 24px;
    /* Changed from circle to rounded rect for modern look */
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.img-representative:hover {
    transform: translateY(-5px);
}

/* Recommend Section: Modern Card with Cut-out Effect */
.img-recommend {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 8px solid white;
}

.img-recommend:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Specific Style Overrides */
.md\:text-5xl {
    font-size: 30px !important;
}

.md\:p-20 {
    padding: 40px 20px !important;
}

.max-w-2xl {
    max-width: 675px !important;
}

/* Gap Override */
.md\:gap-24 {
    gap: 50px;
}

.mt-20 {
    margin-top: 0px !important;
}

.mt-20.text-center.bg-light.p-8 {
    width: 660px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5rem !important;
    /* Restore some margin since mt-20 was zeroed */
}

.mt-12.bg-light.p-8.border-l-4.border-accent.border-accent {
    --tw-border-opacity: 1;
    border-color: red;
}

a.flex-1.text-center.py-4.border.border-accent.text-accent.font-bold {
    border-color: red !important;
    color: red !important;
}

a.inline-block.border.border-accent.text-accent.px-8.py-3.rounded-full.hover\:bg-accent.hover\:text-white.transition-all.duration-300 {
    border-color: red !important;
    color: red !important;
}

/* Mobile Spacing Adjustments (up to 781px) */
@media screen and (max-width: 781px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .glass-card,
    .glass-card-dark {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        border-radius: 20px !important;
        /* Slightly smaller radius for small screens */
    }

    .section-margin {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

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