/* CSS for カラオケ酒場 続･みちくさ - High-End Collage Version */
@charset "UTF-8";

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px;
}

:root {
    --color-brown: #2c1a16;
    --color-dark-brown: #1a0f0d;
    --color-turquoise: #008b8b;
    --color-orange: #e67e22;
    --color-bg: #f9f7f2;
    --color-text: #2c2c2c;
    --section-margin-sp: 40px;
    --section-margin-pc: 60px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: 0.05em;
    font-size: 16px;
    overflow-x: hidden;
    /* Copy Protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

h1,
h2,
h3,
h4,
.section-title-en {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.1em;
}

/* Header */
header {
    background-color: transparent;
    transition: background-color 0.4s, padding 0.4s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

header .logo {
    transition: font-size 0.4s;
}

header.scrolled .logo {
    font-size: 1.25rem;
}

.nav-link {
    transition: color 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-turquoise);
}

/* --- First View (asiatri-pub style) --- */
.fv-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    /* Slightly less than full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 60px;
    background-color: var(--color-bg);
}

.fv-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

@media (min-width: 1024px) {
    .fv-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.fv-image-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 120px 200px 140px;
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

@media (min-width: 768px) {
    .fv-image-grid {
        grid-template-rows: 160px 280px 180px;
        gap: 15px;
    }
}

.fv-grid-item {
    position: relative;
    overflow: hidden;
    /* Instead of solid white, use a dark base for neon contrast */
    background-color: var(--color-brown);
    border-radius: 4px;
    padding: 4px;
    z-index: 1;
}

/* The rotating neon gradient */
.fv-grid-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            var(--color-orange),
            transparent 40%,
            transparent 50%,
            var(--color-turquoise),
            transparent 90%);
    animation: neonSpin 4s linear infinite;
    z-index: -1;
}

.fv-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 2px;
}

.fv-grid-7 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.fv-grid-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.fv-grid-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.fv-grid-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.fv-grid-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.fv-grid-5 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.fv-grid-6 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* FV Animations */
@keyframes fvFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderReveal {
    0% {
        padding: 0px;
        box-shadow: none;
    }

    100% {
        padding: 3px;
        box-shadow: 0 0 15px rgba(0, 139, 139, 0.4), 0 0 15px rgba(230, 126, 34, 0.4);
    }
}

@keyframes neonSpin {
    100% {
        transform: rotate(360deg);
    }
}

.fv-left-content {
    opacity: 0;
    animation: fvFadeIn 0.8s ease-out 0.2s forwards;
}

.fv-grid-item {
    opacity: 0;
    padding: 0;
    /* Start at 0 for animation */
    /* added border and padding reveal */
    animation:
        fvFadeIn 0.8s ease-out forwards,
        borderReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger animations for all elements */
.fv-grid-7,
.fv-grid-1,
.fv-grid-2 {
    animation-delay: 1.0s;
}

.fv-grid-3 {
    animation-delay: 1.3s;
}

.fv-grid-4,
.fv-grid-5,
.fv-grid-6 {
    animation-delay: 1.6s;
}

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

    50% {
        transform: translateY(0);
    }

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

/* Section Header (Revised) */
.section-header {
    position: relative;
    max-width: 50%;
    margin: 0 auto 40px;
    /* Reduced from 60px */
    text-align: center;
}

.section-header img {
    width: 100%;
    display: block;
}

.section-header .section-title-text {
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.25em;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .section-header .section-title-text {
        font-size: 2.2rem;
    }
}

/* Global Section Margin Removed to eliminate gaps */
section {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    section {
        margin-bottom: 0;
    }
}

/* Sharp Corners and Layout */
.btn,
.cta-btn,
img,
.swiper-slide {
    border-radius: 0 !important;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* CTA */
.cta-btn {
    background-color: var(--color-orange);
    color: #fff;
    transition: opacity 0.3s;
}

.cta-btn:hover {
    opacity: 0.9;
}

.sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 99;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--color-brown);
    color: #fff;
    width: 45px;
    height: 45px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 100px;
        /* Stay above Sticky CTA */
        right: 20px;
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    background-color: var(--color-orange);
}

#back-to-top svg {
    width: 16px;
    height: auto;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hamburger overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-brown);
    color: #fff;
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    display: flex;
}

/* Gallery Modal Styles */
#gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

#gallery-modal.active {
    display: flex;
    opacity: 1;
}

#gallery-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gallery-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1010;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-nav.prev {
    left: -80px;
}

.modal-nav.next {
    right: -80px;
}

#gallery-modal .close-modal {
    position: absolute;
    top: -50px;
    right: -50px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

#gallery-modal .close-modal:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }

    #gallery-modal .close-modal {
        top: 20px;
        right: 20px;
    }
}

/* Responsive Font Adjustments for SP */
@media (max-width: 768px) {
    #about .text-4xl {
        font-size: 2rem !important;
    }

    #service .text-2xl {
        font-size: 1.25rem !important;
    }

    #service h4.text-3xl {
        font-size: 1.5rem !important;
    }
}