:root {
    --primary: #064e3b;
    --primary-light: #10b981;
    --primary-bg: #f0fdf4;
    --accent: #f59e0b;
    --text-dark: #111827;
    --text-light: #4b5563;
    --white: #ffffff;
    --black: #000000;
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Noto Serif JP', serif;
    --font-en: 'Oswald', sans-serif;
}

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

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.mobile-only {
    display: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

/* Moving CSS Gradient Background */
.moving-gradient-bg {
    background: linear-gradient(-45deg, #064e3b, #065f46, #059669, #10b981);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

/* 2-Column Layout: Left 40%, Right 60% */
.grid-split {
    display: grid;
    grid-template-columns: 4fr 6fr;
    align-items: center;
    gap: 80px;
}

@media (max-width: 1024px) {
    .grid-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 15px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
}

header.scrolled .logo {
    color: var(--primary);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 2001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--black);
    /* Strict Requirement: Black */
    position: absolute;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* FV (First View) */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    /* Strict Requirement: Right 60% */
    height: 100%;
    background: url('../img/hero.png') center/cover no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
    transition: transform 10s ease-out;
}

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

.hero-gradient-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    /* Strict Requirement: Left Text Space (overlaps slightly for style) */
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-left: 8%;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--white);
    max-width: 700px;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.5em;
    color: var(--primary-light);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary-light);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 40px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title span {
    display: block;
    font-size: 0.7em;
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 1);
    line-height: 1.4;
}

.hero-title .hero-sub {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f59e0b;
}

.hero-points {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
}

.point-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 45px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-serif);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    font-size: 16px;
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-tel {
    background: var(--accent);
    color: var(--white);
    font-size: 20px;
    border-radius: 100px;
    padding: 12px 40px;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    gap: 12px;
    font-family: var(--font-en);
}

.btn-tel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.4);
}

.btn-tel i {
    font-size: 28px;
}

/* Section Commons */
.section-title-wrap {
    margin-bottom: 70px;
}

.section-en {
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.5em;
    color: var(--primary-light);
    display: block;
    margin-bottom: 15px;
}

.section-h2 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1.4;
    position: relative;
    padding-bottom: 20px;
}

.section-h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-light);
}

.menu-card .section-h2::after {
    display: none;
}

.text-center {
    text-align: center;
}

.text-center .section-h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* TV Section */
.tv-section {
    background-color: var(--primary-bg);
}

.trouble-list {
    list-style: none;
}

.trouble-item {
    background: var(--white);
    padding: 25px 35px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.trouble-item:hover {
    transform: translateX(10px);
}

.trouble-item::before {
    content: '○';
    width: 32px;
    height: 32px;
    background: var(--primary-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

.tv-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.tv-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(50px);
}

/* ABOUT Section */
.about-text p {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 16px;
}

/* SERVICE Section */
.service-card {
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.service-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.service-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Recommended Menu */
.menu-section {
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.menu-section::before {
    content: 'SILICON';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 200px;
    font-family: var(--font-en);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.menu-price {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0 30px;
}

.menu-image {
    width: 100%;
}

.menu-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s ease;
}

.menu-image img:hover {
    transform: scale(1.03);
}

/* Gallery Section */
.gallery-swiper {
    padding: 40px 0 80px;
    position: relative;
}

.gallery-item {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary-light);
}

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

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-nav span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: -100px;
}

.lightbox-next {
    right: -100px;
}

@media (max-width: 1200px) {
    .lightbox-prev {
        left: 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }

    .lightbox-next {
        right: 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }
}

.lightbox-nav span:hover {
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    background: var(--primary-bg);
}

.contact-container {
    background: var(--white);
    padding: 80px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

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

.contact-table th,
.contact-table td {
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-table th {
    text-align: left;
    width: 140px;
    color: var(--primary);
    font-family: var(--font-serif);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    header {
        padding: 20px 30px;
    }

    header.scrolled {
        padding: 10px 30px;
    }

    .hero-img {
        width: 100%;
        clip-path: none;
        opacity: 0.35;
    }

    .hero-gradient-overlay {
        width: 100%;
        padding: 0 30px;
        justify-content: center;
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-points {
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .section-padding {
        padding: 80px 0;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-points {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .point-item {
        white-space: normal;
        text-align: center;
        width: 100%;
        font-size: 13px;
        padding: 12px;
    }

    .tv-image img {
        transform: none;
        margin-top: 20px;
    }

    .service-card {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .grid-split {
        display: flex;
        flex-direction: column;
    }

    /* Target all image containers in split grids */
    .tv-image,
    .about-image,
    .message-image,
    .service-img-wrap,
    .menu-image {
        order: -1;
        margin-top: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    /* Target all text containers in split grids */
    .tv-text,
    .about-text,
    .message-text,
    .service-text {
        order: 1;
        width: 100%;
    }

    .message-image {
        justify-content: center !important;
    }

    .message-text {
        text-align: left;
    }

    .message-text .section-h2::after {
        left: 0;
        transform: none;
    }

    .menu-card {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .service-img {
        height: 280px;
    }

    .menu-card {
        padding: 40px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-h2 {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title .hero-sub {
        font-size: 18px;
    }

    .menu-image img {
        height: 240px;
    }

    .trouble-item {
        padding: 15px 20px;
        font-size: 14px;
    }

    .contact-table th {
        width: 100px;
        font-size: 14px;
    }

    .contact-table td {
        font-size: 14px;
    }

    h3 {
        font-size: 22px !important;
    }

    /* Fixed Mobile Footer */
    .fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 5000;
        background: var(--white);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    }

    .footer-cta-btn {
        flex: 1;
        background: var(--accent);
        color: var(--white);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        font-weight: 800;
        font-family: var(--font-sans);
        font-size: 16px;
    }

    .contact-section .btn-tel {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* Global Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    /* Circle for global button */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 4999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.arrow-up {
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--white);
    border-left: 3px solid var(--white);
    transform: rotate(45deg);
    margin-top: 5px;
}

@media (max-width: 991px) {
    .back-to-top {
        bottom: 80px;
        /* Above the fixed footer */
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .fixed-footer {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Full width for better experience */
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 120px 40px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 50px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
    font-family: var(--font-serif);
    font-weight: 800;
}