/* ========================================
   グローバルスタイル
   ======================================== */

:root {
    --primary-color: #2d3748;
    --primary-dark: #1a202c;
    --primary-light: #4a5568;
    --secondary-color: #4a5568;
    --accent-color: #718096;
    --text-dark: #1a202c;
    --text-light: #718096;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-gray);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 20px auto 0;
}

/* ========================================
   ヘッダー
   ======================================== */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    background: #ffffff;
    color: var(--text-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.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(0,0,0,0.02)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.highlight {
    color: var(--text-dark);
    border-bottom: 4px solid var(--text-dark);
    padding-bottom: 5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
}

.hero-feature-item i {
    font-size: 1.3rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave path {
    fill: var(--bg-gray);
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--text-white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   サービス概要
   ======================================== */

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-image {
    flex: 0 0 300px;
    text-align: center;
}

.about-image i {
    font-size: 200px;
    color: var(--primary-color);
    opacity: 0.1;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    flex: 0 0 60px;
    height: 60px;
    background: var(--text-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.8rem;
}

.stat-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-light);
}

/* ========================================
   主な特徴
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--text-white);
}

.feature-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   活用シーン
   ======================================== */

.use-cases-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--text-dark);
    color: var(--text-white);
    border-color: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.use-case-detail {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.use-case-info {
    flex: 1;
}

.use-case-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.use-case-list {
    list-style: none;
    margin-bottom: 30px;
}

.use-case-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.use-case-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.use-case-industries h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.use-case-image {
    flex: 0 0 200px;
    text-align: center;
}

.use-case-image i {
    font-size: 150px;
    color: var(--primary-color);
    opacity: 0.15;
}

/* ========================================
   メリット
   ======================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.benefit-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--text-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-white);
}

.benefit-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   カスタマイズ
   ======================================== */

.customize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.customize-card {
    background-color: var(--bg-gray);
    padding: 35px 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.customize-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
}

.customize-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-white);
}

.customize-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* ========================================
   CTAセクション
   ======================================== */

.cta {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: var(--text-white);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.cta-feature i {
    font-size: 1.3rem;
    color: var(--text-white);
}

.cta .btn-primary {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--text-light);
    color: var(--text-white);
}

/* ========================================
   お問い合わせ
   ======================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method i {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.3rem;
}

.contact-method h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-method p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

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

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand i {
    font-size: 1.8rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   トップに戻るボタン
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-dark);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   アニメーション
   ======================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        display: none;
    }

    .use-case-detail {
        flex-direction: column;
        padding: 30px;
    }

    .use-case-image {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .benefits-grid,
    .customize-grid {
        grid-template-columns: 1fr;
    }

    .hero-features {
        gap: 15px;
    }

    .hero-feature-item {
        width: 100%;
        justify-content: center;
    }

    .use-cases-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }
}
