:root {
    --primary-red: #dc212f;
    --primary-blue: #1e90d1;
    --primary-yellow: #f4c91e;
    --primary-green: #34a853; /* Vibrant green for logo */
    --bg-light: #ffffff;
    --bg-card: #f8f8f8;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --font-main: 'Noto Sans JP', 'Inter', sans-serif;
}

/* Reset & Base */
*, body, p, span, a, h1, h2, h3, b, li {
    font-style: normal !important;
}

/* Exception: Yellow Neon Headings keep italics */
.neon-glow-text-yellow, .section-title-en {
    font-style: italic !important;
}

html {
    background-color: #000 !important;
}

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

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-wrapper {
    /* Darkened Concrete Texture Background */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/bg_blue_wall.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

/* Layout */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography Enhancements */
.italic { font-style: italic; }

/* Section Title Style (Sutou Style) */
.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-number {
    color: var(--primary-red);
    font-size: 24px; /* Global larger number */
    font-weight: 800;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 5px;
}

/* Global Section Heading Style */
section h2, .section-title-en, .section-title-jp {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-style: italic !important;
    font-weight: 900 !important;
    animation: rgb-glow 4s infinite linear; /* Added RGB Lighting Effect */
}

@keyframes rgb-glow {
    0% { text-shadow: 0 0 10px rgba(30, 144, 209, 0.8), 0 0 20px rgba(30, 144, 209, 0.4); }
    33% { text-shadow: 0 0 15px rgba(244, 201, 30, 0.8), 0 0 30px rgba(244, 201, 30, 0.4); }
    66% { text-shadow: 0 0 10px rgba(220, 33, 47, 0.8), 0 0 20px rgba(220, 33, 47, 0.4); }
    100% { text-shadow: 0 0 10px rgba(30, 144, 209, 0.8), 0 0 20px rgba(30, 144, 209, 0.4); }
}

.section-title-en {
    font-size: 50px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--primary-yellow); /* Solid color */
    position: relative;
}

@media (min-width: 768px) {
    .section-title-en {
        font-size: 80px;
    }
}

/* Ensure solid and italic for Japanese titles too */
.section-title-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-style: italic !important;
    font-weight: 900;
}

.section-title-jp {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff !important; /* Global White text */
    margin-top: 10px !important; /* Global Gap */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Global White RGB Glow */
    position: relative;
    z-index: 2;
}

/* Yellow RGB Text Glow for headings (Outline Style like MENU) */
.neon-glow-text-yellow {
    color: var(--primary-yellow) !important; /* Solid color */
    font-weight: 900;
    font-style: italic;
    animation: rgb-glow 4s infinite linear;
}

.neon-glow-text-white {
    color: #ffffff !important; /* Solid color */
    font-weight: 900;
    font-style: italic !important;
    animation: rgb-glow 4s infinite linear;
}

@media (max-width: 767px) {
    .section-title-en { font-size: 40px; }
    .section-title-jp { font-size: 18px; }
    .margin-section { padding: 50px 0; }
    #access.margin-section { padding-bottom: 0; } /* Remove bottom space for Access on mobile */
    .section-header { margin-bottom: 30px; }

    /* Remove italics from general mobile text, but KEEP it for headings and specific elements */
    /* Remove italics from general mobile text, but KEEP it for headings */
    p, span, a, b, li {
        font-style: normal !important;
        font-family: 'Noto Sans JP', sans-serif !important;
    }
    h1, h2, h3 {
        font-family: 'Noto Sans JP', sans-serif !important;
        font-style: italic !important;
    }
    .neon-glow-text-yellow, .section-title-en, .section-title-jp {
        font-style: italic !important;
    }
}

/* Deep Yellow RGB for specific sections */
#about .section-title-en,
#recommend .section-title-en,
#message .section-title-en {
    color: #ffcc00; /* Solid Deep Yellow / Gold */
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.7));
}

#menu .section-title-en {
    color: var(--primary-yellow); /* Solid standard yellow */
}

#trouble.margin-section {
    padding-top: 120px; /* Increased space above the Troubles heading */
}

/* Image Straightening Effect */
.border-4 {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.border-4:hover {
    transform: rotate(0) !important;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1024px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 1023px) {
    header { height: 70px; }
    .header-inner .text-logo { font-size: 28px; }
    .map-container { 
        min-height: 450px !important; 
        height: 450px !important;
    }
}

.nav-btn-pc {
    background: #000;
    color: #fff !important;
    border: 1px solid var(--primary-yellow);
    box-shadow: 0 0 10px rgba(244, 201, 30, 0.4);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.05em;
    transition: 0.3s;
    white-space: nowrap;
    min-width: 160px; /* Force same size */
    text-align: center;
}

.nav-btn-pc:hover {
    box-shadow: 0 0 20px rgba(244, 201, 30, 0.8), 0 0 5px #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.logo-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.logo-brand span {
    color: var(--primary-red);
    margin-left: 5px;
}

/* Custom Text Logo */
.text-logo {
    display: flex;
    align-items: center;
    font-weight: 700; /* Quicksand looks better bold for logos */
    font-family: 'Quicksand', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1;
}

.text-logo .char-m1, .mizumi-logo-text .char-m1 { color: var(--primary-blue); }
.text-logo .char-i1, .mizumi-logo-text .char-i1 { color: var(--primary-red); }
.text-logo .char-z, .mizumi-logo-text .char-z { color: var(--primary-yellow); }
.text-logo .char-u, .mizumi-logo-text .char-u { color: var(--primary-green); }
.text-logo .char-m2, .mizumi-logo-text .char-m2 { color: var(--primary-blue); }
.text-logo .char-i2, .mizumi-logo-text .char-i2 { color: var(--primary-red); }

.header-inner .text-logo {
    font-size: 38px;
}

footer .text-logo {
    font-size: 52px;
}

.hamburger-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 3000;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(220, 33, 47, 0.4);
}

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

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2500;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-link {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.mobile-nav-link:hover {
    color: var(--primary-red);
    text-shadow: 0 0 20px var(--primary-red);
}

.mobile-logo-large {
    font-size: 60px !important;
}

.mobile-neon-btn {
    box-shadow: 0 0 20px rgba(30, 144, 209, 0.6), 0 0 40px rgba(30, 144, 209, 0.4) !important;
    font-size: 18px !important;
}

.mobile-neon-btn:active {
    box-shadow: 0 0 40px rgba(30, 144, 209, 0.9), 0 0 60px rgba(30, 144, 209, 0.6) !important;
    transform: scale(0.98);
}

.access-neon-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid var(--primary-yellow) !important;
    box-shadow: 0 0 15px rgba(244, 201, 30, 0.6), 0 0 30px rgba(244, 201, 30, 0.3) !important;
    padding: 16px 20px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    font-style: italic;
    text-align: center;
    transition: 0.3s;
    display: block;
    width: 100%;
}

.access-neon-btn:hover {
    box-shadow: 0 0 30px rgba(220, 33, 47, 0.9), 0 0 50px rgba(220, 33, 47, 0.5) !important;
    /* Removed translateY to prevent movement as requested */
}

/* Voice Section Stylings */
.voice-card {
    background: #000000;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(30, 144, 209, 0.4);
    transition: 0.4s;
}

.voice-card h3 {
    color: #ffffff !important;
}

.voice-card p {
    color: #cccccc !important;
}

.voice-card .star-rating {
    color: #ffd700; /* Golden stars */
}

.voice-card:hover {
    box-shadow: 0 0 25px rgba(30, 144, 209, 0.7);
    transform: scale(1.02);
}

.voice-pagination {
    bottom: 0 !important;
}

.voice-pagination .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.voice-pagination .swiper-pagination-bullet-active {
    background: var(--primary-blue) !important;
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-blue);
}

/* First View */
.hero {
    margin-top: 80px; /* Explicit gap for fixed header */
    height: calc(100vh - 80px); /* Height minus header */
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .hero {
        margin-top: 70px;
        height: calc(100vh - 70px);
        min-height: 500px;
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); /* Slight darken instead of heavy white gradient */
}

.fv-bg-img {
    object-position: center;
}

@media (max-width: 767px) {
    .fv-bg-img {
        object-position: 25% center !important;
    }
}

.hero-content {
    z-index: 10;
    width: 100%;
}

/* New First View Redesign */
.fv-catch-wrapper {
    z-index: 100;
    position: relative;
    opacity: 0;
    animation: fv-slide-up 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

@keyframes fv-slide-up {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fv-logo-container {
    background: #fff;
    padding: 10px 30px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fv-logo-main {
    height: clamp(60px, 10vw, 100px);
    width: auto;
}

.fv-headline-main {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 0 5px 15px rgba(0,0,0,0.1);
}

.text-deep-blue {
    color: #003366 !important;
}

.fv-subheadline-main {
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 900;
    color: #f4c91e !important;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .fv-headline-main {
        margin-bottom: 25px;
    }
    .fv-subheadline-main {
        padding: 8px 15px;
        width: 100%;
        max-width: 340px;
    }
    .service-feature-card {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Worker Positions */
.fv-worker-left {
    position: absolute;
    bottom: -20px;
    left: clamp(0px, 2%, 10%);
    width: clamp(120px, 18vw, 240px);
    z-index: 120;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fv-worker-right {
    position: absolute;
    bottom: -20px;
    right: clamp(0px, 2%, 10%);
    width: clamp(120px, 18vw, 240px);
    z-index: 120;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Multi-colored text */
.char-red { color: #dc212f; }
.char-blue { color: #1e90d1; }
.char-yellow { color: #f4b400; }
.char-green { color: #0f9d58; }
.char-cyan { color: #00acc1; }
.char-orange { color: #fb8c00; }
.char-brown { color: #8d6e63; }

/* Service Redesign Styles */
#service {
    background-color: transparent; /* Reverted to original */
}

.service-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(30, 144, 209, 0.15); /* Blue RGB light effect */
    text-align: center;
    height: 100%;
    border: 2px solid var(--primary-blue) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-feature-card:hover {
    transform: translateY(-5px) scale(1.02); /* Reduced movement as requested */
    box-shadow: 0 20px 60px rgba(30, 144, 209, 0.4); /* Stronger RGB light effect on hover */
}

.service-num {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 28px;
    background: var(--primary-blue) !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(30, 144, 209, 0.8); /* Intensive RGB light effect */
    border: 3px solid #fff;
    transition: 0.3s;
}

.service-feature-card:hover .service-num {
    box-shadow: 0 0 40px rgba(30, 144, 209, 1);
    transform: translateX(-50%) scale(1.1);
}

.service-title-line {
    width: 100%;
    height: 1px;
    border-top: 1px dashed #dddddd;
    margin: 25px 0;
}

/* Badge Base */
.estimate-badge {
    position: absolute;
    top: 50px;
    left: 60px;
    width: 220px;
    height: 220px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-15deg);
    z-index: 20;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

/* SP Adjustments */
@media (max-width: 767px) {
    .fv-text-box { 
        padding: 40px 15px; 
        width: 85%; 
        border: none;
        clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
        border-radius: 0;
    }
    .fv-headline { font-size: 24px; }
    .fv-subheadline { font-size: 12px; }
    .fv-worker-left { width: 100px; left: -10px; bottom: -5px; }
    .fv-worker-right { width: 100px; right: -10px; bottom: -5px; }
    .estimate-badge { width: 110px; height: 110px; font-size: 15px; top: 10px; left: 10px; }
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-weight: 900;
    font-size: 18px;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn-red {
    background: var(--primary-red);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

@media (max-width: 767px) {
    .hero-cta-group { flex-direction: column; gap: 10px; width: 100%; }
    .btn-hero { width: 100%; padding: 15px 20px; font-size: 16px; }
    .splash-bubble { font-size: 24px; padding: 15px 25px; }
    /* Styles moved to main SP block above */
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* Cards & Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.neon-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

/* Specific styling for the Menu text box as requested */
#menu .neon-card {
    background: #000000 !important;
    border: 2px solid var(--primary-red) !important;
    box-shadow: 0 0 20px rgba(220, 33, 47, 0.4);
    color: #ffffff !important;
}

#menu .neon-card li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#menu .neon-card li span {
    color: var(--primary-red) !important; /* Keep bullets red for RGB vibe */
}

#menu .neon-card .bg-accent-blue {
    background: #000000 !important;
    border-bottom: 2px solid var(--primary-red);
    color: #ffffff !important;
}

.neon-card:hover {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

#menu .neon-card:hover {
    background: #000000 !important; /* Keep black on hover for Menu */
    box-shadow: 0 0 30px rgba(220, 33, 47, 0.7);
}

@media (max-width: 767px) {
    #recommend .flex-col { padding: 0; }
    #recommend .text-4xl { font-size: 28px; }
    #recommend .p-10 { padding: 30px 20px; }
}

.card-icon {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.card-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text {
    font-size: 14px;
    color: var(--text-gray);
}

/* Vertical Flow */
.flow-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 60px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(var(--primary-red), transparent);
}

.flow-num {
    flex: 0 0 80px;
    height: 80px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    z-index: 2;
}

.flow-num span { font-size: 12px; }
.flow-num b { font-size: 28px; line-height: 1; }

.flow-body h4 { color: var(--primary-blue) !important; }

@media (max-width: 767px) {
    .flow-step { gap: 15px; }
    .flow-num { flex: 0 0 60px; height: 60px; }
    .flow-num b { font-size: 20px; }
}

/* Floating CTA Bar */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 3000;
    height: 70px;
}

@media (min-width: 769px) {
    .bottom-cta {
        display: none !important; /* Hide on PC */
    }
}

.cta-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.cta-left { 
    background: #003366; /* Deep Blue */
    color: #fff; 
    border-top: 2px solid rgba(255,255,255,0.1);
}
.cta-right { 
    background: #ffffff; /* White */
    color: #000000; /* Black text */
    border-top: 2px solid rgba(0,0,0,0.05);
}

.cta-web-btn:hover {
    background: #ffffff !important;
    color: #003366 !important; /* Deep Blue */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4) !important;
}

/* Treadmill (Keep existing logic but styled) */
.treadmill-wrapper { overflow: hidden; }
.treadmill-track { display: flex; width: max-content; animation: treadmill 50s linear infinite; }
.treadmill-item {
    flex: 0 0 300px;
    margin-right: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}
@keyframes treadmill { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.top-btn-footer {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    line-height: 1;
    margin-bottom: -10px; /* Offset to sit nicely above bar */
    z-index: 10;
}

.top-btn-footer:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
}

/* Global Interaction: Straighten ONLY on direct hover of tilted element */
[class*="rotate-"]:hover,
[class*="-rotate-"]:hover,
.animate-float:hover div,
.animate-float-reverse:hover div {
    transform: rotate(0deg) !important; /* Removed scale(1.05) to prevent zoom */
    box-shadow: 0 0 30px rgba(30, 144, 209, 0.8);
    z-index: 100;
}

/* Base Tilted styles transition */
.animate-float, .animate-float-reverse, .relative {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.neon-glow-red {
    box-shadow: 0 0 10px rgba(220, 33, 47, 0.4);
    transition: 0.3s;
}

.neon-glow-red:hover {
    box-shadow: 0 0 20px rgba(220, 33, 47, 0.8);
    transform: translateX(10px);
}

/* Scroll Reveal Base */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Custom Map Overlay for Mobile */
.map-info-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    z-index: 10;
    width: calc(100% - 80px);
    max-width: 280px;
    pointer-events: auto;
}

.map-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #1a73e8;
    transition: background 0.2s;
}

.map-link-icon:hover {
    background: #f8f9fa;
}

/* Footer */
/* Footer Enhancements */
footer {
    padding: 60px 0 0; /* Removed bottom padding */
    background: #000; /* Rich black for better RGB contrast */
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    footer { 
        padding-top: 40px; 
        padding-bottom: 0; 
    }
}

@media (max-width: 767px) {
    footer { padding-top: 40px; } /* Further reduce space between map and footer info */
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

@media (max-width: 1023px) {
    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left .text-logo {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        align-items: flex-start;
    }
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-nav-btn {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    padding: 10px 10px; /* Reduced to horizontal spacing only */
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: none; /* Removed background */
    border: none; /* Removed border */
}

.footer-nav-btn:hover, .footer-nav-btn:active {
    background: none; /* Ensure no background on hover */
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 1);
    box-shadow: none; /* Removed box shadow */
    transform: translateY(-2px); /* Removed scale(1.1) */
}

.blue-glow-bar {
    width: 100%;
    height: 1px;
    background: var(--primary-blue);
    box-shadow: 0 0 20px var(--primary-blue), 0 0 40px var(--primary-blue), 0 0 60px var(--primary-blue); /* Stronger glow */
    margin: 30px 0 20px; /* Tighter margins */
    position: relative;
    opacity: 0.8;
}

.footer-copyright {
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding-bottom: 10px; /* Minimal padding for copyright */
}

@media (max-width: 767px) {
    .footer-copyright {
        padding-bottom: 75px; /* Space for mobile CTA bar */
    }
}

.mizumi-logo-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 900;
    margin: 0 2px;
    text-shadow: none; /* No RGB glow as requested */
    font-size: 14px; /* Same size as parent */
}

/* Schedule (Timeline) Styles */
.schedule-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 100px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 88px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-red), var(--primary-blue));
}

.schedule-item {
    position: relative;
    margin-bottom: 50px;
}

.schedule-time {
    position: absolute;
    left: -100px;
    top: 2px;
    width: 80px;
    text-align: right;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-yellow);
    font-style: italic;
    text-shadow: 0 0 10px rgba(244, 201, 30, 0.4);
    z-index: 5;
}

.schedule-time::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 100%;
    height: 8px;
    background: rgba(244, 201, 30, 0.4); /* Marker-style yellow bar */
    z-index: -1;
    transform: skewX(-15deg);
}

.schedule-dot {
    position: absolute;
    left: -19px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary-yellow);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-yellow);
}

.schedule-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-blue);
    transition: 0.3s;
}

.schedule-item:hover .schedule-content {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.schedule-content h4 {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 8px;
}

.schedule-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.top-btn.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .schedule-timeline {
        padding-left: 60px;
    }
    .schedule-time {
        position: relative;
        left: 0;
        text-align: left;
        margin-bottom: 10px;
        font-size: 18px;
    }
    .schedule-timeline::before {
        left: 19px;
    }
    .schedule-dot {
        left: -47px;
        top: 5px;
    }
    .schedule-content {
        padding: 15px;
    }
}

#service {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/strengths_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#voice {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/staffbg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-primary-yellow {
    color: var(--primary-yellow);
}
