/* =============================================
   YouTube チャンネル「人材育成ナビ」紹介コーナー（include/function_youtube_public.php の ks_yt_channel_section）
   どのページでも使えるよう、クラスは ksyt- で閉じる。色はロゴに合わせる
   ============================================= */
.ksyt {
	--ksyt-teal: #04c6bc;
	--ksyt-teal-dark: #00857e;   /* 白地の文字用（コントラスト確保） */
	--ksyt-navy: #111a33;
	--ksyt-coral: #ff6550;
	--ksyt-yellow: #ffc812;
	--ksyt-bg: #eefaf9;
	position: relative; overflow: hidden;
	background: var(--ksyt-bg);
	padding: 56px 0;
	color: var(--ksyt-navy);
}
/* ロゴと同じ四分円の飾り */
.ksyt::before, .ksyt::after {
	content: ""; position: absolute; pointer-events: none;
	width: 180px; height: 180px; border-radius: 0 0 180px 0;
}
.ksyt::before { top: 0; left: 0; background: var(--ksyt-teal); opacity: 0.12; }
.ksyt::after { right: 0; bottom: 0; border-radius: 180px 0 0 0; background: var(--ksyt-yellow); opacity: 0.18; }

.ksyt-inner {
	position: relative; z-index: 1;
	max-width: 1140px; margin: 0 auto; padding: 0 15px;
	display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center;
}

/* --- 左: チャンネル紹介 --- */
.ksyt-title { margin: 0 0 18px; line-height: 1; }
.ksyt-logo {
	display: block; width: 280px; max-width: 100%; height: auto; box-sizing: content-box;
	background: #fff; border-radius: 14px; padding: 8px 12px; /* ロゴ画像は白地なので白い台紙に載せる */
	box-shadow: 0 6px 18px rgba(17, 26, 51, 0.08);
}
.ksyt-title-sub { display: block; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--ksyt-teal-dark); letter-spacing: 0.04em; }
.ksyt-catch { font-size: 1.45rem; font-weight: 800; line-height: 1.45; margin: 0 0 12px; color: var(--ksyt-navy); }
.ksyt-lead { font-size: 0.88rem; line-height: 1.85; color: #3b4459; margin: 0 0 16px; }
/* 扱うテーマ: 押せるものと紛らわしくないよう、枠なしの文字だけ */
.ksyt-themes {
	font-size: 0.8rem; line-height: 1.8; color: #3b4459; margin: 0 0 22px;
	padding-left: 10px; border-left: 3px solid var(--ksyt-teal);
}
.ksyt-themes span:not(.ksyt-themes-label) { white-space: nowrap; }
.ksyt-themes-label { display: block; font-size: 0.72rem; font-weight: 800; color: var(--ksyt-teal-dark); letter-spacing: 0.04em; }
.ksyt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ksyt-btn {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.9rem; font-weight: 800; border-radius: 999px; padding: 11px 22px;
	text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.ksyt-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ksyt-btn--sub { background: #e62117; color: #fff; box-shadow: 0 6px 16px rgba(230, 33, 23, 0.28); }
.ksyt-btn--sub:hover { color: #fff; box-shadow: 0 8px 20px rgba(230, 33, 23, 0.36); }
.ksyt-btn--sub i { font-size: 1.15em; }
.ksyt-btn--ghost { background: #fff; color: var(--ksyt-navy); border: 1.5px solid var(--ksyt-navy); padding: 9.5px 20px; }
.ksyt-btn--ghost:hover { background: var(--ksyt-navy); color: #fff; }
.ksyt-btn--ghost i { font-size: 0.75em; }
.ksyt-btn:focus-visible, .ksyt-card-link:focus-visible { outline: 3px solid var(--ksyt-yellow); outline-offset: 2px; }

/* --- 右: 動画 --- */
.ksyt-videos {
	display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; gap: 14px 22px;
}
.ksyt-card--main { grid-row: span 3; }
.ksyt-card--main:only-child { grid-column: 1 / -1; max-width: 680px; }
.ksyt-card-link { display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.ksyt-card-link:hover { color: inherit; text-decoration: none; }
.ksyt-thumb {
	position: relative; display: block; overflow: hidden; border-radius: 12px;
	aspect-ratio: 16 / 9; background: var(--ksyt-navy);
	box-shadow: 0 8px 22px rgba(17, 26, 51, 0.14);
}
.ksyt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.ksyt-card-link:hover .ksyt-thumb img { transform: scale(1.04); }
.ksyt-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 64px; height: 46px; border-radius: 14px; background: rgba(230, 33, 23, 0.92);
	transition: transform 0.2s, background 0.2s;
}
.ksyt-play::after {
	content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
	border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.ksyt-card-link:hover .ksyt-play { transform: translate(-50%, -50%) scale(1.08); background: #e62117; }
.ksyt-dur {
	position: absolute; right: 8px; bottom: 8px;
	font-size: 0.72rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.75);
	border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums;
}
.ksyt-card-body { display: block; padding-top: 12px; }
.ksyt-card-title {
	font-size: 1.05rem; font-weight: 800; line-height: 1.5; margin: 0 0 4px; color: var(--ksyt-navy);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ksyt-card-link:hover .ksyt-card-title { text-decoration: underline; text-underline-offset: 3px; }
.ksyt-cast { display: block; font-size: 0.78rem; color: var(--ksyt-teal-dark); font-weight: 700; }

/* 小さいカード（2本目以降）: 横並び */
.ksyt-card:not(.ksyt-card--main) .ksyt-card-link { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; align-items: center; }
.ksyt-card:not(.ksyt-card--main) .ksyt-card-body { padding-top: 0; }
.ksyt-card:not(.ksyt-card--main) .ksyt-card-title { font-size: 0.86rem; }
.ksyt-card:not(.ksyt-card--main) .ksyt-play { width: 40px; height: 28px; border-radius: 9px; }
.ksyt-card:not(.ksyt-card--main) .ksyt-play::after { border-width: 6px 0 6px 11px; }
.ksyt-card:not(.ksyt-card--main) .ksyt-dur { right: 5px; bottom: 5px; font-size: 0.64rem; }

/* 公開済みの動画がまだないとき */
.ksyt-empty {
	grid-column: 1 / -1; background: #fff; border-radius: 16px; padding: 28px 30px;
	box-shadow: 0 8px 22px rgba(17, 26, 51, 0.08);
}
.ksyt-empty-title { font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.ksyt-empty ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ksyt-empty li { position: relative; padding-left: 22px; font-size: 0.92rem; font-weight: 700; }
.ksyt-empty li::before { content: "「"; position: absolute; left: 4px; color: var(--ksyt-teal-dark); }
.ksyt-empty li::after { content: "」"; color: var(--ksyt-teal-dark); }
.ksyt-empty-note { font-size: 0.85rem; color: var(--ksyt-teal-dark); font-weight: 700; margin: 0; }

/* --- 再生モーダル（js/youtube_channel.js が body 直下に作る） --- */
.ksyt-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; }
.ksyt-modal.is-open { display: flex; }
.ksyt-modal-bg { position: absolute; inset: 0; background: rgba(9, 14, 28, 0.82); }
.ksyt-modal-box { position: relative; width: min(960px, 100%); }
.ksyt-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.ksyt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ksyt-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: #fff; }
.ksyt-modal-title { font-size: 0.95rem; font-weight: 700; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksyt-modal-links { display: flex; gap: 8px; flex-shrink: 0; }
.ksyt-modal-links a {
	font-size: 0.8rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 14px;
}
.ksyt-modal-links a.is-sub { background: #e62117; border-color: #e62117; }
.ksyt-modal-links a:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.ksyt-modal-close {
	position: absolute; right: 0; top: -44px; width: 36px; height: 36px; border: none; border-radius: 50%;
	background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer;
}
.ksyt-modal-close:hover { background: rgba(255, 255, 255, 0.3); }
body.ksyt-lock { overflow: hidden; }

/* --- レスポンシブ --- */
@media (max-width: 991px) {
	.ksyt-inner { grid-template-columns: 1fr; gap: 28px; }
	.ksyt-intro { max-width: 640px; }
}
@media (max-width: 768px) {
	.ksyt { padding: 36px 0; }
	.ksyt::before, .ksyt::after { width: 110px; height: 110px; }
	.ksyt-logo { width: 220px; max-width: calc(100% - 24px); }
	.ksyt-catch { font-size: 1.2rem; }
	.ksyt-lead { font-size: 0.84rem; }
	.ksyt-videos { grid-template-columns: 1fr; gap: 14px; }
	.ksyt-card--main { grid-row: auto; }
	.ksyt-card:not(.ksyt-card--main) .ksyt-card-link { grid-template-columns: 128px minmax(0, 1fr); }
	.ksyt-btn { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; }
	.ksyt-empty { padding: 20px; }
	.ksyt-modal { padding: 12px; }
	.ksyt-modal-bar { flex-direction: column; align-items: stretch; }
	.ksyt-modal-title { white-space: normal; }
	.ksyt-modal-links a { flex: 1; text-align: center; }
}
/* 小さいカードは出演者を出さず、タイトルを省略せず全文表示（2026-11-24） */
.ksyt-card:not(.ksyt-card--main) .ksyt-card-title { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* =============================================
   会社ページの「出演動画」（ks_yt_company_block・2026-11-25）
   本数でレイアウトを変える: ksyt-co--1 / --2 / --3 / --many（4 本以上）
   ksyt- の変数・サムネイル・再生ボタン・ボタンはコーナーと共通
   ============================================= */
.ksyt-co {
	--ksyt-teal: #04c6bc; --ksyt-teal-dark: #00857e; --ksyt-navy: #111a33; --ksyt-yellow: #ffc812;
	color: var(--ksyt-navy);
}
.ksyt-co-head { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.ksyt-co-logo {
	flex-shrink: 0; width: 150px; height: auto; box-sizing: content-box;
	background: #fff; border-radius: 10px; padding: 5px 8px; box-shadow: 0 4px 12px rgba(17, 26, 51, 0.08);
}
.ksyt-co-lead { margin: 0; font-size: 0.9rem; line-height: 1.75; color: #3b4459; }
.ksyt-co-lead strong { color: var(--ksyt-teal-dark); }

.ksyt-co-link { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.ksyt-co-link:hover { color: inherit; text-decoration: none; }
.ksyt-co-link:hover .ksyt-thumb img { transform: scale(1.04); }
.ksyt-co-link:hover .ksyt-play { transform: translate(-50%, -50%) scale(1.08); background: #e62117; }
.ksyt-co-link:hover .ksyt-co-title { text-decoration: underline; text-underline-offset: 3px; }
.ksyt-co-link:focus-visible { outline: 3px solid var(--ksyt-yellow); outline-offset: 2px; }
.ksyt-co-body { display: block; padding-top: 10px; }
.ksyt-co-title { font-size: 1rem; font-weight: 800; line-height: 1.55; margin: 0 0 4px; color: var(--ksyt-navy); }
.ksyt-co-cast { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ksyt-teal-dark); }
.ksyt-co-cast i { font-size: 0.85em; margin-right: 2px; }

/* --- 1 本: サムネイル＋右に説明 --- */
.ksyt-co--1 .ksyt-co-link {
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center;
	background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(17, 26, 51, 0.08);
}
.ksyt-co--1 .ksyt-co-body { padding: 0 8px 0 0; }
.ksyt-co--1 .ksyt-co-title { font-size: 1.25rem; line-height: 1.5; margin-bottom: 10px; }
.ksyt-co--1 .ksyt-co-cast { font-size: 0.85rem; margin-bottom: 8px; }
.ksyt-co-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: #6b7280; margin-bottom: 18px; }
.ksyt-co-playbtn {
	display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 800;
	color: #fff; background: #e62117; border-radius: 999px; padding: 10px 22px;
	box-shadow: 0 6px 16px rgba(230, 33, 23, 0.28); transition: box-shadow 0.2s;
}
.ksyt-co-link:hover .ksyt-co-playbtn { box-shadow: 0 8px 20px rgba(230, 33, 23, 0.4); }
.ksyt-co--1 .ksyt-co-link:hover .ksyt-co-title { text-decoration: none; }

/* --- 2 本・3 本: 同じ大きさで横に並べる --- */
.ksyt-co--2 .ksyt-co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ksyt-co--3 .ksyt-co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ksyt-co--2 .ksyt-co-title { font-size: 1.05rem; }
.ksyt-co--3 .ksyt-co-title { font-size: 0.92rem; }
.ksyt-co--3 .ksyt-play { width: 52px; height: 37px; border-radius: 11px; }
.ksyt-co--3 .ksyt-play::after { border-width: 8px 0 8px 14px; }

/* --- 4 本以上: 左に最新 1 本、右に 3 本 --- */
.ksyt-co--many .ksyt-co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ksyt-co--many .ksyt-co-card--main .ksyt-co-title { font-size: 1.15rem; }
.ksyt-co-side { display: grid; gap: 14px; }
@media (min-width: 992px) {
	/* 右の 3 本は左の大きいカードの高さに合わせて上下に均等に並べる */
	.ksyt-co--many .ksyt-co-grid { align-items: stretch; }
	.ksyt-co--many .ksyt-co-side { align-content: space-between; }
}
.ksyt-co-card--row .ksyt-co-link { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; }
.ksyt-co-card--row .ksyt-co-body { padding-top: 0; }
.ksyt-co-card--row .ksyt-co-title { font-size: 0.86rem; line-height: 1.5; margin: 0; }
.ksyt-co-card--row .ksyt-thumb { border-radius: 10px; box-shadow: 0 4px 12px rgba(17, 26, 51, 0.12); }
.ksyt-co-card--row .ksyt-play { width: 40px; height: 28px; border-radius: 9px; }
.ksyt-co-card--row .ksyt-play::after { border-width: 6px 0 6px 11px; }
.ksyt-co-card--row .ksyt-dur { right: 5px; bottom: 5px; font-size: 0.64rem; }
/* 5 本目以降（「ほかの動画を見る」で開く） */
.ksyt-co-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(17, 26, 51, 0.1); }
.ksyt-co-rest[hidden] { display: none; }
.ksyt-co-rest .ksyt-co-title { font-size: 0.9rem; }
.ksyt-co-rest .ksyt-play { width: 48px; height: 34px; border-radius: 10px; }
.ksyt-co-rest .ksyt-play::after { border-width: 7px 0 7px 13px; }
.ksyt-co-more-wrap { text-align: center; margin-top: 22px; }
.ksyt-co-more {
	font-size: 0.88rem; font-weight: 700; color: var(--ksyt-navy); background: #fff; cursor: pointer;
	border: 1.5px solid var(--ksyt-navy); border-radius: 999px; padding: 9px 24px; transition: background 0.2s, color 0.2s;
}
.ksyt-co-more:hover { background: var(--ksyt-navy); color: #fff; }
.ksyt-co-more:focus-visible { outline: 3px solid var(--ksyt-yellow); outline-offset: 2px; }

.ksyt-co-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* --- レスポンシブ --- */
@media (max-width: 991px) {
	.ksyt-co--3 .ksyt-co-grid, .ksyt-co-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ksyt-co--many .ksyt-co-grid { grid-template-columns: 1fr; }
	.ksyt-co-card--row .ksyt-co-link { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 768px) {
	.ksyt-co-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.ksyt-co-logo { width: 130px; }
	.ksyt-co-lead { font-size: 0.84rem; }
	.ksyt-co--1 .ksyt-co-link { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
	.ksyt-co--1 .ksyt-co-body { padding: 0 4px 6px; }
	.ksyt-co--1 .ksyt-co-title { font-size: 1.08rem; }
	.ksyt-co-playbtn { display: flex; justify-content: center; }
	.ksyt-co--2 .ksyt-co-grid { grid-template-columns: 1fr; gap: 20px; }
	/* 3 本・5 本目以降はスマホでは横並びの小さいカードにして縦に長くなりすぎないようにする */
	.ksyt-co--3 .ksyt-co-grid, .ksyt-co-rest { grid-template-columns: 1fr; gap: 14px; }
	.ksyt-co--3 .ksyt-co-link, .ksyt-co-rest .ksyt-co-link { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; }
	.ksyt-co--3 .ksyt-co-body, .ksyt-co-rest .ksyt-co-body { padding-top: 0; }
	.ksyt-co--3 .ksyt-co-title, .ksyt-co-rest .ksyt-co-title { font-size: 0.86rem; }
	.ksyt-co--3 .ksyt-play, .ksyt-co-rest .ksyt-play { width: 40px; height: 28px; border-radius: 9px; }
	.ksyt-co--3 .ksyt-play::after, .ksyt-co-rest .ksyt-play::after { border-width: 6px 0 6px 11px; }
	.ksyt-co-card--row .ksyt-co-link { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
	.ksyt-co-foot { flex-direction: column; align-items: stretch; }
	.ksyt-co-foot .ksyt-btn { justify-content: center; }
}
