/*
 Theme Name:   Astra Child for JAG
 Theme URI:    https://school.japanactionguild.jp/
 Description:  JAG養成所サイト用 Astra子テーマ (完全PHP化対応 v3.0 フルワイド対応)
 Author:       JAG
 Author URI:   https://school.japanactionguild.jp/
 Template:     astra
 Version:      3.0.18
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ===============================================================
   CSS変数定義 (デザインシステム)
   =============================================================== */
:root {
	/* カラー */
	--jag-color-primary: #1a1a1a;
	--jag-color-text: #333333;
	--jag-color-text-muted: #666666;
	--jag-color-accent: #C8102E;
	--jag-color-accent-hover: #9B0C24;
	--jag-color-accent-light: rgba(200, 16, 46, 0.08);
	--jag-color-bg: #ffffff;
	--jag-color-bg-alt: #f8f8f8;
	--jag-color-border: #e5e5e5;
	--jag-color-border-strong: #1a1a1a;

	/* タイポグラフィ */
	--jag-font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

	/* レイアウト */
	--jag-container-max: 1100px;
	--jag-container-pad: 20px;
	--jag-section-pad-y: 80px;
	--jag-section-pad-y-mobile: 56px;

	/* セクション背景画像 (本番URL) */
	--jag-bg-seaside: url("https://school.japanactionguild.jp/wp-content/uploads/2023/10/action1-scaled.jpeg");
	--jag-bg-motorcycle: url("https://school.japanactionguild.jp/wp-content/uploads/2023/10/action2.jpeg");
	--jag-bg-clapper: url("https://school.japanactionguild.jp/wp-content/uploads/2023/09/movie-clapper-board-in-action-2022-12-16-11-43-11-utc-scaled-e1694327822194.jpg");
}

/* ===============================================================
   ベース調整
   =============================================================== */
body,
body.home {
	font-family: var(--jag-font-base);
	color: var(--jag-color-text);
	background: var(--jag-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Astraのコンテナを上書き */
.jag-front-page {
	margin: 0;
	padding: 0;
	max-width: none !important;
	width: 100%;
}

/* ===== フルワイド化のための強力な親コンテナ解除 ===== */
/* ホームページのみ対象 */
body.home,
body.page-id-11 {
	overflow-x: hidden;
}

/* Astra の親コンテナを完全フルワイド化 */
body.home #page,
body.home #content,
body.home #primary,
body.home .site-content,
body.home .ast-container,
body.home .ast-container--fluid,
body.home .site-content .ast-container,
body.home .entry-content,
body.home .single-page,
body.home article.post,
body.home article.page,
body.home main.site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* aspell-no-sidebar や ast-page-builder-template のテンプレートでの対応 */
body.home.ast-page-builder-template .entry-content,
body.home.ast-no-sidebar .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

/* アンカーリンクで飛んだ時、固定ヘッダーに隠れないよう余白を確保 */
.jag-front-page section[id],
.jag-front-page span[id] {
	scroll-margin-top: 80px;
}

/* ===============================================================
   共通: コンテナ
   =============================================================== */
.jag-container {
	max-width: var(--jag-container-max);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--jag-container-pad);
	box-sizing: border-box;
}

/* ===============================================================
   共通: セクション (全セクションを画面全幅化)
   =============================================================== */
.jag-section {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: var(--jag-section-pad-y) 0;
	background: var(--jag-color-bg);
}

.jag-section-alt {
	background: var(--jag-color-bg-alt);
}

/* ===============================================================
   共通: 背景画像付きセクション (fixed パララックス)
   =============================================================== */
.jag-section-bg {
	position: relative;
	width: 100vw;                       /* ビューポート全幅 */
	margin-left: calc(50% - 50vw);     /* Astraのコンテナを突破 */
	margin-right: calc(50% - 50vw);
	padding: 100px 0;
	background-color: var(--jag-color-primary);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* パララックス効果 */
	overflow: hidden;
}

/* data-bg属性で背景画像を切替 */
.jag-section-bg[data-bg="seaside"] {
	background-image: var(--jag-bg-seaside);
}

.jag-section-bg[data-bg="motorcycle"] {
	background-image: var(--jag-bg-motorcycle);
}

.jag-section-bg[data-bg="clapper"] {
	background-image: var(--jag-bg-clapper);
}

/* 暗いオーバーレイで写真を引き締める (読みやすさ確保) */
.jag-section-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.40) 100%
	);
	z-index: 1;
	pointer-events: none;
}

/* 上下に細い赤いアクセント (荒々しさ) */
.jag-section-bg::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--jag-color-accent);
	z-index: 2;
}

/* 背景画像セクション内のコンテナ → 白パネル化 */
.jag-section-bg > .jag-container {
	position: relative;
	z-index: 3;
	background: rgba(255, 255, 255, 0.97);
	padding: 56px 56px;
	border-radius: 6px;
	box-shadow:
		0 10px 40px rgba(0, 0, 0, 0.3),
		0 2px 0 var(--jag-color-accent);
	max-width: 1000px;
}

/* モバイル: パララックスは効きにくいので通常のscrollに */
@media screen and (max-width: 900px) {
	.jag-section-bg {
		background-attachment: scroll;
		padding: 60px 0;
	}
	.jag-section-bg > .jag-container {
		padding: 32px 24px;
		width: calc(100% - 32px);
	}
}

/* ===============================================================
   共通: 見出し
   =============================================================== */
.jag-section-title {
	font-family: var(--jag-font-base);
	font-size: 32px;
	font-weight: 700;
	color: var(--jag-color-primary);
	text-align: center;
	margin: 0 0 48px;
	letter-spacing: 0.04em;
	position: relative;
	padding-bottom: 20px;
}

.jag-section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: var(--jag-color-accent);
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}

.jag-sub-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--jag-color-primary);
	margin: 32px 0 16px;
	padding-left: 14px;
	border-left: 4px solid var(--jag-color-accent);
	line-height: 1.5;
}

/* h3 中見出し (例: 「アクション業界バブルなのに人手不足」) */
.jag-h4 {
	font-size: 19px;
	font-weight: 700;
	color: var(--jag-color-primary);
	margin: 40px 0 20px;
	padding: 12px 0 14px 18px;
	border-left: 4px solid var(--jag-color-accent);
	background: linear-gradient(
		to right,
		rgba(200, 16, 46, 0.06) 0%,
		rgba(200, 16, 46, 0.02) 30%,
		transparent 100%
	);
	letter-spacing: 0.02em;
	line-height: 1.5;
	position: relative;
}

.jag-h4::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 80px;
	height: 2px;
	background: var(--jag-color-accent);
	margin-left: -4px;
}

/* ===============================================================
   共通: 本文段落
   =============================================================== */
.jag-section p {
	font-size: 15px;
	line-height: 1.95;
	color: var(--jag-color-text);
	margin: 0 0 16px;
}

.jag-section p:last-child {
	margin-bottom: 0;
}

.jag-section strong {
	font-weight: 700;
	color: var(--jag-color-primary);
}

/* ===============================================================
   共通: ボタン (CTA)
   =============================================================== */
.jag-btn {
	display: inline-block;
	background: var(--jag-color-accent);
	color: #ffffff !important;
	padding: 14px 40px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.05em;
	transition: background 0.2s ease, transform 0.1s ease;
	border: none;
	cursor: pointer;
}

.jag-btn:hover {
	background: var(--jag-color-accent-hover);
	transform: translateY(-1px);
	text-decoration: none;
}

.jag-btn-secondary {
	background: var(--jag-color-bg);
	color: var(--jag-color-accent) !important;
	border: 2px solid var(--jag-color-accent);
}

.jag-btn-secondary:hover {
	background: var(--jag-color-accent);
	color: #ffffff !important;
}

.jag-btn-center {
	display: block;
	text-align: center;
	margin: 32px 0;
}

/* ===============================================================
   Section: #TP (ヒーロー - フルワイド + 背景動画)
   =============================================================== */
.jag-hero-fullwidth {
	position: relative;
	width: 100vw;                       /* ビューポート全幅 */
	min-height: 100vh;
	margin-left: calc(50% - 50vw);     /* Astraのコンテナを突破して全幅化 */
	margin-right: calc(50% - 50vw);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--jag-color-primary);
	color: #ffffff;
	padding: 80px 0;
	box-sizing: border-box;
}

/* 上下に赤いボーダー (荒々しさ) */
.jag-hero-fullwidth::before,
.jag-hero-fullwidth::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 6px;
	background: var(--jag-color-accent);
	z-index: 5;
}
.jag-hero-fullwidth::before { top: 0; }
.jag-hero-fullwidth::after { bottom: 0; }

/* ----- 背景動画レイヤー ----- */
.jag-hero-bg-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.jag-hero-bg-video video,
.jag-hero-bg-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	border: 0;
	pointer-events: none;
	background: #000;
}

/* mp4 (video要素) は画面全体を覆う */
.jag-hero-bg-video video {
	width: 100%;
	height: 100%;
}

/* オーバーレイ (黒+斜めの赤いノイズで荒々しさ) */
.jag-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			rgba(200, 16, 46, 0.18) 0%,
			rgba(0, 0, 0, 0.55) 40%,
			rgba(0, 0, 0, 0.75) 100%
		);
	z-index: 2;
}

/* ----- コンテンツレイヤー ----- */
.jag-hero-inner {
	position: relative;
	z-index: 4;
	max-width: 1400px;
	width: 92%;
	margin: 0 auto;
	text-align: center;
	padding: 40px 20px;
}

.jag-hero-eyebrow {
	display: inline-block;
	font-size: 13px;
	color: #ffffff;
	letter-spacing: 0.3em;
	font-weight: 700;
	margin-bottom: 24px;
	padding: 6px 18px;
	background: var(--jag-color-accent);
	border-radius: 2px;
	text-transform: uppercase;
}

.jag-hero-title {
	font-size: 32px;
	font-weight: 900;
	color: #ffffff;
	line-height: 1.55;
	margin: 0 0 36px;
	letter-spacing: 0.02em;
	text-shadow:
		0 2px 8px rgba(0, 0, 0, 0.8),
		0 0 30px rgba(0, 0, 0, 0.5);
}

.jag-hero-title strong {
	color: var(--jag-color-accent);
	font-weight: 900;
}

/* メイン動画プレーヤー (Google Drive) - 中央 */
.jag-hero-inner .jag-hero-video {
	max-width: 1100px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 3px solid var(--jag-color-accent);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.1),
		0 20px 60px rgba(0, 0, 0, 0.6),
		0 0 40px rgba(200, 16, 46, 0.3);
	position: relative;
}

.jag-hero-inner .jag-hero-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* 装飾: 斜めの赤いストライプ (荒々しさ) */
.jag-hero-stripes {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 200px;
	height: 200px;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.jag-hero-stripes span {
	position: absolute;
	right: -40px;
	width: 280px;
	height: 8px;
	background: var(--jag-color-accent);
	transform: rotate(-45deg);
	opacity: 0.85;
}

.jag-hero-stripes span:nth-child(1) { bottom: 30px; }
.jag-hero-stripes span:nth-child(2) { bottom: 60px; height: 4px; opacity: 0.6; }
.jag-hero-stripes span:nth-child(3) { bottom: 90px; height: 2px; opacity: 0.4; }

/* モバイル: 背景動画はサイズ調整 */
@media screen and (max-width: 900px) {
	.jag-hero-fullwidth {
		min-height: 80vh;
		padding: 60px 0;
	}
	.jag-hero-title {
		font-size: 20px;
		margin-bottom: 28px;
	}
	.jag-hero-eyebrow {
		font-size: 11px;
		letter-spacing: 0.2em;
		padding: 5px 14px;
	}
	.jag-hero-stripes {
		width: 120px;
		height: 120px;
	}
	.jag-hero-stripes span {
		width: 180px;
	}
}

/* ===============================================================
   Section: NEWS (さらにささやかな表示 - 横広・小フォント・低縦)
   =============================================================== */
.jag-news {
	background: var(--jag-color-bg-alt);
	padding: 20px 0;
}

.jag-news .jag-section-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
	padding-bottom: 8px;
	letter-spacing: 0.1em;
	color: var(--jag-color-text-muted);
}

.jag-news .jag-section-title::after {
	width: 24px;
	height: 1px;
}

.jag-news-grid {
	display: block;
	max-width: 980px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 16px;
	overflow: hidden;
}

.jag-news-card {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--jag-color-border);
	border-radius: 0;
	overflow: hidden;
	transition: none;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

.jag-news-card:last-child {
	border-bottom: none;
}

.jag-news-card:hover {
	transform: none;
	box-shadow: none;
	background: rgba(0, 0, 0, 0.02);
}

.jag-news-card a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	padding: 5px 4px;
}

/* 画像を非表示 */
.jag-news-card .jag-news-thumb {
	display: none;
}

.jag-news-card .jag-news-body {
	padding: 0;
	flex: 1;
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: nowrap;
	min-width: 0;
}

.jag-news-card h3 {
	font-size: 11px;
	font-weight: 400;
	color: var(--jag-color-text);
	line-height: 1.5;
	margin: 0;
	display: block;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.jag-news-card:hover h3 {
	color: var(--jag-color-accent);
}

.jag-news-card time {
	font-size: 10px;
	color: var(--jag-color-text-muted);
	display: inline-block;
	flex-shrink: 0;
	min-width: 78px;
	font-family: var(--jag-font-base);
}

.jag-news-link {
	text-align: center;
	margin-top: 10px;
}

.jag-news-link a {
	color: var(--jag-color-accent);
	text-decoration: none;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.jag-news-link a:hover {
	text-decoration: underline;
}

/* ===============================================================
   Section: #explainer
   =============================================================== */
#explainer {
	background: var(--jag-color-bg);
}

#explainer .jag-explainer-lead {
	text-align: center;
	font-size: 18px;
	line-height: 1.9;
	margin: 0 0 16px;
}

#explainer .jag-explainer-stats {
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--jag-color-accent);
	margin: 16px 0 32px;
}

#explainer .jag-cta-box {
	text-align: center;
	margin: 32px 0 56px;
}

#explainer .jag-explainer-block {
	background: transparent;
	padding: 32px 0;
	margin: 32px 0;
	text-align: center;
	border: none;
}

#explainer .jag-explainer-block h4 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 32px;
	color: var(--jag-color-primary);
	letter-spacing: 0.05em;
}

#explainer .jag-explainer-people {
	max-width: 900px;
	margin: 32px auto;
	background: transparent;
}

#explainer .jag-explainer-people img {
	width: 100%;
	height: auto;
	display: block;
}

/* 旧: award-banner (v3.0.14で未使用、CSSは残置) */
#explainer .jag-award-banner {
	background: var(--jag-color-primary);
	color: #ffffff;
	padding: 28px 32px;
	border-radius: 6px;
	margin: 40px 0;
	text-align: center;
	border-left: 4px solid var(--jag-color-accent);
}

#explainer .jag-award-banner h3 {
	color: #ffffff;
	font-size: 19px;
	margin: 0;
	line-height: 1.6;
}

/* 大サイズ フィーチャー動画 (総集編など最も見せたい動画) */
#explainer .jag-feature-video {
	max-width: 100%;
	margin: 48px auto;
	border: 3px solid var(--jag-color-accent);
	border-radius: 6px;
	overflow: hidden;
	box-shadow:
		0 8px 30px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(255, 255, 255, 0.1),
		0 0 40px rgba(200, 16, 46, 0.15);
}

#explainer .jag-feature-video .jag-video-frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

#explainer .jag-feature-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

#explainer .jag-video-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-top: 40px;
}

#explainer .jag-video-item h4 {
	font-size: 16px;
	margin: 0 0 12px;
}

#explainer .jag-video-frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

#explainer .jag-video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===============================================================
   Section: #school-background
   =============================================================== */
#school-background .jag-bg-lead {
	background: var(--jag-color-bg-alt);
	padding: 28px 32px;
	border-radius: 6px;
	margin: 0 0 48px;
	border-left: 4px solid var(--jag-color-accent);
}

#school-background .jag-bg-lead p {
	font-size: 16px;
	line-height: 2.0;
	margin: 0 0 16px;
}

#school-background .jag-bg-lead p:last-child {
	margin-bottom: 0;
}

/* ===============================================================
   Section: #teachers
   =============================================================== */
#teachers {
	background: var(--jag-color-bg-alt);
}

.jag-teachers-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-top: 24px;
}

.jag-teacher-card {
	background: #ffffff;
	border: 1px solid var(--jag-color-border);
	border-radius: 6px;
	padding: 28px 28px 24px;
	transition: box-shadow 0.2s ease;
	/* 動画メッセージを常にカード底辺に揃えるため flexbox 化 */
	display: flex;
	flex-direction: column;
}

.jag-teacher-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.jag-teacher-photo {
	width: 320px;
	height: 320px;
	max-width: 100%;
	margin: 0 auto 20px;
	overflow: hidden;
	border-radius: 4px;
}

.jag-teacher-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jag-teacher-name {
	font-size: 22px;
	font-weight: 700;
	color: var(--jag-color-primary);
	text-align: center;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--jag-color-accent);
	display: inline-block;
	width: auto;
}

.jag-teacher-name-wrap {
	text-align: center;
	margin-bottom: 20px;
}

.jag-teacher-bio {
	font-size: 14px;
	line-height: 1.9;
	color: var(--jag-color-text);
	margin: 0 0 16px;
}

.jag-teacher-role {
	background: var(--jag-color-bg-alt);
	padding: 12px 16px;
	border-radius: 4px;
	margin-top: 16px;
}

.jag-teacher-role h4 {
	font-size: 13px;
	font-weight: 700;
	color: var(--jag-color-accent);
	margin: 0 0 6px;
}

.jag-teacher-role p {
	font-size: 13px;
	margin: 0;
	color: var(--jag-color-text-muted);
}

/* 講師カード内の動画メッセージ */
.jag-teacher-video {
	/* flex親 (.jag-teacher-card) の中で常にカード底辺に揃える */
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--jag-color-border);
}

/* 動画メッセージの「上」に空白を取って区切る (margin-top:autoのため、その上の要素にmargin-bottomを) */
.jag-teacher-video::before {
	content: "";
	display: block;
	height: 20px;
}

.jag-teacher-video-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--jag-color-primary);
	text-align: center;
	margin: 0 0 10px;
	letter-spacing: 0.05em;
}

.jag-teacher-video .jag-video-frame {
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.jag-teacher-video .jag-video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.jag-teacher-special {
	grid-column: 1 / -1;
	background: #f5f5f5;
	color: var(--jag-color-text);
	border: 1px solid var(--jag-color-border);
	border-left: 4px solid var(--jag-color-accent);
}

.jag-teacher-special .jag-teacher-name {
	color: var(--jag-color-primary);
}

.jag-teacher-special .jag-teacher-bio {
	color: var(--jag-color-text);
}

/* ===============================================================
   Section: #curriculum + #schedule
   =============================================================== */
#curriculum-schedule .jag-curriculum-intro {
	background: var(--jag-color-bg-alt);
	padding: 32px;
	border-radius: 6px;
	margin: 0 0 48px;
}

#curriculum-schedule .jag-curriculum-intro p {
	font-size: 15px;
	line-height: 1.95;
	margin: 0 0 16px;
}

#curriculum-schedule .jag-schedule-images {
	margin: 32px 0;
}

#curriculum-schedule .jag-schedule-images img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 0 16px;
	border: 1px solid var(--jag-color-border);
	border-radius: 4px;
}

#curriculum-schedule .jag-class-block {
	margin: 48px 0;
}

#curriculum-schedule .jag-class-images {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 24px 0;
}

#curriculum-schedule .jag-class-images img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
}

#curriculum-schedule .jag-class-list {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}

#curriculum-schedule .jag-class-list li {
	font-size: 15px;
	line-height: 1.9;
	padding: 8px 0 8px 24px;
	position: relative;
}

#curriculum-schedule .jag-class-list li::before {
	content: "■";
	color: var(--jag-color-accent);
	position: absolute;
	left: 0;
	top: 8px;
	font-size: 10px;
}

/* 卒業スキルブロック (Masonry風レイアウトでカード高さの違いを吸収) */
.jag-skills-grid {
	display: block;
	columns: 2;
	column-gap: 24px;
	margin-top: 32px;
}

.jag-skill-card {
	background: var(--jag-color-bg-alt);
	padding: 24px;
	border-radius: 6px;
	border-top: 3px solid var(--jag-color-accent);
	/* Masonry時、カードが列をまたがって壊れないようにする */
	break-inside: avoid;
	page-break-inside: avoid;
	-webkit-column-break-inside: avoid;
	display: inline-block;
	width: 100%;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.jag-skill-card h4 {
	font-size: 17px;
	font-weight: 700;
	color: var(--jag-color-primary);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--jag-color-accent);
}

.jag-skill-card .jag-skill-item {
	margin-bottom: 16px;
}

.jag-skill-card .jag-skill-item:last-child {
	margin-bottom: 0;
}

.jag-skill-card .jag-skill-item h5 {
	font-size: 14px;
	font-weight: 700;
	color: var(--jag-color-accent);
	margin: 0 0 8px;
}

.jag-skill-card .jag-skill-item p {
	font-size: 13px;
	line-height: 1.85;
	margin: 0;
}

/* ===============================================================
   Section: #voice (1期生の声)
   =============================================================== */
#voice {
	background: var(--jag-color-bg-alt);
}

.jag-voice-intro {
	text-align: center;
	font-size: 15px;
	margin: 0 0 48px;
}

.jag-voice-card {
	background: #ffffff;
	border: 1px solid var(--jag-color-border);
	border-radius: 6px;
	padding: 32px;
	margin: 0 0 32px;
}

.jag-voice-video {
	aspect-ratio: 16 / 9;
	background: #000;
	margin: 0 0 24px;
}

.jag-voice-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.jag-voice-text p {
	font-size: 14px;
	line-height: 1.95;
	margin: 0 0 16px;
}

.jag-voice-author {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--jag-color-border);
}

.jag-voice-author img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.jag-voice-author-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--jag-color-primary);
}

/* ----- 監督作品 上映・受賞実績リスト ----- */
.jag-voice-achievements {
	margin-top: 28px;
	padding: 24px 28px;
	background: var(--jag-color-bg-alt);
	border-radius: 6px;
	border-left: 4px solid var(--jag-color-accent);
}

.jag-voice-achievements-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--jag-color-primary);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jag-color-border);
	letter-spacing: 0.02em;
}

.jag-voice-achievements-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jag-voice-achievements-list li {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--jag-color-border);
	font-size: 13px;
	line-height: 1.6;
}

.jag-voice-achievements-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.jag-voice-achievements-list li:first-child {
	padding-top: 0;
}

.jag-ach-date {
	font-size: 12px;
	font-weight: 700;
	color: var(--jag-color-accent);
	letter-spacing: 0.02em;
	white-space: nowrap;
	padding-top: 2px;
}

.jag-ach-event {
	font-weight: 700;
	color: var(--jag-color-primary);
	font-size: 13px;
	grid-column: 2;
	grid-row: 1;
}

.jag-ach-result {
	color: var(--jag-color-text);
	font-size: 12px;
	grid-column: 2;
	grid-row: 2;
}

.jag-ach-result-award {
	color: var(--jag-color-accent);
	font-weight: 700;
}

.jag-ach-result-award::before {
	content: "🏆 ";
	margin-right: 4px;
}

.jag-ach-place {
	color: var(--jag-color-text-muted);
	font-size: 11px;
	grid-column: 2;
	grid-row: 3;
}

/* モバイル: 日付を上部に置く */
@media screen and (max-width: 680px) {
	.jag-voice-achievements {
		padding: 18px 20px;
	}

	.jag-voice-achievements-list li {
		grid-template-columns: 1fr;
	}

	.jag-ach-date {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 2px;
	}

	.jag-ach-event,
	.jag-ach-result,
	.jag-ach-place {
		grid-column: 1;
	}

	.jag-ach-event { grid-row: 2; }
	.jag-ach-result { grid-row: 3; }
	.jag-ach-place { grid-row: 4; }
}

/* ===============================================================
   Section: #choi (ちょい見せ)
   =============================================================== */
#choi p {
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--jag-color-primary);
	margin-top: 32px;
}

#choi .jag-choi-videos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 32px 0 16px;
}

#choi .jag-choi-video {
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

#choi .jag-choi-video .jag-video-frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

#choi .jag-choi-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

@media screen and (max-width: 900px) {
	#choi .jag-choi-videos {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ===============================================================
   Section: 授業場所
   =============================================================== */
.jag-location-info {
	background: var(--jag-color-bg-alt);
	padding: 28px 32px;
	border-radius: 6px;
	margin: 32px 0;
	border-left: 4px solid var(--jag-color-accent);
}

.jag-location-info p {
	font-size: 15px;
	line-height: 1.95;
	margin: 0 0 12px;
}

.jag-location-info p:last-child {
	margin-bottom: 0;
}

.jag-location-map {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	margin: 32px 0;
}

.jag-location-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 4px;
}

/* ===============================================================
   Section: #fee (募集要項・授業料)
   =============================================================== */
#fee {
	background: var(--jag-color-bg-alt);
}

.jag-fee-card {
	background: #ffffff;
	border: 2px solid var(--jag-color-accent);
	border-radius: 8px;
	padding: 40px;
	max-width: 700px;
	margin: 0 auto;
}

.jag-fee-card h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--jag-color-accent);
	text-align: center;
	margin: 0 0 8px;
}

.jag-fee-card .jag-fee-sub {
	text-align: center;
	font-size: 14px;
	margin: 0 0 32px;
}

.jag-fee-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 16px 0;
	border-bottom: 1px solid var(--jag-color-border);
}

.jag-fee-row:last-child {
	border-bottom: none;
}

.jag-fee-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--jag-color-primary);
}

.jag-fee-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--jag-color-accent);
}

.jag-fee-note {
	font-size: 12px;
	color: var(--jag-color-text-muted);
	display: block;
	margin-top: 4px;
}

/* ===============================================================
   Section: #contact (お申し込みフォーム)
   =============================================================== */
#contact .jag-contact-intro {
	text-align: center;
	font-size: 15px;
	line-height: 1.9;
	margin: 0 0 32px;
}

#contact .jag-privacy-link {
	text-align: center;
	margin: 16px 0 32px;
}

#contact .jag-privacy-link a {
	color: var(--jag-color-accent);
	text-decoration: none;
	font-size: 14px;
}

#contact .jag-privacy-link a:hover {
	text-decoration: underline;
}

#contact .jag-form-wrap {
	max-width: 720px;
	margin: 0 auto;
	background: var(--jag-color-bg-alt);
	padding: 40px;
	border-radius: 6px;
}

/* CF7 form styles */
#contact .wpcf7 label {
	display: block;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
}

#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 textarea,
#contact .wpcf7 select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--jag-color-border);
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	margin-top: 6px;
	box-sizing: border-box;
}

#contact .wpcf7 input:focus,
#contact .wpcf7 textarea:focus,
#contact .wpcf7 select:focus {
	outline: none;
	border-color: var(--jag-color-accent);
	box-shadow: 0 0 0 3px var(--jag-color-accent-light);
}

#contact .wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

#contact .wpcf7 input[type="submit"] {
	background: var(--jag-color-accent);
	color: #ffffff;
	border: none;
	padding: 14px 48px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 16px;
	transition: background 0.2s ease;
}

#contact .wpcf7 input[type="submit"]:hover {
	background: var(--jag-color-accent-hover);
}

/* ===============================================================
   Section: #qanda
   =============================================================== */
#qanda .jag-faq-list {
	max-width: 820px;
	margin: 0 auto;
}

#qanda details {
	background: #ffffff;
	border: 1px solid var(--jag-color-border);
	border-radius: 4px;
	margin-bottom: 12px;
	overflow: hidden;
}

#qanda details[open] {
	border-color: var(--jag-color-accent);
}

#qanda summary {
	padding: 18px 24px 18px 56px;
	font-size: 15px;
	font-weight: 700;
	color: var(--jag-color-primary);
	cursor: pointer;
	position: relative;
	list-style: none;
	user-select: none;
}

#qanda summary::-webkit-details-marker {
	display: none;
}

#qanda summary::before {
	content: "Q";
	position: absolute;
	left: 20px;
	top: 16px;
	width: 26px;
	height: 26px;
	background: var(--jag-color-accent);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

#qanda summary::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--jag-color-accent);
	font-weight: 300;
}

#qanda details[open] summary::after {
	content: "−";
}

#qanda .jag-faq-answer {
	padding: 16px 24px 24px 56px;
	font-size: 14px;
	line-height: 1.95;
	color: var(--jag-color-text);
	position: relative;
	border-top: 1px solid var(--jag-color-border);
}

#qanda .jag-faq-answer::before {
	content: "A";
	position: absolute;
	left: 20px;
	top: 16px;
	width: 26px;
	height: 26px;
	background: var(--jag-color-primary);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

/* ===============================================================
   Section: #crowd
   =============================================================== */
#crowd {
	background: var(--jag-color-bg-alt);
}

.jag-crowd-list {
	columns: 3;
	column-gap: 40px;
	margin: 32px auto;
	max-width: 900px;
	list-style: none;
	padding: 0;
}

.jag-crowd-list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--jag-color-border);
	font-size: 14px;
	color: var(--jag-color-text);
	break-inside: avoid;
}

.jag-crowd-message {
	margin-top: 40px;
	padding: 28px;
	background: #ffffff;
	border-left: 4px solid var(--jag-color-accent);
	border-radius: 6px;
}

.jag-crowd-message p {
	font-size: 14px;
	line-height: 1.95;
	margin: 0;
}

/* ===============================================================
   レスポンシブ調整
   =============================================================== */
@media screen and (max-width: 900px) {
	:root {
		--jag-section-pad-y: var(--jag-section-pad-y-mobile);
	}

	.jag-section-title {
		font-size: 24px;
		margin-bottom: 32px;
	}

	.jag-sub-title {
		font-size: 18px;
	}

	#TP .jag-hero-title {
		font-size: 20px;
	}

	.jag-news-card a {
		flex-direction: column;
		gap: 4px;
		padding: 8px 4px;
	}

	.jag-news-card .jag-news-body {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.jag-news-card h3 {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 12px;
		line-height: 1.55;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.jag-news-card time {
		min-width: 0;
		font-size: 10px;
		display: block;
		margin-bottom: 2px;
	}

	#explainer .jag-video-list {
		grid-template-columns: 1fr;
	}

	.jag-teachers-grid {
		grid-template-columns: 1fr;
	}

	#curriculum-schedule .jag-class-images {
		grid-template-columns: repeat(2, 1fr);
	}

	.jag-skills-grid {
		columns: 1;
	}

	.jag-fee-card {
		padding: 24px;
	}

	.jag-fee-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	#contact .jag-form-wrap {
		padding: 24px;
	}

	#qanda summary {
		padding: 16px 50px 16px 50px;
		font-size: 14px;
	}

	#qanda .jag-faq-answer {
		padding: 16px 20px 20px 50px;
		font-size: 13px;
	}

	.jag-crowd-list {
		columns: 2;
		column-gap: 24px;
	}
}

@media screen and (max-width: 560px) {
	.jag-crowd-list {
		columns: 1;
	}
}

/* ===============================================================
   ヘッダーのサイトタイトル(テキスト)を非表示 (ロゴ画像だけ表示)
   ---------------------------------------------------------------
   設定値「サイトのタイトル」自体は変更しない (SEO/OGP/RSS等で使用)。
   ヘッダー上の見た目だけを非表示にする。
   =============================================================== */
.ast-site-title-wrap .site-title,
.site-header .site-title,
.site-branding .site-title,
.ast-site-identity .site-title {
	display: none !important;
}

/* キャッチフレーズもヘッダーには出さない */
.ast-site-title-wrap .site-description,
.site-header .site-description,
.site-branding .site-description,
.ast-site-identity .site-description {
	display: none !important;
}

/* ===============================================================
   トップへ戻るボタン (Scroll to Top)
   ---------------------------------------------------------------
   右下固定、スクロール位置で表示/非表示、アクションレッドの丸ボタン
   =============================================================== */
.jag-scroll-to-top {
	position: fixed;
	right: 24px;
	/* reCAPTCHA v3 バッジ (右下、約60-90px高) の上に重なる位置 */
	bottom: 110px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--jag-color-accent);
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.25),
		0 0 0 0 rgba(200, 16, 46, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
	padding: 0;
	font-family: inherit;
}

.jag-scroll-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jag-scroll-to-top:hover {
	background: var(--jag-color-accent-hover);
	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.3),
		0 0 0 4px rgba(200, 16, 46, 0.18);
	transform: translateY(-2px);
}

.jag-scroll-to-top:active {
	transform: translateY(0);
}

.jag-scroll-to-top:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.jag-scroll-to-top svg {
	display: block;
}

/* モバイル: 少し小さく + reCAPTCHA バッジの上に重ねる位置 */
@media screen and (max-width: 900px) {
	.jag-scroll-to-top {
		width: 44px;
		height: 44px;
		right: 16px;
		bottom: 100px;
	}
	.jag-scroll-to-top svg {
		width: 20px;
		height: 20px;
	}
}
