@charset "utf-8";
/* ==========================================================
   /42ws/videos/ 動画でわかる、42wsでできること（一覧と 1 本ずつの動画ページ）
   /42ws/style.css（.page-42ws の色・.ws-* の部品）の上に重ねる。このページだけの部品は .wv-*。
   ページは tools/build_42ws_videos.py で書き出す。
   ========================================================== */

/* ---------- パンくず ---------- */
.wv-crumb { background: var(--white); border-bottom: 1px solid var(--line); }
.wv-crumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0;
	padding: 12px 0;
	font-size: 13px;
	color: var(--muted);
}
.wv-crumb li + li::before { content: "＞"; margin-right: 6px; color: var(--line); }
#site .wv-crumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 冒頭（題と動画） ---------- */
.wv-hero { background: var(--pink); padding: 56px 0 72px; }
#contents #main.ws .wv-eyebrow {
	display: inline-block;
	background: var(--red);
	color: var(--white);
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
	padding: 3px 16px;
}
.wv-title {
	margin-top: 14px;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.4;
	text-wrap: balance;
}
#contents #main.ws .wv-lead { margin-top: 16px; max-width: 46em; }
.wv-frame {
	margin-top: 32px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ink);
	box-shadow: 0 18px 40px rgba(47, 47, 47, .14);
	aspect-ratio: 16 / 9;
}
.wv-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
#contents #main.ws .wv-meta { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: right; }
.wv-hero--list { padding-bottom: 56px; }

/* ---------- 動画の流れ・こんな方に ---------- */
.wv-body { background: var(--white); }
.wv-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	gap: 48px;
	align-items: start;
}
.wv-h2 { font-size: 22px; line-height: 1.5; }
.wv-h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 12px;
	background: var(--red);
	border-radius: 2px;
}
.wv-flow__list { list-style: none; margin: 24px 0 0; padding: 0; }
.wv-flow__list li {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}
.wv-flow__list li:last-child { border-bottom: 1px solid var(--line); }
.wv-flow__num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pink);
	color: var(--red);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 16px;
}
.wv-flow__list h3 { font-size: 17px; line-height: 1.5; }
#contents #main.ws .wv-flow__list p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.75; }

.wv-side { display: grid; gap: 20px; }
.wv-box { background: var(--cream); border-radius: 18px; padding: 26px 26px 28px; }
.wv-targets { list-style: none; margin: 16px 0 0; padding: 0; }
.wv-targets li {
	position: relative;
	padding: 6px 0 6px 30px;
	font-size: 15px;
	line-height: 1.6;
}
.wv-targets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--red);
}
.wv-targets li::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 14px;
	width: 8px;
	height: 5px;
	border-left: 2px solid var(--white);
	border-bottom: 2px solid var(--white);
	transform: rotate(-45deg);
}
.wv-box--cta { background: var(--pink); }
#contents #main.ws .wv-box--cta p { margin-top: 14px; font-size: 15px; line-height: 1.75; }
#contents #main.ws .wv-box--cta .wv-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
#site .wv-box--cta .ws-btn { width: 100%; margin-top: 20px; padding: 0 20px; box-sizing: border-box; }

/* ---------- 動画の一覧（カード） ---------- */
.wv-more { background: var(--cream); }
.wv-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
	margin: 48px 0 0;
	padding: 0;
}
.wv-more--list .wv-list { margin-top: 0; }
#site .wv-item a { display: block; color: var(--ink); }
#site .wv-item a:hover { opacity: 1; }
.wv-thumb {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: var(--white);
	box-shadow: 0 8px 22px rgba(47, 47, 47, .08);
	aspect-ratio: 16 / 9;
}
#main.ws .wv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wv-item a:hover .wv-thumb img { transform: scale(1.03); }
/* 再生の印（赤い丸に白い三角） */
.wv-play {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 4px 12px rgba(196, 7, 28, .3);
}
.wv-play::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 15px;
	border-style: solid;
	border-width: 9px 0 9px 14px;
	border-color: transparent transparent transparent var(--white);
}
.wv-dur {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(47, 47, 47, .78);
	color: var(--white);
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	padding: 2px 8px;
	letter-spacing: .04em;
}
.wv-item__title { display: block; margin-top: 14px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.wv-item a:hover .wv-item__title { color: var(--red); }
.wv-item__for { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
#contents #main.ws .wv-more__all { margin-top: 40px; text-align: center; font-weight: 700; }
#site .wv-more__all a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 幅ごとの調整 ---------- */
@media screen and (max-width: 1160px) {
	.wv-body__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; }
	.wv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
	.wv-crumb ol { font-size: 12px; padding: 10px 0; }
	.wv-hero { padding: 32px 0 48px; }
	.wv-title { font-size: 26px; }
	.wv-frame { margin-top: 24px; border-radius: 14px; }
	.wv-body__grid { grid-template-columns: 1fr; gap: 36px; }
	.wv-h2 { font-size: 20px; }
	.wv-flow__list li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
	.wv-flow__num { width: 38px; height: 38px; font-size: 14px; }
	.wv-box { padding: 22px 20px 24px; }
	.wv-list { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
}
