@charset "utf-8";
/*==================================================================

		CASTページ
		＊ STORY扉ページ（#story_index）・STORY下層ページ（#story）と共用
		　 【STORY対応で変更】と書いてある箇所が今回の変更

==================================================================*/
/* 【STORY対応で変更】#cast → :is(#cast, #story_index) */
:is(#cast, #story_index) {
	width: calc(100% - 20px);
	margin: 60px auto 60px;
}



/*------------------------------ グループ切り替えタブ（一覧・詳細・STORY 共通） ------------------------------*/
/* 【STORY対応で変更】:is(#cast, #cast_detail) → :is(#cast, #cast_detail, #story_index, #story)（このブロック全体） */
:is(#cast, #cast_detail, #story_index, #story) > ul {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 60px;
}
:is(#cast, #cast_detail, #story_index, #story) > ul li:nth-child(1) :is(button, a) { --tab-color: #25959c; }
:is(#cast, #cast_detail, #story_index, #story) > ul li:nth-child(2) :is(button, a) { --tab-color: #555d8f; }
:is(#cast, #cast_detail, #story_index, #story) > ul li:nth-child(3) :is(button, a) { --tab-color: #af4571; }
:is(#cast, #cast_detail, #story_index, #story) > ul li:nth-child(4) :is(button, a) { --tab-color: #cb663a; }

:is(#cast, #cast_detail, #story_index, #story) > ul :is(button, a) {
	position: relative;
	z-index: 0;
	display: block;
	width: 140px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: #f2f2f2;
	color: var(--color-brown);
	font-family: "Rosarivo", "Shippori Mincho", serif;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.4s ease, letter-spacing 0.4s ease;
}
/* 色が左からスッと流れ込む */
:is(#cast, #cast_detail, #story_index, #story) > ul :is(button, a)::before {
	position: absolute; content: "";
	inset: 0;
	z-index: -1;
	background: var(--tab-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1);
}
/* hover・選択中（詳細ページ・STORY下層では自分のグループのタブを選択中に） */
/* 【STORY対応で変更】#cast_detail → :is(#cast_detail, #story) */
:is(#cast, #cast_detail, #story_index, #story) > ul :is(button, a):hover,
#cast > ul button.is-active,
.lunight :is(#cast_detail, #story) > ul li:nth-child(1) a,
.seishunbu :is(#cast_detail, #story) > ul li:nth-child(4) a {
	color: #FFF;
	letter-spacing: 2px;
}
:is(#cast, #cast_detail, #story_index, #story) > ul :is(button, a):hover::before,
#cast > ul button.is-active::before,
.lunight :is(#cast_detail, #story) > ul li:nth-child(1) a::before,
.seishunbu :is(#cast_detail, #story) > ul li:nth-child(4) a::before {
	transform: scaleX(1);
	transform-origin: left;
}



/*------------------------------ グループ一覧 ------------------------------*/
/* 【STORY対応で変更】ここから下、#cast > div → :is(#cast, #story_index) > div（全箇所） */
:is(#cast, #story_index) > div {
	display: flex;
	gap: 10px;
	height: 800px;
}

/* グループごとの設定（色・画像） */
#lunight   { --cast-rgb: 30, 115, 120; --cast-img: url("../images/cast/lunight.jpg");   --cast-bg: url("../images/cast/lunight_bg.jpg"); }
#group02   { --cast-rgb: 46, 53, 93;   --cast-img: url("../images/cast/triarx.jpg"); }
#group03   { --cast-rgb: 134, 37, 77;  --cast-img: url("../images/cast/velvette.jpg"); }
#seishunbu { --cast-rgb: 192, 78, 28;  --cast-img: url("../images/cast/seishunbu.jpg"); --cast-bg: url("../images/cast/seishunbu_bg.jpg"); }
/* 展開時だけ色を変える */
#seishunbu.is-active,
#seishunbu.is-leaving {
	--cast-rgb: 190, 105, 65;
}

:is(#cast, #story_index) > div > section {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	border-radius: 5px;
	overflow: hidden;
	color: #FFF;
	cursor: pointer;
	outline: none;
	transition: flex 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}
:is(#cast, #story_index) > div > section:focus-visible {
	box-shadow: inset 0 0 0 2px #FFF;
}
/* 通常時：イラスト＋半透明カラー */
:is(#cast, #story_index) > div > section::before {
	position: absolute; content: "";
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(rgba(var(--cast-rgb), 0.7), rgba(var(--cast-rgb), 0.7)),
		var(--cast-img) var(--cast-pos, center) / cover no-repeat;
	transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
/* 展開時：_bg画像＋グラデーション（ふだんは透明） */
:is(#cast, #story_index) > div > section::after {
	position: absolute; content: "";
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to bottom, rgba(var(--cast-rgb), 0.8) 0%, rgba(var(--cast-rgb), 0.8) 100%),
		var(--cast-bg) center / cover no-repeat;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease; /* 閉じるときのフェード時間 */
}

/* グループ名（常に中央固定 → 人数が違ってもズレない） */
:is(#cast, #story_index) > div > section h3 {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	text-align: center;
	font-family: "Rosarivo", "Shippori Mincho", serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 4px;
	white-space: nowrap;
	transition: top 0.8s cubic-bezier(0.77, 0, 0.18, 1), transform 0.8s cubic-bezier(0.77, 0, 0.18, 1), letter-spacing 0.5s ease;
}
:is(#cast, #story_index) > div > section h3::after {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin: 21px auto 0;
	background: #FFF;
	transition: width 0.5s ease;
}

/* メンバー名（グループ名の下にぶら下げる） */
:is(#cast, #story_index) > div > section > ul {
	position: absolute;
	z-index: 2;
	top: calc(50% + 45px);
	left: 0;
	width: 100%;
	text-align: center;
	font-family: "Shippori Mincho", serif;
	font-size: 15px;
	letter-spacing: 0.1em;
	transition: opacity 0.4s ease, transform 0.5s ease;
}
:is(#cast, #story_index) > div > section > ul li {
	margin-top: 5px;
}

/* hover */
:is(#cast, #story_index) > div > section:hover::before {
	transform: scale(1.08);
	filter: brightness(0.5);
}
:is(#cast, #story_index) > div > section:hover h3 { letter-spacing: 7px; }
:is(#cast, #story_index) > div > section:hover h3::after { width: 90px; }
:is(#cast, #story_index) > div > section:hover > ul { transform: translateY(5px); }

/* 展開時のメンバーエリア */
:is(#cast, #story_index) > div > section > div {
	position: absolute;
	z-index: 3;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
:is(#cast, #story_index) > div > section > div ul {
	position: absolute;
	left: 0; right: 0; bottom: 40px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 60px;
	padding: 0 40px;
}
:is(#cast, #story_index) > div > section > div li {
	text-align: center;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
/* キャラ画像の高さは --h で指定（SPでは自動で縮小） */
:is(#cast, #story_index) > div > section > div img {
	display: block;
	height: var(--h, 400px);
	width: auto;
	margin: auto;
}
#lunight > div li:nth-child(1) img   { --h: 555px; }
#lunight > div li:nth-child(2) img   { --h: 640px; }
#seishunbu > div li:nth-child(1) img { --h: 580px; }
#seishunbu > div li:nth-child(2) img { --h: 540px; }
#seishunbu > div li:nth-child(3) img { --h: 600px; }

:is(#cast, #story_index) > div > section > div p {
	margin-top: 15px;
	font-size: 15px;
	letter-spacing: 0.2em;
	line-height: 1;
	background: #FFF;
	color: #222;
	padding: 3px 0 5px 5px;
	width: 140px;
	margin: 30px auto 0;
	font-family: "Shippori Mincho", serif;
}
:is(#cast, #story_index) > div > section > div a {
	display: block;
}
:is(#cast, #story_index) > div > section > div a img {
	opacity: 1 !important;
}
/* 閉じるボタン */
:is(#cast, #story_index) > div > section > div button {
	position: absolute;
	top: 20px; right: 20px;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: transparent;
	color: #FFF;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: 0.3s ease;
}
:is(#cast, #story_index) > div > section > div button:hover {
	background: #FFF;
	color: rgb(var(--cast-rgb));
	transform: rotate(90deg);
}



/*------------------------------ 準備中（COMING SOON） ------------------------------*/
:is(#cast, #story_index) > div > section[aria-disabled="true"] {
	cursor: default;
	pointer-events: none;
}
:is(#cast, #story_index) > div > section[aria-disabled="true"]::before {
	filter: brightness(0.5); /* hover時と同じ暗さ */
}
:is(#cast, #story_index) > div > section[aria-disabled="true"] h3 {
	font-size: 24px;
	letter-spacing: 0.2em;
}
/* タブ */
/* 【STORY対応で変更】 */
:is(#cast, #cast_detail, #story_index, #story) > ul button:disabled {
	cursor: default;
	pointer-events: none;
	opacity: 0.4;
}



/*------------------------------ 展開中 ------------------------------*/
/* 細くなる側 */
:is(#cast, #story_index) > div.is-open > section {
	flex: 0 0 60px;
}
:is(#cast, #story_index) > div.is-open > section:not(.is-active) h3 {
	top: 50%;
	left: 50%;
	width: auto;
	transform: translate(-50%, -50%);
	writing-mode: vertical-rl;
	font-size: 18px;
	letter-spacing: 4px;
	animation: castFade 0.6s 0.4s both;
}
:is(#cast, #story_index) > div.is-open > section:not(.is-active) h3::after,
:is(#cast, #story_index) > div.is-open > section:not(.is-active) > ul {
	display: none;
}

/* 広がる側 */
:is(#cast, #story_index) > div.is-open > section.is-active {
	flex: 1 1 0;
	cursor: default;
}
:is(#cast, #story_index) > div.is-open > section.is-active::before {
	transform: none;
	filter: none;
}
:is(#cast, #story_index) > div.is-open > section.is-active::after {
	opacity: 1;
	transition-duration: 0.3s; /* 開くときは素早く */
}
/* 閉じる途中は_bgを出したまま → 縮みきったらフェードアウト */
:is(#cast, #story_index) > div > section.is-leaving::after {
	opacity: 1;
}
:is(#cast, #story_index) > div.is-open > section.is-active h3 {
	top: 100px;
	transform: translateY(0);
	letter-spacing: 50px;
	font-size: 150px;
	opacity: .3;
}
:is(#cast, #story_index) > div.is-open > section.is-active h3::after {
	display: none;
}
:is(#cast, #story_index) > div.is-open > section.is-active > ul {
	opacity: 0;
	visibility: hidden;
}
:is(#cast, #story_index) > div.is-open > section.is-active > div {
	opacity: 1;
	visibility: visible;
	transition-delay: 0.4s;
}
:is(#cast, #story_index) > div.is-open > section.is-active > div li {
	opacity: 1;
	transform: translateY(0);
}
:is(#cast, #story_index) > div.is-open > section.is-active > div li:nth-child(1) { transition-delay: 0.6s; }
:is(#cast, #story_index) > div.is-open > section.is-active > div li:nth-child(2) { transition-delay: 0.75s; }
:is(#cast, #story_index) > div.is-open > section.is-active > div li:nth-child(3) { transition-delay: 0.9s; }

@keyframes castFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}



/*------------------------------ SP ------------------------------*/
@media screen and (max-width: 640px) {
	/* 【STORY対応で変更】 */
	:is(#cast, #story_index) {
		margin: 40px auto 40px;
	}
	:is(#cast, #cast_detail, #story_index, #story) > ul {
		display: grid;
		grid-template-columns: repeat(2, 140px);
		justify-content: center;
		margin-bottom: 50px;
	}

	:is(#cast, #story_index) > div {
		flex-direction: column;
		height: auto;
		gap: 8px;
	}
	:is(#cast, #story_index) > div > section {
		flex: none;
		height: 250px;
		transition: height 0.8s cubic-bezier(0.77, 0, 0.18, 1);
	}
	#lunight   { --cast-pos: center 25%; }
	#group02   { --cast-pos: center 20%; }
	#group03   { --cast-pos: center 20%; }
	#seishunbu { --cast-pos: center 22%; }
	
	:is(#cast, #story_index) > div > section h3 {
		font-size: 28px;
		letter-spacing: 3px;
		transition:
			top 0.8s cubic-bezier(0.77, 0, 0.18, 1),
			transform 0.8s cubic-bezier(0.77, 0, 0.18, 1),
			font-size 0.8s cubic-bezier(0.77, 0, 0.18, 1),
			letter-spacing 0.5s ease;
	}
	:is(#cast, #story_index) > div > section h3::after {
		margin-top: 13px;
	}
	:is(#cast, #story_index) > div > section[aria-disabled="true"] h3 {
		font-size: 20px;
		letter-spacing: 0.2em;
	}
	:is(#cast, #story_index) > div > section > ul {
		top: calc(50% + 32px);
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0 1em;
		font-size: 15px;
	}
	:is(#cast, #story_index) > div > section > ul li {
		margin-top: 0;
	}

	:is(#cast, #story_index) > div > section > div ul {
		bottom: 25px;
		gap: 10px;
		padding: 0 10px;
	}
	:is(#cast, #story_index) > div > section > div li {
		flex: 1;
		min-width: 0;
		max-width: 160px;
	}
	/* キャラ：PCの高さ(--h)×0.7で表示。幅からはみ出しても中央基準でOK */
	:is(#cast, #story_index) > div > section > div figure {
		display: flex;
		justify-content: center;
	}
	:is(#cast, #story_index) > div > section > div img {
		width: auto;
		max-width: none;
		height: calc(var(--h, 400px) * 0.7);
		margin: 0;
	}
	:is(#cast, #story_index) > div > section > div p {
		margin-top: 20px;
		font-size: 14px;
		letter-spacing: 0.1em;
		width: 100px;
	}
	:is(#cast, #story_index) > div > section > div button {
		top: 12px; right: 12px;
		width: 36px; height: 36px;
		font-size: 16px;
	}

	/* 展開中 */
	:is(#cast, #story_index) > div.is-open > section {
		flex: none;
		height: 56px;
	}
	:is(#cast, #story_index) > div.is-open > section.is-active {
		flex: none;
		height: 650px;
	}
	:is(#cast, #story_index) > div.is-open > #seishunbu.is-active {
		height: 600px;
	}
	:is(#cast, #story_index) > div.is-open > section:not(.is-active) h3 {
		writing-mode: horizontal-tb;
		font-size: 18px;
		left: 0;
		width: 100%;
		transform: translateY(-50%);
	}
	:is(#cast, #story_index) > div.is-open > section.is-active h3 {
		top: 60px;
		font-size: 28px;
		letter-spacing: 4px;
		opacity: 1;
	}
	:is(#cast, #story_index) > div.is-open > section.is-active h3::after {
		display: block;
		width: 40px;
	}
	#seishunbu > div li:nth-child(2) img {
		position: relative;
		left: 10px;
		top: -5px;
	}
}


/*------------------------------ メンバーhover ------------------------------*/
:is(#cast, #story_index) > div > section > div img {
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}
:is(#cast, #story_index) > div > section > div p {
	transition: letter-spacing 0.5s ease, background 0.4s ease, color 0.4s ease;
}

@media (hover: hover) {
	/* hoverしたキャラ：ほんの少し浮いて輪郭が光る */
	:is(#cast, #story_index) > div > section > div li:hover img {
		transform: translateY(-4px);
		filter:
			drop-shadow(0 0 12px rgba(255, 255, 255, 0.7))
			drop-shadow(0 0 40px rgba(var(--cast-rgb), 1));
	}
	/* 名前：白帯がグループ色に変わる */
	:is(#cast, #story_index) > div > section > div li:hover p {
		background: rgb(var(--cast-rgb));
		color: #FFF;
		letter-spacing: 0.3em;
	}
	/* 青春部の名前帯だけタブと同じ色に */
	#cast #seishunbu > div li:hover p {
		background: #cb663a;
	}
}










/*==================================================================

		キャスト詳細ページ（#cast_detail）
		bodyにグループ名のclass（lunight / seishunbu）を付ける
		＊ STORY下層ページの body にも同じ class を付けている

==================================================================*/


/*------------------------------ wowオリジナル　左右から控えめに ------------------------------*/
.fadeInLeftMin {
	animation-name: fadeInLeftMin;
}
@keyframes fadeInLeftMin {
	from { opacity: 0; transform: translate3d(-40px, 0, 0); }
	to   { opacity: 1; transform: none; }
}
.fadeInRightMin {
	animation-name: fadeInRightMin;
}
@keyframes fadeInRightMin {
	from { opacity: 0; transform: translate3d(40px, 0, 0); }
	to   { opacity: 1; transform: none; }
}




/*------------------------------ グループごとの設定（色・画像） ------------------------------*/
/*  --detail-color：肩書き・名前・ルビ・項目名・VOICE・スピーカーの枠と波紋の色 */
.lunight   { --cast-rgb: 30, 115, 120; --group-name: "Lunight";   --detail-color: var(--color-lunight); --detail-mv: url("../images/cast/mv_lunight.jpg");   --detail-bg: url("../images/cast/lunight_bg.jpg"); }
.seishunbu { --cast-rgb: 203, 102, 58;  --group-name: "SEISHUNBU"; --detail-color: var(--color-seishunbu); --detail-mv: url("../images/cast/mv_seishunbu.jpg"); --detail-bg: url("../images/cast/seishunbu_bg.jpg"); }


/* 下層MVの背景をグループ用に */
body:is(.lunight, .seishunbu) #mainvisual {
	background-image: var(--detail-mv);
}
body:is(.lunight, .seishunbu) #mainvisual h2 {
	color: #FFF;
}


/*------------------------------ 本体 ------------------------------*/
#cast_detail {
	margin: 60px 0 120px;
	overflow-x: clip;
	container-type: inline-size;
}



/*------------------------------ キャストエリア　＊　全体・背景 ------------------------------*/
#cast_detail > section {
	position: relative;
	width: 90%;
	max-width: 1200px;
	margin: 80px auto 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	column-gap: 20px;
}

/* グループ名（名前・キャラの頭の後ろに薄く） */
#cast_detail > section::after {
	content: var(--group-name);
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 0;
	font-family: "Rosarivo", serif;
	font-size: 200px;
	line-height: 1;
	letter-spacing: 0.3em;
	white-space: nowrap;
	color: var(--detail-color);
	opacity: 0.08;
	pointer-events: none;
}

/* 横いっぱいの背景（左右10pxあけて角丸） */
#cast_detail > section::before {
	content: "";
	grid-column: 1 / -1;
	grid-row: 2;
	z-index: 0;
	margin: 0 calc(50% - 50cqw + 10px); /* 画面幅いっぱいから左右10pxずつ内側に */
	border-radius: 5px;
	background:
		linear-gradient(color-mix(in srgb, var(--detail-color) 70%, transparent), color-mix(in srgb, var(--detail-color) 70%, transparent)),
		var(--detail-bg) center / cover no-repeat;
}



/*------------------------------ キャストエリア　＊　左　＊　立ち絵・縦書きキャッチコピー ------------------------------*/
#cast_detail > section > figure {
	position: relative;
	grid-column: 1;
	grid-row: 1 / 4;
	z-index: 2;
	align-self: start;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
#cast_detail > section > figure img:first-child {
	display: block;
	min-width: 0;
	max-width: 100%;
	height: auto;
}
/* キャッチコピー*/
#cast_detail > section > figure img:last-child:not(:first-child) {
	flex-shrink: 0;
	display: block;
	height: auto;
}

#cast_detail > section > figure.kana img:last-child:not(:first-child) {
	position: absolute;
	right: 40px;
}
#cast_detail > section > figure.ena {
	gap: 20px;
	margin-right: 40px;
}
@media screen and (max-width: 640px) {
	#cast_detail > section > figure.kana img:last-child:not(:first-child) {
		position: absolute;
		left: 50%;
		right: 0;
		margin-left: 150px;
	}
	#cast_detail > section > figure.ena {
		margin-right: 0;
	}
}


/*------------------------------ キャストエリア　＊　右　＊　キャッチコピー・名前・プロフィール・サンプルボイス ------------------------------*/
#cast_info01 {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	z-index: 1;
	padding: 30px 0 55px;
}

#cast_info01 p {
	font-family: "Shippori Mincho", serif;
	font-size: 23px;
	line-height: 1.6;
	letter-spacing: 0.2em;
	margin-bottom: 35px;
	color: var(--detail-color);
}
#cast_detail h3 {
	margin-top: 10px;
	font-family: "Shippori Mincho", serif;
	font-size: 80px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.1em;
	color: var(--detail-color);
}

/*---------- ルビ ----------*/
#cast_detail h3 span {
	margin-left: 20px;
	font-family: "Rosarivo", serif;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.3em;
	color: var(--detail-color);
	white-space: nowrap;
}

/*---------- プロフィール ----------*/
#cast_detail dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 40px;
	margin-top: 30px;
}
#cast_detail dl > div {
	display: flex;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px solid #ddd2cf;
	font-size: 15px;
	line-height: 1.6;
}
#cast_detail dt {
	flex-shrink: 0;
	color: var(--detail-color);
	min-width: 60px;
}


/*---------- サンプルボイス ----------*/
#cast_info01 button {
	position: absolute;
	top: 7px;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
	padding: 0;
	border: none;
	background: none;
	color: var(--detail-color);
	font-family: "Rosarivo", serif;
	font-size: 13px;
	letter-spacing: 0.2em;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
/* 正円＋アイコン */
#cast_info01 button span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid var(--detail-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#cast_info01 button span img {
	width: 39px;
	height: auto;
	margin-top: 4px;
}
#cast_info01 button:hover span {
	box-shadow: 0 6px 18px rgba(var(--cast-rgb), 0.4);
}
/* 再生中：円から波紋が広がる */
#cast_info01 button::before {
	position: absolute; content: "";
	box-sizing: border-box;
	top: 0; left: 0; right: 0;
	width: 80px; height: 80px;
	margin: 0 auto;
	border-radius: 50%;
	border: 1px solid var(--detail-color);
	opacity: 0;
	pointer-events: none;
}
#cast_info01 button.is-playing::before {
	animation: voiceRipple 1.4s ease-out infinite;
}
@keyframes voiceRipple {
	from { transform: scale(1);   opacity: 0.8; }
	to   { transform: scale(1.3); opacity: 0; }
}



/*------------------------------ キャストエリア　＊　右　＊　CHARACTER紹介・SNSボタン ------------------------------*/
#cast_info02 {
	grid-column: 2;
	grid-row: 2;
	z-index: 1;
	padding: 60px 0;
	color: #FFF;
}
#cast_detail h4 {
	font-family: "Rosarivo", serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.25em;
	margin-bottom: 25px;
}
/*---------- 紹介文 ----------*/
#cast_detail h4 + p {
	font-size: 15px;
	line-height: 2.5;
	letter-spacing: 0.06em;
}
#cast_detail h4 + p span {
	padding: 0.25em 1.6em 0.35em;
	background: rgba(var(--cast-rgb), 0.85);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/*---------- SNSボタン ----------*/
#cast_info02 ul {
	display: flex;
	gap: 20px;
	margin-top: 40px;
}
#cast_info02 li {
	flex: 1;
	max-width: 260px;
}
#cast_info02 a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	height: 60px;
	padding: 0 20px;
	background: #FFF;
	border-radius: 50px;
	color: var(--color-brown);
	font-family: "Rosarivo", serif;
	font-size: 14px;
	letter-spacing: 0.05em;
}
#cast_info02 a figure {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e42b26;
	display: flex;
	align-items: center;
	justify-content: center;
}
#cast_info02 li:nth-child(2) a figure {
	background: #111;
}
#cast_info02 a figure img {
	width: 16px;
	height: auto;
}
#cast_info02 a span {
	position: relative;
	top: 1px;
}
#cast_info02 a:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	color: rgb(var(--cast-rgb));
}

/*------------------------------ YouTube（既存の.youtubeを使用）------------------------------*/
#cast_detail > section > .youtube {
	grid-column: 2;
	grid-row: 3;
	align-self: start;
	margin: 60px 0 0;
}


/*------------------------------ SP ------------------------------*/
@media screen and (max-width: 640px) {
	#cast_detail {
		margin: 40px 0 80px;
	}

	/*---------- 全体・背景 ----------*/
	#cast_detail > section {
		margin-top: 40px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto auto;
	}
	#cast_detail > section::before {
		grid-column: 1;
		grid-row: 3; /* CHARACTER・ボタンの後ろだけ */
	}
	#cast_detail > section::after {
		top: 0;
		font-size: 70px;
		letter-spacing: 0.15em;
	}

	/*---------- 1段目：立ち絵・キャッチコピー ----------*/
	#cast_detail > section > figure {
		grid-column: 1;
		grid-row: 1;
		padding-top: 0;
		gap: 10px;
	}
	#cast_detail > section > figure img:first-child {
		width: auto;
		max-height: 480px;
	}
	/* キャッチコピー：HTMLのwidthの0.56倍で表示（全キャラ共通） */
	#cast_detail > section > figure img:last-child:not(:first-child) {
		zoom: 0.56;
	}

	/*---------- 2段目：肩書き・名前・プロフィール ----------*/
	#cast_info01 {
		grid-column: 1;
		grid-row: 2;
		padding: 30px 0 40px;
	}
	#cast_info01 p {
		padding-right: 90px;
		font-size: 16px;
		letter-spacing: 0.1em;
		margin-bottom: 10px;
		margin-left: 3px;
	}
	#cast_detail h3 {
		font-size: 44px;
	}
	#cast_detail h3 span {
		display: block;
		margin: 15px 0 0 3px;
		font-size: 12px;
	}
	#cast_detail dl {
		column-gap: 20px;
		margin-top: 20px;
	}
	#cast_detail dl > div {
		flex-wrap: wrap;
		flex-direction: column;
		gap: 5px 0;
		padding: 10px 3px;
		font-size: 13px;
		margin-bottom: 3px;
	}
	#cast_detail dt {
		min-width: 0;
		font-size: 11px;
	}

	/*---------- サンプルボイス ----------*/
	#cast_info01 button {
		top: 40px;
		font-size: 11px;
	}
	#cast_info01 button span,
	#cast_info01 button::before {
		width: 70px;
		height: 70px;
	}
	#cast_info01 button span img {
		width: 32px;
		margin-top: 3px;
	}

	/*---------- 右下 → 3段目：CHARACTER紹介・SNSボタン ----------*/
	#cast_info02 {
		grid-column: 1;
		grid-row: 3;
		padding: 40px 0 50px;
	}
	#cast_detail h4 {
		margin-bottom: 30px;
		margin-left: 10px;
	}
	#cast_detail h4 + p {
		font-size: 14px;
		line-height: 2.4;
		letter-spacing: 0.03em;
		margin-right: 5px;
	}
	#cast_detail h4 + p span {
		padding: 0.25em 0.8em 0.35em;
	}
	#cast_info02 ul {
		gap: 12px;
		margin-top: 30px;
	}
	#cast_info02 li {
		max-width: none;
	}
	#cast_info02 a {
		height: 60px;
		line-height: 1.3;
        padding-top: 0px;
        font-size: 13px;
	}
	#cast_info02 a span {
		top: 3px;
	}

	/*---------- YouTube ----------*/
	#cast_detail > section > .youtube {
		grid-column: 1;
		grid-row: 4;
		margin-top: 40px;
	}
}
