/* 学校一覧専用スタイル */
.school-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 20px 40px 20px; /* 上10 / 右20 / 下40 / 左20 */
}



.school-archive-header {
    margin-bottom: 10px;
    text-align: center;
}

.school-archive-title {
    font-size: 2.5em;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
    width: 100%;
}

.school-category-description {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* フィルターセクション */
.school-filters {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: block;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #495057;
}

.filter-btn:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
    text-decoration: none;
}

.filter-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}

/* 学校一覧 */
.school-list {
    margin-bottom: 40px;
}

.school-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    text-align: left;
}

/* --- カラムレイアウト --- */
.school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC・タブレット：3カラム */
    gap: 25px;
}

.school-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

.school-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.school-item-header {
    padding: 25px;
    margin-bottom: 0;
}

.school-item-image {
    width: 100%;
    height: 0;
    padding-bottom: 133.33%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.school-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-item-image .no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.school-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.school-item-tag {
    background: #e9ecef;
    color: #495057;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.school-item-tag.school-type {
    background: #d4edda;
    color: #155724;
}

.school-item-tag.area {
    background: #d1ecf1;
    color: #0c5460;
}

.school-item-tag.category {
    background: #fff3cd;
    color: #856404;
}

.school-item-tag.detail {
    background: #ffeaa7;
    color: #6c5ce7;
}

.school-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.school-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.school-item-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.school-item-meta-item::before {
    content: "📍";
    font-size: 12px;
}

/* ページネーション */
.school-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    color: #007cba;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #007cba;
    border-color: #007cba;
    color: white;
    text-decoration: none;
}

.page-numbers.current {
    background: #333;
    border-color: #333;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
}

/* パンくずナビゲーション */
.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.breadcrumb-nav .breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav .breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb a:hover {
    text-decoration: underline;
}

/* --- レスポンシブ対応 --- */

/* モバイル：2カラム */
@media (max-width: 767px) {
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 超狭スマホだけ：1カラム */
@media (max-width: 360px) {
    .school-grid {
        grid-template-columns: 1fr;
    }
}











/* PC & タブレット共通：3カラム */
.school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* モバイル：2カラム */
@media (max-width: 767px) {
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 超狭スマホだけ：1カラム */
@media (max-width: 360px) {
    .school-grid {
        grid-template-columns: 1fr;
    }
}

















.combo-search-links {
    display: flex;
    flex-direction: row;      /* 横並び */
    gap: 20px;                /* ボタン間の余白 */
    justify-content: center;  /* 中央寄せ */
    align-items: center;
    margin: 30px 0;
    padding: 0;               /* 余計な余白なし */
    background: none;         /* 背景色なし */
}

.combo-link {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.combo-link:hover {
    background: #007cba;
    color: #fff;
}

/* 最後のフィルターセクション（地域）だけ margin-bottom をなくす */
.school-filters .filter-section:last-of-type {
    margin-bottom: 0;
}

/* ボタンブロックとの余白を統一する */
.combo-search-links {
    margin-top: 20px; /* 就きたい仕事と同じくらいの余白に調整 */
}

/* ボタンブロックと検索結果リストの余白調整 */
.combo-search-links {
    margin-bottom: 10px; /* 下の余白を大幅に縮める */
}

/* 検索結果リスト上部の余白も調整 */
.school-list {
    margin-top: 10px; /* デフォルトで大きすぎる場合があるので縮める */
}


/* ✅ フィルターとボタンの下の余白を最小限に */
.school-filters {
    margin-bottom: 15px !important; /* 40px → 15px */
}

/* ✅ ボタン部分の下余白をさらに詰める */
.combo-search-links {
    margin: 10px 0 !important;  /* 上下 10px */
}

/* ✅ 検索結果リストとの間もゼロに近づける */
.school-list {
    margin-top: 5px !important; /* ほぼくっつけたいなら 0 でもOK */
}



/* モバイル専用の修正 */
@media (max-width: 768px) {
    .combo-search-links {
        flex-direction: column;   /* 縦並び */
        gap: 12px;                /* ボタン間の余白をコンパクトに */
        margin: 15px auto;        /* 上下余白も抑える */
        align-items: center;      /* 中央寄せ */
    }

    .combo-link {
        width: 90%;               /* スマホ幅に合わせる */
        max-width: 320px;         /* タブレット以上では伸びすぎ防止 */
        text-align: center;
        padding: 14px;            /* タップしやすいサイズ */
    }
}






/* フィルターボタンの幅調整 */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;   /* 左寄せで横いっぱいに */
    max-width: 100%;               /* コンテナ幅いっぱい */
}

/* 各ボタンをもう少し広げる */
.filter-btn {
    padding: 10px 22px;            /* ちょっと大きめ */
    font-size: 15px;
}





@media (max-width: 767px) {
  /* タイトルの上余白を縮める */
  .school-archive-title {
      margin-top: 5px;  /* もっと詰めたいなら 0 にしてもOK */
      font-size: 1.8em; /* 少し小さめに調整（任意） */
  }

  /* 見出しブロック全体の余白を調整 */
  .school-archive-header {
      margin-bottom: 20px; /* 下余白も軽く詰める */
  }
}







@media (max-width: 767px) {
  /* タイトル上の余白を詰める */
  .school-archive-header {
      margin-top: 0 !important;
      padding-top: 10px !important; /* 必要に応じて 0 まで詰めてもOK */
  }

  .school-archive-title {
      margin-top: 0 !important;
  }
}








/* すべてのフィルターボタンを共通スタイルに統一 */
.filter-section .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* 左から詰めて配置 */
}

/* ボタンの共通調整 */
.filter-section .filter-buttons .filter-btn {
    flex: 1 1 auto;     /* 伸縮可能 */
    min-width: 120px;   /* ボタン幅を確保 */
    max-width: 200px;   /* 広すぎ防止 */
    text-align: center;
}









@media (max-width: 767px) {
  /* コンテナの上余白を詰める */
  .school-archive-container {
      padding-top: 5px !important; /* デフォルトの40pxを上書き */
  }

  /* ヘッダー部分のマージン調整 */
  .school-archive-header {
      margin-top: 0 !important;
      padding-top: 0 !important;
  }

  /* タイトル自体のマージン調整 */
  .school-archive-title {
      margin-top: 0 !important;
  }
}













