@charset "UTF-8";

/* border: 8px solid #D9E695; */
/* =============================================
   お悩みセクション（Problem）のスタイル
   ============================================= */
#Problem {
    width: 1200px;
    border: 8px solid #D9E695;
    border-bottom: none;
    padding: 3% 0;
}

/* お悩みセクション全体のコンテナ */
.problem-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* お悩みセクションのタイトル 薄いグリーン＋境界線*/
.problem-title {
    background: linear-gradient(135deg, #e8f5e8, #d4f1d4);
    color: #2d5016;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 50px;
    border: 2px solid #a8d8b9;
    box-shadow: 0 8px 25px rgba(90, 138, 90, 0.2);
}

/* お悩みボックス3つを並べる */
.problem-boxes {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/* 1つ1つのお悩みボックス */
.problem-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: calc(33.33% - 20px);
    /* height: 250px; <- 削除 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* マウスを乗せた時の効果 */
.problem-box:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* お悩みの絵文字 */
/*.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
} */

.problem-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 30px;
    /* 画像と下のテキストの間に余白を追加 */
    display: block;
    /* ブロック要素にして中央寄せしやすくする */
}

/* お悩みの見出し */
.problem-heading {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* お悩みの説明文 */
.problem-text {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 解決メッセージ 薄いグリーン＋境界線*/
.solution-message {
    background: linear-gradient(135deg, #d4f1d4, #e8f5e8);
    color: #2d5016;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid #a8d8b9;
    box-shadow: 0 8px 25px rgba(90, 138, 90, 0.2);
}

/* =============================================
   よくある質問セクション（Question）のスタイル
   ============================================= */

/* よくある質問セクション全体の囲み線*/
#Question {
    max-width: 1200px;
    border: 8px solid #D9E695;
    border-top: none;
    padding: 0 60px;
    border-bottom: none;
    padding-bottom: 3%;
    margin-top: -30px;
    /* 左右に余白を追加 */
}

/* よくある質問セクション全体のコンテナ */
.question-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* よくある質問のタイトル */
.question-title {
    text-align: center;
    color: #5a8a5a;
    font-size: 2.2em;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    padding-top: 3%;
}

/* 質問リスト全体 */
.question-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 1つ1つの質問ボックス */
.question-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(90, 138, 90, 0.08);
    border: 1px solid #e8f2e8;
    overflow: hidden;
}

/* マウスを乗せた時の効果 */
.question-item:hover {
    box-shadow: 0 6px 25px rgba(90, 138, 90, 0.12);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* 質問の上部分（質問番号と質問文） */
.question-header {
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #f8fcfa 0%, #f0f9f0 100%);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 質問番号（Q1、Q2など） */
.question-number {
    background: #a8d8b9;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* 質問の文章 */
.question-text {
    font-weight: 500;
    color: #4a4a4a;
    flex: 1;
    text-align: left;
    margin: 0;
}

/* 回答の文章 */
.answer-text {
    padding: 25px 25px 20px;
    color: #666;
    line-height: 1.7;
    font-size: 0.95em;
    text-align: left;
}

/* =============================================
   スマートフォン対応（画面幅768px以下）
   ============================================= */
@media (max-width: 767px) {

    /* コンテナの余白を調整 */
    .problem-container,
    .question-container {
        padding: 0;
    }

    #Problem {
        width: 515px;
        margin: 0 auto;
    }

    /* 新しく追加 */
    #Question {
        padding: 0 30px;
        padding-bottom: 3%;
    }


    /* お悩みボックスを縦に並べる */
    .problem-boxes {
        flex-direction: column;
        gap: 20px;
    }

    /* お悩みボックスの幅を100%に */
    .problem-box {
        width: 100%;
        /* height: 200px; <- 削除 */
    }

    /* 質問タイトルのサイズを調整 */
    .question-title {
        font-size: 1.8em;
    }

    /* 質問ヘッダーの余白を調整 */
    .question-header {
        padding: 18px 20px 15px;
    }

    /* 回答文の余白を調整 */
    .answer-text {
        padding: 20px 20px 18px;
    }
}


/* =============================================
   スマートフォン対応（画面幅480px以下）
   ============================================= */
@media (max-width: 402px) {

    /* 全体の余白を調整 */
    body {
        padding: 10px;
    }

    #Problem {
        width: 360px;
        margin: 0 auto;
    }

    /* お悩みボックスをさらに小さく */
    .problem-box {
        padding: 20px;
    }

    /* お悩みの見出しを小さく */
    .problem-heading {
        font-size: 1.1rem;
    }

    /* お悩みの説明文を小さく */
    .problem-text {
        font-size: 0.85rem;
    }

    #Question {
        padding: 0 15px;
    }

    /* 質問タイトルをさらに小さく */
    .question-title {
        font-size: 1.6em;
    }

    /* 質問ヘッダーの余白を調整 */
    .question-header {
        padding: 15px;
        gap: 12px;
    }

    /* 質問番号を小さく */
    .question-number {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }

    /* 質問文を小さく */
    .question-text {
        font-size: 0.95em;
    }

    /* 回答文を小さく */
    .answer-text {
        padding: 15px 15px 15px;
        font-size: 0.9em;
    }
}