/* === 基本設定 === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
section {
    padding: 20px 20px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
}
h1, h2, h3 {
    line-height: 1.4;
    font-weight: bold;
}
h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    /* ★変更点: 見出しの下線の色を深い緑に変更 */
    border-bottom: 3px solid #01402E; 
    padding-bottom: 10px;
    display: inline-block;
}
.section-title-wrapper {
    text-align: center;
    margin-bottom: 20px;
}
ul {
    list-style: none;
    padding: 0;
}

/* === CTAボタン === */
.cta-button {
    display: inline-block;
    /* ★変更点: ボタンの背景を緑系のグラデーションに変更 */
    background: linear-gradient(90deg, #ffc107, #ff7d07);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.cta-button.sub {
    /* ★変更点: サブボタンの背景色を深い緑に変更 */
    background: #01402E;
    font-size: 16px;
    padding: 12px 30px;
}

/* === 1. ファーストビュー === */
.fv {
    /* SP用の背景画像を、指定のパスとファイル名で指定 */
    background-image: url('./img/fv-sp.webp'); 
    background-color: #01402E; /* 画像が読み込めない時のための背景色 */
    background-size: cover; /* 領域全体を覆うように画像を拡大・縮小 */
    background-position: center center; /* 画像を中央に配置 */
    position: relative; /* テキストを読みやすくするオーバーレイの基準点 */
    z-index: 1; /* オーバーレイより手前に表示 */
    
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

/* 画像の上に半透明の黒い膜をかけて文字を読みやすくする */
.fv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 0.3の部分で濃さを調整 */
    z-index: -1; /* 画像の背後に配置 */
}

/* 画面幅が769px以上（PC）の場合に画像を切り替え */
@media (min-width: 769px) {
    .fv {
        /* PC用の背景画像を、指定のパスとファイル名で指定 */
        background-image: url('./img/fv-pc.webp');
    }
}
.fv h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.fv p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}
.authority {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-weight: bold;
}
.authority i {
    margin-right: 8px;
    /* PDFの金色をイメージして黄色を維持 */
    color: #ffc107;
}

/* === 2. 悩み・共感 === */
#nayami ul li {
    font-size: 18px;
    padding: 10px;
    border-bottom: 1px dotted #ccc;
}
#nayami ul li::before {
    content: "✅";
    margin-right: 10px;
    /* ★変更点: チェックマークの色を深い緑に変更 */
    color: #01402E;
}

/* === 悩み・共感セクションの結論 === */
.section-conclusion {
    font-size: 23px; /* 文字の大きさを指定 */
    font-weight: bold; /* 文字を太字にする */
    text-align: center; /* 中央揃えにする */
    margin-top: 30px; /* 上のリストとの余白を調整 */
}
/* === 資料紹介セクション === */
 #document-intro .doc-container {
    display: flex;
    flex-direction: column; /* ★追加: 要素を縦並びにする */
    align-items: center; 
    gap: 40px; 
}

#document-intro .doc-image,
#document-intro .doc-description {
    flex: 1; /* スペースを均等に分け合う */
}

/* ★★★ここが重要★★★ */
#document-intro .doc-image img {
    max-width: 100%; /* 親要素の幅を最大とする */
    height: auto;    /* 高さは自動で調整して比率を維持 */
    display: block;  /* 画像下の余分な余白を消す */
    border-radius: 8px; /* 角を少し丸める */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 影をつけて立体感を出す */
}

#document-intro .doc-list {
    list-style: none;
    padding-left: 20px; /* 左側に20pxの余白を追加 */
}

#document-intro .doc-list li {
    padding-bottom: 18px;
	font-size: 18px;
    display: flex;
    align-items: flex-start;
}

.doc-lead {
    font-weight: bold;
    font-size: 23px; /* この行を追加 */
	text-align: center;
}

/* style.css に追記 */

.doc-preface {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 17px;
}

/* 「この資料で分かること」の見出しを調整 */
.doc-description h3 {
    text-align: center; /* 文字を中央揃えに */
    font-size: 25px;    /* 文字サイズを大きく（お好みで調整してください） */
}

#document-intro .doc-list i {
    color: #28a745;
    margin-right: 10px;
    margin-top: 5px;
}

/* === レスポンシブ対応 (スマホ) === */
@media (max-width: 768px) {
    #document-intro .doc-container {
        flex-direction: column; /* スマホでは縦並びに変更 */
    }
}

/* === 3. 問題提起 === */
#mondai {
    background-color: #e9ecef;
    text-align: center;
}
#mondai p {
    font-size: 18px;
}
#mondai strong {
    /* ★変更点: 強調文字の背景色を緑系に変更 */
    color: #01402E;
    background: linear-gradient(transparent 60%, #90EE90 60%);
}

/* === 5. 解決策の根拠 (3点セット) === */
.three-points {
    display: flex;
    flex-direction: column; /* アイテムを縦に並べる */
    align-items: center;   /* 中央揃えにする */
    gap: 30px;             /* アイテム間の隙間 */
}
.point-item {
    /* flex-basis: 30%; */ /* ← 横並び用の指定なので、この行を削除します */
   
    max-width: 900px;      /* ← この行を追加 */
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.point-item p {
    font-size: 20px; /* この数値で大きさを調整できます */
}
.point-icon {
    font-size: 48px;
    /* ★変更点: アイコンの色を深い緑に変更 */
    color: #01402E;
    margin-bottom: 15px;
}
.point-item h3 {
    font-size: 23px;
    /* ★変更点: 見出しの背景色を深い緑に変更 */
    background-color: #01402E;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 0;
}

/* === 6. サービス紹介 === */
.service-plans {
    display: flex;
    gap: 30px;
}
.plan {
    flex: 1;
    /* ★変更点: 枠線の色を深い緑に変更 */
    border: 2px solid #01402E;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.plan h3 {
    font-size: 24px;
    /* ★変更点: 見出しの色を深い緑に変更 */
    color: #01402E;
}
.plan ul {
    text-align: left;
    margin: 30px 0;
    padding-left: 0;
}
.plan ul li {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
}
.plan ul li i {
    margin-right: 10px;
    color: #28a745; /* アイコンの色は明るい緑を維持 */
    margin-top: 5px;
}

/* === 8. まとめ・フッター === */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.footer .cta-button {
    margin-top: 20px;
}
.copyright {
    margin-top: 40px;
    font-size: 14px;
    color: #ccc;
}

.cta-sp-only-section {
    display: none;
}

/* === レスポンシブ対応 (スマホ) === */
@media (max-width: 768px) {
    .fv h1 {
        font-size: 28px;
    }
    .fv p {
        font-size: 16px;
    }
    h2 {
        font-size: 24px;
    }
    .authority, .three-points, .service-plans {
        flex-direction: column;
    }
    .authority {
        gap: 15px;
    }
	.cta-sp-only-section {
        display: block; /* 非表示を解除して表示する */
        padding: 10px 20px 30px; /* 上下の余白 */
        text-align: center; /* ボタンを中央揃えに */
    }

    /* ボタンの文字サイズを少し小さくしてスマホに最適化 */
    .cta-sp-only-section .cta-button {
        font-size: 18px; 
        padding: 15px 30px;
    }
}


/* ▼▼▼ ここから追加 ▼▼▼ */

/* 2カラムレイアウト用スタイル */
.main-layout-wrapper {
    display: block; /* スマホではブロック表示 */
    padding: 20px 0;
}

.form-sidebar #form-section {
    padding-top: 20px;
}

.form-sidebar h3 {
    text-align: center;
    font-size: 22px;
    /* ★変更点: フォーム見出しの背景色を深い緑に変更 */
    background-color: #01402E;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: 0 -20px; /* sectionのpaddingを相殺 */
}

/* PC用のスタイル（画面幅992px以上で適用） */
@media (min-width: 992px) {
    .main-layout-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* 上揃え */
        max-width: 1200px; /* 全体の幅を広げる */
        margin: 0 auto;
        gap: 20px; /* カラム間の隙間 */
        padding: 10px 20px;
    }
    
    .main-content {
        flex: 1; /* 残りのスペースを埋める */
        min-width: 0;
    }

    .form-sidebar {
        flex-basis: 420px; /* フォームの幅を固定 */
        position: sticky; /* スクロールに追従 */
        top: 20px; /* 上からの位置 */
    }

    /* PC表示のとき、メインコンテンツ内のsectionは元のcontainer幅に合わせる */
    .main-content section {
        max-width: 900px;
    }
	/* ▼▼▼ ここに追加します ▼▼▼ */
    .sp-only {
        display: none;
    }
}

/* === フッターの運営者情報 === */
.company-info {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #6c757d; /* 上に区切り線を入れる */
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
}
.company-info p {
    margin: 5px 0;
}
.company-info a {
    color: #fff;
    text-decoration: underline;
}
.company-info a:hover {
    text-decoration: none;
}