/* 学校一覧フィルタ機能のスタイル */

.shgk-school-list-wrapper {
    margin: 20px 0;
}

.shgk-school-filter {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.shgk-school-filter h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.shgk-filter-search {
    margin-bottom: 20px;
}

.shgk-filter-search label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.shgk-school-name-filter {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.shgk-filter-group {
    margin-bottom: 15px;
}

.shgk-filter-group > label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.shgk-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.shgk-filter-checkboxes label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.shgk-filter-checkboxes input[type="checkbox"] {
    margin-right: 5px;
}

.shgk-filter-count {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
    color: #0073aa;
}

.shgk-filter-count span {
    font-size: 1.2em;
}

/* 学校カードの非表示時のアニメーション */
.shgk-school-card {
    transition: opacity 0.2s ease-in-out;
}

.shgk-school-card[style*="display: none"] {
    opacity: 0;
}

/* ========================================
 * SPAモード用スタイル
 * ======================================== */

/* SPAモード ローディング表示 */
.shgk-spa-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.shgk-spa-loading .shgk-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.shgk-spa-loading .shgk-loading-spinner .spinner {
    float: none;
    margin: 0;
}

.shgk-spa-loading p {
    margin: 0;
    font-size: 14px;
}

/* SPAモード カードのフェードインアニメーション */
.shgk-spa-mode .shgk-school-card {
    animation: shgkFadeIn 0.3s ease-out;
}

@keyframes shgkFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SPAモード 検索結果なし */
.shgk-spa-mode .shgk-no-schools {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}
