/* ==========================================================================
   ADACHI COLA Official Website - Master Style Sheet (2026 Modern Edition)
   ========================================================================== */

/* --- 1. Base Styles & Design Tokens --- */
:root {
    --color-bg: #FAF9F6;
    --color-text: #2B2625;
    --color-text-muted: #6B6563;
    --color-pink: #C8959C;
    --color-pink-hover: #b88188;
    --color-gold-accent: #D4AF37;
    --color-card-bg: #FFFFFF;
    --color-section-alt: #F4F1EA;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.serif {
    font-family: var(--font-serif);
}

/* --- 2. Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* --- 3. Colors & Utility Classes --- */
.text-pink {
    color: var(--color-pink);
}

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

.border-pink {
    border-color: var(--color-pink);
}

.btn-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hover:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 149, 156, 0.35);
}

.btn-hover:active {
    transform: translateY(0);
}

/* Subpage container utility (Maintained for contact.html, stores.html, etc.) */
.sub-container {
    max-width: 700px;
    margin: 140px auto 100px;
    padding: 0 20px;
}

.sub-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 3rem;
}

/* Form controls styling (Maintained for contact.html) */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-size: 14px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(200, 149, 156, 0.15);
}

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #444;
}

/* --- 4. Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- 5. Hero & Video Background --- */
.hero-gradient-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-title-shadow {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* --- 6. Mobile Sticky Bottom CTA Bar --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}

/* --- 7. Smartphone Frame Mockup for CALEN CM --- */
.phone-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 12px #1f2937;
    overflow: hidden;
    aspect-ratio: 9 / 16;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background: #1f2937;
    border-radius: 10px;
    z-index: 20;
}

/* Pulse animation for play button */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 149, 156, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(200, 149, 156, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 149, 156, 0); }
}

.play-pulse {
    animation: pulse-ring 2s infinite;
}

/* --- 8. Media Placeholders Wrapper --- */
.media-placeholder {
    position: relative;
    display: block;
    width: 100%;
}

/* --- 9. BRAND STORY Cards & Timeline --- */
/* Inertial Horizontal Scroll for Mobile (2026 Mobile UX Standard) */
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    -webkit-overflow-scrolling: touch; /* Momentum / inertial scrolling on iOS Safari */
}
.scrollbar-none::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Mobile Swipe Indicator Animation */
@keyframes swipe-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
.animate-swipe-x {
    animation: swipe-bounce 1.5s infinite ease-in-out;
}

.story-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(200, 149, 156, 0.15);
    border-color: rgba(200, 149, 156, 0.3);
}

.story-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #FAF9F6;
    color: var(--color-pink);
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(200, 149, 156, 0.2);
}

/* --- 10. TASTE & CHARACTER 4-Group Cards --- */
.taste-card {
    background: #FFFFFF;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.taste-card:hover {
    border-color: var(--color-pink);
    box-shadow: 0 8px 25px rgba(200, 149, 156, 0.12);
}

/* --- 11. HOW TO ENJOY Carbonated Bubbles Animation --- */
.bubble-container {
    position: relative;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(200, 149, 156, 0.35);
    border-radius: 50%;
    pointer-events: none;
    animation: bubble-rise 4s infinite linear;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-180px) scale(1.2);
        opacity: 0;
    }
}

/* --- 12. Accessibility: Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .play-pulse {
        animation: none !important;
    }
    .bubble {
        display: none !important;
    }
}

/* --- 13. PROLOGUE Section (新規追加プロローグ専用) --- */
.prologue-section {
    position: relative;
    background-image: url('images/prologue-opt.jpg');
    background-image: -webkit-image-set(url('images/prologue-opt.webp') type('image/webp'), url('images/prologue-opt.jpg') type('image/jpeg'));
    background-image: image-set(url('images/prologue-opt.webp') type('image/webp'), url('images/prologue-opt.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .prologue-section {
        background-image: url('images/prologue-pc-opt.jpg');
        background-image: -webkit-image-set(url('images/prologue-pc-opt.webp') type('image/webp'), url('images/prologue-pc-opt.jpg') type('image/jpeg'));
        background-image: image-set(url('images/prologue-pc-opt.webp') type('image/webp'), url('images/prologue-pc-opt.jpg') type('image/jpeg'));
        min-height: 80vh;
    }
}

.prologue-text-shadow {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.prologue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    padding: 0.4rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* --- 14. CALEN Special Feature Section (専用スタイリング) --- */
.calen-special {
    position: relative;
    background-color: #F4F1EA;
}

.calen-badge {
    display: inline-block;
    background: #FFFFFF;
    color: var(--color-pink);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    padding: 0.35rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.calen-quote-box {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF9F6 100%);
    border: 1px solid rgba(200, 149, 156, 0.25);
    border-radius: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.calen-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.calen-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(200, 149, 156, 0.2);
}