/* ===================================== 
   TNS Inc. Inspired Design
   Minimal, Clean, Modern
   ===================================== */

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

:root {
    /* Color Palette - Minimalist */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-dark: #1a1a1a;
    --color-gray: #666666;
    --color-gray-light: #cccccc;
    --color-gray-lightest: #f5f5f5;
    --color-accent: #0066ff;
    --color-emergency: #ff3333;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --container-wide: 1400px;
    --section-padding: 120px 0;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 60px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.sp-only {
    display: none;
}

/* ===================================== 
   Header
   ===================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-lightest);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

/* ===================================== 
   Hero Section
   ===================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 74px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.95;
}

.btn-primary-large {
    display: inline-block;
    padding: 18px 50px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
}

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

.hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
    pointer-events: none;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.hero-nav-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-indicator.active {
    background: var(--color-white);
}

/* ===================================== 
   Section Headers
   ===================================== */
.section-header-minimal {
    margin-bottom: 80px;
}

.section-header-minimal.center {
    text-align: center;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.section-title-large {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--color-gray);
    margin-top: 20px;
}

/* ===================================== 
   Services Section
   ===================================== */
.services {
    padding: var(--section-padding);
    background: var(--color-gray-lightest);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    position: relative;
    background: var(--color-white);
    overflow: hidden;
    display: block;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

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

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.service-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    opacity: 0.9;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-emergency);
    color: var(--color-white);
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.service-info {
    padding: 35px 30px;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.service-description {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    min-height: 80px;
}

.service-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.service-card:hover .cta-arrow {
    transform: translateX(8px);
}

.service-emergency .service-title {
    color: var(--color-emergency);
}

.service-emergency .service-cta {
    color: var(--color-emergency);
}

/* ===================================== 
   Stats Section
   ===================================== */
.stats {
    padding: 100px 0;
    background: var(--color-gray-dark);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

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

.stat-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* ===================================== 
   About Section
   ===================================== */
.about {
    padding: var(--section-padding);
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-top: 60px;
}

.about-lead {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-description {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-feature-item {
    padding: 30px 0;
    border-top: 1px solid var(--color-gray-lightest);
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-label {
    font-size: 14px;
    color: var(--color-gray);
    letter-spacing: 1px;
}

/* ===================================== 
   Contact Section
   ===================================== */
.contact {
    padding: var(--section-padding);
    background: var(--color-gray-lightest);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.contact-method {
    text-align: center;
    padding: 60px 40px;
    background: var(--color-white);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-method h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-hours {
    font-size: 14px;
    color: var(--color-gray);
}

.contact-note {
    text-align: center;
    margin-top: 40px;
    color: var(--color-gray);
    font-size: 14px;
}

/* ===================================== 
   Footer
   ===================================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.5;
}

/* ===================================== 
   Scroll to Top
   ===================================== */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-top:hover {
    background: var(--color-gray-dark);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ===================================== 
   Responsive
   ===================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .container-wide {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .section-title-large {
        font-size: 42px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .sp-only {
        display: inline;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .container-wide {
        padding: 0 20px;
    }
    
    .nav {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background: var(--color-white);
        transition: var(--transition);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 50px 30px;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--color-gray-lightest);
        padding: 20px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title-large {
        font-size: 32px;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 40px 20px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .service-item:hover {
        padding-left: 20px;
    }
    
    .service-item:active {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .service-name {
        font-size: 24px;
    }
    
    .service-arrow {
        align-self: flex-end;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-image {
        height: 240px;
    }
    
    .service-description {
        min-height: auto;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}