/* 基本的なリセットとフォント設定 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    color: #007bff; /* リンクの色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* ホバー時のリンクの色 */
    text-decoration: underline;
}

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

/* ヘッダー */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky; /* スクロールしても追従 */
    top: 0;
    z-index: 1000; /* 他の要素より手前に表示 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* 広めに設定 */
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
}

.site-logo a {
    color: #333;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* メニュー間のスペース */
}

.main-nav a {
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    position: relative; /* 下線アニメーション用 */
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}

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

.btn-primary-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap; /* ボタン内のテキストの改行を防ぐ */
}

.btn-primary-header:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* メインコンテンツのセクション共通スタイル */
section {
    padding: 80px 0; /* 上下の余白 */
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    display: inline-block; /* 下線のためにインラインブロック化 */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

.section-bg-light {
    background-color: #f0f4f7;
}

/* ヒーローセクション */
.hero {
    background-color: #e0f2f7; /* 明るい青緑系の背景 */
    color: #333;
    padding: 120px 0;
    position: relative;
    overflow: hidden; /* 背景模様がはみ出さないように */
}

/* 背景に模様を追加（例: CSS gradients） */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(255,255,255,0) 70%),
                linear-gradient(45deg, rgba(0,200,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-subheading {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #2c3e50;
}

.hero-title .pc-only {
    display: block; /* PCでは改行 */
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.btn-cta {
    display: inline-block;
    background-color: #28a745; /* 強調したい緑色 */
    color: #fff;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(40,167,69,0.3);
}

.btn-cta:hover {
    background-color: #218838;
    transform: translateY(-2px); /* 少し浮き上がるエフェクト */
    text-decoration: none;
}

.btn-large {
    font-size: 26px; /* より大きく */
}

.small-text {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
}

/* 課題解決セクション */
.problem-list, .solution-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.problem-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.problem-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.problem-item h3 {
    font-size: 24px;
    color: #dc3545; /* 問題点は赤系 */
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.problem-item h3::before {
    content: "?"; /* バツ印 */
    color: #dc3545;
    font-size: 28px;
    position: absolute;
    left: 0;
    top: -5px;
}

.problem-item p {
    font-size: 16px;
    color: #555;
}

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

.solution-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.solution-item img {
    width: 80px; /* アイコンのサイズ */
    height: 80px;
    margin-bottom: 20px;
}

.solution-item h3 {
    font-size: 24px;
    color: #28a745; /* 解決策は緑系 */
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.solution-item h3::before {
    content: "?"; /* チェックマーク */
    color: #28a745;
    font-size: 28px;
    position: absolute;
    left: 0;
    top: -5px;
}

.solution-item p {
    font-size: 16px;
    color: #555;
}

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

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left; /* テキストは左寄せ */
}

.feature-item img {
    max-width: 100%; /* 画像を親要素に合わせる */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee; /* 下線で区切り */
    padding-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: #555;
}

/* ご利用の流れセクション */
.flow-steps {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.flow-step {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1 1 calc(33% - 60px); /* 3列表示の基本 */
    max-width: 350px;
    position: relative;
    text-align: center;
}

.flow-step .step-number {
    background-color: #007bff;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -70px auto 20px; /* ボックスの上にはみ出すように配置 */
    border: 5px solid #f0f4f7; /* 背景色と同じボーダーで馴染ませる */
}

.flow-step h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.flow-step p {
    font-size: 16px;
    color: #555;
}

.btn-flow {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-flow:hover {
    background-color: #218838;
    text-decoration: none;
}

/* 導入事例セクション */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.voice-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
    position: relative;
}

.voice-item::before {
    content: "“"; /* 引用符の装飾 */
    font-size: 60px;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.voice-text {
    font-size: 17px;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 30px; /* 引用符のスペース確保 */
}

.voice-info {
    font-size: 15px;
    color: #777;
    text-align: right;
    font-weight: bold;
}

.btn-secondary {
    display: inline-block;
    background-color: #6c757d; /* グレー系 */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

/* FAQセクション (アコーディオン) */
.accordion {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: left;
}

.accordion-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* アコーディオンコンテンツの隠す部分 */
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background-color: #f7f7f7;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(45deg); /* 開いた時にバツ印に */
}

.accordion-content {
    max-height: 0; /* 初期状態で非表示 */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 20px 25px;
    color: #555;
    font-size: 16px;
    border-top: 1px solid #eee;
}

/* お問い合わせセクション */
.contact-form {
    max-width: 600px;
    margin: 50px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left; /* フォーム要素は左寄せ */
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.form-group textarea {
    resize: vertical; /* 縦方向のみリサイズ可能 */
    min-height: 120px;
}

.required {
    color: #dc3545; /* 必須項目は赤色 */
    font-size: 14px;
    margin-left: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* 最下部のCTAセクション */
.section-cta-bottom {
    background-color: #007bff;
    color: #fff;
    padding: 60px 0;
}

.section-cta-bottom .cta-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff; /* 親要素が白なので明示的に */
}
.section-cta-bottom .cta-title::after {
    display: none; /* 下線を非表示 */
}


.section-cta-bottom .cta-description {
    font-size: 20px;
    margin-bottom: 30px;
}

/* フッター */
footer {
    background-color: #2c3e50; /* 濃いめの背景色 */
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    color: #bbb;
}

/* レスポンシブデザインの調整 */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .btn-primary-header {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-title .pc-only {
        display: inline; /* スマホでは改行しない */
    }
    .section-title {
        font-size: 30px;
    }
    .problem-list, .solution-grid, .feature-grid, .voice-grid {
        grid-template-columns: 1fr; /* 1列表示に */
    }
    .flow-step {
        flex-basis: 100%; /* 1列表示 */
        max-width: 400px; /* 中央に寄せるための最大幅 */
    }
    .accordion-header {
        font-size: 16px;
        padding: 15px 20px;
    }
    .accordion-content p {
        padding: 15px 20px;
    }
    .section-cta-bottom .cta-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 32px;
    }
    .btn-cta {
        padding: 15px 30px;
        font-size: 20px;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* main1.css の既存のスタイルに追記 */

/* 導入事例セクションの概要説明 */
.section-voice .section-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* 個別事例への「詳細を見る」リンク */
.read-more-voice {
    display: block;
    text-align: right;
    font-size: 15px;
    color: #007bff;
    font-weight: bold;
    margin-top: 15px; /* 必要に応じて調整 */
    text-decoration: none;
}

.read-more-voice:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* レスポンシブ対応の調整（既存のメディアクエリ内に追加または新規作成） */
@media (max-width: 768px) {
    .section-voice .section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* 追加CSSファイルがある場合はここに追記するか、additional.cssに記載 */
/* .pc-only { display: block; } */
/* .sp-only { display: none; } */
/* @media (max-width: 768px) { .pc-only { display: none; } .sp-only { display: block; } } */