﻿/* =========================================
   Reset & Variables
   ========================================= */
:root {
    --primary-color: #003366;
    /* Deep Navy - Trust/Professional */
    --accent-color: #FFA500;
    /* Orange/Gold - Warmth/Welfare */
    --accent-hover: #e69500;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 51, 102, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 51, 102, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 51, 102, 0.15);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ja-title {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.05em;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-contact:hover {
    background-color: #002244;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.text-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.text-link:hover::after {
    width: 100%;
}

.text-link:hover {
    color: var(--accent-color);
}

/* =========================================
   Header
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav a:not(.btn):hover {
    color: var(--accent-color);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: 0;
    transform: scale(1.05);
    /* Simple Ken Burns effect ideally needs JS or keyframes */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(0, 30, 60, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 2;
    opacity: 0.9;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-tagline {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
}

/* =========================================
   Philosophy Section
   ========================================= */
.philosophy {
    background-color: var(--bg-light);
    background-image: linear-gradient(to right, #f1f3f5 50%, #fff 50%);
}

.philosophy-container {
    display: flex;
    justify-content: center;
}

.philosophy-content {
    background-color: #fff;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    text-align: center;
}

.philosophy-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.philosophy-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.philosophy-body strong {
    color: var(--accent-color);
    font-weight: 700;
}

.philosophy .btn-outline {
    margin-top: 20px;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #002244;
    /* Darker Navy */
    color: #fff;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.footer-brand address {
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* =========================================
   Detailed Services Sections
   ========================================= */
.service-details-container {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-detail {
    scroll-margin-top: 100px;
}

.detail-header {
    margin-bottom: 60px;
}

.detail-subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.detail-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* B-Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.work-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.work-icon img {
    width: 50px;
    height: auto;
}

.work-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.work-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* B-Tech Section */
.tech-section {
    background-color: #f8faff;
    padding: 60px;
    border-radius: 20px;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.tech-feature:last-child {
    margin-bottom: 0;
}

.tech-feature.reverse {
    flex-direction: row-reverse;
}

.tech-content {
    flex: 1;
}

.tech-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tech-feature:hover .tech-image img {
    transform: scale(1.03);
}

.tech-content h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tech-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.tech-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* B-Select Section */
.select-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}


/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .philosophy {
        background: var(--bg-light);
    }

    .philosophy-content {
        padding: 40px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        /* Stack on very small screens */
        gap: 30px;
        width: 100%;
    }

    .mobile-break {
        display: none;
    }

    /* Detailed Services Responsive */
    .works-grid,
    .select-gallery {
        grid-template-columns: 1fr;
    }

    .tech-section {
        padding: 40px 20px;
    }

    .tech-feature,
    .tech-feature.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .tech-image {
        width: 100%;
        max-height: 250px;
    }

    .detail-title {
        font-size: 2rem;
    }

    .tech-list {
        text-align: left;
        display: inline-block;
    }
}

/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
#privacy {
  padding: 60px 0;
  background-color: #f9f9f9;
}
