/* Updated Custom CSS for 株式会社８・８ LP */

:root {
    --brand-black: #1a1a1a;
    --brand-brown: #3d2b1f;
    --brand-red: #8b0000;
    --brand-gold: #c5a059;
    --brand-cream: #fdfbf7;
}

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

body {
    background-color: var(--brand-black);
    color: var(--brand-cream);
    overflow-x: clip;
    user-select: none;
    /* Copy protection */
    font-size: 16px;
    /* PC Default */
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Floating Animations */
.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

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

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.py-\[100px\] {
    padding-top: 70px !important;
    padding-bottom: 100px !important;
}

.fv-text.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* FV Scroll Animation */
.scroll-line {
    animation: scrollMove 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollMove {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
        /* SP Default */
    }

    img.w-full.h-full.object-cover {
        object-position: right bottom;
    }

    .text-2xl {
        font-size: 1.4rem !important;
    }
}

/* Section Padding */
.section- {
    padding-top: 70px;
    padding-bottom: 70px;
    overflow-x: clip;
    /* Prevent horizontal scroll without breaking position: sticky */
}

#fv {
    overflow-x: clip;
}

/* SP Left/Right Padding */
@media (max-width: 767px) {

    .px-\[10px\],
    header,
    footer,
    section:not(#fv) {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #fv {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Typography */
h2,
h3,
h4 {
    letter-spacing: 0.15em;
    line-height: 1.5;
}

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

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Mobile Menu Active State */
#mobile-menu.active {
    transform: translateX(0) !important;
}

/* Marquee Gallery (Infinite Scroll) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 20px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    width: 300px;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 767px) {
    .gallery-item {
        width: 200px;
        height: 200px;
    }
}

/* Unique Image Styles per Section */
.img-style-tv {
    position: relative;
    padding: 15px;
}

.img-style-tv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 1px solid var(--brand-gold);
    z-index: 0;
    transition: all 0.5s ease;
}

.img-style-tv .inner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
    /* Square Design */
}

.img-style-tv:hover::before {
    top: 15px;
    left: 15px;
}

.img-style-tv img {
    transition: transform 1s ease;
}

.img-style-tv:hover img {
    transform: scale(1.1);
}

.img-style-about {
    position: relative;
    padding: 30px;
}

.img-style-about::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-color: var(--brand-gold);
    opacity: 0.1;
    z-index: 0;
}

.img-style-about .inner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--brand-gold);
}

.img-style-about img {
    transition: transform 1s ease;
}

.img-style-about:hover img {
    transform: scale(1.05);
}

.img-style-service {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid var(--brand-gold);
}

.img-style-service::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

.img-style-service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.img-style-service:hover img {
    transform: scale(1.1);
}

.recommend-swiper {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommend-swiper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent);
}

@media (max-width: 767px) {
    .recommend-swiper {
        min-height: 200px;
    }
}

/* Header Styling */
header {
    background-color: #1a1a1af2;
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo h1 a,
header nav ul li a {
    color: #ffffff !important;
}

header nav ul li a:hover {
    color: var(--brand-gold) !important;
}

header #menu-toggle span {
    background-color: #ffffff;
}

.menu-swiper {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-swiper img {
    filter: grayscale(0.2) brightness(0.9);
    transition: filter 0.5s ease;
}

.menu-swiper:hover img {
    filter: grayscale(0) brightness(1);
}

.img-style-message img {
    border-radius: 50% 50% 0 0;
}

/* Lightbox Enhancements */
#lightbox {
    display: none;
    /* Controlled by JS */
}

#lightbox.flex {
    display: flex;
}

#lightbox-img {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

#lightbox button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

#lightbox button:hover {
    opacity: 0.7;
}

/* Header Adjustments */
header {
    height: 60px;
}

@media (min-width: 768px) {
    header {
        height: 80px;
    }
}

/* Utility */
.vertical-bottom {
    vertical-align: bottom;
}

/* Utility Overrides */
@media (min-width: 768px) {
    .md\:gap-16 {
        gap: 2rem !important;
    }
}

/* Background Animations */
.animate-slow-zoom {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}