/* /school/ 全国ランキング — school-ranking-mockup 準拠（:is(#tsu-school-archive, #tsu-front-top-ranking) スコープ）
 * メイン＋サイドバー共通の inner は max-width: 1200px（エリアページの .tsu-inner と同幅） */
:is(#tsu-school-archive, #tsu-front-top-ranking),
:is(#tsu-school-archive, #tsu-front-top-ranking) *,
:is(#tsu-school-archive, #tsu-front-top-ranking) *::before,
:is(#tsu-school-archive, #tsu-front-top-ranking) *::after {
  box-sizing: border-box;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  min-width: 0;
  max-width: 100%;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) a {
  color: inherit;
  text-decoration: none;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 32px 0 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-columns {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00aea2;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 2px;
  background: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 10px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 22px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid #e8e8e8;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat:last-child {
  border-right: none;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 1px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat-value span {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-right {
  display: flex;
  flex-direction: column;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-pr {
  text-align: right;
  font-size: 10px;
  color: #00aea2;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-main {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #b2e4df 0%, #7ecec6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #3aada5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-main--img {
  background-size: cover;
  background-position: center;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-main i {
  font-size: 36px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-main span {
  font-size: 12px;
  font-weight: 500;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-thumb {
  height: 72px;
  background: #e8f7f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: #aaa;
  font-size: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-thumb--img {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-gallery-thumb i {
  font-size: 18px;
  color: #9ed4cf;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs-wrap {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs-scroll {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}
body.tsu-school-archive-body :is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
body.tsu-school-archive-body :is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs {
  flex-wrap: nowrap !important;
  width: max-content !important;
}
body.tsu-school-archive-body :is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab {
  flex-shrink: 0 !important;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab:hover {
  color: #00aea2;
  background: #fafffe;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab.is-active {
  color: #00aea2;
  border-bottom-color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab .count {
  font-size: 11px;
  color: #bbb;
  font-weight: 400;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-tab.is-active .count {
  color: #00aea2;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .content-area {
  padding: 24px 0 60px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .content-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .content-main {
  min-width: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .content-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .content-sidebar .card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .content-sidebar .card-body {
  min-width: 0;
  overflow: visible;
}

/* ランキング見出し（絞り込みの直上・エリアページと同型） */
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-ranking-section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0 0 12px;
  padding: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-ranking-section-heading-num {
  font-weight: 800;
}

/* 絞り込み：エリアページ（area-page-mock）と同系の薄い緑 */
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-bar {
  background: #e8f7f5;
  border: 1px solid #c5ebe4;
  box-shadow: 0 1px 3px rgba(0, 174, 162, 0.12);
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-divider {
  width: 1px;
  height: 18px;
  background: #b8ddd6;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #555;
  border: 1px solid #c8e8e2;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-btn:hover {
  border-color: #00aea2;
  color: #00aea2;
  background: #f0fbfa;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-btn.is-active {
  background: #00aea2;
  color: #fff;
  border-color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-select {
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #c8e8e2;
  background: #fff;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  max-width: 200px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-select:focus {
  border-color: #00aea2;
  outline: none;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-reset {
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .filter-reset:hover {
  color: #00aea2;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* PC: カウントを左に、ボタンを右に（HTML順を逆転） */
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar-count {
  order: -1;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar-count {
  font-size: 13px;
  color: #888;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar-count strong {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-options {
  display: flex;
  gap: 4px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-opt {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  font-family: inherit;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sort-opt.is-active {
  color: #00aea2;
  border-color: #00aea2;
  background: #f0fbfa;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .pr-label {
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  border: 1px solid #ddd;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-index {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  padding: 12px 16px;
  margin-bottom: 14px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  margin-right: 4px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-btn:hover {
  background: #e8f7f6;
  color: #00aea2;
  border-color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .aiueo-btn.is-active {
  background: #00aea2;
  color: #fff;
  border-color: #00aea2;
}

/* ランキングカード（エリアページ area.php と同構造: rank-top-row + rank-bottom-row） */
:is(#tsu-school-archive, #tsu-front-top-ranking) .ranking-card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
  overflow: hidden;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .ranking-card.is-premium {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 0 2px #f4a800;
}
/* 上段：順位・画像・概要（画像はエリアページと同じ 260×168） */
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row {
  display: grid;
  grid-template-columns: 44px 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f5f5f5;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
  padding-top: 4px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num-wrap--standard-teal .rank-num:not(.r1):not(.r2):not(.r3) {
  color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num-wrap--standard-teal .rank-num-label {
  color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .ranking-card.is-premium .rank-num:not(.r1):not(.r2):not(.r3) {
  color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .ranking-card.is-premium .rank-num-label {
  color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .ranking-card.is-premium .rank-num-wrap--medal .rank-num-label {
  color: #ccc;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num-wrap--medal .rank-num {
  font-size: 34px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #ddd;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num.r1 {
  color: #d4af37;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num.r2 {
  color: #9e9e9e;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num.r3 {
  color: #a0714a;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-num-label {
  font-size: 9px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 1px;
  margin-top: 1px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-info {
  flex: 1;
  min-width: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4a800;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 3px;
  line-height: 1.3;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-name a {
  color: #1a1a1a;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-type {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-stars {
  color: #fbbc04;
  font-size: 15px;
  letter-spacing: 1px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-stars-fa {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 2px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-stars-fa .fa-star {
  color: #fbbc04;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-stars-fa .fa-regular.fa-star {
  color: #ddd;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-score {
  font-size: 17px;
  font-weight: 800;
  color: #222;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-review-count {
  font-size: 12px;
  color: #aaa;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tag--type {
  background: #e8f7f6;
  color: #00756e;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tag--school {
  background: #fff3e0;
  color: #b85c00;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tag--feat {
  background: #f0f0f0;
  color: #555;
}

/* 下段：詳細 + サイドCTA */
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-bottom-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-image {
  width: 260px;
  height: 168px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #f5f5f5;
  padding: 0;
  box-sizing: border-box;
  background: #eef8f7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-image-inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #c8ece9, #9ed4cf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #5db8b1;
  font-size: 12px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-image-inner a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-image-inner i {
  font-size: 32px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-detail {
  padding: 16px 18px;
  border-right: 1px solid #f5f5f5;
  min-width: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-intro {
  font-size: 13px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-schooling {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-schooling-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f5f5f5;
  color: #555;
  font-size: 11px;
  font-weight: 600;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-review-snippet {
  background: #f9fafb;
  padding: 10px 14px;
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  position: relative;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-review-snippet-q {
  font-size: 24px;
  color: #00aea2;
  opacity: 0.35;
  position: absolute;
  top: 2px;
  left: 8px;
  line-height: 1;
  font-family: Georgia, serif;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-review-snippet-text {
  padding-left: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-aside {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tuition-label {
  font-size: 10px;
  color: #aaa;
  font-weight: 700;
  margin-bottom: 1px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tuition-amount {
  font-size: 22px;
  font-weight: 800;
  color: #d63384;
  line-height: 1.1;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tuition-unit {
  font-size: 12px;
  color: #888;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-tuition-note {
  font-size: 10px;
  color: #bbb;
  margin-top: 2px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  background: #f4a800;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-cta-btn:hover {
  background: #d4920a;
  color: #fff;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #fff;
  color: #00aea2;
  border: 1.5px solid #00aea2;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-detail-btn:hover {
  background: #e8f7f6;
  color: #00aea2;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  margin-bottom: 16px;
  overflow: hidden;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .card-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .card-header i {
  color: #00aea2;
  font-size: 14px;
  width: 16px;
  text-align: center;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .card-body {
  padding: 18px 20px;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .flat-section {
  padding: 32px 0 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .flat-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .flat-section-title i {
  color: #00aea2;
  font-size: 15px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .section-subtext {
  font-size: 13px;
  color: #666;
  margin: -8px 0 16px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .flat-section-body {
  font-size: 13px;
  color: #444;
  line-height: 1.9;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .flat-section-body p + p {
  margin-top: 12px;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-item {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-q {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-badge-q {
  width: 20px;
  height: 20px;
  background: #00aea2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-a {
  padding: 8px 14px 13px;
  font-size: 13px;
  color: #444;
  line-height: 1.85;
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .faq-badge-a {
  width: 20px;
  height: 20px;
  background: #fff3e0;
  color: #f4a800;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta {
  background: linear-gradient(160deg, #1a1a2e 0%, #0e3460 100%);
  padding: 22px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 174, 162, 0.22) 0%, transparent 70%);
  border-radius: 50%;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-inner {
  position: relative;
  z-index: 1;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.5;
  margin-bottom: 8px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 6px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-sub {
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 16px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  background: #f4a800;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
  font-family: inherit;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-btn:hover {
  background: #d4920a;
  color: #fff;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .sb-cta-note {
  font-size: 10px;
  opacity: 0.4;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* サイドバー幅でも学校名が縦1文字化しないよう、番号＋（校名・学費の2行）グリッド */
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 9px 12px;
  background: #e8f7f5;
  border: 1px solid #c5ebe4;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-num {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  justify-self: center;
  align-self: center;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-num.n1 {
  background: #fff3e0;
  color: #e65100;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-num.n2 {
  background: #f3e5f5;
  color: #7b1fa2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-num.n3 {
  background: #e8f5e9;
  color: #2e7d32;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-num.nx {
  background: #f0f0f0;
  color: #999;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-school {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-school-link {
  color: inherit;
  text-decoration: none;
  display: inline;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-school-link:hover {
  text-decoration: underline;
  color: #00aea2;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .tuition-rank-price {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
  color: #d63384;
  white-space: normal;
  text-align: right;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .area-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  transition: all 0.2s;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .area-link-item:hover {
  background: #e8f7f6;
  color: #00aea2;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-section {
  width: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0e3460 100%);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 174, 162, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.5;
  margin-bottom: 12px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 10px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-sub {
  font-size: 14px;
  opacity: 0.72;
  margin-bottom: 28px;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 52px;
  background: #f4a800;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-btn:hover {
  background: #d4920a;
  color: #fff;
  transform: translateY(-2px);
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .cta-note {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.4;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-admin-edit {
  text-align: right;
  padding: 6px 12px 10px;
  font-size: 11px;
  background: #fafafa;
  border-top: 1px solid #eee;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-admin-edit a {
  color: #666;
  text-decoration: none;
}
:is(#tsu-school-archive, #tsu-front-top-ranking) .rank-admin-edit a:hover {
  color: #00aea2;
  text-decoration: underline;
}

:is(#tsu-school-archive, #tsu-front-top-ranking) .tsu-archive-empty {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: #666;
}

@media (max-width: 960px) {
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-image {
    display: none;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-bottom-row {
    grid-template-columns: 1fr 180px;
  }
}
@media (max-width: 860px) {
  :is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-columns {
    grid-template-columns: 1fr;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-right {
    display: none;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .content-columns {
    grid-template-columns: 1fr;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .content-sidebar {
    position: static;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-bottom-row {
    grid-template-columns: 1fr;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #f5f5f5;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-cta-btn,
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-detail-btn {
    flex: 1;
  }
  /* SP ソートバー: ボタン上・カウント下（HTML順のまま） */
  :is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar {
    flex-wrap: wrap;
    gap: 4px 0;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .sort-bar-count {
    order: 0;
    width: 100%;
  }
}
@media (max-width: 640px) {
  :is(#tsu-school-archive, #tsu-front-top-ranking) .area-ranking-section-heading {
    font-size: 16px;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-title {
    font-size: 20px;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .page-hero-stats {
    flex-direction: row;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .hero-stat {
    padding: 10px 14px;
  }

  /* SP カードレイアウト: 画像(上・全幅) → 順位＋情報(下・横並び) */
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 0 12px;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-image {
    display: block;
    order: -1;
    flex: 0 0 100%;
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-image .rank-image-inner {
    width: 100%;
    height: 180px;
    border-radius: 0;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-num-wrap {
    flex: 0 0 44px;
    padding: 10px 0 0 12px;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-top-row .rank-info {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px 0 8px;
  }

  /* SP カード下部: 学費(上・全幅) ／ ボタン×2(下・横並び) */
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f5f5f5;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-aside > div:first-child {
    grid-column: 1 / -1;
    text-align: right;
  }
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-cta-btn,
  :is(#tsu-school-archive, #tsu-front-top-ranking) .rank-detail-btn {
    flex: unset;
  }
}
