:root {
    --primary: #FF8C00;
    /* Dark Orange */
    --secondary: #4A4A4A;
    /* Dark Gray */
    --bg-light: #F5F5F5;
    --text-main: #333333;
    --text-muted: #666666;
    --font-main: 'Noto Sans JP', sans-serif;
}

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

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

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes dashPass {
    0% {
        background-position: -150% 0;
    }

    100% {
        background-position: 150% 0;
    }
}

.scroll-indicator-wrap {
    background-color: #4a4a4a;
    padding: 10px 0;
    width: 100%;
}

.scroll-indicator {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: #fff;
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: scrollDown 2.5s infinite linear;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--text-main);
    background: url('../img/texture-bg.jpg') center top;
    background-size: 100% auto;
    overflow-x: hidden;
    font-size: 16px;
}

/* Base Layout */
section {
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    section {
        padding-bottom: 120px;
    }
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #d3d3d3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}

.nav-pc {
    display: none;
}

@media (min-width: 1024px) {
    .nav-pc {
        display: flex;
        gap: 20px;
    }

    .nav-pc a {
        text-decoration: none;
        color: #333333;
        font-size: 1rem;
        font-weight: 700;
        transition: color 0.3s;
    }

    .nav-pc a:hover {
        color: var(--primary);
    }
}

.btn-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

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

/* Swiper FV */
#fv {
    margin-top: 70px;
}

.fv-swiper {
    width: 100%;
    height: auto;
    /* Changed to auto to fit image aspect ratio */
}

.fv-swiper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    /* White background to blend with the site */
    display: block;
}

.fv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
    /* Added gap above headings */
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::before {
    display: none;
    /* Removed the static gray line if we're using a single pseudo-element */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #ddd;
    background-image: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: dashPass 2s infinite linear;
    border-radius: 2px;
}

/* Grid & Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 1024px) {

    /* Tightened gap for balanced layout */
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
        justify-content: center;
    }

    /* Balanced Reversed: Text (1), Image (1) */
    .grid-2.reverse {
        grid-template-columns: 1fr 1fr;
    }

    /* Zigzag order control */
    .grid-2>*:nth-child(1) {
        order: 1;
    }

    .grid-2>*:nth-child(2) {
        order: 2;
    }

    .grid-2.reverse>*:nth-child(1) {
        order: 2;
    }

    .grid-2.reverse>*:nth-child(2) {
        order: 1;
    }
}

/* Service Specific Components */
section#service,
section#contact {
    background-color: #4a4a4a;
    /* matching scroll indicator bg */
    color: #ffffff;
}

section#service .section-title,
section#contact .section-title {
    color: #ffffff;
}

section#service h3 {
    color: var(--primary);
}

section#service p.text-gray-600 {
    color: #f1f1f1;
}

section#service .img-box img {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 460 / 311;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Base Image Box (Used in Menu) */
.img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.img-m2 {
    object-position: 20% center;
}

/* Alignment rules for the old Service section have been removed in favor of Tailwind Grid */

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    /* Changed from cover to avoid extreme zoom in */
    background-color: #f7f7f7;
    /* added fallback color */
    padding: 100px 0;
}

.menu-card {
    background: rgba(240, 240, 240, 0.85);
    /* transparent light gray */
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .menu-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    #menu.parallax-bg {
        background-size: cover;
        /* Ensures it covers the area */
        background-attachment: scroll;
        /* Often better on mobile to prevent excessive zoom */
        background-position: center center;
    }

    #menu li {
        font-size: 14px;
    }

    footer nav {
        flex-wrap: nowrap !important;
        gap: 15px !important;
        font-size: 13px;
    }
}

.menu-card:last-child {
    margin-bottom: 0;
}

/* Accordion */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    background: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 15px 20px;
}

/* Hamburger */
.hamburger {
    display: block;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    #contact .section-header {
        padding-top: 40px;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d3d3d3;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* Top Button */
footer {
    background-color: #373737 !important;
}

.btn-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 900;
}

.btn-top.show {
    opacity: 1;
}

/* Mobile CTA Footer */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1100;
}

@media (min-width: 1024px) {
    .mobile-cta {
        display: none;
    }
}

.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-cta .btn-tel {
    background: var(--secondary);
}

.mobile-cta .btn-web {
    background: var(--primary);
}

/* Right click disable message (hidden) */
#no-right-click {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    display: none;
    z-index: 9999;
}

/* Pure CSS Marquee (Gallery) */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    /* Negative 50% translation over 40s loops the 2 identical halves perfectly */
    animation: marquee-anim 40s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-block;
    width: 280px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.marquee-item img {
    width: 100%;
    height: auto;
    display: block;
}

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

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


/* Custom Lightbox Styles are handled in Tailwind directly via HTML */

/* Service h3 Text Styles */
section#service h3 {
    color: var(--primary);
}

@media (max-width: 767px) {
    section#service h3 {
        font-size: 20px !important;
    }
}