/*
Theme Name: Kagayaki Helper School
Theme URI: https://kf-college.com/
Author: i-mao
Description: かがやきヘルパースクール専用テーマ。BizVektor からの移行用に新規作成（PHP 8.1〜 / WordPress 6.5〜、WordPress 7.1 + PHP 8.3 で動作確認）。開講のお知らせ（info）投稿タイプ、スタッフブログ（/blog/）統合、Googleカレンダー表示を内蔵。
Version: 1.1.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kagayaki
*/

/* ==========================================================================
   基本設定
   ========================================================================== */
:root {
	--c-primary: #c2185b;        /* メインカラー（ローズ） */
	--c-primary-dark: #9c1248;
	--c-primary-tint: #fdf0f5;
	--c-accent: #f673cd;         /* ロゴのピンク */
	--c-sub: #4b33c9;            /* ロゴの紫 */
	--c-sub-tint: #f1effc;
	--c-text: #333;
	--c-text-light: #666;
	--c-border: #e6dfe3;
	--c-bg-soft: #fbf7f9;
	--c-white: #fff;
	--radius: 8px;
	--shadow: 0 2px 10px rgba(80, 20, 50, .08);
	--container: 1100px;
	--font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--c-sub);
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px; top: -60px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--c-white);
	color: var(--c-primary);
	font-weight: bold;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.skip-link:focus { top: 8px; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header { background: var(--c-white); }

.site-header__tagline {
	background: var(--c-primary);
	color: var(--c-white);
	font-size: 12px;
	line-height: 1.6;
}
.site-header__tagline p { margin: 0; padding: 6px 0; }

.site-header__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
}

.site-logo { margin: 0; line-height: 1; font-size: 1rem; }
.site-logo__link { display: inline-block; }
.site-logo__img { width: 320px; max-width: 100%; height: auto; }

.header-contact { text-align: right; line-height: 1.4; }
.header-contact__lead { margin: 0 0 2px; font-size: 13px; color: var(--c-text-light); }
.header-contact__tel {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--c-primary);
	font-size: 28px;
	font-weight: bold;
	letter-spacing: .03em;
	text-decoration: none;
	font-feature-settings: "palt";
}
.header-contact__tel span { font-size: 16px; }
.header-contact__hours { margin: 2px 0 0; font-size: 12px; color: var(--c-text-light); }

.header-actions { display: none; gap: 8px; }
.header-actions__btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 56px; height: 52px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-primary);
	font: inherit;
	font-size: 10px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.header-actions__btn--tel { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.header-actions__btn--tel:hover { color: var(--c-white); }

.menu-toggle__bars { display: grid; gap: 4px; width: 22px; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* グローバルナビ */
.global-nav {
	border-top: 1px solid var(--c-border);
	border-bottom: 3px solid var(--c-primary);
	background: var(--c-white);
}
.global-nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.global-nav__list > li { flex: 1 1 auto; position: relative; }
.global-nav__list > li + li::before {
	content: "";
	position: absolute;
	left: 0; top: 14px; bottom: 14px;
	width: 1px;
	background: var(--c-border);
}
.global-nav__list a {
	display: block;
	padding: 14px 10px;
	color: var(--c-text);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: color .15s, background-color .15s;
}
.global-nav__list a:hover,
.global-nav__list .current-menu-item > a,
.global-nav__list .current_page_item > a {
	color: var(--c-primary);
	background: var(--c-primary-tint);
}
.global-nav .sub-menu {
	position: absolute;
	left: 0; top: 100%;
	z-index: 50;
	min-width: 220px;
	margin: 0; padding: 0;
	list-style: none;
	background: var(--c-white);
	box-shadow: var(--shadow);
	visibility: hidden;
	opacity: 0;
	transition: opacity .15s;
}
.global-nav li:hover > .sub-menu,
.global-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.global-nav .sub-menu a { text-align: left; font-weight: normal; border-bottom: 1px solid var(--c-border); }

/* ==========================================================================
   スライダー
   ========================================================================== */
.hero { padding-top: 20px; }
.slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-bg-soft);
	aspect-ratio: 950 / 250;
}
.slider__track { position: absolute; inset: 0; }
.slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px; height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--c-primary);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider__dots {
	position: absolute;
	left: 0; right: 0; bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.slider__dot {
	width: 10px; height: 10px;
	padding: 0;
	border: 2px solid var(--c-white);
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	cursor: pointer;
}
.slider__dot.is-active { background: var(--c-primary); border-color: var(--c-white); }

/* ==========================================================================
   レイアウト
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 40px;
	padding-block: 32px 56px;
}
.main { min-width: 0; }

/* 下層見出し帯 */
.page-header {
	background: linear-gradient(120deg, var(--c-primary-tint) 0%, #fff 60%, var(--c-sub-tint) 100%);
	border-bottom: 1px solid var(--c-border);
}
.page-header__title {
	margin: 0;
	padding: 28px 0;
	color: var(--c-primary);
	font-size: 26px;
	font-weight: bold;
	line-height: 1.4;
}

.breadcrumb { padding-top: 12px; font-size: 12px; color: var(--c-text-light); }
.breadcrumb__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb__item + .breadcrumb__item::before { content: "›"; margin: 0 8px; color: #aaa; }
.breadcrumb a { color: var(--c-text-light); }

/* ==========================================================================
   トップ各セクション
   ========================================================================== */
.top-section { margin-bottom: 44px; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--c-border);
	position: relative;
}
.section-head::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 120px; height: 2px;
	background: var(--c-primary);
}
.section-head__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	color: var(--c-text);
}
.section-head__more { font-size: 13px; text-decoration: none; white-space: nowrap; }
.section-head__more--rss {
	padding: 2px 10px;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	color: var(--c-text-light);
	font-size: 11px;
}

/* 開講のお知らせ */
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list__item + .info-list__item { margin-top: 10px; }
.info-list__link {
	display: block;
	padding: 14px 44px 14px 18px;
	border: 1px solid var(--c-border);
	border-left: 5px solid var(--c-primary);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-text);
	text-decoration: none;
	position: relative;
	transition: box-shadow .15s, background-color .15s;
}
.info-list__link::after {
	content: "›";
	position: absolute;
	right: 16px; top: 50%;
	transform: translateY(-50%);
	color: var(--c-primary);
	font-size: 24px;
}
.info-list__link:hover { background: var(--c-primary-tint); box-shadow: var(--shadow); color: var(--c-text); }
.info-list__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.info-list__school,
.info-list__kamoku,
.info-list__course {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.7;
}
.info-list__school { background: var(--c-primary); color: var(--c-white); }
.info-list__kamoku { background: var(--c-sub-tint); color: var(--c-sub); }
.info-list__course { background: #fff6dc; color: #7a5600; }
.info-list__title { display: block; color: var(--c-primary-dark); font-weight: bold; line-height: 1.6; }

/* トピックス・お知らせ一覧 */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list__item {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 4px 16px;
	padding: 12px 4px;
	border-bottom: 1px dashed var(--c-border);
}
.news-list__date { color: var(--c-text-light); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-list__title { color: var(--c-text); text-decoration: none; }
.news-list__title:hover { color: var(--c-primary); text-decoration: underline; }
.news-list__excerpt { grid-column: 2; margin: 0; font-size: 13px; color: var(--c-text-light); }

.empty-note {
	padding: 16px;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
	color: var(--c-text-light);
	font-size: 14px;
}

/* カレンダー */
.calendar-embed {
	position: relative;
	height: 600px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
}
.calendar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 講座カード */
.course-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.course-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-white);
	color: var(--c-text);
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}
.course-card__link:hover { color: var(--c-text); box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card__img { display: block; aspect-ratio: 23 / 20; overflow: hidden; background: var(--c-bg-soft); }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.course-card__title { margin: 0 0 6px; color: var(--c-primary); font-size: 17px; line-height: 1.5; }
.course-card__text { flex: 1; margin: 0 0 10px; font-size: 14px; line-height: 1.75; }
.course-card__more { align-self: flex-end; color: var(--c-primary); font-size: 13px; font-weight: bold; }

/* ==========================================================================
   お問い合わせバナー
   ========================================================================== */
.contact-banner {
	padding: 16px;
	border: 2px solid var(--c-primary);
	border-radius: var(--radius);
	background: var(--c-primary-tint);
	text-align: center;
}
.contact-banner__lead { margin: 0 0 10px; font-weight: bold; color: var(--c-primary-dark); }
.contact-banner__actions { display: grid; gap: 10px; }
.contact-banner__tel,
.contact-banner__mail {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 12px;
	border-radius: var(--radius);
	text-decoration: none;
	line-height: 1.4;
}
.contact-banner__tel { background: var(--c-white); color: var(--c-primary); border: 1px solid var(--c-border); }
.contact-banner__mail { background: var(--c-primary); color: var(--c-white); }
.contact-banner__mail:hover { background: var(--c-primary-dark); color: var(--c-white); }
.contact-banner__label { font-size: 11px; opacity: .85; }
.contact-banner__num { font-size: 22px; font-weight: bold; letter-spacing: .03em; }
.contact-banner__hours { font-size: 11px; color: var(--c-text-light); }
.contact-banner__mailtext { font-size: 16px; font-weight: bold; }

.contact-banner--wide { padding: 24px; }
.contact-banner--wide .contact-banner__lead { font-size: 18px; }
.contact-banner--wide .contact-banner__actions { grid-template-columns: 1fr 1fr; max-width: 720px; margin-inline: auto; }
.contact-banner--wide .contact-banner__num { font-size: 28px; }
.contact-banner--wide .contact-banner__tel,
.contact-banner--wide .contact-banner__mail { justify-content: center; min-height: 86px; }

/* ==========================================================================
   サイドバー
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-banners { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.side-banners a { display: block; border-radius: 4px; overflow: hidden; transition: opacity .15s; }
.side-banners a:hover { opacity: .85; }
.side-banners img { display: block; width: 100%; }
.side-widget__title {
	margin: 0 0 10px;
	padding: 6px 12px;
	background: var(--c-primary);
	color: var(--c-white);
	font-size: 15px;
	border-radius: 4px;
}
.side-widget ul { margin: 0; padding: 0; list-style: none; }
.side-widget li { border-bottom: 1px dashed var(--c-border); }
.side-widget li a { display: block; padding: 8px 4px; color: var(--c-text); text-decoration: none; font-size: 14px; }
.side-widget .textwidget li, .side-widget .wp-block-html li { border: 0; margin-bottom: 14px; }
.side-widget .textwidget li a { padding: 0; }

/* ==========================================================================
   本文（固定ページ・投稿）— 旧BizVektor時代の本文HTMLに対応
   ========================================================================== */
.entry-header { margin-bottom: 24px; }
.entry-date { color: var(--c-text-light); font-size: 14px; }
.entry-title { margin: 4px 0 0; font-size: 24px; line-height: 1.5; color: var(--c-text); }
.entry-thumbnail { margin-bottom: 24px; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 {
	margin: 2.2em 0 1em;
	padding: 10px 16px;
	border-left: 6px solid var(--c-primary);
	background: var(--c-primary-tint);
	color: var(--c-text);
	font-size: 21px;
	line-height: 1.5;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 {
	margin: 2em 0 .8em;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--c-border);
	color: var(--c-primary-dark);
	font-size: 18px;
	line-height: 1.5;
	position: relative;
}
.entry-content h3::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 60px; height: 2px;
	background: var(--c-primary);
}
.entry-content h4 { margin: 1.6em 0 .6em; font-size: 16px; color: var(--c-primary-dark); }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul.nolist { padding-left: 0; list-style: none; }
.entry-content ul.nolist > li {
	position: relative;
	padding-left: 1.2em;
	margin-bottom: .8em;
}
.entry-content ul.nolist > li::before {
	content: "";
	position: absolute;
	left: 0; top: .7em;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--c-accent);
}
.entry-content img.alignnone,
.entry-content img.aligncenter { display: block; margin: 0 0 1.4em; border-radius: 4px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; border-radius: 4px; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; border-radius: 4px; }
.entry-content h2, .entry-content h3 { clear: both; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content strong { color: var(--c-primary-dark); }
.entry-content .kome { font-size: 13px; color: var(--c-text-light); padding-left: 1em; text-indent: -1em; }
.entry-content .style1 { margin: 0 0 .2em; }

/* 表 */
.table-scroll { margin: 0 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--c-border);
	vertical-align: top;
	text-align: left;
}
.entry-content th { background: var(--c-bg-soft) !important; font-weight: bold; white-space: nowrap; }
.entry-content table.tbl td:first-child[rowspan],
.entry-content table.tbl td[colspan] { background: var(--c-primary-tint); font-weight: bold; color: var(--c-primary-dark); }
.entry-content table.tbl td[rowspan] + td[rowspan] { background: var(--c-bg-soft); font-weight: bold; }
.entry-content table[height], .entry-content td[height], .entry-content tr[height] { height: auto !important; }
.entry-content table.room { width: auto; }
.entry-content table.room td { border: 0; padding: 0 12px 12px 0; }
.entry-content table.room img { border-radius: 4px; }
.entry-content table.koudou th { background: #f7ecef !important; text-align: center; }
.entry-content table.koudou td { vertical-align: middle; }

/* Googleマップ・埋め込み */
.entry-content .google-maps {
	position: relative;
	margin: 0 0 1.6em;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
}
.entry-content .google-maps iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.entry-content iframe { max-width: 100%; }

/* ボタン */
.btn,
.entry-content .linkBtn a {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--c-primary);
	color: var(--c-white);
	font-weight: bold;
	text-decoration: none;
	transition: background-color .15s;
}
.btn:hover,
.entry-content .linkBtn a:hover { background: var(--c-primary-dark); color: var(--c-white); }
.entry-content .linkBtn { margin: 1.6em 0; text-align: center; }

/* Contact Form 7 */
#contact_form { max-width: 680px; }
#contact_form p { margin-bottom: 1.4em; font-weight: bold; }
.m-alert {
	display: inline-block;
	margin-right: 8px;
	padding: 0 8px;
	border-radius: 3px;
	background: var(--c-primary);
	color: var(--c-white);
	font-size: 11px;
	line-height: 1.8;
	vertical-align: 2px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.search-form__input {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #cfc4ca;
	border-radius: 6px;
	background: var(--c-white);
	font: inherit;
	font-weight: normal;
}
.wpcf7 textarea { min-height: 200px; }
.wpcf7 input[type="submit"],
.search-form__btn {
	padding: 12px 48px;
	border: 0;
	border-radius: 999px;
	background: var(--c-primary);
	color: var(--c-white);
	font: inherit;
	font-weight: bold;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, .search-form__btn:hover { background: var(--c-primary-dark); }
.wpcf7-not-valid-tip { font-weight: normal; font-size: 13px; }

.search-form { display: flex; gap: 8px; align-items: flex-end; }
.search-form__input { margin-top: 0; }
.search-form__btn { padding: 10px 20px; flex-shrink: 0; }
.search-box { margin: 24px 0; }

/* 前後リンク・ページ送り */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 14px; }
.post-nav a { text-decoration: none; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 6px 10px;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

/* ==========================================================================
   フッター
   ========================================================================== */
.footer-cta { padding: 40px 0; background: var(--c-bg-soft); }
.site-footer { border-top: 1px solid var(--c-border); }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 32px;
	padding-block: 36px;
}
.site-footer__name { margin: 0 0 8px; color: var(--c-primary); font-size: 18px; font-weight: bold; }
.site-footer__address { font-style: normal; font-size: 14px; line-height: 1.9; }
.site-footer__address a { color: inherit; }
.footer-nav__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 24px;
	margin: 0; padding: 0;
	list-style: none;
}
.footer-nav__list a {
	display: block;
	padding: 6px 0 6px 14px;
	color: var(--c-text);
	font-size: 14px;
	text-decoration: none;
	position: relative;
}
.footer-nav__list a::before { content: "›"; position: absolute; left: 0; color: var(--c-primary); }
.footer-nav__list a:hover { color: var(--c-primary); }

.site-footer__bottom { background: var(--c-primary); color: var(--c-white); font-size: 12px; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--c-white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--c-white); }
.copyright { margin: 0; }

.pagetop {
	position: fixed;
	right: 16px; bottom: 16px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--c-primary);
	color: var(--c-white);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.pagetop.is-visible { opacity: .9; visibility: visible; }
.pagetop:hover { color: var(--c-white); opacity: 1; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
	.sidebar > .contact-banner { grid-column: 1 / -1; }
	.side-banners { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.global-nav__list a { font-size: 13px; padding-inline: 6px; }
}

@media (max-width: 782px) {
	body { font-size: 15px; }
	.site-header__tagline { display: none; }
	.site-header__main { padding-block: 10px; }
	.site-logo__img { width: 220px; }
	.header-contact { display: none; }
	.header-actions { display: flex; }

	.global-nav { display: none; border-bottom-width: 0; }
	.global-nav.is-open { display: block; border-bottom-width: 3px; }
	.global-nav .container { padding-inline: 0; }
	.global-nav__list { flex-direction: column; }
	.global-nav__list > li + li::before { display: none; }
	.global-nav__list a { padding: 14px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--c-border); }
	.global-nav .sub-menu { position: static; visibility: visible; opacity: 1; box-shadow: none; }
	.global-nav .sub-menu a { padding-left: 36px; }

	.hero { padding-top: 0; }
	.hero .container { padding-inline: 0; }
	.slider { border-radius: 0; }
	.slider__nav { display: none; }

	.page-header__title { padding: 20px 0; font-size: 21px; }
	.section-head__title { font-size: 19px; }
	.course-cards { grid-template-columns: minmax(0, 1fr); }
	.course-card__link { flex-direction: row; }
	.course-card__img { flex: 0 0 38%; aspect-ratio: auto; }
	.calendar-embed { height: 480px; }
	.news-list__item { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.news-list__excerpt { grid-column: 1; }

	.entry-content h2 { font-size: 18px; }
	.entry-content h3 { font-size: 16px; }
	.entry-content .alignleft,
	.entry-content .alignright { float: none; display: block; margin: 0 0 1em; }
	.entry-content table.tbl,
	.entry-content table.tbl tbody,
	.entry-content table.tbl tr,
	.entry-content table.tbl td,
	.entry-content table.tbl th { display: block; width: auto !important; }
	.entry-content table.tbl colgroup, .entry-content table.tbl col { display: none; }
	.entry-content table.tbl tr { border-bottom: 1px solid var(--c-border); }
	.entry-content table.tbl td, .entry-content table.tbl th { border-bottom: 0; white-space: normal; }

	.contact-banner--wide .contact-banner__actions { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.site-footer__bottom .container { flex-direction: column; text-align: center; }
	.footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header__tagline, .global-nav, .header-actions, .sidebar, .footer-cta, .pagetop, .slider__nav, .slider__dots { display: none !important; }
	.layout { display: block; }
}

/* ブロックウィジェット（検索など） */
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #cfc4ca; border-radius: 6px; font: inherit; }
.wp-block-search__button { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--c-primary); color: var(--c-white); font: inherit; cursor: pointer; }
.side-widget .wp-block-heading { margin: 0 0 10px; padding: 6px 12px; background: var(--c-primary); color: var(--c-white); font-size: 15px; border-radius: 4px; }

/* 旧本文の先頭に入る不要な改行・空段落を詰める */
.entry-content > br:first-child,
.entry-content > p:empty { display: none; }
.entry-content > br:first-child + h2 { margin-top: 0; }
.contact-banner--side .contact-banner__lead { font-size: 14px; }

/* ==========================================================================
   スタッフブログ
   ========================================================================== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-tabs__item {
	padding: 6px 16px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	color: var(--c-text);
	font-size: 14px;
	text-decoration: none;
	background: var(--c-white);
}
.cat-tabs__item:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cat-tabs__item.is-current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

.post-cards { display: grid; gap: 14px; }
.post-card__link {
	display: flex;
	gap: 18px;
	padding: 18px 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-text);
	text-decoration: none;
	transition: box-shadow .15s, border-color .15s;
}
.post-card__link:hover { color: var(--c-text); border-color: #e3bccb; box-shadow: var(--shadow); }
.post-card__img { flex: 0 0 160px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--c-bg-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--c-text-light); font-size: 13px; font-variant-numeric: tabular-nums; }
.post-card__cat, .entry-cat {
	display: inline-block;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--c-primary-tint);
	color: var(--c-primary);
	font-size: 12px;
	font-weight: bold;
	line-height: 1.8;
	text-decoration: none;
}
.post-card__title { color: var(--c-primary-dark); font-size: 17px; font-weight: bold; line-height: 1.55; }
.post-card__link:hover .post-card__title { text-decoration: underline; }
.post-card__excerpt { color: var(--c-text-light); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry-cat:hover { background: var(--c-primary); color: var(--c-white); }
.entry-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid var(--c-border); border-radius: 4px; font-size: 13px; text-decoration: none; }
.entry-content .emoji-char { font-style: normal; margin-right: .15em; }
.back-to-list { margin-top: 24px; text-align: center; }
.btn--outline { background: var(--c-white); color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: var(--c-white); }

.side-blog ul { border-top: 1px dashed var(--c-border); }
.side-widget .cat-item a, .side-years a, .side-widget .wp-block-archives li a { display: inline-block; }
.side-widget .cat-item, .side-years li, .side-widget .widget_archive li, .side-widget .wp-block-archives li, .side-widget .wp-block-categories li { display: flex; justify-content: space-between; align-items: center; padding-right: 4px; font-size: 13px; color: var(--c-text-light); }
.side-recent a { line-height: 1.6; }
.side-recent time { display: block; color: var(--c-text-light); font-size: 12px; }

@media (max-width: 782px) {
	.post-card__link { padding: 14px; gap: 12px; }
	.post-card__img { flex-basis: 96px; }
	.post-card__title { font-size: 16px; }
}

/* ウィジェットで置いたバナー画像（旧テーマから移ったテキスト／ブロックウィジェット等）を同じ幅に揃える */
.sidebar .side-widget li:has(> a > img),
.sidebar .side-widget li:has(> img) { border-bottom: 0; margin-bottom: 14px; }
.sidebar .side-widget li > a:has(> img) { display: block; padding: 0; border-radius: 4px; overflow: hidden; transition: opacity .15s; }
.sidebar .side-widget li > a:has(> img):hover { opacity: .85; }
.sidebar .side-widget li img,
.sidebar .side-widget .wp-block-image img { display: block; width: 100%; height: auto; }

/* 固定ページ上部の横長画像（旧サイトで幅680pxで作成）を本文の幅いっぱいに揃える */
.entry-content img[width="680"] {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 1.6em;
	border-radius: var(--radius);
}
