/* =========================================
   Piccolo Cane Event Selection - Light & Chic
   ========================================= */

:root {
    /* Piccolo Cane Premium Colors (Chic & Light) */
    --bg-base: #ffffff;
    --bg-light: #fbf9f6; /* Very soft beige/warm white */
    
    /* Text Colors */
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-muted: #8b8b8b;
    
    /* Accents */
    --accent-gold: #c6a87c;
    --accent-dark: #1a1a1a;
    
    /* Typography */
    --font-heading-en: 'Jost', sans-serif;
    --font-heading-serif: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    /* Measures */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ================= Base Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-base);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================= Preloader (Premium Animation) ================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let clicks pass if needed */
}

/* The solid background that will slide up to reveal the page */
.preloader-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-light); /* Warm light background */
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.preloader.hidden .preloader-bg {
    transform: scaleY(0);
}

.preloader-logo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.preloader-logo {
    font-family: var(--font-heading-en);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--text-primary);
    transform: translateY(100%);
    opacity: 0;
    animation: textUpPreload 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.preloader-line {
    width: 0;
    height: 1px;
    background: var(--text-primary);
    margin-top: 15px;
    animation: lineGrow 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards;
}

/* Hide animations when .hidden is added */
.preloader.hidden .preloader-logo {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

.preloader.hidden .preloader-line {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes textUpPreload {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes lineGrow {
    to { width: 150px; }
}

/* ================= Nav & Header ================= */
.brand-nav {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 10;
}

.nav-content {
    text-align: center;
}

.nav-brand {
    font-family: var(--font-heading-en);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-sub {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-left: 10px;
    opacity: 0.8;
}

.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('top.png') center/cover no-repeat;
    z-index: 1;
    transform: scale(1.1);
    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.4); /* Elegant dimming */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-title-en {
    font-family: var(--font-heading-serif);
    font-weight: 600;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    color: white;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-top: 20px;
    margin-bottom: 50px;
    max-width: 600px;
}

/* ================= Utilities ================= */
.container-large {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

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

.mt-4 { margin-top: 30px; }

/* Line break controls */
.pc-br { display: block; }
.sp-br { display: none; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-heading-en);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-gold);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gold);
    transform: translateY(-5px);
}

/* ================= Sections Layout ================= */
.event-showcase {
    position: relative;
    padding: var(--section-padding);
}

.split-layout .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-layout.reversed .container {
    direction: rtl; 
}
.split-layout.reversed .showcase-content,
.split-layout.reversed .showcase-visual {
    direction: ltr;
}

/* Content */
.showcase-content {
    max-width: 500px;
}

.event-date {
    display: inline-block;
    color: var(--accent-gold);
    font-family: var(--font-heading-en);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.showcase-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

.title-sub {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
}

.event-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-top: 4px;
}

.detail-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 3px;
}

.detail-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rich-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.rich-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.styled-list {
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
}

/* Visuals */
.showcase-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

.full-flyer {
    width: 100%;
    max-height: 700px;
    object-fit: contain; /* Ensures flyers are NOT cropped */
    border-radius: 4px;
    background: transparent;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.shadow-hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.square-flyer {
    width: 80%; /* Adjust for square flyer to look balanced */
}

/* ================= Footer ================= */
.premium-footer {
    padding: 80px 0 30px;
    text-align: center;
    background: var(--bg-base);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading-en);
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-logo:hover {
    color: var(--accent-gold);
}

.footer-content p {
    font-family: var(--font-heading-en);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================= Animations ================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.fade-up {
    opacity: 0;
    transform: translateY(20px);
}
.hero.loaded .fade-up {
    animation: fadeUpAnim 0.8s ease-out forwards;
}

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .split-layout .container, .split-layout.reversed .container {
        grid-template-columns: 1fr;
        gap: 50px;
        direction: ltr; 
    }
    
    .showcase-visual {
        order: -1; 
    }
    
    .full-flyer {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container-large {
        padding: 0 20px;
    }

    .hero-title-en {
        font-size: 11vw;
    }

    .pc-br { display: none; }
    .sp-br { display: block; }
    
    .square-flyer {
        width: 100%;
    }
}
