/*
Theme Name: Miraterasu
Theme URI: https://miraterasu.com
Author: Miraterasu Co., Ltd.
Author URI: https://miraterasu.com
Description: 株式会社ミラテラス コーポレートサイト用オリジナルテーマ。学校・塾向け「Programming Academy」と、企業向け「BUSINESS ENERGY」の2事業を対等に紹介する構成。
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: miraterasu
*/

/* =====================================================
   目次
   1. デザイントークン
   2. ベース
   3. 共通パーツ（ボタン・見出し・チップ・チェックリスト・タイル ほか）
   4. ヘッダー / フッター
   5. トップ：ヒーロー
   6. トップ：入口(gate)・理念・取り組み・お知らせ・CTA
   7. 下層ページ共通（page-hero）
   8. 学校・塾ページ（カリキュラム / 学びの流れ）
   9. 企業ページ（悩み / マインドセット / 全体構成 / 声）
  10. 会社概要 / お問い合わせ
  11. 汎用（固定ページ・投稿）
   ===================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
	--ink: #15171c;
	--ink-soft: #4a4d57;
	--paper: #ffffff;
	--tint: #f4f5f7;
	--line: #e1e3e8;
	--red: #c8102e;        /* 主色：ロゴの朱（学校・塾側のアクセント） */
	--red-deep: #8f0c1f;
	--indigo: #1f2a44;     /* 副色：藍（企業側のアクセント） */
	--white: #ffffff;

	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--max: 1160px;
	--speed: 220ms;
}

/* ページごとのアクセント色（学校＝朱／企業＝藍） */
.theme-school { --accent: var(--red); --icon-a: #c8102e; --icon-b: #ff6a52; }
.theme-juku { --accent: #1c6e46; --icon-a: #1c6e46; --icon-b: #4fae7c; }
.theme-corporate { --accent: var(--indigo); --icon-a: #1f2a44; --icon-b: #4f79c9; }

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; } /* sticky ヘッダーにアンカーが隠れないように */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
blockquote { margin: 0; }
button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed; top: 8px; left: 8px;
	width: auto; height: auto;
	background: var(--indigo); color: var(--white);
	padding: 10px 16px; z-index: 100000; clip: auto;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

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

/* ---------- 3. 共通パーツ ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--tint); }
.section--red { background: var(--red); color: var(--white); }
.section--navy { background: var(--indigo); color: var(--white); }
.section--red .label, .section--navy .label { color: rgba(255,255,255,0.8); }
.section--red h2, .section--navy h2 { color: var(--white); }
.section--red .section__head .lead, .section--navy .section__head .lead { color: rgba(255,255,255,0.92); }
.section--navy .voice { border-left-color: rgba(255,255,255,0.5); }
.section--navy .voice p { color: rgba(255,255,255,0.92); }
.section--navy .voice cite { color: rgba(255,255,255,0.7); }
.section__more { margin-top: 36px; }
@media (max-width: 640px) { .section { padding-block: 60px; } }

.section__head { max-width: 860px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 900;  text-wrap: balance; word-break: auto-phrase; }
.section__head .lead { margin-top: 14px; color: var(--ink-soft); }
.label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--accent, var(--red-deep));
}
.subhead { font-size: 1.15rem; margin: 48px 0 20px; padding-left: 14px; border-left: 4px solid var(--accent, var(--red)); }

/* ボタン */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px;
	font-size: 0.98rem; font-weight: 700; line-height: 1.4;
	border: 1px solid transparent; border-radius: 2px; cursor: pointer;
	transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); color: var(--white); }
.btn--accent { background: var(--accent, var(--red)); color: var(--white); }
.btn--accent:hover { filter: brightness(1.15); color: var(--white); }
.btn--red-light { background: #d63d55; color: var(--white); }   /* 薄い赤（白文字でコントラスト比4.5以上） */
.btn--red-light:hover { background: var(--red); color: var(--white); }
.btn--red-dark { background: var(--red-deep); color: var(--white); } /* 濃い赤 */
.btn--red-dark:hover { background: #6d0817; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--red); color: var(--red-deep); }
.btn--white { background: var(--white); color: var(--red-deep); }
.btn--white:hover { background: rgba(255,255,255,0.88); color: var(--red-deep); }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

/* チップ（短いタグ） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 5px 13px; font-size: 0.85rem; color: var(--ink-soft); }

/* チェックリスト（FAのチェックアイコンを疑似要素で） */
.checklist--wide { max-width: 760px; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 0.93rem; }
.checklist li::before {
	content: "\f058";
	font-family: "Font Awesome 6 Free"; font-weight: 900;
	position: absolute; left: 0; top: 0;
	color: var(--accent, var(--red));
}

/* アイコン付きタイル（並べて見せる用） */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
	position: relative;
	overflow: hidden;
	background: var(--white);
	padding: 28px 22px;
	box-shadow: inset 0 3px 0 0 var(--accent, var(--red)); /* border-topの代わり。太さが変わってもレイアウトがズレない */
	transition: box-shadow 250ms ease;
}
.tile::after {
	/* ホバーで、アクセントカラーがごく薄く差し込む */
	content: "";
	position: absolute; inset: 0;
	background: var(--accent, var(--red));
	opacity: 0;
	transition: opacity 250ms ease;
	pointer-events: none;
}
.tile:hover { box-shadow: inset 0 6px 0 0 var(--accent, var(--red)); }
.tile:hover::after { opacity: 0.05; }
.tile__icon {
	display: inline-block; margin-bottom: 14px;
	font-size: 1.7rem; line-height: 1;
	color: var(--icon-a, var(--red));
	background: linear-gradient(135deg, var(--icon-a, #c8102e), var(--icon-b, #ff6a52));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: transform 250ms ease;
}
.tile:hover .tile__icon { transform: scale(1.15) translateY(-2px); }
.tile h3 { position: relative; font-size: 1rem; margin-bottom: 8px; }
.tile p { position: relative; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 960px) { .tiles, .tiles--4, .tiles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
	.tiles, .tiles--4, .tiles--3, .tiles--2 { grid-template-columns: 1fr; }
	/* スマホでは、アイコンとテキストを横並びにして縦幅を詰める */
	.tile {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 14px;
		padding: 14px 18px;
	}
	.tile__icon { grid-row: 1 / -1; margin-bottom: 0; font-size: 1.4rem; }
	.tile h3 { grid-column: 2; margin-bottom: 0; }
	.tile p { grid-column: 2; margin-top: 2px; }
}

/* 強調帯（ステートメント） */
.callout {
	margin-top: 20px;
	background: var(--indigo); color: var(--white);
	padding: 26px 32px; text-align: center;
	font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700;
}

/* 仮画像（写真が入るまでの目印。assets/images に所定ファイル名で置くと自動で差し替わる） */
.ph {
	aspect-ratio: 4 / 3;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	color: var(--ink-soft); font-size: 0.85rem;
	background: repeating-linear-gradient(45deg, #f1f3f6 0 12px, #e8ebf0 12px 24px);
	border: 1px dashed #c3c9d3;
}
.ph i { font-size: 1.6rem; opacity: 0.6; }

/* 進行ステップ（番号は常にゆるやかにグラデーションが流れる／ホバーで塗りつぶし） */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
.steps__item { position: relative; padding-right: 26px; }
.steps__item:not(:last-child)::after {
	content: ""; position: absolute; top: 17px; right: 0; width: 26px; height: 1px; background: var(--line);
}
.steps__num {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin-bottom: 14px;
	border: 1px solid var(--red); border-radius: 50%;
	transition: background 260ms ease, transform 260ms ease;
}
.steps__num-text {
	font-size: 0.95rem; font-weight: 700;
	color: var(--red-deep);
	background: linear-gradient(120deg, var(--red) 0%, #ff8a5c 25%, var(--indigo) 50%, var(--red) 75%, #ff8a5c 100%);
	background-size: 300% 300%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: flowGradient 6s ease infinite;
}
@keyframes flowGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.steps__item:hover .steps__num { background: var(--red); transform: scale(1.1); }
.steps__item:hover .steps__num-text { background: none; -webkit-text-fill-color: var(--white); color: var(--white); animation: none; }
.steps__body h4 { font-size: 1rem; margin-bottom: 4px; }
.steps__body p { color: var(--ink-soft); font-size: 0.88rem; }
.steps__item--goal .steps__num { background: var(--red); color: var(--white); }
.steps__item--goal:hover .steps__num { background: var(--red-deep); }
.steps__item--goal .steps__body h4 { color: var(--red-deep); }

@media (max-width: 760px) {
	.steps { grid-template-columns: 1fr; gap: 16px; }
	.steps__item { display: flex; align-items: flex-start; gap: 16px; padding: 0; }
	.steps__item::after { display: none !important; }
	.steps__num { margin-bottom: 0; flex-shrink: 0; }
	.steps__body h4 { margin-top: 4px; }
}

/* 小さな進行（入口パネル内の「〇→〇→〇」） */
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; counter-reset: mf; }
.mini-flow li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; counter-increment: mf; }
.mini-flow li::before {
	content: counter(mf);
	display: inline-grid; place-items: center;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--accent, var(--red)); color: var(--white);
	font-size: 0.7rem;
}
.mini-flow li:not(:last-child)::after {
	content: "\f054";
	font-family: "Font Awesome 6 Free"; font-weight: 900;
	font-size: 0.6rem; color: #9aa0ad; margin-left: 4px;
}

/* お客様の声 */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.voice { border-left: 3px solid var(--accent, var(--red)); padding: 2px 0 2px 20px; }
.voice p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.85; }
.voice cite { display: block; margin-top: 8px; font-size: 0.8rem; font-style: normal; color: var(--ink-soft); }
@media (max-width: 720px) { .voices { grid-template-columns: 1fr; } }

.fine-print { margin-top: 28px; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 4. ヘッダー / フッター ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.94);
	backdrop-filter: saturate(140%) blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.site-branding a { display: inline-flex; align-items: center; }
.site-branding img { height: 56px; width: auto; }

.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; align-items: center; gap: 26px; }
.main-navigation a {
	color: var(--ink); font-size: 0.95rem; font-weight: 500;
	padding: 6px 2px; border-bottom: 2px solid transparent;
	transition: border-color var(--speed) ease, color var(--speed) ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--red-deep); border-bottom-color: var(--red); }
.main-navigation a.header-cta {
	background: var(--red); color: var(--white);
	padding: 10px 22px; border-radius: 2px; border-bottom: none; font-weight: 700;
}
.main-navigation a.header-cta:hover { background: var(--red-deep); color: var(--white); }

.menu-toggle {
	display: none; background: none; border: 1px solid var(--ink); border-radius: 2px;
	padding: 8px 12px; color: var(--ink);
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
	.main-navigation { position: relative; }
	.main-navigation ul#primary-menu {
		display: none; position: absolute; top: 56px; right: 0;
		flex-direction: column; align-items: flex-start; gap: 14px;
		min-width: 250px; padding: 20px 24px;
		background: var(--white); border: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(21,23,28,0.12);
	}
	.main-navigation.is-open ul#primary-menu { display: flex; }
}

.site-footer { background: var(--ink); color: rgba(255,255,255,0.76); }
.site-footer__top { padding-block: 60px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { height: 84px; margin-bottom: 18px; }
.site-footer__brand p { font-size: 0.85rem; max-width: 36ch; color: rgba(255,255,255,0.55); }
.site-footer h5 { margin: 0 0 16px; color: var(--white); font-size: 0.95rem; font-weight: 700; }
.site-footer li { margin-bottom: 10px; font-size: 0.88rem; }
.site-footer a { color: rgba(255,255,255,0.76); }
.site-footer a:hover { color: var(--red); }
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.14);
	padding-block: 20px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.legal-menu { display: flex; gap: 18px; }
.legal-menu a { color: rgba(255,255,255,0.6); }
.legal-menu a:hover { color: var(--white); }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- 5. トップ：ヒーロー ---------- */
.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, #eef6fb 0%, #f6fbfd 38%, var(--white) 68%);
	padding-block: 96px 110px;
	border-bottom: 1px solid var(--line);
}
/* ネットワーク背景（assets/js/hero-network.js が描画）。左端はマスクでフェードさせ、右側にだけ現れる */
.hero-network {
	position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%;
	display: block; pointer-events: none;
	opacity: 0; transition: opacity 900ms ease;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.5) 26%, black 46%);
	mask-image: linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.5) 26%, black 46%);
}
.hero-network.is-ready { opacity: 1; }

.hero__inner { position: relative; z-index: 3; } /* 幅は .container(1160px) に揃える */

.hero__brand { display: flex; align-items: center; gap: 22px; }
.hero__brand-mark { height: 78px; width: auto; flex-shrink: 0; opacity: 0; animation: heroFadeUp 700ms ease both; }
.hero__brand-word { display: flex; flex-direction: column; gap: 4px; }
.hero__brand-en {
	font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; color: var(--red-deep);
	opacity: 0; animation: heroFadeUp 700ms ease 150ms both;
}
.hero__brand-ja {
	font-size: clamp(1.35rem, 6vw, 2.85rem); font-weight: 900; color: var(--ink); white-space: nowrap;
	opacity: 0; animation: heroFadeUp 700ms ease 300ms both;
}
.hero__tagline {
	text-wrap: balance;
	margin-top: 26px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--indigo);
	opacity: 0; animation: heroFadeUp 700ms ease 450ms both;
}
.hero p.lede {
	margin-top: 18px; max-width: 46em; font-size: 1.05rem; color: var(--ink-soft);
	opacity: 0; animation: heroFadeUp 700ms ease 600ms both;
	/* イラストと重なっても読めるよう、文字の縁に白いにじみを付ける（濃いめ） */
	text-shadow:
		-1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
		-2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff,
		0 0 6px #fff, 0 0 6px #fff, 0 0 6px #fff,
		0 0 12px rgba(255,255,255,0.95), 0 0 12px rgba(255,255,255,0.95),
		0 0 18px rgba(255,255,255,0.85);
}
.hero__actions {
	margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px;
	opacity: 0; animation: heroFadeUp 700ms ease 750ms both;
}
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* 右側のイラスト：ぼわっと現れ、その後ふわふわ漂う（外側=位置＋登場／内側=常時の揺れ） */
.hero__visual {
	position: absolute; z-index: 2; top: 120px;
	right: max(16px, calc((100% - var(--max)) / 2 + 8px));
	width: clamp(340px, 44vw, 640px);
	pointer-events: none;
	opacity: 0;
	animation: heroPuff 1400ms cubic-bezier(0.22, 0.8, 0.3, 1) 900ms both;
}
.hero__visual img { width: 100%; height: auto; animation: heroFloat 6s ease-in-out 2.3s infinite; will-change: transform; }
@keyframes heroPuff {
	0% { opacity: 0; filter: blur(18px); transform: scale(0.88); }
	60% { opacity: 1; filter: blur(3px); }
	100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(0.8deg); } }

@media (max-width: 900px) {
	.hero { padding-block: 72px 64px; }
	.hero__visual { position: relative; top: auto; right: auto; width: min(460px, 88%); margin: 36px auto 0; }
}
@media (max-width: 560px) {
	.hero__brand { gap: 14px; }
	.hero__brand-mark { height: 56px; }
}

/* ---------- 6. トップ：入口(gate)・理念・取り組み・お知らせ・CTA ---------- */
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gate-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gate--school { --accent: var(--red); }
.gate--juku { --accent: #1c6e46; }
.gate--corporate { --accent: var(--indigo); }
.gate {
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line); border-top: 4px solid var(--accent);
}
.gate__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.gate__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 600ms ease; }
.gate:hover .gate__media img { transform: scale(1.05); }
.gate__badge {
	position: absolute; left: 0; bottom: 0;
	background: var(--accent); color: var(--white);
	padding: 8px 20px; font-size: 0.85rem; font-weight: 700;
}
.gate__body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 34px; }
.gate__eyebrow { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.gate__title { margin: 4px 0 10px; font-size: 1.5rem; font-weight: 900; }
.gate__lead { color: var(--ink-soft); font-size: 0.95rem; }
.gate__block { margin-top: 26px; }
.gate__block h4 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.gate__note { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.gate__cta { margin-top: auto; padding-top: 30px; }
.gate__cta--split { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .gate-grid { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .gate-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gate__body { padding: 26px 22px 28px; } }

.philosophy { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.philosophy__quote { text-wrap: balance; padding-left: 22px; border-left: 4px solid var(--red); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.6; }
.philosophy__text { margin-top: 22px; color: var(--ink-soft); }
.philosophy__more { margin-top: 24px; }
.values li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.values li:first-child { border-top: 1px solid var(--line); }
.values__no { min-width: 2.2ch; font-size: 1.05rem; font-weight: 900; color: var(--red); }
.values__name { font-size: 1.05rem; font-weight: 700; }
@media (max-width: 860px) { .philosophy { grid-template-columns: 1fr; gap: 36px; } }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-grid--2 { grid-template-columns: repeat(2, 1fr); }
.work-grid--2 .work-card img, .work-grid--2 .ph { aspect-ratio: 16 / 9; }
.work-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.photo-note { margin-top: 16px; font-size: 0.78rem; color: var(--ink-soft); }
.section--red .photo-note { color: rgba(255,255,255,0.85); }
.work-card__body { padding: 22px 24px 26px; }
.work-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.work-card p { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 960px) { .work-grid, .work-grid--2 { grid-template-columns: 1fr; } }

.news { border-top: 1px solid var(--line); }
.news li a { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.news li a:hover { color: var(--red-deep); }
.news time { flex-shrink: 0; min-width: 7.5em; color: var(--ink-soft); font-size: 0.88rem; }

.cta-band { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding-block: 64px; text-align: center; }
.cta-band__bg {
	position: absolute; z-index: 0; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	mix-blend-mode: luminosity;
	opacity: 0.3;
	pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 900; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,0.9); }
.cta-band--indigo { background: var(--indigo); }
.cta-band--indigo .btn--white { color: var(--indigo); }
.cta-band--juku { background: #1c6e46; }
.cta-band--juku .btn--white { color: #1c6e46; }
.cta-band__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-band__contact { margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.cta-band__contact a { color: var(--white); text-decoration: underline; }

/* ---------- 7. 下層ページ共通（page-hero） ---------- */
.page-hero {
	background: linear-gradient(135deg, #eef6fb 0%, #f8fbfd 50%, var(--white) 100%);
	border-bottom: 1px solid var(--line);
	padding-block: 52px;
}
.page-hero__inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; }
.page-hero__sub { margin-top: 10px; font-weight: 700; color: var(--accent, var(--indigo)); }
.page-hero__lead { margin-top: 14px; max-width: 46em; color: var(--ink-soft); }
.page-hero__photo { aspect-ratio: 4 / 3; overflow: hidden; border-top: 4px solid var(--accent, var(--red)); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { margin-bottom: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--red-deep); }
@media (max-width: 860px) { .page-hero__inner { grid-template-columns: 1fr; gap: 28px; } .page-hero__photo { max-width: 420px; } }

/* ---------- 8. 学校・塾ページ ---------- */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.course {
	position: relative; overflow: hidden; color: var(--white);
	min-height: 360px; padding: 34px;
	display: flex; flex-direction: column; justify-content: flex-end;
}
.course--1 { background: linear-gradient(135deg, #2a8f59 0%, #1c6e46 100%); }   /* 基礎：緑 */
.course--2 { background: linear-gradient(135deg, #2b98b8 0%, #1a6f8a 100%); }   /* 発展：水色 */
.course--3 { background: linear-gradient(135deg, #7c4fc4 0%, #573497 100%); }   /* 応用：紫 */
.course--4 { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); } /* 先端：赤 */
.course__photo {
	position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center 22%;
	mix-blend-mode: luminosity; opacity: 0.3; pointer-events: none;
	transition: transform 600ms ease, opacity 600ms ease;
}
.course:hover .course__photo { transform: scale(1.1); opacity: 0.4; }
.course::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.3) 100%); }
.course__index { position: absolute; z-index: 1; top: 22px; right: 26px; font-size: 3.2rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.2); }
.course__body { position: relative; z-index: 1; }
.course__tag { display: inline-block; margin-bottom: 12px; padding: 3px 11px; border: 1px solid rgba(255,255,255,0.65); font-size: 0.72rem; font-weight: 700; }
.course h3 { margin-bottom: 6px; font-size: 1.5rem; color: var(--white); }
.course__lead { margin-bottom: 8px; font-size: 0.92rem; font-weight: 700; }
.course__aim { margin-bottom: 14px; font-size: 0.86rem; color: rgba(255,255,255,0.88); }
.course__points { margin-bottom: 20px; }
.course__points li { position: relative; padding-left: 14px; margin-bottom: 3px; font-size: 0.8rem; color: rgba(255,255,255,0.9); line-height: 1.6; }
.course__points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; background: rgba(255,255,255,0.8); }
.course__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.course__lang { padding: 6px 12px; border: 1px solid rgba(255,255,255,0.45); font-size: 0.78rem; font-weight: 600; }
.course__hours { display: flex; align-items: baseline; gap: 4px; font-size: 0.78rem; color: rgba(255,255,255,0.88); }
.course__hours strong { font-size: 2rem; font-weight: 900; color: var(--white); }
@media (max-width: 760px) { .course-grid { grid-template-columns: 1fr; } .course { min-height: 300px; padding: 28px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 9. 企業ページ ---------- */
.result {
	display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
	margin-top: 36px; padding: 26px 30px;
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red);
}
.result__label { font-size: 0.85rem; font-weight: 700; color: var(--red-deep); }
.result__num { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; }
.result__num i { margin-inline: 8px; font-size: 0.8em; color: var(--red); }
.result__note { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-soft); }

.points-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.points-card { background: var(--white); padding: 24px 20px; border-top: 3px solid var(--indigo); }
.points-card__no { font-size: 0.85rem; font-weight: 900; color: var(--red); }
.points-card h3 { margin: 4px 0 14px; font-size: 1rem; }
.points-card li { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }
.points-card li b { flex-shrink: 0; color: var(--indigo); font-weight: 700; }
@media (max-width: 1080px) { .points-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
	.points-grid { grid-template-columns: 1fr; }
	/* スマホでは、番号とタイトルを横並びにする */
	.points-card {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: baseline;
		column-gap: 10px;
	}
	.points-card__no { grid-column: 1; grid-row: 1; }
	.points-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
	.points-card ul { grid-column: 1 / -1; margin-top: 12px; }
}

.mindset { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 24px; }
.mindset__box { padding: 22px 24px; background: var(--white); border: 1px solid var(--line); }
.mindset__box h3 { margin-bottom: 12px; font-size: 0.95rem; }
@media (max-width: 860px) { .mindset { grid-template-columns: 1fr; } }
.spiral { margin-top: 24px; text-align: center; font-weight: 700; color: var(--indigo); }

.structure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.structure__advice { grid-column: 1 / -1; padding: 16px 24px; background: var(--indigo); color: var(--white); font-weight: 700; text-align: center; }
.structure__step { padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--indigo); }
.structure__photo { margin: -26px -24px 18px; aspect-ratio: 16 / 11; overflow: hidden; background: var(--tint); }
.structure__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* 2カラム（チェックリスト＋写真）で使う、枠付きの写真 */
.feature-photo-frame { border-top: 4px solid var(--accent, var(--indigo)); }
.feature-photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.feature-photo-frame .photo-note { margin-top: 10px; }
.structure__step--core { border-top-color: var(--red); }
.structure__badge { display: inline-block; margin-bottom: 12px; padding: 3px 10px; background: var(--tint); font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.structure__step--core .structure__badge { background: #fdecef; color: var(--red-deep); }
.structure__step h3 { margin-bottom: 10px; font-size: 1.05rem; }
.structure__step h3 small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.structure__step li { position: relative; padding-left: 14px; margin-bottom: 4px; font-size: 0.88rem; color: var(--ink-soft); }
.structure__step li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; background: var(--red); }
@media (max-width: 860px) { .structure { grid-template-columns: 1fr; } }

/* ---------- 10. 会社概要 / お問い合わせ ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mvv__card { background: var(--white); padding: 34px 28px; border-top: 3px solid var(--indigo); }
.mvv__card:nth-child(2) { border-top-color: var(--red); }
.mvv__label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: var(--red-deep); }
.mvv__card h3 { margin: 6px 0 14px; font-size: 1.05rem; }
.mvv__card p { font-size: 0.92rem; color: var(--ink-soft); }
.mvv__card li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.mvv__card li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; background: var(--red); }
@media (max-width: 780px) { .mvv { grid-template-columns: 1fr; } }

.company-mark { display: flex; justify-content: center; }
.company-mark img { max-width: 300px; }

.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table th, .info-table td { padding: 20px 4px; text-align: left; font-weight: 400; }
.info-table th { width: 200px; vertical-align: top; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 620px) { .info-table th, .info-table td { display: block; width: auto; padding: 4px; } .info-table th { padding-top: 20px; } }

.map { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.contact-info__block { margin-bottom: 28px; }
.contact-info__block h3 { margin-bottom: 6px; font-size: 0.9rem; color: var(--ink-soft); }
.contact-info__block a { color: var(--ink); }
.contact-info__block a:hover { color: var(--red-deep); }
.contact-form-wrap { padding: 40px; background: var(--white); border: 1px solid var(--line); }
.contact-form-wrap h2 { margin-bottom: 20px; font-size: 1.2rem; }
.notice { padding: 18px; border: 1px dashed var(--line); font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .contact-form-wrap { padding: 26px; } }

/* Contact Form 7 */
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--ink-soft); }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form select, .wpcf7-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px;
	background: var(--white); font-family: inherit; font-size: 0.98rem;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus { outline: none; border-color: var(--red); }
.wpcf7-form input[type="submit"] {
	padding: 14px 34px; border: none; border-radius: 2px; cursor: pointer;
	background: var(--red); color: var(--white); font-weight: 700;
	transition: background var(--speed) ease;
}
.wpcf7-form input[type="submit"]:hover { background: var(--red-deep); }
.wpcf7-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 0.82rem; color: var(--red-deep); }
.wpcf7-response-output { margin-top: 22px !important; border-radius: 2px; }

/* ---------- 11. 汎用（固定ページ・投稿・404） ---------- */
.entry-content { padding-block: 64px; }
.entry-content h2 { margin-top: 2em; font-size: 1.5rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.15rem; }
.text-center { text-align: center; }

/* プライバシーポリシー等、長文の規約ページ */
.legal-doc { max-width: 760px; }
.legal-doc h2 { margin-top: 2.2em; margin-bottom: 0.8em; font-size: 1.2rem; }
.legal-doc h2:first-of-type { margin-top: 1.2em; }
.legal-doc p { color: var(--ink-soft); }
.legal-doc .checklist { margin-bottom: 1.2em; }
.legal-doc__date { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* サイトマップ */
.sitemap-list { max-width: 640px; border-top: 1px solid var(--line); }
.sitemap-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sitemap-list a { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.sitemap-list a:hover { color: var(--red-deep); }
.sitemap-list span { font-size: 0.85rem; color: var(--ink-soft); }

/* 見出しの意図した位置での改行（スマホでは自動改行に任せる） */
@media (max-width: 640px) { .br-pc { display: none; } }

/* 経営理念：使命・目指す姿の2カラム */
.mvv--2 { grid-template-columns: repeat(2, 1fr); }
.mvv--2 .mvv__card { padding: 38px 34px; }
.mvv__card p + p { margin-top: 12px; }
.mvv__card .mvv__catch { margin: 22px 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.6; }
.mvv__card h3 + .mvv__catch { margin-top: 0; }
@media (max-width: 780px) { .mvv--2 { grid-template-columns: 1fr; } }

.mvv--3 .mvv__card { padding: 38px 30px; }
.mvv--3 .mvv__card:nth-child(3) { border-top-color: var(--indigo); }
@media (max-width: 1000px) { .mvv--3 { grid-template-columns: 1fr; } }
