/* =========================================================
   ブログまわりの共通（記事 single・一覧 archive・ブログ一覧 news）
   旧 Elementor の 1050・1084・22 と Elementor Pro の投稿部品・旧テーマ（hello-elementor）の値を写している
   ========================================================= */

/* ---------- 2列の段（旧：ボックス 1200px、左 66.666%・右 33.333%。部品どうしの間は 20px） ---------- */
.blog-body__inner { display: flex; max-width: 1200px; margin: 0 auto; }
.blog-main { width: 66.666%; min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; }
.blog-main > * { width: 100%; }
.blog-main > *:not(:last-child) { margin-bottom: 20px; }

/* 一覧・ブログ一覧の見出し（「記事一覧」・カテゴリー名）：最後の部品なので線の下の余白はなし */
.blog-head .sec-line { margin-bottom: 0; }

/* ---------- 右の欄（淡い緑・角丸 5px・影） ---------- */
.blog-side { width: 33.333%; display: flex; }
.blog-side__box {
	width: 100%;
	margin-left: 50px;
	padding: 20px;
	display: flex; flex-wrap: wrap; align-content: flex-start;
	background-color: var(--c-pale);
	border-radius: 5px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
}
.blog-side__box > * { width: 100%; }
.blog-side__box > *:not(:last-child) { margin-bottom: 20px; }
.blog-side__title { margin: 0; padding: 0; font-size: 1em; font-weight: bold; line-height: 1.6em; color: var(--c-text); }
/* 最近の投稿（10件・題だけ） */
.side-recent { display: grid; grid-template-columns: 1fr; row-gap: 10px; padding: 20px; }
.side-recent__item { display: flex; flex-direction: column; overflow: hidden; }
.side-recent__title { margin: 0; font-size: 1em; font-weight: normal; line-height: 1.2em; color: var(--c-primary); }
.side-recent__title a { color: var(--c-primary); }
/* Category（旧：カテゴリーのウィジェット＋独自 CSS .cate） */
.cate { font-size: .9em; line-height: 1.5em; }
.cate ul { margin: 0; padding-left: 20px; list-style-type: none; font-size: 1em; }
.cate li { margin: 0; }

/* ---------- 記事のカード（旧：Elementor Pro の投稿部品 cards） ---------- */
.post-cards { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 50px; row-gap: 35px; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__card {
	position: relative;
	display: flex; flex-direction: column;
	width: 100%; min-height: 100%;
	overflow: hidden;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
	transition: all .25s;
}
.post-card__card:hover { box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }
/*
 * 写真：枠の縦横比は padding で決め、写真は真ん中に置いて少し拡大（旧と同じ。.is-ratio のとき）
 * 旧サイトでは、1ページに収まる一覧（カテゴリー News・コラム・受験スケジュール、タグなど）だけ Elementor の JS が止まっていて
 * 写真が切り抜かれず、上に写真・下に余白の形で出ていた。それも同じにする（.is-ratio なし）
 */
.post-card__thumb-link { position: relative; display: block; width: 100%; margin-bottom: 20px; }
.post-card__thumb-link::after {
	content: ""; display: block;
	position: absolute; bottom: 0; width: 100%; height: 100%;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 75%);
	background-repeat: no-repeat;
	opacity: 1; transition: all .3s ease-out;
}
.post-card__card:hover .post-card__thumb-link::after { opacity: .5; }
.post-card__thumb { position: relative; overflow: hidden; transform-style: preserve-3d; padding-bottom: 66%; }
.post-card__thumb img { display: block; width: calc(100% + 1px); height: auto; max-width: none; max-height: none; transition: filter .3s; }
.is-ratio .post-card__thumb img { position: absolute; top: calc(50% + 1px); left: calc(50% + 1px); transform: scale(1.01) translate(-50%, -50%); }
.is-ratio .post-card__thumb.is-fit-h img { width: auto; height: 100%; }
/* カテゴリーの札（右上） */
.post-card__badge {
	position: absolute; top: 0; right: 0;
	margin: 20px; padding: .6em 1.2em;
	border-radius: 999px;
	font-size: 12px; font-weight: 400; line-height: 1;
	color: var(--c-white); background-color: var(--c-secondary);
	text-transform: uppercase;
}
.post-card__text { display: block; flex-grow: 1; margin-top: 20px; padding: 0 30px; }
.post-card__title { margin: 0 0 25px; font-family: var(--ff); font-size: 1em; font-weight: bold; line-height: 1.6em; color: var(--c-text); }
.post-card__title a { color: var(--c-text); }
.post-card__excerpt { margin-bottom: 25px; line-height: 1.7; }
.post-card__excerpt p { margin: 0; font-size: .9em; line-height: 1.5em; color: #777; }
.post-card__more { display: inline-block; margin-bottom: 20px; font-size: .9em; font-weight: 700; line-height: 1.5em; color: var(--c-primary); text-transform: uppercase; }
.post-card__meta { margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea; font-size: .8em; line-height: 1.5em; color: #adadad; }
/* 記事が1つもない一覧の文言 */
.post-list__none { color: var(--c-text); font-size: 1em; line-height: 1.8em; }
/* 最後のページまで読み込んだら、下に 30px（旧：読み込み終わりの文言の枠。文言は空） */
.post-list__end { display: none; margin-top: 30px; }
.post-list.is-end .post-list__end { display: block; }

/* ---------- 記事の本文（旧：Elementor の全体設定・旧テーマ・本文部品の指定。the_content() の中身） ---------- */
.post-content { color: var(--c-text); font-size: 1em; line-height: 1.8em; }
/* 旧サイトの全体設定は「.elementor-kit-5 p」などの強さで効いていた（ブロックの class より強い）ので、同じ強さで書く */
.post-content p { margin-block-end: 1.6em; }
.post-content a { color: var(--c-primary); text-decoration: underline; }
.post-content a:hover { color: var(--c-primary); text-decoration: none; }
.post-content h1 { color: var(--c-text); font-size: 1.9em; font-weight: bold; line-height: 1.4em; }
.post-content h2 { color: var(--c-text); font-size: 1.9em; font-weight: bold; line-height: 1.4em; }
.post-content h3 { color: var(--c-text); font-size: 1.4em; font-weight: bold; line-height: 1.4em; }
.post-content h4 { color: var(--c-text); font-size: 1.3em; line-height: 1.6em; }
.post-content h5 { font-size: 1.2em; }
.post-content h6 { font-size: 1.1em; }
/* 旧テーマ（hello-elementor）の下地のうち、共通の base.css にないもの */
:where(.blog-body) dd, :where(.blog-body) dl, :where(.blog-body) dt, :where(.blog-body) li, :where(.blog-body) ol, :where(.blog-body) ul { margin-top: 0; margin-bottom: 0; }
:where(.post-content) figure { margin: 0 0 1em; }
:where(.post-content) figcaption { font-size: 16px; color: #333; line-height: 1.4; font-style: italic; font-weight: 400; }
:where(.post-content) a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }
:where(.post-content) sub, :where(.post-content) sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
:where(.post-content) sub { bottom: -.25em; }
:where(.post-content) sup { top: -.5em; }
:where(.post-content) small { font-size: 80%; }
/* 旧サイトでは Elementor の枠の中だったので、Elementor の下地（.elementor img・hr・iframe）も効いていた */
.post-content img { height: auto; max-width: 100%; border: none; border-radius: 0; box-shadow: none; }
.post-content hr { background-color: transparent; margin: 0; }
.post-content embed, .post-content iframe, .post-content object, .post-content video { border: none; line-height: 1; margin: 0; max-width: 100%; width: 100%; }
.alignright { float: right; margin-left: 1rem; }
.alignleft { float: left; margin-right: 1rem; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
.wp-caption { margin-bottom: 1.25rem; max-width: 100%; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { margin: 0; }
.gallery-caption { display: block; font-size: .8125rem; line-height: 1.5; margin: 0; padding: .75rem; }

/* ---------- 本文に貼るクレジット（旧：保存テンプレート 1094・1110・1139） ---------- */
.post-content .credit { display: flex; padding: 20px; background-color: var(--c-gray-bg); border-radius: 5px; }
.post-content .credit__img { width: 33%; padding: 20px; background-color: var(--c-white); border-radius: 5px 0 0 5px; text-align: center; }
.post-content .credit__img img { display: inline-block; vertical-align: middle; }
.post-content .credit__body { width: 66.999%; padding: 20px; background-color: var(--c-white); border-radius: 0 5px 5px 0; }
.post-content .credit__title { margin: 0 0 20px; padding: 0 0 10px; border-bottom: 1px dotted var(--c-gray); font-size: .9em; font-weight: 500; line-height: 1.5em; color: var(--c-text); }
.post-content .credit__text { font-size: .9em; line-height: 1.5em; }
.post-content .credit__text p { margin-bottom: 1.6em; }
/* 関連記事（旧：保存テンプレート 1120・1133・1134。見出しとアイコンだけ） */
.post-content .related { padding: 20px; }
.post-content .related__inner { background-color: var(--c-white); border-radius: 5px; }
.post-content .related__title { margin: 0 0 20px; padding: 0; text-align: center; font-family: var(--ff); font-size: 1em; font-weight: bold; line-height: 1.8em; color: var(--c-text); }
/* アイコン：旧サイトでは部品の設定が効いておらず、50px・左寄せ・黒で出ていた。2026-11-24 本来の形（中央・35px・サブの色）に直した */
.post-content .related__icon { text-align: center; }
.post-content .related__icon svg { display: inline-block; width: 35px; height: 35px; fill: var(--c-secondary); vertical-align: baseline; }
/* 関連記事のカード（旧：保存テンプレート 1134 の投稿部品。4列・間 5px、写真・札・題だけ） */
.post-content .post-cards--related { margin-top: 20px; grid-template-columns: repeat(4, 1fr); column-gap: 5px; row-gap: 12px; }
.post-content .post-cards--related .post-card__badge { margin: 15px; line-height: 1.5em; }
.post-content .post-cards--related .post-card__text { margin-top: 15px; padding: 0 12px; }
.post-content .post-cards--related .post-card__title { margin-bottom: 40px; font-size: .9em; font-weight: normal; line-height: 1.6em; }
.post-content .post-card__title a { color: var(--c-text); }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1024px) {
	.post-cards { column-gap: 30px; }
	.blog-side__box { margin-left: 30px; }
	.post-content .post-cards--related { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
}
@media (max-width: 767px) {
	.blog-body__inner { flex-wrap: wrap; }
	.blog-main, .blog-side { width: 100%; }
	.blog-side__box { margin: 20px 0 0; }
	.post-cards, .post-content .post-cards--related { grid-template-columns: 1fr; }
	.post-card__thumb { padding-bottom: 50%; }
	.is-ratio .post-card__thumb.is-fit-h img { width: calc(100% + 1px); height: auto; }
	.is-ratio .post-card__thumb.is-fit-h-m img { width: auto; height: 100%; }
	.post-content .credit { flex-wrap: wrap; }
	.post-content .credit__img, .post-content .credit__body { width: 100%; }
}
