/* Custom Styling for めいどーるcafe */

:root {
    --primary-color: #ff8eb3;
    --accent-color: #ff4d8d;
    --section-margin-sp: 80px;
    --section-margin-pc: 120px;
}

/* Typography Overrides */
body {
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

/* Section Spacing Controls */
.section-container {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Section Title Styles (Stylish Text Only) */
.section-title-wrap {
    text-align: center;
    position: relative;
}

.section-title-text {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding: 0 40px 12px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 142, 179, 0.5);
    text-shadow:
        0 0 8px rgba(255, 142, 179, 0.8),
        0 0 20px rgba(255, 142, 179, 0.4);
}

.section-title-text::before,
.section-title-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
}

.section-title-text::before {
    left: 0;
}

.section-title-text::after {
    right: 0;
}

.section-title-sub {
    display: block;
    font-size: 0.875rem;
    color: #9c9c9c;
    margin-top: 10px;
    letter-spacing: 0.4em;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title-sub::before,
.section-title-sub::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
}

@media (min-width: 768px) {
    .section-title-text {
        font-size: 3.5rem;
    }

    .section-title-sub {
        font-size: 1rem;
    }

    .md\:mb-12 {
        margin-bottom: 7rem !important;
    }
}

/* FV Scroll Line Animation */
.vertical-text {
    writing-mode: vertical-rl;
}

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

@keyframes scroll-line-anim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Swiper Fade Customization */
.fv-swiper .swiper-slide {
    opacity: 0 !important;
}

.fv-swiper .swiper-slide-active {
    opacity: 1 !important;
}

/* No rounded corners or shadows on images (per requirement) */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Right Click Disable Prevention of selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Luminous Theme */
.lum-lightbox {
    z-index: 100;
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* WP Theme Helper Classes */
.wp-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fade-in Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide fixed elements when SP menu is open */
body.menu-open #sticky-cta-sp,
body.menu-open #back-to-top {
    display: none !important;
}

/* Gallery Swiper Customization */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.gallery-swiper {
    max-width: 1516px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Seamless Marquee Effect (Pure CSS - Never stops) */
.gallery-marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 60s linear infinite !important;
}

.marquee-track:hover {
    animation-play-state: running !important;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-swiper .gallery-item,
.marquee-track .gallery-item {
    width: 396px !important;
    height: 396px !important;
}

.gallery-swiper .gallery-item img,
.marquee-track .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Mobile Horizontal Padding Standardizer */
@media (max-width: 767px) {
    .container,
    .px-4,
    .px-6,
    .px-8,
    .px-10 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .section-title-text {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

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

/* Menu Slider Styles (Stable & Responsive) */
.menu-swiper {
    padding: 20px 0 50px !important;
}

.menu-card {
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f8f8f8;
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.menu-slider-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Full image visible */
    padding: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-next, .menu-prev {
    color: var(--primary-color) !important;
    top: 45% !important;
}

.menu-next { right: -10px !important; }
.menu-prev { left: -10px !important; }

@media (min-width: 768px) {
    .menu-next { right: -50px !important; }
    .menu-prev { left: -50px !important; }
}

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

/* Professional Modal Styles */
#gallery-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

#gallery-modal .modal-swiper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-modal .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
}

#gallery-modal img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 8px !important;
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

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

.modal-swiper .swiper-button-next,
.modal-swiper .swiper-button-prev {
    color: white !important;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-swiper .swiper-button-next:hover,
.modal-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
}

.modal-swiper .swiper-button-next:after,
.modal-swiper .swiper-button-prev:after {
    font-size: 24px;
}

@media (max-width: 768px) {
    .modal-swiper .swiper-button-next,
    .modal-swiper .swiper-button-prev {
        display: none !important; /* Hide arrows on mobile for cleaner view */
    }
}