:root {
    /* Color Palette - Refreshing Sky (Light Theme) */
    --bg-base: #f0f8fb; /* Light, airy sky blue-tinted white */
    --bg-surface: #ffffff;
    --text-primary: #1e293b; /* Readable dark slate */
    --text-secondary: #475569;
    --accent: #0284c7; /* Vibrant, refreshing clear blue */
    --accent-glow: rgba(2, 132, 199, 0.25);
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.85); /* Frost white */
    --glass-border: rgba(255, 255, 255, 0.9);

    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-Index */
    --z-loader: 9999;
    --z-header: 1000;
    --z-overlay: 10;
}

/* Reset & Base Config */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

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

/* Glassmorphism System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* Loader */
.loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    z-index: var(--z-loader);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(2, 132, 199, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: var(--z-header);
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary); /* Changed to dark for light theme when scrolled or normally */
}

/* When header is transparent over hero, text should be white */
.header:not(.scrolled) .logo a,
.header:not(.scrolled) .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Navigation Hover Indicator */
.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: #fff !important;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid transparent;
    text-shadow: none !important;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent) !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--text-primary);
}

.btn-outline .arrow {
    transition: transform 0.3s ease;
}

.btn-outline:hover .arrow {
    transform: translateX(5px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s ease;
}

.header:not(.scrolled) .mobile-menu-btn .bar {
    background: #ffffff;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--text-primary) !important;
}
.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transform-origin: center right;
}

.loaded .hero-bg {
    animation: kenBurnsHero 25s ease-out infinite alternate;
}

@keyframes kenBurnsHero {
    0% { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, 2%); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        var(--bg-base) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    color: #ffffff;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Text Reveal Animation */
.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px);
}

.loaded .reveal-text {
    animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loaded .reveal-fade {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.3s !important; }
.delay-3 { animation-delay: 0.5s !important; }

@keyframes revealText {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    color: var(--text-primary);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.scroll-text {
    font-size: 0.75rem;
    font-family: var(--font-display);
    letter-spacing: 0.2em;
}

/* Sections Global */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Fade Up Observer Class */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.about-info {
    padding: 50px 40px;
}

.about-heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.about-desc {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.company-profile dt {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.company-profile dd {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.company-profile dd:last-child {
    border-bottom: none;
    margin-bottom: 0; padding-bottom: 0;
}

.about-map {
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    position: relative;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.drone-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.drone-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}
.drone-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.about-link {
    margin-top: 30px;
}
.about-link .btn-outline {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}
.about-link .btn-outline:hover {
    background: var(--accent);
    color: #fff !important;
}

.about-map iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.services-grid {
    display: grid;
    /* Changed to auto-fill for 5 items to wrap nicely */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.card-content {
    padding: 35px 30px;
    flex-grow: 1;
    position: relative;
    background: transparent;
}

.badge {
    position: absolute;
    top: -45px;
    right: 25px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
    z-index: 2;
}

.service-card:hover .badge {
    color: #ffffff;
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Works Section */
.works-section {
    background: var(--bg-base);
}

.works-grid {
    display: grid;
    /* responsive 5 images: top 2, bottom 3 or just auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.works-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.works-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.works-item:hover img {
    transform: scale(1.08);
}

.works-sns {
    text-align: center;
    color: var(--text-primary);
}

.sns-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-sns {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff !important;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.btn-ig:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.3);
}

.btn-yt {
    background: #ff0000;
}
.btn-yt:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

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

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

.contact-bg-glow {
    position: absolute;
    top: 0; right: 0;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}

.contact-info-block {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.contact-phone {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 10px;
    letter-spacing: 0.05em;
}

.contact-wrapper {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form {
    padding: 60px 50px;
    background: var(--bg-surface);
    /* Make it pop nicely on the base back */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: #ef4444; /* Clean subtle red for light theme */
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8fafc; /* Very light slate */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    pointer-events: none;
    color: var(--text-secondary);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Ajax Status Message Display */
.form-status {
    margin-top: 20px;
    min-height: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    font-weight: 600;
}
.status-success {
    color: #10b981;
    background: #d1fae5;
    padding: 12px; border-radius: 6px;
}
.status-error {
    color: #ef4444;
    background: #fee2e2;
    padding: 12px; border-radius: 6px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--accent);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
}

/* Sending State Style */
.btn-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #ffffff;
    padding: 80px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

.footer-address {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0; right: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
        color: var(--text-primary) !important;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }
    
    .contact-form {
        padding: 40px 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
