/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Noto Sans JP', sans-serif;
    user-select: none; /* Text selection disabled */
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* Custom Spacing & Transitions */
.container {
    max-width: 1200px;
}

/* FV (First View) Editorial Styles */
.fv-copy-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-10%); /* Custom offset */
    }
}

@media (max-width: 768px) {
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.animate-fade-in-up { animation: fadeInUp 1.2s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 1.5s ease forwards; }
.animate-fade-in { animation: fadeIn 2s ease forwards; }
.animate-slide-in-right { animation: slideInRight 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards; }

/* Slideshow Crossfade */
@keyframes fv-crossfade {
    0% { opacity: 0; z-index: 0; }
    5%, 33% { opacity: 1; z-index: 10; }
    38%, 100% { opacity: 0; z-index: 0; }
}

.animate-fv-crossfade-1 {
    animation: fv-crossfade 15s infinite;
}

.animate-fv-crossfade-2 {
    animation: fv-crossfade 15s infinite;
    animation-delay: 5s;
}

.animate-fv-crossfade-3 {
    animation: fv-crossfade 15s infinite;
    animation-delay: 10s;
}

/* Section Margins */
section {
    position: relative;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    letter-spacing: 0.1em;
}

p {
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* Header Scroll Effect */
header.scrolled {
    background-color: #81d8d0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* Hamburger Menu Link Animation */
.menu-link {
    position: relative;
    padding-bottom: 4px;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 100%;
}

/* Image Hover Effects (Subtle) */
img {
    transition: transform 0.5s ease;
}

section img:not([src*="title_"]):hover {
    transform: scale(1.02);
}

/* Hide Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b6922a;
}

/* Right Click Prevention Overlay (Optional, but JS is used mainly) */
.no-select {
    user-select: none;
}

/* Voice Section Enhancements */
.voice-swiper {
    padding: 20px 10px;
    margin: -20px -10px;
    overflow: visible !important;
}

.voice-swiper .swiper-slide {
    transition: transform 0.4s ease;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.voice-swiper .swiper-slide-active {
    transform: scale(1.03);
    z-index: 20; /* アクティブなスライドはさらに上に */
}

.highlight-gold {
    background: linear-gradient(transparent 60%, rgba(212, 175, 55, 0.2) 60%);
    font-weight: bold;
    color: #b6922a;
    padding: 0 2px;
}

#voice .swiper-pagination-bullet-active {
    background: #d4af37;
}

/* Voice Hover Line Fix (Perfect Consistency Tuning) */
.voice-card-container {
    position: relative;
    overflow: hidden;
    z-index: 50;
    cursor: pointer;
}

.voice-card-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* 標準の位置に戻す */
    width: 6px;
    height: 100%;
    background-color: #d4af37;
    opacity: 0.15;
    transition: all 0.3s ease;
    z-index: 100; /* セクション内で最前面を保証 */
    pointer-events: none;
}

.voice-card-container:hover::before {
    opacity: 1 !important;
    width: 6px !important; /* 太さを完全に統一 */
}

/* Parallax Effect Smoothing */
@media (max-width: 768px) {
    .bg-fixed {
        background-attachment: scroll !important; /* Fixed bg issues on mobile */
    }
}

/* Premium Image Decoration */
.premium-frame {
    position: relative;
    padding: 12px;
    display: inline-block;
}

.premium-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #d4af37, #f2d06b, #d4af37) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.glow-gold {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}
