/* 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;
    background-color: #0d0810;
    color: #f0e6ff;
}

/* Section Spacing Controls */
.section-container {
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: #0d0810;
}

@media (max-width: 768px) {
    .section-container {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .section-title-wrap {
        margin-bottom: 30px !important;
    }
}

/* 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: #c9a0c0;
    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%);
    }
}

/* FV Swiper: height follows image aspect ratio, no cropping */
.fv-swiper,
.fv-swiper .swiper-wrapper,
.fv-swiper .swiper-slide {
    height: auto !important;
}

.fv-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Unstoppable CSS Marquee Gallery */
.gallery-marquee-container {
    overflow: hidden;
    width: 100%;
}

.gallery-marquee-track {
    display: flex;
    width: max-content;
    animation: gallery-marquee-scroll 60s linear infinite;
    will-change: transform;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.gallery-marquee-item {
    flex-shrink: 0;
    width: 250px;
    margin: 0 10px;
}

@media (min-width: 768px) {
    .gallery-marquee-item {
        width: 350px;
    }
}

@media (min-width: 1024px) {
    .gallery-marquee-item {
        width: 400px;
    }
}


/* 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;
}

/* ========================= */
/* Global Horizontal Padding */
/* ========================= */
.container.mx-auto,
section .px-4,
section [class~="px-4"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* SP: .p-8 override */
@media (max-width: 768px) {
    .p-8 {
        padding: 40px 10px !important;
    }
}

/* ===================== */
/* Scroll Fade Animation */
/* ===================== */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Stagger children inside a parent */
.fade-in-stagger>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.35s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.45s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger.is-visible>*:nth-child(6) {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Pagination/Navigation Theme Colors */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.relative .swiper-button-next,
.relative .swiper-button-prev {
    color: var(--primary-color) !important;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.relative .swiper-button-next:hover,
.relative .swiper-button-prev:hover {
    transform: scale(1);
}

/* Menu Slider Custom Animation (Fade + Slide Up) */
.menu-swiper .swiper-slide {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0.3;
    transform: translateY(30px);
}

/* Make visible slides opaque and slide to original position */
.menu-swiper .swiper-slide-active,
.menu-swiper .swiper-slide-next,
.menu-swiper .swiper-slide-next+.swiper-slide {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Allow pink shadow specifically for menu images */
.menu-animate-img {
    box-shadow: 0 10px 40px rgba(255, 142, 179, 0.4), 0 0 20px rgba(255, 142, 179, 0.2) !important;
}

.mt-12 {
    margin-top: 60px !important;
}