@charset "utf-8";
/* =========================================================
   SEOを学ぶ（コース型）ページ専用スタイル
   東京SEOメーカー / admano-theme

   - main-style.css / content.css の後に読み込む前提
   - すべて main.p_course 配下に限定（他ページ・ヘッダー・フッターへ影響させない）
   - 色・フォントはテーマの CSS変数（--c-main 等）をそのまま利用
   - 命名：l_ layout / t_ text / c_ component / p_ page / u_ utility
   ========================================================= */

/* ---------------------------------------------------------
   0. ページ全体
--------------------------------------------------------- */
.p_course {
	--c-navy: #09156e;
	--shadow: 0 2px 10px rgba(20, 69, 161, .08);
	--learn-header-h: 120px; /* 固定ヘッダーの高さ（seo-learn.js が実測値で上書き） */
	display: block;
	color: var(--c-font);
	font-family: var(--f-sans);
	font-size: 1.5rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	/* overflow-x: clip on this ancestor prevents sticky navigation in some browsers. */
	overflow: visible;
}
@media (max-width: 1000px) {
	.p_course { --learn-header-h: 100px; }
}
@media (max-width: 896px) {
	.p_course { font-size: 1.4rem; }
}
.p_course :focus-visible { outline: 3px solid var(--c-main-ml); outline-offset: 2px; }
.p_course button { font: inherit; color: inherit; cursor: pointer; }
.p_course .u_sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.p_course .u_svg_sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.p_course .ic {
	width: 1.8rem; height: 1.8rem; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.p_course .l_inner { max-width: 1210px; margin: 0 auto; padding: 0 15px; }

/* ---------------------------------------------------------
   1. c_youtube（動画サムネ）
   テーマの .c_youtube / .c_youtube_icon と同名のため、差分をここで上書き
--------------------------------------------------------- */
.p_course .c_youtube {
	display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
	color: #fff; cursor: pointer;
}
.p_course .c_youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.p_course .c_youtube.__g1 { background: linear-gradient(130deg, var(--c-navy) 0%, var(--c-sub) 100%); }
.p_course .c_youtube.__g2 { background: linear-gradient(130deg, #081040 0%, var(--c-main) 100%); }
.p_course .c_youtube.__g3 { background: linear-gradient(130deg, var(--c-main) 0%, #669dfa 100%); }
.p_course .c_youtube.__g4 { background: linear-gradient(130deg, #1f2a68 0%, var(--c-sub) 100%); }
.p_course .c_youtube_thumb { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.p_course .c_youtube_thumb::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px);
}
/* 実サムネイル画像を使う場合（.c_youtube_thumb.__img > img） */
.p_course .c_youtube_thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; }
.p_course .c_youtube_thumb.__img::before { display: none; }
.p_course .c_youtube .person { position: absolute; right: 4%; bottom: 0; height: 88%; fill: rgba(255, 255, 255, .16); }
.p_course .c_youtube .catch {
	position: absolute; left: 12px; right: 38%; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 4px; margin: 0;
}
.p_course .c_youtube .catch .main { font-size: 1.7rem; font-weight: 900; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.p_course .c_youtube .catch .sub { font-size: 1.3rem; font-weight: 700; opacity: .92; }
.p_course .c_youtube_icon {
	position: absolute; left: auto; right: 13%; top: 50%; transform: none;
	width: 44px; height: 31px; margin-top: -15px;
	background: #f00; border-radius: 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
	opacity: .9; transition: transform .25s, opacity .25s;
}
.p_course .c_youtube_icon::after {
	content: ""; position: absolute; left: 17px; top: 8.5px;
	border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.p_course .c_youtube:hover .c_youtube_icon { opacity: 1; }
.p_course .c_youtube:hover .c_youtube_icon,
.p_course .c_youtube:focus-visible .c_youtube_icon { transform: scale(1.08); }
.p_course .c_youtube:hover .c_youtube_thumb { transform: scale(1.04); }
.p_course .c_youtube .time {
	position: absolute; right: 8px; bottom: 8px;
	display: inline-flex; align-items: center; gap: 3px;
	padding: 3px 6px 1px; background: rgba(0, 0, 0, .72); border-radius: 3px;
	font-family: var(--f-josefin); font-size: 1.1rem; font-weight: 600; line-height: 1.3;
}
.p_course .c_youtube .time .ic { width: 1rem; height: 1rem; }

/* 大（ピックアップ） */
.p_course .c_youtube.__large .catch { left: 24px; right: 32%; top: 54%; }
.p_course .c_youtube.__large .catch .main { font-size: clamp(2.4rem, 2.5vw, 3.4rem); }
.p_course .c_youtube.__large .catch .sub { font-size: clamp(1.3rem, 1.3vw, 1.7rem); }
.p_course .c_youtube.__large .c_youtube_icon { width: 60px; height: 42px; margin-top: -21px; right: 12%; }
.p_course .c_youtube.__large .c_youtube_icon::after { left: 23px; top: 11px; border-left-width: 17px; border-top-width: 10px; border-bottom-width: 10px; }
.p_course .c_youtube.__large .time { right: 12px; bottom: 12px; font-size: 1.3rem; }

/* 章のメイン動画 */
.p_course .c_youtube.__feature .catch .main { font-size: clamp(2.2rem, 2vw, 2.8rem); }
.p_course .c_youtube.__feature .c_youtube_icon { width: 56px; height: 40px; margin-top: -20px; }
.p_course .c_youtube.__feature .c_youtube_icon::after { left: 21px; top: 11px; border-left-width: 16px; border-top-width: 9px; border-bottom-width: 9px; }
.p_course .c_youtube.__feature .time { right: 12px; bottom: 12px; font-size: 1.3rem; }

/* 小（章内リスト） */
.p_course .c_youtube.__small .catch,
.p_course .c_youtube.__small .time { display: none; }
.p_course .c_youtube.__small .c_youtube_icon { right: 50%; margin-right: -16px; width: 32px; height: 23px; margin-top: -11px; border-radius: 7px; }
.p_course .c_youtube.__small .c_youtube_icon::after { left: 12px; top: 6px; border-left-width: 10px; border-top-width: 5.5px; border-bottom-width: 5.5px; }

/* 視聴済み */
.p_course .c_youtube .watched {
	position: absolute; left: 10px; top: 10px; z-index: 2;
	display: none; width: 28px; height: 28px; place-items: center;
	border-radius: 50%; background: #fff; color: var(--c-sub); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.p_course .c_youtube .watched .ic { width: 1.6rem; height: 1.6rem; stroke-width: 3; }
.p_course .c_youtube.is_watched .watched { display: grid; }
.p_course .c_youtube.is_watched::after { content: ""; position: absolute; inset: 0; background: rgba(9, 21, 110, .25); pointer-events: none; }
.p_course .c_youtube.__small .watched { left: 6px; top: 6px; width: 22px; height: 22px; }
.p_course .c_youtube.__small .watched .ic { width: 1.3rem; height: 1.3rem; }

@media (max-width: 896px) {
	.p_course .c_youtube.__large .catch { left: 16px; right: 28%; }
	.p_course .c_youtube.__large .catch .main { font-size: 2.1rem; }
	.p_course .c_youtube.__large .catch .sub { font-size: 1.2rem; }
	.p_course .c_youtube.__large .c_youtube_icon { width: 48px; height: 34px; margin-top: -17px; right: 8%; }
	.p_course .c_youtube.__large .c_youtube_icon::after { left: 18px; top: 9px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
	.p_course .c_youtube.__feature .catch .main { font-size: 2rem; }
	.p_course .c_youtube.__feature .c_youtube_icon { width: 48px; height: 34px; margin-top: -17px; }
	.p_course .c_youtube.__feature .c_youtube_icon::after { left: 18px; top: 9px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
}

/* ---------------------------------------------------------
   2. リンク部品（関連記事・ホワイトペーパー）
--------------------------------------------------------- */
.p_course .list_link li a {
	--pad: 4px;
	display: block; position: relative; padding: var(--pad) 0 var(--pad) 15px;
	font-size: 1.4rem; line-height: 1.5; color: var(--c-main);
}
.p_course .list_link li a::before {
	content: ""; position: absolute; left: 1px; top: calc(var(--pad) + .75em - 4px);
	width: 6px; height: 6px; border-top: 2px solid var(--c-sub); border-right: 2px solid var(--c-sub); transform: rotate(45deg);
}
.p_course .list_link li a:hover { text-decoration: underline; }

.p_course .c_link_dl {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px;
	border-radius: 8px; background: #f3f7fd; border: 1px solid transparent;
	transition: background .2s, border-color .2s, transform .2s;
}
.p_course .c_link_dl:hover { border-color: var(--c-main-ml); background: var(--c-main-l); }
.p_course .c_link_dl .icon { width: 2.2rem; height: 2.2rem; color: var(--c-sub); }
.p_course .c_link_dl .body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1.45; }
.p_course .c_link_dl .cat { width: 100%; font-size: 1.05rem; font-weight: 700; color: var(--c-gray); }
.p_course .c_link_dl .name { font-size: 1.3rem; font-weight: 700; color: var(--c-font); }
.p_course .c_link_dl .page { font-size: 1.1rem; color: var(--c-gray); }
.p_course .c_link_dl .action {
	flex: none; width: 32px; height: 32px; display: grid; place-items: center;
	border-radius: 50%; background: var(--c-sub); color: #fff; transition: transform .2s;
}
.p_course .c_link_dl .action .ic { width: 1.6rem; height: 1.6rem; stroke-width: 2.2; }
.p_course .c_link_dl:hover .action { transform: translateY(2px); }

/* ---------------------------------------------------------
   3. FV（p_learn_mv）
--------------------------------------------------------- */
.p_course .p_learn_mv {
	position: relative; overflow: hidden;
	background: linear-gradient(100deg, #f5f9ff 0%, var(--c-main-l) 60%, #d9e8fc 100%);
}
.p_course .p_learn_mv::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(47, 92, 206, .14) 1px, transparent 1.2px); background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(100deg, transparent 0%, #000 55%, transparent 100%);
}
.p_course .p_learn_mv::after {
	content: ""; position: absolute; right: -120px; top: -140px; width: 560px; height: 560px; pointer-events: none;
	border-radius: 50%; background: radial-gradient(closest-side, rgba(118, 199, 255, .45), transparent);
}
.p_course .p_learn_mv .l_inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px; row-gap: 0; align-items: center;
	padding-top: calc(var(--learn-header-h) + 16px); padding-bottom: 48px;
}

/* パンくず */
.p_course .breadcrumb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 1.2rem; color: var(--c-gray); }
.p_course .breadcrumb__item + .breadcrumb__item::before { content: "›"; margin-right: 8px; }
.p_course .breadcrumb__item a:hover { color: var(--c-sub); }

/* 左：コピー・検索 */
.p_course .p_learn_mv .col_text { padding: 8px 0; }
.p_course .p_learn_mv .copy { margin: 0; font-size: 1.7rem; font-weight: 700; color: var(--c-navy); }
.p_course .p_learn_mv .maincopy {
	margin: 10px 0 0; font-size: 6.4rem; font-weight: 900; line-height: 1.15; letter-spacing: .02em; color: var(--c-main);
	background: linear-gradient(90deg, var(--c-main), var(--c-sub));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p_course .p_learn_mv .col_text .text { max-width: 30em; margin: 22px 0 0; font-size: 1.5rem; line-height: 2; }

.p_course .c_form_search {
	position: relative; display: flex; max-width: 520px; margin: 36px 0 0; padding: 5px;
	background: #fff; border: 1px solid var(--c-gray-m); border-radius: 999px; box-shadow: var(--shadow);
}
.p_course .c_form_search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; color: var(--c-gray); }
.p_course .c_form_search input {
	flex: 1; min-width: 0; max-width: none; height: 44px; margin: 0; padding: 0 12px 0 46px;
	border: 0; border-radius: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: 1.5rem; color: var(--c-font); -webkit-appearance: none; appearance: none;
}
.p_course .c_form_search input:focus { outline: none; }
.p_course .c_form_search:focus-within { border-color: var(--c-sub); box-shadow: 0 0 0 3px rgba(47, 92, 206, .18); }
.p_course .c_form_search button {
	flex: none; width: auto; margin: 0; padding: 0 26px; border: 0; border-radius: 999px;
	background: var(--c-sub); color: #fff; font-size: 1.4rem; font-weight: 700;
}
.p_course .c_form_search button:hover { background: var(--c-main); }

.p_course .blc_keyword { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.p_course .blc_keyword .label { margin: 0; font-size: 1.2rem; color: var(--c-gray); }
.p_course .list_keyword { display: flex; flex-wrap: wrap; gap: 10px; }
.p_course .list_keyword a {
	display: block; padding: 3px 12px; border: 1px solid var(--c-main-ml); border-radius: 999px;
	background: rgba(255, 255, 255, .7); font-size: 1.25rem; color: var(--c-main);
}
.p_course .list_keyword a:hover { background: var(--c-sub); border-color: var(--c-sub); color: #fff; }

/* 右：ピックアップ（カルーセル） */
.p_course .c_carousel { padding-top: 20px; }
.p_course .c_carousel .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.p_course .c_carousel .pick_label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 2rem; font-weight: 900; line-height: 1.7; color: var(--c-navy); }
.p_course .c_carousel .pick_label .ic { width: 2.2rem; height: 2.2rem; color: var(--c-accent); }
.p_course .c_carousel .pick_label span { margin-left: 8px; font-size: 1.4rem; font-weight: 400; color: var(--c-gray); }
.p_course .c_carousel .track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 0 -20px -12px; padding: 4px 20px 32px; scroll-padding: 0 20px;
}
.p_course .c_carousel .track::-webkit-scrollbar { display: none; }
.p_course .c_carousel .slide { flex: 0 0 100%; scroll-snap-align: start; }
.p_course .c_carousel .ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 2px; }
.p_course .c_carousel .ctrl .btn_prev,
.p_course .c_carousel .ctrl .btn_next {
	width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
	border-radius: 50%; border: 1px solid var(--c-main-ml); background: #fff; color: var(--c-sub);
}
.p_course .c_carousel .ctrl .btn_prev:hover:not(:disabled),
.p_course .c_carousel .ctrl .btn_next:hover:not(:disabled) { background: var(--c-sub); border-color: var(--c-sub); color: #fff; }
.p_course .c_carousel .ctrl button:disabled { opacity: .35; cursor: default; }
.p_course .c_carousel .btn_prev .ic { transform: rotate(180deg); }
.p_course .c_carousel .dots { display: flex; justify-content: center; gap: 8px; }
.p_course .c_carousel .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--c-main-ml); transition: width .2s; }
.p_course .c_carousel .dots button[aria-selected="true"] { width: 24px; background: var(--c-sub); }

.p_course .c_pick_card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 69, 161, .12);
	transition: box-shadow .3s, transform .3s;
}
.p_course .c_pick_card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(20, 69, 161, .18); }
.p_course .c_pick_card .body { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 18px; }
.p_course .c_pick_card .tag { align-self: flex-start; margin: 0; padding: 2px 10px; border-radius: 4px; background: var(--c-accent); color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
.p_course .c_pick_card .title { margin: 8px 0 0; font-size: 1.7rem; font-weight: 700; line-height: 1.45; }
.p_course .c_pick_card .title a:hover { color: var(--c-sub); }
.p_course .c_pick_card .text { margin: 4px 0 14px; font-size: 1.35rem; color: var(--c-gray); }
.p_course .c_pick_card .c_youtube.__large .catch { left: 20px; right: 30%; }
.p_course .c_pick_card .c_youtube.__large .catch .main { font-size: clamp(2rem, 1.9vw, 2.6rem); }
.p_course .c_pick_card .c_youtube.__large .catch .sub { font-size: 1.3rem; }
.p_course .c_pick_card .c_youtube.__large .c_youtube_icon { width: 52px; height: 37px; margin-top: -18px; right: 9%; }
.p_course .c_pick_card .c_youtube.__large .c_youtube_icon::after { left: 20px; top: 10px; border-left-width: 14px; border-top-width: 8.5px; border-bottom-width: 8.5px; }

.p_course .blc_pick_more { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--c-gray-m); }
.p_course .blc_pick_more summary {
	display: flex; align-items: center; gap: 6px; margin-top: 10px;
	font-size: 1.3rem; font-weight: 700; color: var(--c-navy); cursor: pointer; list-style: none;
}
.p_course .blc_pick_more summary::-webkit-details-marker { display: none; }
.p_course .blc_pick_more summary .ic { width: 1.6rem; height: 1.6rem; color: var(--c-sub); }
.p_course .blc_pick_more summary .arrow { margin-left: auto; transition: transform .2s; }
.p_course .blc_pick_more[open] summary .arrow { transform: rotate(180deg); }
.p_course .blc_pick_more .list_link { margin-top: 6px; }
.p_course .blc_pick_more .c_link_dl { margin-top: 8px; }

@media (max-width: 1199px) {
	.p_course .p_learn_mv .l_inner { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; }
}
@media (max-width: 1000px) {
	.p_course .p_learn_mv .l_inner { grid-template-columns: 1fr; }
	.p_course .p_learn_mv .col_text { padding: 18px 0 8px; }
}
@media (max-width: 896px) {
	.p_course .p_learn_mv::after { width: 340px; height: 340px; right: -140px; top: -120px; }
	.p_course .p_learn_mv .copy { font-size: 1.4rem; }
	.p_course .p_learn_mv .maincopy { margin-top: 6px; font-size: 4.2rem; }
	.p_course .p_learn_mv .col_text .text { margin-top: 16px; font-size: 1.4rem; line-height: 1.9; }
	.p_course .c_form_search { margin-top: 26px; }
	.p_course .c_form_search input { font-size: 1.6rem; }
	.p_course .c_form_search button { padding: 0 18px; }
	.p_course .blc_keyword { margin-top: 16px; }
	.p_course .c_carousel { padding-top: 28px; }
	.p_course .c_carousel .pick_label { flex-wrap: wrap; font-size: 1.8rem; }
	.p_course .c_carousel .pick_label span { width: 100%; margin: 2px 0 0; font-size: 1.3rem; }
	.p_course .c_carousel .track { gap: 12px; margin: 0 -15px; padding: 4px 15px 16px; scroll-padding: 0 15px; }
	.p_course .c_carousel .slide { flex-basis: 88%; }
	.p_course .c_carousel .ctrl .btn_prev,
	.p_course .c_carousel .ctrl .btn_next { display: none; }
	.p_course .c_pick_card .body { padding: 14px 16px 16px; }
	.p_course .c_pick_card .c_youtube.__large .catch .main { font-size: 2.1rem; }
	.p_course .c_pick_card .c_youtube.__large .c_youtube_icon { width: 48px; height: 34px; margin-top: -17px; right: 8%; }
	.p_course .c_pick_card .c_youtube.__large .c_youtube_icon::after { left: 18px; top: 9px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
}

/* ---------------------------------------------------------
   4. 本文：左に追従する章ナビ＋右に章パネル
--------------------------------------------------------- */
.p_course .p_course_body { padding: 56px 0 64px; background: #f4f7fc; }
.p_course .p_course_body > .l_inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; overflow: visible; }

/* 章ナビ */
.p_course .p_course_nav { position: sticky; top: calc(var(--learn-header-h) + 24px); align-self: start; height: max-content; z-index: 20; }
.p_course .list_chapter { position: relative; margin: 0; border-left: 2px solid var(--c-gray-m); }
.p_course .list_chapter::after {
	content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--progress, 0) * 100%);
	background: linear-gradient(180deg, var(--c-sub), #669dfa); border-radius: 2px;
}
.p_course .list_chapter a {
	position: relative; display: flex; align-items: baseline; gap: 12px; padding: 12px 0 12px 18px;
	color: var(--c-navy); font-weight: 700; font-size: 1.45rem; line-height: 1.4;
}
.p_course .list_chapter a::before {
	content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px;
	background: linear-gradient(180deg, var(--c-sub), #669dfa); transform: scaleY(0); transition: transform .25s;
}
.p_course .list_chapter a:hover,
.p_course .list_chapter a.is_current,
.p_course .list_chapter a.is_current .name { color: var(--c-sub); }
.p_course .list_chapter a.is_current::before { transform: scaleY(1); }
.p_course .list_chapter .num { flex: none; width: 36px; font-family: var(--f-josefin); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--c-main-ml); }
.p_course .list_chapter a.is_current .num,
.p_course .list_chapter a:hover .num { color: var(--c-sub); }
.p_course .list_chapter .meter { position: absolute; left: 66px; right: 8px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--c-gray-m); overflow: hidden; opacity: 0; }
.p_course .list_chapter .meter::after {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--rate, 0) * 100%);
	background: linear-gradient(90deg, var(--c-sub), #669dfa); border-radius: 2px;
}
.p_course .list_chapter a.is_partial .meter,
.p_course .list_chapter a.is_done .meter { opacity: 1; }

/* 修了バッジ（PCのみ） */
.p_course .list_badge {
	display: grid; grid-template-columns: repeat(6, 1fr); justify-items: center; gap: 4px;
	margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-gray-m);
}
.p_course .list_badge .badge {
	width: 30px; height: 30px; display: grid; place-items: center;
	border-radius: 50%; border: 1.5px dashed var(--c-main-ml); color: var(--c-main-ml); background: #fff;
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s, border-color .3s;
}
.p_course .list_badge .badge .ic { width: 1.6rem; height: 1.6rem; }
.p_course .list_badge .badge.is_done {
	border: 1.5px solid transparent; background: linear-gradient(135deg, var(--c-sub), #669dfa); color: #fff;
	box-shadow: 0 4px 10px rgba(47, 92, 206, .3); transform: scale(1.06);
}

/* 章パネル */
.p_course .p_course_chapter {
	position: relative; overflow: hidden; margin-bottom: 32px; padding: 40px 40px 32px;
	background: #fff; border-radius: 20px;
	box-shadow: 0 1px 2px rgba(20, 69, 161, .04), 0 8px 24px rgba(20, 69, 161, .06);
	scroll-margin-top: calc(var(--learn-header-h) + 24px);
}
/* 章番号の透かし */
.p_course .p_course_chapter::before {
	content: attr(data-num); position: absolute; right: -8px; top: -34px; pointer-events: none;
	font-family: var(--f-josefin); font-size: 22rem; font-weight: 700; line-height: 1; letter-spacing: -.04em;
	background: linear-gradient(135deg, rgba(102, 157, 250, .16), rgba(118, 199, 255, .05));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.p_course .p_course_chapter > * { position: relative; }
/* スクロールで控えめにフェードイン（初期表示で画面外の章だけ seo-learn.js が is_reveal を付与） */
.p_course .p_course_chapter.is_reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.p_course .p_course_chapter.is_reveal.is_inview { opacity: 1; transform: none; }

.p_course .p_course_chapter .title_blc { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.p_course .p_course_chapter .title_blc .num {
	font-family: var(--f-josefin); font-size: 5.6rem; font-weight: 600; line-height: .9;
	background: linear-gradient(135deg, var(--c-sub), #669dfa); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p_course .p_course_chapter .title_blc .title { margin: 0; padding: 0; border: 0; background: none; font-size: 2.8rem; font-weight: 900; line-height: 1.3; color: var(--c-navy); }
.p_course .p_course_chapter .title_blc .lead { margin: 4px 0 0; font-size: 1.4rem; line-height: 1.6; color: var(--c-gray); }

/* 動画：メイン＋小リスト */
.p_course .blc_video { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.p_course .c_video_feature .c_youtube { border-radius: 12px; transition: box-shadow .3s, transform .3s; }
.p_course .c_video_feature .c_youtube:hover { box-shadow: 0 14px 30px rgba(20, 69, 161, .22); transform: translateY(-2px); }
.p_course .c_video_feature .title { margin: 12px 0 0; font-size: 1.8rem; font-weight: 700; line-height: 1.45; }
.p_course .c_video_feature .title a:hover { color: var(--c-sub); }

.p_course .c_list_video_s { display: flex; flex-direction: column; margin: 0; }
.p_course .c_list_video_s .item + .item { border-top: 1px solid var(--c-gray-m); }
.p_course .c_list_video_s .link { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.p_course .c_list_video_s .item:first-child .link { padding-top: 0; }
.p_course .c_list_video_s .c_youtube { border-radius: 8px; }
.p_course .c_list_video_s .text { display: flex; flex-direction: column; gap: 6px; }
.p_course .c_list_video_s .title { font-size: 1.5rem; font-weight: 700; line-height: 1.45; }
.p_course .c_list_video_s .link:hover .title { color: var(--c-sub); }
.p_course .c_list_video_s .link:hover .c_youtube_thumb { transform: scale(1.04); }
.p_course .c_list_video_s .link:hover .c_youtube_icon { transform: scale(1.1); }
.p_course .c_list_video_s .time {
	display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; padding: 2px 8px 0;
	border-radius: 999px; background: var(--c-main-l);
	font-family: var(--f-josefin); font-size: 1.15rem; font-weight: 600; color: var(--c-sub);
}
.p_course .c_list_video_s .time .ic { width: 1rem; height: 1rem; }

/* 小リスト：縦スライド（PCで4本以上）／SPは横スワイプ */
.p_course .c_vslider { position: relative; min-width: 0; }
.p_course .c_vslider .c_list_video_s { overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.p_course .c_vslider .c_list_video_s::-webkit-scrollbar { display: none; }
.p_course .c_vslider .c_list_video_s .item { scroll-snap-align: start; }
@media (min-width: 897px) {
	/* 1本目も上に余白を持たせ、スクロール位置と表示枠をそろえる */
	.p_course .c_vslider { margin-top: -12px; }
	.p_course .c_vslider .c_list_video_s .item:first-child .link { padding-top: 12px; }
}
.p_course .c_vslider .vs_ctrl { display: none; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.p_course .c_vslider.is_slide .vs_ctrl { display: flex; }
.p_course .c_vslider .vs_ctrl button {
	width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
	border-radius: 50%; border: 1px solid var(--c-main-ml); background: #fff; color: var(--c-sub);
}
.p_course .c_vslider .vs_ctrl button:hover:not(:disabled) { background: var(--c-sub); border-color: var(--c-sub); color: #fff; }
.p_course .c_vslider .vs_ctrl button:disabled { opacity: .35; cursor: default; }
.p_course .c_vslider .vs_prev .ic { transform: rotate(180deg); }
.p_course .c_vslider.is_slide::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 42px; height: 40px; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); opacity: 0; transition: opacity .2s;
}
.p_course .c_vslider.is_slide.has_more::after { opacity: 1; }

/* 小リスト（別案）：3本ずつ横にページ送り（PC）／SPは横スワイプ */
.p_course .c_hpager { position: relative; min-width: 0; }
.p_course .c_hpager .hp_view { overflow: hidden; }
.p_course .c_hpager .hp_track { display: flex; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.p_course .c_hpager .hp_page { flex: 0 0 100%; min-width: 0; }
.p_course .c_hpager .hp_ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.p_course .c_hpager .hp_ctrl .hp_prev,
.p_course .c_hpager .hp_ctrl .hp_next {
	width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
	border-radius: 50%; border: 1px solid var(--c-main-ml); background: #fff; color: var(--c-sub);
}
.p_course .c_hpager .hp_ctrl .hp_prev:hover:not(:disabled),
.p_course .c_hpager .hp_ctrl .hp_next:hover:not(:disabled) { background: var(--c-sub); border-color: var(--c-sub); color: #fff; }
.p_course .c_hpager .hp_ctrl button:disabled { opacity: .35; cursor: default; }
.p_course .c_hpager .hp_prev .ic { transform: rotate(180deg); }
.p_course .c_hpager .hp_dots { display: flex; gap: 6px; }
.p_course .c_hpager .hp_dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--c-main-ml); transition: width .2s; }
.p_course .c_hpager .hp_dots button[aria-selected="true"] { width: 22px; background: var(--c-sub); }

/* 関連記事・ホワイトペーパー */
.p_course .blc_resource {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px;
	margin-top: 28px; padding: 22px 24px; border-radius: 14px;
	background: linear-gradient(180deg, #f3f7fd, #eef4fc);
}
.p_course .blc_resource .label {
	display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
	font-size: 1.3rem; font-weight: 700; color: var(--c-navy); list-style: none; cursor: default;
}
.p_course .blc_resource .label::-webkit-details-marker { display: none; }
.p_course .blc_resource .label .ic { width: 1.6rem; height: 1.6rem; color: var(--c-sub); }
.p_course .blc_resource .label .arrow { display: none; margin-left: auto; transition: transform .2s; }
.p_course .blc_resource details[open] .label .arrow { transform: rotate(180deg); }
.p_course .blc_resource .list_link { columns: 2; column-gap: 20px; margin-top: 0; }
.p_course .blc_resource .list_link li { break-inside: avoid; }
.p_course .list_wp { display: flex; flex-direction: column; gap: 8px; }
.p_course .list_wp .c_link_dl { background: #fff; box-shadow: 0 1px 2px rgba(20, 69, 161, .06); }
.p_course .list_wp .c_link_dl:hover { background: var(--c-main-l); }

@media (max-width: 1199px) {
	.p_course .p_course_body > .l_inner { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
	.p_course .blc_video,
	.p_course .blc_resource { grid-template-columns: 1fr; }
}
@media (min-width: 1001px) and (max-width: 1199px) {
	.p_course .list_badge .badge { width: 26px; height: 26px; }
	.p_course .list_badge .badge .ic { width: 1.4rem; height: 1.4rem; }
}
@media (min-width: 1001px) {
	/* PC：現在地は色の変化と進捗ラインで示す（縦バーは出さない） */
	.p_course .list_chapter a::before { display: none; }
}
@media (max-width: 1000px) {
	.p_course .p_course_body { padding-top: 0; }
	.p_course .p_course_body > .l_inner { display: block; padding: 0; }
	.p_course .p_course_main { padding: 0 15px; }
	/* 章ナビ：上部に追従する横スクロール */
	.p_course .p_course_nav {
		position: sticky; top: var(--learn-header-h); z-index: 900; margin-bottom: 32px;
		background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-gray-m); box-shadow: 0 4px 12px rgba(20, 69, 161, .04);
	}
	.p_course .list_chapter { display: flex; overflow-x: auto; scrollbar-width: none; border-left: 0; padding: 0 7px; }
	.p_course .list_chapter::-webkit-scrollbar { display: none; }
	.p_course .list_chapter li { flex: none; }
	.p_course .list_chapter a { height: 52px; align-items: center; padding: 0 12px; white-space: nowrap; font-size: 1.3rem; }
	.p_course .list_chapter a::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
	.p_course .list_chapter a.is_current::before { transform: scaleX(1); }
	.p_course .list_chapter .num { width: auto; font-size: 1.9rem; color: var(--c-sub); }
	.p_course .list_chapter::after,
	.p_course .list_chapter .meter,
	.p_course .list_badge { display: none; }
	.p_course .p_course_chapter { scroll-margin-top: calc(var(--learn-header-h) + 60px); }
}
@media (max-width: 896px) {
	.p_course .p_course_chapter { margin-bottom: 20px; padding: 28px 18px 24px; border-radius: 16px; }
	.p_course .p_course_chapter::before { font-size: 13rem; top: -20px; right: -6px; }
	.p_course .p_course_chapter .title_blc { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; margin-bottom: 18px; }
	.p_course .p_course_chapter .title_blc .text { display: contents; }
	.p_course .p_course_chapter .title_blc .lead { grid-column: 1 / -1; margin-top: 0; font-size: 1.25rem; }
	.p_course .p_course_chapter .title_blc .num { font-size: 4rem; }
	.p_course .p_course_chapter .title_blc .title { font-size: 2.1rem; }
	.p_course .c_video_feature .title { font-size: 1.6rem; }
	.p_course .c_list_video_s .link { grid-template-columns: 42% 1fr; gap: 12px; }
	.p_course .c_list_video_s .title { font-size: 1.4rem; }

	.p_course .c_vslider .c_list_video_s {
		flex-direction: row; gap: 12px; max-height: none !important; /* JSの縦スライド用の高さ指定を無効化 */
		overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
		margin: 0 -18px; padding: 4px 18px 6px; scroll-padding: 0 18px;
	}
	.p_course .c_vslider .c_list_video_s .item { flex: 0 0 62%; border-top: 0; }
	.p_course .c_vslider .c_list_video_s .item .link { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
	.p_course .c_vslider .c_list_video_s .title { font-size: 1.35rem; }
	.p_course .c_vslider .vs_ctrl,
	.p_course .c_vslider.is_slide .vs_ctrl,
	.p_course .c_vslider.is_slide::after { display: none; }

	.p_course .c_hpager .hp_view {
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 -18px; padding: 4px 18px 6px; scroll-padding: 0 18px;
	}
	.p_course .c_hpager .hp_view::-webkit-scrollbar { display: none; }
	.p_course .c_hpager .hp_track { gap: 12px; transform: none !important; /* JSのページ送り位置を無効化 */ }
	.p_course .c_hpager .hp_page { display: contents; }
	.p_course .c_hpager .hp_page .item { flex: 0 0 62%; scroll-snap-align: start; border-top: 0; }
	.p_course .c_hpager .hp_page .item .link { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
	.p_course .c_hpager .hp_page .title { font-size: 1.35rem; }
	.p_course .c_hpager .hp_ctrl { display: none; }

	.p_course .blc_resource { margin-top: 20px; padding: 4px 16px; gap: 0; }
	.p_course .blc_resource details { padding: 12px 0; }
	.p_course .blc_resource details + details { border-top: 1px solid var(--c-gray-m); }
	.p_course .blc_resource .label { margin-bottom: 0; min-height: 24px; cursor: pointer; }
	.p_course .blc_resource .label .arrow { display: block; }
	.p_course .blc_resource details[open] .label { margin-bottom: 8px; }
	.p_course .blc_resource .list_link { columns: 1; }
	.p_course .list_link li a { --pad: 7.5px; }
}

/* ---------------------------------------------------------
   5. CTA
--------------------------------------------------------- */
.p_course .p_sec_cta {
	position: relative; overflow: hidden; color: #fff;
	background: linear-gradient(110deg, var(--c-navy) 0%, var(--c-main) 55%, var(--c-sub) 100%);
}
.p_course .p_sec_cta .l_inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.p_course .p_sec_cta .heading { display: block; margin: 0; letter-spacing: normal; text-align: inherit; font-size: 2.6rem; font-weight: 900; line-height: 1.45; }
.p_course .p_sec_cta .lead { margin: 8px 0 0; font-size: 1.4rem; text-align: inherit; opacity: .9; }
.p_course .p_sec_cta .blc_btn { display: flex; flex-direction: column; gap: 12px; flex: none; }
.p_course .p_sec_cta .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 36px;
	max-width: none; margin: 0; border-radius: 999px; background: #fff; color: var(--c-sub); box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	font-size: 1.6rem; font-weight: 700; text-align: center; transition: opacity .3s, background .3s;
}
.p_course .p_sec_cta .btn:hover { opacity: .9; }
.p_course .p_sec_cta .btn.__outline { height: 48px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; font-size: 1.4rem; }
.p_course .p_sec_cta .btn.__outline:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 896px) {
	.p_course .p_sec_cta .l_inner { flex-direction: column; align-items: stretch; gap: 22px; padding-top: 36px; padding-bottom: 40px; text-align: center; }
	.p_course .p_sec_cta .heading { font-size: 1.9rem; }
	.p_course .p_sec_cta .lead { font-size: 1.3rem; }
}

/* ---------------------------------------------------------
   6. 動画モーダル（dialog）
--------------------------------------------------------- */
.p_course .c_modal_video { width: min(960px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.p_course .c_modal_video::backdrop { background: rgba(6, 14, 60, .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.p_course .c_modal_video .inner { position: relative; }
.p_course .c_modal_video .frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.p_course .c_modal_video .frame iframe,
.p_course .c_modal_video .frame > div { width: 100%; height: 100%; display: block; border: 0; }
.p_course .c_modal_video .btn_close {
	position: absolute; right: 0; top: -48px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff;
}
.p_course .c_modal_video .btn_close:hover { background: rgba(255, 255, 255, .3); }
.p_course .c_modal_video .btn_close .ic { width: 2.2rem; height: 2.2rem; }
@media (max-width: 896px) {
	.p_course .c_modal_video .btn_close { top: -46px; }
}
/* モーダル表示中は背面をスクロールさせない */
html.is_modal_open { overflow: hidden; }

/* ---------------------------------------------------------
   7. 動きを減らす設定
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.p_course *,
	.p_course *::before,
	.p_course *::after { transition: none !important; }
	.p_course .c_youtube:hover .c_youtube_thumb,
	.p_course .c_list_video_s .link:hover .c_youtube_thumb { transform: none; }
	.p_course .p_course_chapter.is_reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   8. Fix: sticky chapter navigation and centered video play icons
   --------------------------------------------------------- */
.p_course .p_course_body,
.p_course .p_course_main { overflow: visible; }

/* Real YouTube thumbnails: center play icon (large, feature and small). */
.p_course .c_youtube:has(.c_youtube_thumb.__img) > .c_youtube_icon {
  left: 50%;
  right: auto;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.p_course .c_youtube:has(.c_youtube_thumb.__img):hover > .c_youtube_icon,
.p_course .c_youtube:has(.c_youtube_thumb.__img):focus-visible > .c_youtube_icon {
  transform: translate(-50%, -50%) scale(1.08);
}
/* Override earlier size-specific right offsets and margin positioning. */
.p_course .c_youtube.__large:has(.c_youtube_thumb.__img) > .c_youtube_icon,
.p_course .c_youtube.__feature:has(.c_youtube_thumb.__img) > .c_youtube_icon,
.p_course .c_youtube.__small:has(.c_youtube_thumb.__img) > .c_youtube_icon {
  left: 50%; right: auto; top: 50%; margin: 0;
  transform: translate(-50%, -50%);
}
.p_course .c_youtube.__large:has(.c_youtube_thumb.__img):hover > .c_youtube_icon,
.p_course .c_youtube.__feature:has(.c_youtube_thumb.__img):hover > .c_youtube_icon,
.p_course .c_youtube.__small:has(.c_youtube_thumb.__img):hover > .c_youtube_icon {
  transform: translate(-50%, -50%) scale(1.08);
}
