/* ベーススタイル */
:root {
    --primary-color: #007bff; /* メインカラー */
    --secondary-color: #6c757d; /* セカンダリーカラー */
    --accent-color: #28a745; /* 強調色 */
    --text-color: #343a40; /* テキストカラー */
    --light-bg: #f8f9fa; /* 明るい背景色 */
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-family-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Roboto', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    overflow-x: hidden; /* 横方向のスクロールバーを非表示 */
}

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

/* テキストスタイル */
h1, h2, h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    text-align: center; /* 中央寄せ */
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    padding-top: 40px; /* ヘッダーとの間にスペース */
    padding-bottom: 20px;
}

h2 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 1.5em; /* セクション見出しの下にスペース */
}

h3 {
    font-size: 1.6em;
    font-weight: 500;
    color: var(--text-color); /* h3は通常テキスト色に */
}

p {
    margin-bottom: 1em;
}

strong {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ボタン */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background-color: #0056b3; /* 濃いめの青 */
    border-color: #0056b3;
}

.secondary-button {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.link-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.link-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ヘッダー */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky; /* スクロールしても追従 */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}


/* ハンバーガーメニューアイコン */
.hamburger {
    display: none; /* デフォルトでは非表示（PCでは使わないため） */
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* メニューより手前に表示 */
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { top: 18px; }

/* ハンバーガーメニューがアクティブになった時のアニメーション */
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* メインコンテンツのセクション共通スタイル */
section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* 軽い影 */
}

section:nth-of-type(even) { /* 偶数番目のセクションの背景色を変える */
    background-color: var(--light-bg);
}

.section-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #555;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.6)), url('https://via.placeholder.com/1600x600/007bff/ffffff?text=Your+Hero+Image') no-repeat center center/cover; /* 背景画像はあなたのサービスに合ったものに差し替えてください */
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-section h1 { /* ヒーローセクション内のH1は白に */
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* ベネフィットセクション */
.section-benefits .benefit-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-points .point-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-points .point-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.benefit-points .point-item img {
    width: 60px; /* アイコン画像のサイズ */
    height: 60px;
    margin-bottom: 20px;
}

.benefit-points .point-item h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: var(--primary-color);
}

/* 機能セクション */
.section-features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-grid .feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: left; /* 機能項目は左寄せ */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color); /* 左にアクセントライン */
    transition: border-color 0.3s ease;
}

.feature-grid .feature-item:hover {
    border-color: var(--accent-color);
}

.feature-grid .feature-item h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: left; /* 機能項目は左寄せ */
}

/* 導入事例セクション */
.section-casestudy .case-study-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.section-casestudy .case-study-card img {
    max-width: 150px; /* 導入事例画像のサイズ */
    height: auto;
    border-radius: 50%; /* 丸い画像に */
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.section-casestudy .case-study-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* FAQセクション */
.section-faq .faq-list {
    text-align: left; /* FAQは左寄せ */
    max-width: 800px;
    margin: 40px auto;
}

.faq-list dt {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
    color: var(--primary-color);
}

.faq-list dd {
    margin-bottom: 15px;
    padding-left: 10px;
}

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

/* CTAセクション */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 25px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* フッター */
.main-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .footer-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.main-footer .footer-links li {
    margin: 0 15px;
}

.main-footer .footer-links li a {
    color: var(--white);
}

.main-footer .footer-links li a:hover {
    color: var(--accent-color);
}


/* ==================================================================== */
/* レスポンシブデザイン（スマートフォン対応） */
/* ==================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-description {
        font-size: 1.2em;
    }

    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: block; /* スマホ表示時のみハンバーガーアイコンを表示 */
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* 初期状態では画面外に隠す */
        width: 70%; /* メニューの幅 */
        height: 100%;
        background-color: var(--primary-color); /* メニューの背景色 */
        padding-top: 80px; /* ヘッダーの高さ分スペースを空ける */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        z-index: 999; /* ハンバーガーアイコンより下 */
        overflow-y: auto; /* メニューが多い場合にスクロール可能に */
    }

    .main-nav.is-active {
        left: 0; /* アクティブ時にメニューを表示 */
    }

    .main-nav ul {
        flex-direction: column; /* 縦並びにする */
        padding: 0 20px;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 区切り線 */
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        color: var(--white);
        font-size: 1.2em;
        text-align: left;
    }
    .main-nav ul li a::after {
        display: none; /* スマホメニューでは下線アニメーションを無効に */
    }

    .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* メニューが開いている時のbodyのスクロールを無効化 */
    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-description {
        font-size: 1em;
    }
    .section-benefits .benefit-points,
    .section-features .feature-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }
}