/*
 * セミナー開催報告・資料ダウンロードの固定ページ（子テーマ v0.5.4）。
 * ページ属性のテンプレート「セミナー開催報告（資料ダウンロード）」のページだけで読み込む（inc/seminar-report-page.php）。
 * 並びと見た目は、全国テナント.com の開催報告ページ（プラグイン chinryozogaku-seminars の assets/seminar.css の .semrep 部分）に合わせた。
 * 違い: 参加者の声は持たない。最後の資料の欄は、セミナー参加者の方／それ以外の方の2つのタブ（.chitsem-*。プラグインの .semrep- の部品と名前が重ならないようにした）。
 * 色・文字は親テーマの変数（--navy-950 など）を使う。ブロックエディターのブロック（写真・グループ）に付けたクラス名に効く。
 */

.semrep [hidden] { display: none !important; }
.semrep .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.semrep .section-label { color: var(--green-700); }
/* v0.5.6: margin: 0 だと、同じ要素に付く親テーマの .container の左右 auto（中央寄せ）を打ち消し、全部が左に寄っていた。上下だけ 0 にする。 */
.semrep .wp-block-group { margin-block: 0; }
/* v0.5.7: クラシックテーマでは、グループブロックの中身が wp-block-group__inner-container の div に包まれ、2列・ギャラリーのグリッドの子が1つ（この div）になって、中身が左の1列に積まれていた。グリッドを持つ4か所だけ、この div の箱をなくして、中身を直接グリッドの子にする（箱がない場合は何も起きない）。 */
.semrep-hero__grid > .wp-block-group__inner-container,
.semrep-overview > .wp-block-group__inner-container,
.semrep-cta__inner > .wp-block-group__inner-container,
.semrep-gallery > .wp-block-group__inner-container { display: contents; }
.semrep figure { margin: 0; }
.semrep-sp { display: none; }

/* ---------- ヒーロー ---------- */
.semrep-hero {
	padding: 72px 0 64px;
	background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
}
.semrep-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 56px;
	align-items: center;
}
.semrep-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	color: var(--green-700);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
}
.semrep-badge {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--navy-900);
	color: #fff;
	font-size: 12px;
	letter-spacing: .06em;
}
.semrep-hero h1 {
	margin: 0 0 20px;
	color: var(--navy-950);
	font-size: clamp(26px, 2.9vw, 36px);
	line-height: 1.55;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.semrep-lead { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 2; }
.semrep-brands {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 500px;
	margin: 0 0 30px;
	padding: 14px 20px;
	background: #fff;
	border: 1px solid var(--line);
}
/* スマサテのロゴ（トップの告知パネルと同じ画像・同じ切り取り方） */
.semrep-brands__suma { display: block; position: relative; overflow: hidden; width: 58%; aspect-ratio: 1728 / 351; }
.semrep-brands__suma img { position: absolute; display: block; max-width: none; height: auto; border: 0; width: 118.518519%; left: -9.259259%; top: -34.188034%; }
.semrep-brands__cross { color: var(--muted); font-size: 22px; line-height: 1; }
.semrep-brands__ikari { display: block; width: 26%; height: auto; }
.semrep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.semrep .semrep-hero__photo { margin: 0; }
.semrep .semrep-hero__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: var(--shadow);
}
.semrep .semrep-hero__photo figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: left; }

/* ---------- 節の共通 ---------- */
.semrep-section { padding: 88px 0; }
.semrep-section--tint { background: var(--blue-50); }
.semrep-heading { max-width: 760px; margin-bottom: 36px; }
.semrep-heading h2 {
	margin: 6px 0 12px;
	color: var(--navy-950);
	font-size: clamp(23px, 2.5vw, 31px);
	line-height: 1.5;
}
.semrep-heading p { margin: 0; color: var(--muted); line-height: 1.9; }

/* ---------- 開催概要 ---------- */
.semrep-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
	gap: 48px;
	align-items: start;
}
.semrep-dl { margin: 0; }
.semrep-dl > div {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}
.semrep-dl > div:last-child { border-bottom: 1px solid var(--line); }
.semrep-dl dt { color: var(--navy-900); font-weight: 800; }
.semrep-dl dd { margin: 0; color: var(--ink); line-height: 1.8; }
.semrep-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.semrep-ext {
	color: var(--green-700) !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.semrep-ext::after { content: "↗"; margin-left: 2px; font-size: .8em; font-weight: 400; }
.semrep-ext:hover,
.semrep-ext:focus-visible { color: var(--navy-900) !important; }

/* ---------- 講演の内容 ---------- */
.semrep-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.semrep-points li { padding: 28px 30px 30px; background: #fff; border: 1px solid var(--line); }
.semrep-points__no { color: var(--green-600); font-size: 30px; font-weight: 300; letter-spacing: .04em; }
.semrep-points h3 { margin: 8px 0 10px; color: var(--navy-950); font-size: 19px; line-height: 1.55; }
.semrep-points p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.semrep-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* v0.5.8: 講演の流れ（全国テナント.com の開催報告ページと同じ部品。プラグイン seminar.css の .semrep-agenda をそのまま移した） */
.semrep-agenda {
	margin-top: 40px;
	padding: 28px 32px;
	background: #fff;
	border-left: 4px solid var(--green-600);
}
.semrep-agenda h3 { margin: 0 0 8px; color: var(--navy-950); font-size: 18px; }
.semrep-agenda ol { margin: 0; padding: 0; list-style: none; }
.semrep-agenda li {
	display: grid;
	grid-template-columns: 7.5em minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-top: 1px dashed var(--line);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.8;
}
.semrep-agenda li:first-child { border-top: 0; }
.semrep-agenda strong { color: var(--green-700); }
/* ---------- 当日の様子（写真） ---------- */
.semrep-gallery {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.semrep .semrep-gallery figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--blue-100); }
.semrep .semrep-gallery__wide { grid-row: 1 / span 2; }
.semrep .semrep-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 資料のダウンロード（鍵つきの欄。名前は chitsem- で始め、プラグインの semrep- の部品と重ならない） ---------- */
.semrep-download > * { max-width: 900px; }
.chitsem-files { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chitsem-file {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--line);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.chitsem-file__type {
	display: grid;
	place-items: center;
	width: 46px;
	height: 58px;
	margin: 0;
	background: var(--action);
	clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.chitsem-file .chitsem-file__type { margin: 0; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.chitsem-file h3 { margin: 0 0 4px; color: var(--navy-950); font-size: 17px; }
.chitsem-file p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.chitsem-file__action { justify-self: end; }
.chitsem-file__lock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12.5px;
	white-space: nowrap;
}
.chitsem-file__dl {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 22px;
	border-radius: 4px;
	background: var(--navy-900);
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}
.chitsem-file__dl::after { content: ""; position: absolute; inset: 0; }
.chitsem-file.is-unlocked { border-color: var(--green-600); }
.chitsem-file.is-unlocked:hover { box-shadow: 0 8px 22px rgba(7, 25, 47, .08); }
.chitsem-file.is-unlocked:hover .chitsem-file__dl,
.chitsem-file__dl:focus-visible { background: var(--navy-800); }
.chitsem-file__dl:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
.chitsem-ok { margin-top: 10px; }

.chitsem-gate { margin-top: 20px; background: #fff; border: 1px solid var(--line); }
.chitsem-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chitsem-tabs button {
	padding: 16px 12px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: var(--blue-100);
	color: var(--navy-800);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	cursor: pointer;
}
.chitsem-tabs button[aria-selected="true"] {
	background: #fff;
	border-bottom-color: #fff;
	box-shadow: inset 0 3px 0 var(--green-600);
	color: var(--navy-950);
}
.chitsem-tabs button:focus-visible { outline: 3px solid var(--green-600); outline-offset: -3px; }
.chitsem-tabpanel { padding: 28px 32px 30px; }
.chitsem-tabpanel > p { margin: 0 0 18px; color: var(--ink); line-height: 1.9; }
.chitsem-field { margin: 0 0 16px; }
.chitsem-field label { display: block; margin-bottom: 6px; color: var(--navy-900); font-weight: 700; }
.chitsem-field input {
	box-sizing: border-box;
	width: 100%;
	max-width: 460px;
	padding: 12px 14px;
	border: 1px solid #b9c5d0;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 16px;
}
.chitsem-field input:focus { outline: 3px solid rgba(18, 128, 100, .25); border-color: var(--green-600); }
.chitsem-req {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--action);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 2px;
}
.chitsem-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 10px;
	padding: 14px 16px;
	background: var(--blue-50);
	border: 1px solid var(--line);
	color: var(--ink);
	font-size: 14px;
	line-height: 1.8;
	cursor: pointer;
}
.chitsem-consent input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; }
.chitsem-privacy,
.chitsem-help { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.chitsem-error { display: none; margin: 10px 0; color: var(--action); font-weight: 700; white-space: pre-line; }
.chitsem-error--show { display: block; }
.chitsem-form .button { margin-top: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.chitsem-form .button[disabled] { opacity: .6; cursor: progress; }
.chitsem-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* ---------- 管理会社向けの案内・注記 ---------- */
.semrep-cta { padding: 76px 0; background: var(--green-700); color: #fff; }
.semrep-cta .section-label { color: #bfe8da; }
.semrep-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px 56px;
	align-items: center;
}
.semrep-cta h2 { margin: 6px 0 14px; color: #fff; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.5; }
.semrep-cta p { margin: 0; color: rgba(255, 255, 255, .88); line-height: 1.9; }
.semrep-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.semrep-cta .text-link { color: #fff; }
.semrep-disclaimer { padding-top: 24px; padding-bottom: 48px; color: var(--muted); font-size: 12px; line-height: 1.8; }

@media (max-width: 900px) {
	.semrep-hero__grid,
	.semrep-overview,
	.semrep-cta__inner { grid-template-columns: minmax(0, 1fr); }
	.semrep-hero__grid { gap: 36px; }
	.semrep-overview { gap: 8px; }
	.semrep-points { grid-template-columns: minmax(0, 1fr); }
	.semrep-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
	.semrep .semrep-gallery__wide { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.semrep-sp { display: inline; }
	.semrep-hero { padding: 40px 0 56px; }
	.semrep-section { padding: 56px 0; }
	.semrep-cta { padding: 56px 0; }
	.semrep-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
	.semrep-points li { padding: 22px 20px 24px; }
	.semrep-agenda { padding: 22px 20px; }
	.semrep-agenda li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.chitsem-file { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; }
	.chitsem-file__action { grid-column: 1 / -1; justify-self: stretch; }
	.chitsem-file__lock { white-space: normal; }
	.chitsem-file__dl { justify-content: center; width: 100%; }
	.chitsem-tabpanel { padding: 22px 18px 24px; }
	.semrep-brands { padding: 12px 14px; gap: 12px; }
	.semrep-actions .button { width: 100%; text-align: center; }
}
