/* Design System for カラオケHappy */
:root {
    --primary-color: #e63946; /* Energetic Red */
    --secondary-color: #f8f9fa; /* Light Gray */
    --accent-color: #ff4d4d; /* Bright Red */
    --dark-color: #333333; /* Dark Gray for headings */
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: left;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #000000;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #000000;
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000;
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: var(--transition);
}

nav.active {
    background: var(--white);
}

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px; /* Header height */
    height: auto;
    aspect-ratio: 1920 / 920; /* Optimized for PCFV2.png dimensions */
    background: url('../img/PCFV2.png') top center / 100% auto no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    position: relative;
}

.hero .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 60px 80px;
}

/* Gradient removed */

.hero-content {
    max-width: 500px;
    padding: 0 0 60px 50px; /* Aligns to bottom left */
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.hero h1 span {
    display: inline-block;
    animation: slideUpReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) both;
}

.hero h1 span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes slideUpReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000000;
}

.about-text p {
    margin-bottom: 20px;
}

/* Service Section */
.service {
    background: url('../img/background2.png') center / cover no-repeat fixed;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 15px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-container {
    margin: 80px 0 40px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 10px;
    padding: 0 50px;
}

.gallery-item {
    flex: 1;
    min-width: 0;
}

/* Hide clones on PC */
.gallery-item:nth-child(n+6) {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    text-align: left;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    min-height: 3.2em; /* Aligns description text */
    display: flex;
    align-items: flex-end;
}

/* Menu Section */
.menu {
    background-color: var(--white);
}

.price-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.price-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.price-card h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: left;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.price-table th {
    text-align: left;
    font-weight: 600;
}

.price-table td {
    text-align: right;
    font-weight: 700;
    color: var(--dark-color);
}

.price-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    text-align: left;
}

.food-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.food-category h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.food-category h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #000000;
    margin-right: 12px;
    display: block;
}

.food-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.food-name {
    font-weight: 600;
}

.food-price {
    font-weight: 700;
    color: #000000;
}

.darts-box {
    background: #f0f0f0;
    color: var(--text-color);
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
}

.darts-box h3 {
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.darts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Greeting Section */
.greeting {
    background: url('../img/background2.png') center / cover no-repeat fixed;
    text-align: left;
}

.greeting-card {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.greeting-text h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 40px;
    line-height: 1.4;
    text-align: center;
}

.greeting-text p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 25px;
    line-height: 2;
}

.greeting-accent {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000000;
    margin-top: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    display: block;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px; /* Above fixed CTA */
        right: 20px;
    }
}

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

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

/* Access Section */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.access-info table {
    width: 100%;
    border-collapse: collapse;
}

.access-info th, .access-info td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.access-info th {
    width: 140px;
    color: #000000;
}

.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ddd;
}

/* Access Instagram Link */
.access-insta-link {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.access-insta-link a {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: var(--transition);
}

.access-insta-link a:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .access-insta-link a {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 40px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .access-grid, .price-tables, .food-menu-grid, .darts-content {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 30px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }

    .gallery-track {
        display: flex;
        gap: 15px;
        width: max-content;
        animation: infinite-slide 30s linear infinite;
        padding: 20px 0;
        margin: 0;
        overflow: visible;
    }

    .gallery-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 280px;
    }

    .gallery-item:nth-child(n+6) {
        display: block;
    }

    .gallery-item img {
        height: 200px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    @keyframes infinite-slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 7.5px));
        }
    }

    .section-title h2::after {
        width: 40px;
        height: 3px;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* Fix image cutting on SP */
    .about-image {
        height: auto;
        margin-bottom: 30px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .service-image {
        height: auto;
    }

    .service-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Greeting SP Fix */
    .greeting-card {
        padding: 30px 20px;
        text-align: left;
    }

    .greeting-text h2 {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left;
    }

    .greeting-text p {
        font-size: 0.9rem;
        text-align: left;
    }

    .greeting-accent {
        font-size: 1.5rem;
        text-align: left;
        margin-top: 20px;
    }

    .hero {
        background: url('../img/SPFV2.png') top center / contain no-repeat;
        height: auto;
        min-height: 500px;
        aspect-ratio: 1 / 1.5; /* Default ratio to ensure visibility */
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        background-color: #fff; /* Background color to prevent gaps */
    }

    .service {
        background: none !important;
        position: relative;
        z-index: 0;
        clip-path: inset(0); /* Clips the fixed pseudo-element to this section */
    }

    .service::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/マスクグループ 11.png') center / cover no-repeat;
        z-index: -1;
        pointer-events: none;
    }

    .greeting {
        background: none !important;
        position: relative;
        z-index: 0;
        clip-path: inset(0);
    }

    .greeting::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/マスクグループ 11.png') center / cover no-repeat;
        z-index: -1;
        pointer-events: none;
    }

    .hero .container {
        padding: 0 0 30px 20px;
        width: 100%;
        margin: 0;
    }

    .hero-content {
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    body {
        font-size: 14px;
        padding-bottom: 70px; /* For fixed CTA */
    }
}

/* SP Fixed CTA */
.sp-fixed-cta {
    display: none;
}

@media (max-width: 768px) {
    .sp-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }

    .sp-cta-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.75rem;
    }

    .sp-cta-btn.tel {
        background-color: var(--dark-color);
        color: var(--white);
    }

    .sp-cta-btn.insta {
        background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
        color: var(--white);
    }

    .sp-cta-btn i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Instagram Button */
.insta-box {
    text-align: center;
    margin-top: 60px;
}

.btn-insta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-insta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-insta i {
    font-size: 1.4rem;
}

