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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .company-name-en {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .tagline {
    font-size: 1.3em;
    margin-top: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通 */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 1s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* 事業内容カード */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.business-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.business-card:nth-child(1) { animation-delay: 0.1s; }
.business-card:nth-child(2) { animation-delay: 0.2s; }
.business-card:nth-child(3) { animation-delay: 0.3s; }

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.business-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.business-card h3 {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.business-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 会社情報セクション */
.company-info-section {
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }

.info-label {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content {
    font-size: 1.1em;
    color: var(--text-dark);
    font-weight: 500;
}

/* お問い合わせセクション */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* フッター */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 40px 20px;
    opacity: 0.9;
}

footer p {
    font-size: 0.95em;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* スクロールアニメーション用クラス */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2em;
    }

    .hero .company-name-en {
        font-size: 1.1em;
    }

    .hero .tagline {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .contact-email {
        padding: 15px 30px;
        font-size: 1em;
    }
}
