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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Noto Sans JP', sans-serif;
}

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

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

/* 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: #CE7542;
    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: #FB8C44;
    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: #FB8C44;
    border-radius: 10px;
}

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



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

.marker-ribbon {
    background: linear-gradient(transparent 60%, #E6FBFF 0%);
    display: inline;
}

.marker-yellow {
    background: linear-gradient(transparent 60%, rgba(255, 249, 196, 0.6) 0%);
    display: inline;
}

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

/* 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: #FB8C44;
    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(251, 140, 68, 0.1);
}

/* Section Title Decoration */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.section-title-main {
    background: linear-gradient(to right,
            #FB8C44 0%,
            #FFA726 50%,
            #FB8C44 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
    font-weight: 900;
    padding: 0.2em 0.5em;
    margin: -0.2em -0.5em;
    font-family: 'Zen Maru Gothic', sans-serif;
}



/* Background Effects */
.bg-marble {
    background-image: url('../img/bg_marble.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Realistic Organic Ripple animation */
@keyframes ripple-organic {
    0% {
        transform: scale(0.1);
        opacity: 0;
        border-width: 3px;
    }

    10% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: scale(3);
        opacity: 0;
        border-width: 1px;
    }
}

.ripple-wrap {
    position: absolute;
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.ripple {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(129, 216, 208, 0.3);
    border-radius: 50%;
    animation: ripple-organic 8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    box-shadow: inset 0 0 20px rgba(129, 216, 208, 0.1), 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 4s ease-in-out 1s infinite;
}

.animate-float-slow {
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes textPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.animate-text-pop {
    animation: textPop 4s ease-in-out infinite;
    display: inline-block;
}

/* Sakura Animation (Floating/Drifting) */
.sakura-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.sakura-petal { position: absolute; background-color: #ffc0cb; border-radius: 150% 0 150% 0; opacity: 0.6; animation: sakura-drift linear infinite; }
@keyframes sakura-drift {
    0% { top: -10%; transform: translateX(0) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.6; }
    25% { transform: translateX(50px) rotate(90deg) scale(1); }
    50% { transform: translateX(-50px) rotate(180deg) scale(1.2); }
    75% { transform: translateX(50px) rotate(270deg) scale(1); }
    90% { opacity: 0.6; }
    100% { top: 110%; transform: translateX(-50px) rotate(360deg) scale(0.8); opacity: 0; }
}


/* Shimmer (Glint) Animation */
@keyframes shimmer {
    0% { transform: translateX(-150%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}

.animate-shimmer {
    position: relative;
    overflow: hidden;
}

.animate-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg) translateX(-150%);
    animation: shimmer 4s infinite;
}

