/* Custom Styles for ピザ小屋 tutti */

:root {
    --primary: #C1352A;
    --secondary: #4A5B3E;
    --accent: #E6A15C;
    --dark: #333333;
    --light: #F9F7F2;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-touch-callout: none; /* Prevent long press on mobile */
    -webkit-user-select: none;   /* Safari */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* IE/Edge */
    user-select: none;           /* Standard */
}

/* Typography refinement */
p, li, dd {
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* FV sizing and Swiper responsiveness */
.fv,
.fv-swiper {
    width: 100%;
    height: auto !important;
}

.fv-swiper .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
}

/* Force mobile images to be Smartphone First View (SPFV) portrait size */
@media (max-width: 767px) {
    .fv-swiper .swiper-slide img {
        height: calc(100vh - 80px) !important;
        object-position: center !important;
    }
}

/* FV text overlay */
.fv-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
}

.fv-text-overlay .fv-sub {
    display: inline-block;
    font-size: clamp(11px, 2vw, 15px);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.28);
    padding: 5px 18px;
    margin-bottom: 14px;
    border-left: 2px solid #E6A15C;
    border-right: 2px solid #E6A15C;
    white-space: nowrap;
    animation: fv-fadein 1.4s ease 0.2s both;
}

.fv-text-overlay .fv-main {
    display: block;
    font-size: clamp(16px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
    line-height: 1.5;
    text-shadow:
        2px 2px 12px rgba(0,0,0,0.7),
        0 0 30px rgba(0,0,0,0.5);
    animation: fv-fadein 1.4s ease 0.5s both;
}

.fv-text-overlay .fv-deco {
    display: inline-block;
    width: clamp(40px, 8vw, 80px);
    height: 1px;
    background: rgba(230,161,92,0.8);
    vertical-align: middle;
    margin: 0 10px;
}

@keyframes fv-fadein {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll line animation */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Parallax fallback/custom */
.fixed-bg {
    background-attachment: fixed;
}

@media (max-width: 1024px) {
    .fixed-bg {
        background-attachment: scroll; /* Fix for mobile parallax performance/bugs */
    }
}

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

/* Navigation active line or hover */
nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* SWIPER CUSTOM */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* Anti-copy (Visual clue if needed, but JS will handle) */
.no-select {
    user-select: none;
}

/* Ensure no shadows on images per absolute rule */
img {
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Fix for full screen menu SP animation */
#sp-menu.open {
    transform: translateX(0);
}

/* Broken grid helper */
.broken-grid-offset {
    transform: translate(20px, 20px);
}
