/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/hello-elementor-child/
Description: Hello Elementor Child Theme
Author: Your Name
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementor-child
*/
/* Course Recommender Styles - Complete */



/* == Overall Container == */
#course-recommender-container {
    font-family: sans-serif; /* 基本フォント (テーマに合わせて調整) */
    color: #333;
    background-color: #f9f9f9;
    padding: 25px; /* 全体のパディング */
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* == Main Headings for Sections (e.g., "1. あなたの状態を...", "2. おすすめのコース") == */
#course-recommender-container > h3 { /* 直下のh3のみ対象 */
    font-size: 1.8em;
    color: #1a5084; /* テーマカラーに合わせて調整 */
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* == Filter Area == */
.filter-groups-wrapper {
    margin-bottom: 30px;
    /* PCではFlexコンテナになる (後述のメディアクエリで指定) */
}

.filter-group {
    margin-bottom: 25px; /* モバイルでのグループ間マージン */
    width: 100%; /* モバイルでは全幅 */
    background-color: #ffffff;
    padding: 20px; /* グループ内のパディング */
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    border: 1px solid #e9e9e9;
}

.filter-group h4 { /* 各フィルターグループのタイトル (学年、希望サポートなど) */
    font-size: 1.3em;
    color: #1a5084;
    margin-top: 0;
    margin-bottom: 18px; /* タイトルとオプション間のスペース */
    padding-bottom: 8px;
    border-bottom: 1px dashed #d0d0d0;
}

.filter-group label {
    display: block; /* 各オプションを縦に並べる */
    margin-bottom: 10px; /* オプション間のマージン */
    padding: 12px 15px; /* クリック/タップ領域を確保 */
    border-radius: 5px;
    background-color: #f7f9fc; /* オプション背景色 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid #e8e8e8; /* 通常時のボーダー */
    line-height: 1.5;
}

.filter-group label:hover {
    background-color: #eef3f8;
    border-color: #c0d0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
    margin-right: 12px;
    vertical-align: middle;
    transform: scale(1.15); /* 少し大きくしてタップしやすく */
    position: relative;
    top: -1px; /* 微調整 */
}

/* 選択されたオプションのスタイル */
.filter-group label:has(input:checked) { /* モダンブラウザ向け */
    background-color: #e0eef9; /* 選択時の背景色 */
    font-weight: 500; /* 少し太字に */
    border-color: #a8c5e0; /* 選択時のボーダー色 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) inset;
}
/* フォールバック (古いブラウザではJSでクラスを付与する必要がある場合) */
.filter-group label.checked-option {
    background-color: #e0eef9;
    font-weight: 500;
    border-color: #a8c5e0;
}

/* == Results Area == */
.results-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.results-section > h3 { /* 直下のh3のみ対象 (「2. おすすめのコース」) */
    font-size: 1.8em;
    color: #1a5084;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}


#recommended-courses-output {
    margin-top: 15px;
    /* フェードイン/アウト効果のため、初期状態はJSで制御 */
}

.recommended-courses-list {
    list-style-type: none;
    padding: 0;
}

.course-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px; /* コースアイテム内のパディング */
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.course-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* JSでコースをフィルタリングする際のフェードアウト用クラス (オプション) */
.course-item.fading-out {
    opacity: 0;
    transform: translateY(15px);
}

.course-item h4 { /* コース名 */
    font-size: 1.6em;
    color: #0073aa; /* リンクやアクセントカラー */
    margin-top: 0;
    margin-bottom: 12px;
}

.course-item p { /* コース説明 */
    font-size: 0.95em;
    line-height: 1.65;
    margin-bottom: 15px;
    color: #444;
}

.course-item h5 { /* 「主な内容」「料金イメージ」などの小見出し */
    font-size: 1.15em;
    color: #222;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 6px;
}

.course-item ul { /* 内容や料金詳細のリスト */
    list-style-type: disc; /* または check などアイコンフォントを使っても良い */
    padding-left: 22px;
    margin-bottom: 15px;
}

.course-item ul li {
    margin-bottom: 6px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 「このコースを問い合わせ候補にする」ラベルとチェックボックス */
.select-course-label {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background-color: #f0f8ff;
    border: 1px solid #cce0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    color: #005a87;
}

.select-course-label:hover {
    background-color: #e0f0ff;
    border-color: #b0c8dd;
}

.select-course-label input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 問い合わせ候補に選択されたコースのスタイル */
.course-item.selected-for-inquiry {
    background-color: #f0f8ff; /* 明るい青系の背景 */
    border-left: 5px solid #0073aa; /* 左側にアクセントボーダー */
    box-shadow: 0 5px 15px rgba(0,115,170,0.1);
}

/* == Action Area == */
.action-section {
    margin-bottom: 20px; /* 全体コンテナのパディングがあるので少し減らす */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center; /* ボタンを中央に配置する場合 */
}
.action-section > h3 { /* 直下のh3のみ対象 (「3. この内容で問い合わせる」) */
    font-size: 1.8em;
    color: #1a5084;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

#prepare-inquiry-button {
    display: inline-block;
    background-color: #0073aa; /* Elementorのデフォルトブルーに近い色 */
    color: white;
    padding: 14px 30px; /* 少し大きめに */
    border: none;
    border-radius: 5px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#prepare-inquiry-button:hover {
    background-color: #005a87; /* 少し濃い色に */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#prepare-inquiry-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-section p small {
    display: block;
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

/* == Responsive Design == */

/* PC表示 (タブレット横向き以上を想定) */
@media (min-width: 769px) {
    .filter-groups-wrapper {
        display: flex;
        align-items: flex-start; /* グループの高さが異なる場合、上端揃え */
        gap: 25px; /* グループ間の隙間を少し広めに */
    }

    .filter-group {
        flex: 1; /* 各グループが利用可能なスペースを均等に分け合う */
        min-width: 0; /* flex:1 と組み合わせることで、コンテンツに応じた伸縮をより良くする */
        margin-bottom: 0; /* 横並び時は下のマージン不要 */
    }
}

/* スマートフォン表示 (タブレット縦向き以下を想定) */
@media (max-width: 768px) {
    #course-recommender-container {
        padding: 15px; /* スマホでは全体のパディングを少し小さく */
    }

    #course-recommender-container > h3, /* メイン見出し */
    .results-section > h3,
    .action-section > h3 {
        font-size: 1.5em; /* スマホでは見出しを少し小さく */
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .filter-group {
        padding: 15px; /* グループ内パディングも少し小さく */
        margin-bottom: 20px; /* グループ間マージン */
    }
    .filter-group h4 {
        font-size: 1.2em; /* グループタイトルも少し小さく */
        margin-bottom: 12px;
    }
    .filter-group label {
        padding: 10px 12px; /* ラベルのパディング調整 */
        margin-bottom: 8px;
    }
    .filter-group input[type="radio"],
    .filter-group input[type="checkbox"] {
        transform: scale(1.1); /* スケールは維持または微調整 */
    }

    /* オプション: 「希望するサポート」など、オプションが多いグループのスクロール対応 */
    /* .filter-group.support-options-group { */ /* PHP側でこのクラスを付与した場合 */
        /* max-height: 250px; */ /* 例えばの高さを指定 */
        /* overflow-y: auto; */   /* 縦スクロールを有効に */
        /* border-top: 1px solid #ddd; */ /* スクロールエリア上部に区切り線 */
        /* border-bottom: 1px solid #ddd; */ /* スクロールエリア下部に区切り線 */
        /* padding-top: 10px; */
        /* padding-bottom: 5px; */
        /* background-color: #fdfdfd; */ /* スクロールエリアの背景を少し変えるなど */
    /* } */
    /* .filter-group.support-options-group label { */
        /* background-color: #fff; */ /* スクロールエリア内のオプション背景 */
        /* margin-left: -5px; */ /* 微調整 */
        /* margin-right: -5px; */ /* 微調整 */
    /* } */

    .course-item {
        padding: 15px; /* コースアイテムのパディングも調整 */
    }
    .course-item h4 { font-size: 1.4em; }
    .course-item p { font-size: 0.9em; }
    .course-item h5 { font-size: 1.1em; }

    #prepare-inquiry-button {
        width: 100%; /* ボタンを全幅に */
        text-align: center;
        padding: 15px; /* パディング調整 */
        font-size: 1.1em;
    }
}