@charset "UTF-8";
/* ============================================
   学校一覧 フィルター＋グリッド
   ============================================ */

/* フィルターエリア */
.sc-filter-wrap {
  margin: 0 0 2rem;
}
.sc-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.sc-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  min-width: 72px;
  flex-shrink: 0;
}
.sc-filter-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.5;
}
.sc-filter-btn:hover {
  border-color: #3bb143;
  color: #3bb143;
}
.sc-filter-btn.is-active {
  background: #3bb143;
  border-color: #3bb143;
  color: #fff;
}
.sc-filter-note {
  font-size: 0.78rem;
  color: #555;
  margin: 0.4rem 0 0;
  line-height: 1.6;
}

/* グリッド */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* カード */
.sc-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
}
.sc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.sc-card.is-hidden {
  display: none;
}

/* サムネイル */
.sc-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* カード本文 */
.sc-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sc-card__name {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.sc-card__name-en {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.6rem;
}

/* タグバッジ */
.sc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}
.sc-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sc-badge--pref {
  background: #e6f0fb;
  color: #1a5fa8;
}
.sc-badge--type-inter {
  background: #fff3e0;
  color: #b35c00;
}
.sc-badge--type-local {
  background: #e8f7ea;
  color: #2b8131;
}
.sc-badge--boarding {
  background: #f3e8ff;
  color: #6b3ec2;
}
.sc-badge--junior {
  background: #e0f4f4;
  color: #00695c;
}
.sc-badge--jpstaff {
  background: #fff8e1;
  color: #f57f17;
}

.sc-badge--ib {
  background: #e8f0fe;
  color: #1a56db;
}

/* 男女構成バッジ */
.sc-badge--boys {
  background: #e3f2fd;
  color: #1565c0;
}
.sc-badge--girls {
  background: #fce4ec;
  color: #c2185b;
}
.sc-badge--coed {
  background: #f1f1f1;
  color: #616161;
}

/* Read More リンク */
.sc-card__more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3bb143;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.sc-card__more::after {
  content: "→";
}

/* 件数表示 */
.sc-count {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1rem;
}
.sc-count span {
  font-weight: 700;
  color: #3bb143;
}

/* スマホ */
@media (max-width: 768px) {
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .sc-card__img { height: 120px; }
}
@media (max-width: 480px) {
  .sc-grid {
    grid-template-columns: 1fr;
  }
}

/* 表示切替ボタン */
.sc-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sc-count-row .sc-count { margin-bottom: 0; }
.sc-view-toggle {
  display: inline-flex;
  gap: 4px;
}
.sc-view-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: #888;
  transition: all .15s ease;
}
.sc-view-btn:hover { border-color: #3bb143; color: #3bb143; }
.sc-view-btn.is-active { background: #3bb143; border-color: #3bb143; color: #fff; }
.sc-view-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* リスト表示 */
.sc-grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sc-grid.is-list .sc-card {
  position: relative;
  flex-direction: row;
  align-items: center;
}
.sc-grid.is-list .sc-card__img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0.6rem 0 0.6rem 1rem;
}
.sc-grid.is-list .sc-card__body {
  flex: 1;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
}
.sc-grid.is-list .sc-card__name {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.sc-grid.is-list .sc-card__name-en { margin-bottom: 0.4rem; }
.sc-grid.is-list .sc-card__tags { margin-bottom: 0; }
.sc-grid.is-list .sc-card__more { display: none; }
.sc-grid.is-list .sc-card::after {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #3bb143;
  font-weight: 700;
}

/* リスト表示時は「州・タイプ・全寮制」以外のバッジを非表示 */
.sc-grid.is-list .sc-badge--junior,
.sc-grid.is-list .sc-badge--jpstaff,
.sc-grid.is-list .sc-badge--ib,
.sc-grid.is-list .sc-badge--boys,
.sc-grid.is-list .sc-badge--girls,
.sc-grid.is-list .sc-badge--coed {
  display: none;
}

@media (max-width: 480px) {
  .sc-grid.is-list .sc-card__img { width: 56px; height: 56px; margin: 0.5rem 0 0.5rem 0.6rem; }
  .sc-grid.is-list .sc-card__body { padding: 0.5rem 2rem 0.5rem 0.6rem; }
}

/* 並び替えセレクト */
.sc-count-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sc-sort-select {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #555 !important;
  background: #fff !important;
  border: 1.5px solid #ccc !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  height: 30px !important;
  line-height: 1.4 !important;
  cursor: pointer;
  max-width: 100%;
}
.sc-sort-select:focus {
  outline: none;
  border-color: #3bb143 !important;
}
@media (max-width: 480px) {
  .sc-count { font-size: 0.78rem; }
  .sc-sort-select {
    font-size: 0.74rem !important;
    padding: 4px 6px !important;
  }
}

/* ===== 冒頭コールアウトのモバイル圧縮 ===== */
@media (max-width: 600px) {
  .callout-wrap {
    padding: 0.8rem 0.85rem !important;
    margin-bottom: 1.2rem !important;
  }
  .callout-lead {
    font-size: 0.84rem !important;
    margin-bottom: 0.15rem !important;
  }
  .callout-sub { display: none !important; }

  .callout-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-top: 0.7rem !important;
  }
  .callout-card {
    padding: 0.7rem 0.6rem !important;
    margin: 0 !important;
  }
  .card-tag {
    font-size: 0.64rem !important;
    padding: 2px 6px !important;
    line-height: 1.5 !important;
  }
  .card-title {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
    margin: 0.45rem 0 0 !important;
  }
  .card-body { display: none !important; }
  .card-link {
    font-size: 0.72rem !important;
    margin-top: 0.5rem !important;
  }
}
@media (max-width: 480px) {
  .sc-filter-label {
    min-width: 58px !important;
    font-size: 0.74rem !important;
  }
  .sc-filter-btn {
    font-size: 0.74rem !important;
    padding: 4px 9px !important;
  }
  .sc-filter-group { gap: 0.4rem !important; }
}

/* ============================================
   フィルター2カラム＋こだわりチップ
   ============================================ */
.sc-filter-cols {
  margin-bottom: 0.5rem;
}
.sc-filter-cols .sc-filter-group { margin-bottom: 0.25rem; }

/* こだわり条件（複数選択トグル） */
.sc-filter-group--chips {
  align-items: flex-start;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(0,0,0,.12);
}
.sc-filter-group--chips .sc-filter-label { padding-top: 4px; }
.sc-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.5;
}
.sc-chip:hover { border-color: #3bb143; color: #3bb143; }
.sc-chip.is-active {
  background: #3bb143;
  border-color: #3bb143;
  color: #fff;
}
.sc-chip.is-active::before { content: "✓ "; }

/* リセット */
.sc-filter-reset {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: #999;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.sc-filter-reset:hover { color: #3bb143; }

/* APバッジ */
.sc-badge--ap {
  background: #fdecea;
  color: #c0392b;
}
.sc-grid.is-list .sc-badge--ap { display: none; }

@media (max-width: 480px) {
  .sc-chip {
    font-size: 0.74rem !important;
    padding: 4px 9px !important;
  }
  .sc-filter-group--chips { padding-top: 0.5rem; }
  .sc-filter-reset {
    margin-left: 0;
    width: 100%;
    text-align: right;
    font-size: 0.72rem;
  }
}

/* ============================================
   冒頭コールアウト（ベーススタイル）
   ※ 旧「ページ固有の追加CSS」から統合
   ============================================ */
.callout-wrap {
  border: 1.5px solid #d0e4f7;
  border-radius: 12px;
  padding: 20px 24px;
  background: #f8fbff;
  margin-bottom: 32px;
}
.callout-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: #4A90E2;
  font-weight: 700;
  margin-bottom: 4px;
}
.callout-sub {
  font-size: 13px !important;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}
.callout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .callout-cards { grid-template-columns: 1fr; }
}
.callout-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  padding: 16px 18px;
  transition: box-shadow .2s;
}
.callout-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.callout-card-blue  { background: #fff; border: 1px solid #b8d8f5; }
.callout-card-green { background: #fff; border: 1px solid #b2dfcc; }
.card-tag {
  font-size: 11px !important;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}
.tag-blue  { background: #ddeeff; color: #185FA5; }
.tag-green { background: #d4f0dd; color: #1a7a42; }
.card-title {
  font-size: 14px !important;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.card-title-blue  { color: #185FA5; }
.card-title-green { color: #1a7a42; }
.card-body {
  font-size: 12px !important;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}
.card-link {
  font-size: 12px !important;
  font-weight: 700;
}
.link-blue  { color: #4A90E2; }
.link-green { color: #27ae60; }

/* ============================================
   ページ個別のレイアウト調整
   ※ グリッド／コールアウトとは無関係
   ============================================ */
.pagetitle { display: none; }
