/*
Theme Name: Yoru Regi Theme
Theme URI: https://yoruno.jp/reji
Description: 夜レジLP専用のオリジナルテーマ
Author: YORUNO
Version: 1.0
*/

/* Base Styles */
html {
    overflow-x: hidden;
    width: 100%;
    margin-top: 0 !important; /* WP admin bar fix */
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #050505; /* Deep Black */
    color: #e5e5e5;
    padding-bottom: 100px; /* Space for sticky footer */
    line-height: 1.8;
    font-size: 16px; /* Base size up */
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    margin: 0;
}

/* Color Variables & Utilities */
:root {
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8c2c;
}

.text-gold {
    color: var(--gold-primary);
}

.border-gold {
    border-color: var(--gold-primary);
}

.bg-gold {
    background-color: var(--gold-primary);
}

.text-gradient-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(5, 5, 5, 1)), url('https://images.unsplash.com/photo-1572116469696-31de0f17cc34?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold Border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(135deg, #b38728 0%, #fcf6ba 50%, #bf953f 100%);
    color: #000;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fcf6ba 0%, #bf953f 50%, #b38728 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(191, 149, 63, 0.3);
}

/* LINE Button unified with Gold Theme */
.line-button {
    background: linear-gradient(135deg, #b38728 0%, #fcf6ba 50%, #bf953f 100%); /* Gold Gradient */
    color: #000;
    transition: all 0.3s ease;
    border: 1px solid #fcf6ba;
}
.line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(191, 149, 63, 0.4);
    filter: brightness(1.1);
}

/* Animations */
.scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-footer {
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}
.sticky-footer.visible {
    transform: translateY(0);
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
}
.menu-open {
    transform: translateX(0) !important;
}

/* Testimonial Draggable Area */
.testimonial-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    padding: 20px 0; /* Add padding to prevent shadow clipping */
}
.testimonial-wrapper:active {
    cursor: grabbing;
}
.testimonial-track {
    display: flex !important; /* Force flex */
    flex-wrap: nowrap !important; /* Force no wrap */
    gap: 2rem;
    width: max-content;
    touch-action: none; /* Improve touch drag */
}
.testimonial-card {
    width: 320px; /* Slightly smaller for better mobile fit */
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal; /* Ensure text inside wraps */
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #111;
    border: 1px solid var(--gold-dark);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.25);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #fff;
}

/* Form Range Slider Customization */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}