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

/* Variables */
:root {
    --color-primary: #2563EB;
    --color-dark: #0F2A4D;
    --color-gray: #6B7280;
    --color-light: #F3F4F6;
    --color-amber: #F59E0B;
    --color-orange: #EA580C;
    --color-electric-blue: #2563EB;
    --color-black: #0A0A0A;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #1F2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
}

.logo-desktop {
    height: 36px;
    display: block !important;
}

.logo-mobile {
    height: 28px;
    display: none !important;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-orange) 100%);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #FBBF24 0%, var(--color-amber) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Hero */
.hero {
    padding: 10rem 0 8rem;
    background:
        linear-gradient(135deg, rgba(15, 42, 77, 0.97) 0%, rgba(10, 10, 10, 0.95) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(37, 99, 235, 0.05) 35px, rgba(37, 99, 235, 0.05) 70px);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    opacity: 0.92;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Services */
.services {
    padding: 6rem 0;
    background: #FAFAFA;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    padding: 2.5rem;
    background: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-electric-blue) 0%, var(--color-amber) 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.magazine-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--color-electric-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.magazine-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-electric-blue);
    transition: width 0.3s ease;
}

.magazine-link:hover {
    color: #1d4ed8;
}

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

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(180deg, #FAFAFA 0%, white 100%);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-container iframe {
    width: 100%;
    height: 800px;
    border: none;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
    color: white;
    text-align: center;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.footer p {
    opacity: 0.85;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Service Icons */
.service-card h3::before {
    display: block;
    font-size: 3rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:nth-child(1) h3::before {
    content: '🤖';
}

.service-card:nth-child(2) h3::before {
    content: '⚙️';
}

.service-card:nth-child(3) h3::before {
    content: '📰';
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .header {
        min-height: 60px;
    }

    .header .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .header .btn {
        display: none !important;
    }

    .logo {
        overflow: visible;
    }

    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
        height: 24px;
        max-width: 90vw;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .services {
        padding: 4rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact h2 {
        font-size: 1.6rem;
    }

    .form-container iframe {
        height: 1000px;
    }
}
