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

:root {
    --primary-blue: #003366;
    --accent-orange: #ff8c00;
    --rich-black: #1a1a1a;
    --soft-white: #f8f9fa;
    --text-color: #333333;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--text-color);
    background-color: #fdfdfd;
    /* Very subtle grey bg to make white boxes pop */
    overflow-x: hidden;
}

.text-lg {
    font-size: 1rem !important;
    line-height: 1.75rem !important;
}

.mobile-only {
    display: none;
}

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


/* Custom Utilities */
.section-margin {
    margin-bottom: 80px;
    padding-top: 40px;
    /* Shift for better rhythm */
}

@media (min-width: 768px) {
    .section-margin {
        margin-bottom: 120px;
    }
}

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

.section-box {
    background: #fff;
    padding: 30px;
    box-shadow:
        0 4px 6px -1px rgba(0, 51, 102, 0.05),
        0 10px 25px -5px rgba(0, 51, 102, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    border: 2px solid rgba(0, 51, 102, 0.18);
    border-left: 5px solid var(--accent-orange);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-box:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(0, 51, 102, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
}




/* Heading Style */
.section-heading-wrapper {
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
}

.section-heading-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.05), transparent);
    border-left: 4px solid var(--primary-blue);
    border-right: 1px solid rgba(0, 51, 102, 0.1);
    line-height: 1.1;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 2;
}

.section-heading-sub {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: block;
    margin-top: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}


@media (min-width: 768px) {
    .section-heading-text {
        font-size: 1.5rem;
        padding: 15px 40px;
    }

    .section-heading-sub {
        font-size: 1.125rem;
    }
}






/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}


header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Overlay for SP */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle Button - SP Only */
@media (max-width: 767px) {
    #menu-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--soft-white);
        border: 1px solid rgba(0, 51, 102, 0.08);
        border-radius: 50%;
        color: var(--primary-blue);
        transition: all 0.3s ease;
    }

    #menu-btn:hover,
    #menu-btn:active {
        background-color: rgba(0, 51, 102, 0.05);
        transform: scale(0.95);
    }
}

@media (min-width: 768px) {
    #menu-btn {
        display: none !important;
    }
}

.nav-overlay a:not(.sp-nav-btn) {
    color: #fff;
    font-size: 1.35rem;
    margin: 10px 0;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    width: 85%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-overlay a:not(.sp-nav-btn):active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange);
}

.nav-overlay a:not(.sp-nav-btn):last-of-type {
    border-bottom: none;
}

.sp-nav-btn {
    width: 260px !important;
    text-decoration: none !important;
    text-align: center;
    transition: transform 0.2s ease;
}

.sp-nav-btn:active {
    transform: scale(0.95);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

/* Swiper FV */
.fv-swiper {
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: contain;
}

/* TOP Button */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Floating CTA SP */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cta a {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-tel {
    background-color: var(--accent-orange);
    color: #fff;
}

.cta-mail {
    background-color: var(--primary-blue);
    color: #fff;
}

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

/* CTA Section Styles */
.cta-style-1 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 60px 0;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cta-style-2 {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    padding: 60px 0;
    position: relative;
    color: #fff;
}


.cta-style-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"><circle cx="3" cy="3" r="3"/><circle cx="13" cy="13" r="3"/></g></svg>');
    opacity: 0.5;
}

.cta-btn-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


.cta-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cta-btn-premium:hover::before {
    transform: translateX(0);
}


.cta-btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Layout Adjustments */
.asymmetric-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.asymmetric-text {
    flex: 1 1 55%;
}

.asymmetric-img {
    flex: 1 1 35%;
}

.service-img-small {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 16px;
    display: block;
}


@media (max-width: 767px) {
    .text-2xl {
        font-size: 1.3rem !important;
    }

    .asymmetric-text,
    .asymmetric-img {
        flex: 1 1 100%;
    }
}

/* Problem Section Layout Without Image */
.problem-centered-layout {
    max-width: 850px;
    margin: 0 auto;
}

.problem-list-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.problem-list-box::before {
    content: '!';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 140, 0, 0.03);
    pointer-events: none;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.problem-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.problem-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 4px;
}



/* Gallery Hover effect */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    /* Standardize size */
}

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


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

/* Gallery continuous scroll */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Table styling */
.menu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.menu-table th {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px;
    text-align: left;
    font-weight: 700;
}

.menu-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.menu-table tr:last-child td {
    border-bottom: none;
}

.menu-table tr:hover td {
    background-color: #f9f9f9;
}


/* SNS Buttons */
.sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}

.sns-line {
    background-color: #06C755;
    color: #fff;
}

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

/* GLightbox Fixes */
.glightbox-container .gclose {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    top: 20px;
    right: 20px;
}

.glightbox-container .gclose svg {
    width: 24px;
    height: 24px;
}

/* Ensure centering */
.glightbox-container .ginner-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glightbox-container .gslide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glightbox-container .gslide-image {
    max-height: 90vh !important;
    width: auto !important;
    margin: 0 auto;
}

/* Hide extra icons if any */
.gclose::before {
    display: none !important;
}

/* Scroll Animation */
.sh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}