/* =========================================================================
 * Hennyu DB — テーマ強化スタイル（最後に読み込み）
 * トップ仕様の追加挙動だけを定義。元デザインのCSSは変更しません。
 * ====================================================================== */

/* 大学検索結果: 最初は非表示。検索ボタンで表示。 */
#hennyu-uni-results {
	display: none;
}
#hennyu-uni-results.is-visible {
	display: block;
}

/* 固定ヘッダーの下にアンカー先が隠れないようにオフセット。 */
#hennyu-faculty-tab,
.mainleft-results-heading,
[id^="subject-"],
#sec-uni-list,
#sec-strategy,
#sec-basics,
#sec-after {
	scroll-margin-top: 130px;
}

/* ページ内リンク/タブ移動をスムーズに。 */
html {
	scroll-behavior: smooth;
}

/* 検索ボタンの実行中状態。 */
.hennyu-uni-search.is-loading .mainleft-explorer-button button {
	opacity: 0.6;
	pointer-events: none;
}

/* =========================================================================
 * 詳細ページ（記事・大学・参考書）の背景色を #F2F3F4 に設定。
 * ポイント: .rt-article-section 自体は「透明」にし、ページ背景(body)を
 * グレーにする。こうしないとセクションのグレー背景がマージン相殺で
 * オレンジのヘッダーバナー(.article-header)を覆い、カード上部にグレーの
 * 隙間ができてしまう（カードが画像に重ならない不具合の原因）。
 * セクションを透明にすることで、オレンジのバナーがカードの上・左右に
 * 正しく見え、カードがバナーに重なって表示される。
 * 3テンプレ共通（記事・大学・参考書）に適用。
 * ====================================================================== */
.rt-article-section {
	background: transparent;
}
body.single-post,
body.single-book,
body.single-university {
	background: #F2F3F4;
}
/* デザイン専用レイアウト記事も、上記でオレンジバナー＋グレー背景になる。 */

/* =========================================================================
 * 地域検索：自由入力 → プルダウン(select)に変更。他の入力欄と同じ見た目に整える。
 * .mainleft-explorer-input 内に .mainleft-explorer-three-items で包み、
 * カスタム矢印(.mainleft-explorer-three-arrow)を表示する。
 * ====================================================================== */
.mainleft-explorer-input select {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 14px 40px 14px 18px;
	width: 100%;
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 16px;
	color: #555;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
.mainleft-explorer-input select:focus {
	border-color: #000;
}

/* =========================================================================
 * SP版 固定下部CTA（全ページ・スマホのみ）。緑バナー画像「無料受験相談に申し込む」。
 * ヘッダー上部ボタンと同じLINEへリンク。PCでは非表示。
 * ====================================================================== */
.hennyu-sp-cta { display: none; }
@media (max-width: 991px) {
	.hennyu-sp-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		line-height: 0;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.22);
	}
	.hennyu-sp-cta img {
		width: 100%;
		height: auto;
		display: block;
	}
	/* 固定CTA画像（比率 1720:368）ぶんの余白を確保。 */
	body {
		padding-bottom: calc(100vw * 368 / 1720);
	}
}
/* =========================================================================
 * フッター前CTA：公式LINE6大特典バナー（赤のadmissionと黒のfooterの間）。
 * ====================================================================== */
.hennyu-footer-cta {
	background: #ffffff;
	padding: 44px 0;
	text-align: center;
}
.hennyu-footer-cta__link {
	display: inline-block;
	width: 100%;
	max-width: 1000px;
	line-height: 0;
}
.hennyu-footer-cta__link img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}
@media (max-width: 767px) {
	.hennyu-footer-cta { padding: 28px 0; }
	.hennyu-footer-cta__link img { border-radius: 8px; }
}
/* =========================================================================
 * サイドバーCTA：バナー画像はカラム幅に収め、クリックでLINEへ遷移。
 * ====================================================================== */
.main-section-right-image a {
	display: block;
}
.main-section-right-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
/* =========================================================================
 * ハンバーガーメニュー：3カラムのナビ（実施大学／対策方法／インタビュー他）。
 * 各カラムの間に薄い縦線。見出しは「・」、子項目は「＞」。
 * ====================================================================== */
.sidebar-area-nav3 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
.sidebar-area-nav3 .sidebar-nav-col {
	flex: 1 1 0;
	min-width: 180px;
	padding: 4px 22px;
	border-left: 1px solid #e3e3e3; /* 薄い縦線 */
}
.sidebar-area-nav3 .sidebar-nav-col:first-child {
	border-left: none;
	padding-left: 2px;
}
.sidebar-area-nav3 .sidebar-nav-head {
	display: block;
	color: #ff6e00;
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.5;
	margin: 10px 0 6px;
}
.sidebar-area-nav3 .sidebar-nav-head::before {
	content: "・";
}
.sidebar-area-nav3 .sidebar-nav-col ul {
	list-style: none;
	margin: 2px 0 14px;
	padding: 0;
}
.sidebar-area-nav3 .sidebar-nav-col ul li {
	margin: 0;
}
.sidebar-area-nav3 .sidebar-nav-col ul li a {
	display: inline-block;
	color: #444;
	font-family: var(--font-family);
	font-size: 14px;
	padding: 4px 0;
}
.sidebar-area-nav3 .sidebar-nav-col ul li a::before {
	content: "＞";
	color: #9a9a9a;
	font-size: 12px;
	margin-right: 4px;
}
.sidebar-area-nav3 .sidebar-nav-head:hover,
.sidebar-area-nav3 .sidebar-nav-col ul li a:hover {
	text-decoration: underline;
}

/* ハンバーガーメニュー：トップページへのリンク（検索欄とナビの間）。
 * ナビ見出しと同じオレンジ「・」スタイルで統一。 */
.sidebar-nav-toplink {
	margin: 4px 0 6px;
	padding: 0 2px;
}
.sidebar-nav-toplink a {
	display: inline-block;
	color: #ff6e00;
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.5;
}
.sidebar-nav-toplink a::before {
	content: "・";
}
.sidebar-nav-toplink a:hover {
	text-decoration: underline;
}

/* スマホ：3カラムが縦積みになると flex の折り返しでカラム間に大きな余白が
 * できて「オレンジ項目の間が空きすぎ」て見えにくいので、単純な縦積み
 * （block）にして各項目の間隔を詰める。PC の3カラム表示はそのまま。 */
@media (max-width: 767px) {
	.sidebar-nav-toplink {
		margin: 0 0 2px;
	}
	.sidebar-area-nav3 {
		display: block;
		gap: 0;
		margin-top: 0;
	}
	.sidebar-area-nav3 .sidebar-nav-col:first-child .sidebar-nav-head {
		margin-top: 2px;
	}
	.sidebar-area-nav3 .sidebar-nav-col {
		border-left: none;
		padding: 0 2px;
	}
	.sidebar-area-nav3 .sidebar-nav-col:first-child {
		padding-left: 2px;
	}
	.sidebar-area-nav3 .sidebar-nav-head {
		margin: 6px 0 4px;
	}
	.sidebar-area-nav3 .sidebar-nav-col ul {
		margin: 0 0 6px;
	}
	.sidebar-area-nav3 .sidebar-nav-col ul li a {
		padding: 3px 0;
	}
}

/* =========================================================================
 * トップ検索欄：キーワード検索（サイト内全記事・体験談）＋ 区切り ＋
 * 大学情報フィルター（大学名・地域を横並び）。
 * ====================================================================== */
.mainleft-explorer form.hennyu-keyword-search {
	display: flex;
	flex-direction: row;
	gap: 12px;
	align-items: stretch;
	margin-top: 10px;
}
.hennyu-keyword-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 14px 18px;
	font-family: var(--font-family);
	font-size: 16px;
	color: #555;
}
.hennyu-keyword-search button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #3d2b1f;
	color: #fff;
	border: none;
	border-radius: 8px;
	min-width: 250px;
	padding: 0 28px;
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.hennyu-keyword-search button img {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}
.hennyu-keyword-note {
	margin: 8px 2px 0;
	font-family: var(--font-family);
	font-size: 12px;
	color: #999;
}
.hennyu-explorer-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	font-family: var(--font-family);
	font-size: 13px;
	margin: 18px 0;
}
.hennyu-explorer-divider::before,
.hennyu-explorer-divider::after {
	content: "";
	flex: 1 1 auto;
	border-top: 1px dashed #dcdcdc;
}
.hennyu-explorer-divider span {
	padding: 0 14px;
}
.mainleft-explorer-two {
	display: flex;
	gap: 16px;
}
.mainleft-explorer-two .mainleft-explorer-input {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}
/* 一番下の「検索」ボタン：白抜き（枠線）スタイル（デザイン画像準拠） */
.mainleft-explorer-button button {
	background: #fff;
	color: #421d00;
	border: 2px solid #421d00;
}
.mainleft-explorer-button button svg path {
	fill: #421d00;
}
.mainleft-explorer-button button:hover {
	background: #421d00;
	color: #fff;
}
.mainleft-explorer-button button:hover svg path {
	fill: #fff;
}
@media (max-width: 575px) {
	.mainleft-explorer-two { flex-direction: column; gap: 12px; }
	.hennyu-keyword-search button { min-width: 96px; padding: 0 16px; }
}

/* =========================================================================
 * 参考書ルートの一覧行：Figmaデザインに合わせる。
 * ・行全体をクリック→参考書詳細（見えないストレッチlink。行の枠装飾は打ち消す）
 * ・ジャンル＝オレンジ枠チップ、参考書名＝プレーンな濃色テキスト
 * ・区切りは薄い破線
 * ====================================================================== */
.single-arrow-list {
	position: relative;
	border-bottom-style: dashed;
	border-bottom-color: #d9d9d9;
}
/* 見えないオーバーレイ（style.css の .single-arrow-list a 装飾を打ち消す） */
.single-arrow-list a.single-arrow-stretch,
.single-arrow-list a.single-arrow-stretch:hover {
	position: absolute;
	inset: 0;
	z-index: 1;
	border: none;
	padding: 0;
	min-width: 0;
	border-radius: 0;
	background: transparent;
	overflow: hidden;
	text-indent: -9999px;
	white-space: nowrap;
}
/* 参考書名はプレーンな濃色テキスト（オレンジ枠チップにしない） */
.single-arrow-list span a,
.single-arrow-list span a:hover {
	border: none;
	padding: 0;
	min-width: 0;
	border-radius: 0;
	background: transparent;
	color: #231815;
	font-weight: 500;
}
.single-arrow-list span a:hover {
	text-decoration: underline;
}

/* =========================================================================
 * 離脱防止ポップアップ（ページ表示60秒後に表示）。中央モーダル＋暗いオーバーレイ。
 * ====================================================================== */
.hennyu-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
}
.hennyu-popup.is-open {
	display: block;
}
.hennyu-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}
.hennyu-popup__box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 560px);
}
.hennyu-popup__link {
	display: block;
	line-height: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	overflow: hidden;
}
.hennyu-popup__link img {
	width: 100%;
	height: auto;
	display: block;
}
.hennyu-popup__close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #222;
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	padding: 0;
}
.hennyu-popup__close:hover {
	background: #000;
}
@media (max-width: 575px) {
	.hennyu-popup__close {
		top: -14px;
		right: -6px;
		width: 36px;
		height: 36px;
		font-size: 22px;
		line-height: 36px;
	}
}

/* デザイン記事の科目別対策の表も、横に長い場合はスクロール可能に。 */
.rt-faculty-section { overflow-x: auto; }

/* =========================================================================
 * 記事本文のデザイン準拠 囲みパーツ（教育学部編入 記事ほか）
 *  - .hennyu-kv      … ラベル＋内容の2列ボックス（出題傾向／対策ポイント）
 *  - .hennyu-box     … 淡オレンジの囲み（パターン／ケース 等）
 *  - .hennyu-callout … 強調ボックス（チェックリスト／参考書カード）
 * ====================================================================== */
.rt-article-body .hennyu-kv {
	border: 1px solid #f0d8c4;
	border-radius: 8px;
	overflow: hidden;
	margin: 0 0 1.5em;
}
.rt-article-body .hennyu-kv-row { display: flex; }
.rt-article-body .hennyu-kv-row + .hennyu-kv-row { border-top: 1px solid #f0d8c4; }
.rt-article-body .hennyu-kv-label {
	flex: 0 0 132px;
	background: #ffe9d8;
	font-weight: 700;
	color: #231815;
	padding: 14px 16px;
}
.rt-article-body .hennyu-kv-val { flex: 1 1 auto; padding: 14px 16px; background: #fff; }

.rt-article-body .hennyu-box {
	background: #fff7f0;
	border: 1px solid #f3ddca;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 0 0 1em;
}
.rt-article-body .hennyu-box-title {
	font-weight: 700;
	color: #231815;
	font-size: 17px;
	margin: 0 0 10px;
}
.rt-article-body .hennyu-box > *:last-child { margin-bottom: 0; }

.rt-article-body .hennyu-callout {
	background: #fffaf5;
	border: 1px solid #ff6e00;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 0 0 1.5em;
}
.rt-article-body .hennyu-callout-title {
	font-weight: 700;
	color: #ff6e00;
	margin: 0 0 10px;
}
.rt-article-body .hennyu-callout > *:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
	.rt-article-body .hennyu-kv-row { flex-direction: column; }
	.rt-article-body .hennyu-kv-label { flex-basis: auto; }
}

/* =========================================================================
 * 記事カード・サムネイルの hover アニメーション
 *  - カード: ホバーで影を濃くする（浮き上がり感）
 *  - サムネイル画像: ゆっくり拡大（枠内でクリップ）
 *  ※ カード自体の transform は AOS(fade-up) と競合するため使わず、
 *    画像の transform と box-shadow のみで表現する。
 * ====================================================================== */
.article-post-box,
.mainleft-transfer-box {
	overflow: hidden;
	transition: box-shadow .3s ease;
}
.article-post-box > img,
.mainleft-transfer-box > img {
	display: block;
	/* 記事サムネイルの縦横比を常に 16:9（元デザインのカード画像＝
	 * article-post.png / transfer.png 等の比率）に固定する。アイキャッチ未設定や
	 * 'hennyu-card' の切り抜きが無くフルサイズ画像が返る場合でも、カードの
	 * 縦横比が元デザインから変わらないようにする（記事カードのみに限定）。 */
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s ease;
}
.article-post-box:hover,
.mainleft-transfer-box:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.article-post-box:hover > img,
.mainleft-transfer-box:hover > img {
	transform: scale(1.06);
}

/* トップ「最新記事」スライダーのサムネイル: 記事カードと同じ 16:9 に統一。
 * （'hennyu-card' が無くフルサイズ画像が返っても縦横比が崩れないように） */
.latest-slider .latest-item div:first-child img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: 5px;
}

/* ランキングの記事サムネイル: 行レイアウトのため画像のみ拡大 */
.uni-tra-ran-arti-card .single-tra-card { overflow: hidden; }
.uni-tra-ran-arti-card .single-tra-card img { transition: transform .5s ease; }
.uni-tra-ran-arti-card .single-tra-card:hover img { transform: scale(1.06); }

/* サイドバー「最新記事」サムネイル: 画像拡大 */
.main-section-right-box a div:first-child {
	overflow: hidden;
	border-radius: 6px;
}
.main-section-right-box a div:first-child img {
	display: block;
	width: 100%;
	transition: transform .5s ease;
}
.main-section-right-box a:hover div:first-child img {
	transform: scale(1.08);
}

/* 検索結果のタイトルはリンク化したので、元の見た目を維持。 */
.mainleft-results-items-left h4 a {
	color: inherit;
	text-decoration: none;
}
.mainleft-results-items-left h4 a:hover {
	color: #ff6e00;
}

/* 検索結果は基本デザインに合わせ、右側の「>」矢印カラムは表示しない。
 * 行全体がストレッチリンクで大学詳細へ遷移するため矢印は不要。
 * （元の style.css で .mainleft-results-items-right は display:none） */

/* 参考書詳細：Amazon購入ボタン（スプレッドシートのアマゾンリンク） */
.refe-boo-buy {
	margin-top: 16px;
}
.refe-boo-buy a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ff6e00;
	color: #fff;
	border-radius: 6px;
	padding: 10px 24px;
	font-family: var(--font-family);
	font-weight: 700;
	transition: 0.2s;
}
.refe-boo-buy a:hover {
	background: #e56300;
	color: #fff;
}

/* =========================================================================
 * 記事本文（the_content）の装飾 — H2 / H3 / H4・リスト・テーブル・引用など
 * 元デザイン（.main-section-heading h2、.custom-table）に合わせて統一。
 * ====================================================================== */
.rt-article-body {
	font-family: var(--second-family);
	font-size: 16px;
	line-height: 1.9;
	color: #231815;
	word-break: break-word;
}
.rt-article-body > *:first-child { margin-top: 0; }
.rt-article-body p { margin: 0 0 1.5em; }
.rt-article-body a { color: #ff6e00; text-decoration: underline; }
.rt-article-body a:hover { opacity: .8; }
.rt-article-body strong { font-weight: 700; }
.rt-article-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* =========================================================================
 * 記事アイキャッチ（サムネイル）の縦横比を維持する。
 * the_post_thumbnail() が出力する width/height 属性のまま高さが固定され、
 * スマホ等で横幅が縮むと画像が縦長に潰れる不具合を修正する（全記事に適用）。
 * ====================================================================== */
.rt-article-featured img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	border-radius: 8px;
}

/* H2：オレンジの左バー＋淡オレンジ背景（セクション見出しと統一） */
.rt-article-body h2 {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.5;
	color: #231815;
	border-left: 8px solid #ff6e00;
	border-radius: 4px;
	padding: 16px 24px;
	background: #ffebdc;
	margin: 2.2em 0 1em;
}
/* H3：細いオレンジバー */
.rt-article-body h3 {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.5;
	color: #231815;
	border-left: 5px solid #ff6e00;
	padding-left: 14px;
	margin: 1.8em 0 .8em;
}
/* H4：下線＋オレンジアクセント */
.rt-article-body h4 {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 17px;
	color: #231815;
	padding-bottom: 8px;
	border-bottom: 2px solid #eee;
	position: relative;
	margin: 1.6em 0 .8em;
}
.rt-article-body h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 2px;
	background: #ff6e00;
}

/* リスト */
.rt-article-body ul,
.rt-article-body ol {
	margin: 0 0 1.5em;
	padding-left: 1.6em;
}
/* テーマの ul{list-style-type:none} を打ち消して、記事本文のリストに点を出す。 */
.rt-article-body ul { list-style-type: disc; }
.rt-article-body ol { list-style-type: decimal; }
.rt-article-body li {
	margin: 0 0 .5em;
	padding-left: 4px;
}
.rt-article-body ul li::marker { color: #ff6e00; }
.rt-article-body ol li::marker { color: #ff6e00; font-weight: 700; }
.rt-article-body ul ul,
.rt-article-body ol ol { margin: .5em 0 0; }

/* 引用 */
.rt-article-body blockquote {
	margin: 0 0 1.5em;
	padding: 16px 20px;
	background: #FFFBF7;
	border-left: 4px solid #ff6e00;
	color: #555;
	border-radius: 0 6px 6px 0;
}
.rt-article-body blockquote p:last-child { margin-bottom: 0; }

/* テーブル（.custom-table の見た目を踏襲。スマホ横スクロール対応） */
.rt-article-body table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	margin: 0 0 1.5em;
	display: block;
	overflow-x: auto;
}
.rt-article-body th,
.rt-article-body td {
	border: 1px solid #F3F3F3;
	padding: 14px 16px;
	text-align: left;
	font-size: 15px;
	color: #231815;
	vertical-align: top;
}
.rt-article-body th {
	background: #F1F1F1;
	font-weight: 700;
	white-space: nowrap;
}
.rt-article-body tbody tr:nth-child(even) td { background: #FAFAFA; }

@media (max-width: 768px) {
	.rt-article-body h2 { font-size: 20px; padding: 12px 16px; }
	.rt-article-body h3 { font-size: 18px; }
}

/* =========================================================================
 * ① H1 / 見出し: スクリーンリーダー専用（視覚的に隠すが構造として認識させる）
 * ====================================================================== */
.hennyu-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================================
 * ④ カード全体をクリック可能に（ストレッチリンク）
 * ====================================================================== */
.mainleft-transfer-box,
.mainleft-results-items,
.article-post-box,
.single-tra-card { position: relative; }
.mainleft-transfer-stretch {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	text-indent: -9999px;
	white-space: nowrap;
}
.mainleft-transfer-box:hover { cursor: pointer; }
/* カード内の本来のリンク（タイトル・タグ・矢印）はオーバーレイより前面に保つ */
.mainleft-transfer-box-content a,
.mainleft-results-items-left a,
.mainleft-results-items-right a,
.article-post-box-content a,
.single-tra-card .contents-sing a { position: relative; z-index: 2; }

/* =========================================================================
 * ③ ブロックエディタ出力にも記事本文スタイルを適用（要素は h2/ul/table 等なので
 *    既存の .rt-article-body ルールが効くが、ブロック特有のラッパー余白を調整）
 * ====================================================================== */
.rt-article-body figure.wp-block-table { margin: 0 0 1.5em; }
.rt-article-body figure.wp-block-table table { margin: 0; }
.rt-article-body .wp-block-list { margin: 0 0 1.5em; padding-left: 1.6em; }
.rt-article-body figure.wp-block-image { margin: 0 0 1.5em; }
.rt-article-body figure.wp-block-image img { border-radius: 8px; }
.rt-article-body .wp-block-quote {
	margin: 0 0 1.5em;
	padding: 16px 20px;
	background: #FFFBF7;
	border-left: 4px solid #ff6e00;
	color: #555;
	border-radius: 0 6px 6px 0;
}

/* =========================================================================
 * ⑤ 長いリスト（その他の大学 等）を初期件数で絞り、「もっと見る」で展開
 * ====================================================================== */
.hennyu-hidden-item { display: none !important; }
.hennyu-more-wrap {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin: 16px 0 8px;
}
.hennyu-more-btn {
	background: #fff;
	border: 1px solid #ff6e00;
	color: #ff6e00;
	font-weight: 700;
	border-radius: 8px;
	padding: 10px 24px;
	cursor: pointer;
	font-family: var(--font-family);
	transition: 0.2s;
}
.hennyu-more-btn:hover { background: #ff6e00; color: #fff; }
.hennyu-more-link {
	color: #ff6e00;
	font-weight: 700;
	text-decoration: underline;
}

/* =========================================================================
 * ランキングのカテゴリチップ: ボタン全体をクリック可能にする
 * （従来は <a>（文字部分）だけがリンクで、余白はクリックできなかった）
 * ====================================================================== */
.uni-tra-cards-wp ul li { padding: 0; }
.uni-tra-cards-wp ul li a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 20px 12px;
	color: inherit;
}

/* =========================================================================
 * ページネーション: WordPress の出力（現在ページ = span.current、…= span.dots）に
 * デザインを正しく反映する。元CSSは <a> 前提で current/dots/前へ次へが未装飾だった。
 * ====================================================================== */
.mainleft-results-pagination { max-width: 560px; width: 100%; }
/* 前へ（左） / 数字（中央） / 次へ（右）に振り分け。 */
.mainleft-results-pagination .pagi-area {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}
.mainleft-results-pagination ul { margin: 0 auto; }
.mainleft-results-pagination .pagi-prev.is-disabled,
.mainleft-results-pagination .pagi-next.is-disabled {
	opacity: .3;
	pointer-events: none;
}
.mainleft-results-pagination ul li .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 28px;
	padding: 0 6px;
	border-radius: 50%;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 16px;
	color: #231815;
	background: transparent;
	text-decoration: none;
}
/* 既定の「先頭を常にオレンジ」を解除（現在ページのみ色付けする） */
.mainleft-results-pagination ul li:first-child a { color: #231815; background: transparent; }
.mainleft-results-pagination ul li a.page-numbers:hover,
.mainleft-results-pagination ul li .page-numbers.current {
	color: #fff;
	background: #ff6e00;
}
.mainleft-results-pagination ul li .page-numbers.dots { background: transparent; }
.mainleft-results-pagination .pagi-prev,
.mainleft-results-pagination .pagi-next {
	font-family: var(--font-family);
	font-size: 14px;
	font-weight: 600;
	color: #ff6e00;
	white-space: nowrap;
	text-decoration: none;
}
.mainleft-results-pagination .pagi-prev:hover,
.mainleft-results-pagination .pagi-next:hover { text-decoration: underline; }
/* AJAX検索結果のページネーション: リスト下に余白を確保し、リンクは指カーソルに。 */
.hennyu-search-pager { margin: 24px auto 8px; }
.hennyu-search-pager a.page-numbers,
.hennyu-search-pager .pagi-prev,
.hennyu-search-pager .pagi-next { cursor: pointer; }

/* =========================================================================
 * discover カード（学部/偏差値/キーワード/プロに相談する）の文字揃えを統一。
 * 既定は text-align:center で、ラベルが長い「キーワード」だけ「から探す」が
 * 中央寄りに見えていた。全カードを左揃えにして位置を揃える。
 * ====================================================================== */
.discover-area-items div:nth-child(2),
.discover-area-items .hennyu-lbl,
.discover-area-items p { text-align: left; }

/* =========================================================================
 * 大学別編入対策「その他◯◯大学」の10件ごとページ分け
 * ====================================================================== */
.hennyu-uni-pager-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 16px 0 8px;
}
.hennyu-uni-pager-nav button {
	background: #fff;
	border: 1px solid #ff6e00;
	color: #ff6e00;
	font-weight: 700;
	border-radius: 8px;
	padding: 8px 18px;
	cursor: pointer;
	font-family: var(--font-family);
	transition: 0.2s;
}
.hennyu-uni-pager-nav button:hover:not(:disabled) { background: #ff6e00; color: #fff; }
.hennyu-uni-pager-nav button:disabled { opacity: .35; cursor: default; }
.hennyu-uni-pageinfo { font-family: var(--font-family); font-weight: 600; color: #231815; }

/* =========================================================================
 * ハンバーガーメニュー: 画面の縦が短い端末（ノートPC等）で、メニュー下部の
 * 「大学群別」一覧やCTAボタン（編入体験談を見る／無料相談はこちら）が
 * 見切れてしまう。パネル内を縦スクロール可能にし、最下部に余白を足して
 * すべての項目・ボタンに到達できるようにする。
 * ====================================================================== */
.navSlidePanel {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.navSlidePanel .sidebar-area {
	padding-bottom: 56px;
}

/* =========================================================================
 * ページ下部CTA（home-admission）の講師画像が、直前のサイトマップ最下部リンク
 * 「外部試験スコア対策の記事一覧」に重なってクリックできない問題の修正。
 *  - 講師画像は装飾なのでクリックを透過させる（リンクを必ず押せるように）
 *  - CTAセクション上部に余白を追加し、視覚的にも重ならないようにする
 * ====================================================================== */
.home-admission-teacher { pointer-events: none; }
.home-admission { margin-top: 80px; }

/* =========================================================================
 * ヘッダー「無料相談をする」LINEボタン: ラベル短縮後、固定幅(270px)のせいで
 * ボタン右側が間延びして見える。内容に合わせて幅を詰める（中央寄せ）。
 * ====================================================================== */
.menu-area-right-button { flex: 0 0 auto; }
.menu-area-right-button a {
	width: auto;
	justify-content: center;
}
