/* ============================================================
   flow.css — キャスティングの流れ (/flow/)
   ============================================================ */

/* TODO: Stepのフォント確認 (.flow-step__badge-label, .flow-step__badge-num) */

/* SP専用改行：PCでは非表示 */
br.sp-br { display: none; }

/* ---------- セクションカラー変数 ---------- */
.flow-section--model     { --flow-color: #1a73a7; }
.flow-section--narrator  { --flow-color: #248c77; }
.flow-section--recording { --flow-color: #1a73a7; }

/* ============================================================
   アンカーナビゲーション
   ============================================================ */
.flow-anchor-nav {
	background: #fff;
	margin: 20px 0;
}

.flow-anchor-nav__inner {
	display: flex;
	align-items: center;
	max-width: var(--max-width, 1280px);
	margin: 0 auto;
	padding: 0;
}


.flow-anchor-link {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 16px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	transition: color 0.2s;
}

.flow-anchor-link:hover {
	color: #1a73a7;
}

/* 各ボタン右側のⓋアイコン（丸・緑）
   高さはテキストの行高に合わせて 1em × 1em */
.flow-anchor-link__icon {
	flex-shrink: 0;
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	border-radius: 50%;
	background: #008a6a;
	position: relative;
	vertical-align: middle;
}

/* 下向きV字chevron：border の角を使って描画 */
.flow-anchor-link__icon::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -65%) rotate(45deg);
}

/* ボタン間・両端の縦線 */
.flow-anchor-sep {
	display: block;
	width: 1px;
	height: 28px;
	background: #1a73a7;
	flex-shrink: 0;
}

/* 左端・右端リンク：border ＋ padding（nav inner の削除分を補完） */
.flow-anchor-link:first-child {
	border-left: 1px solid #1a73a7;
	padding-left: 50px;
}

.flow-anchor-link:last-child {
	border-right: 1px solid #1a73a7;
	padding-right: 50px;
}

/* ============================================================
   フローセクション
   ============================================================ */
.flow-section {
	background: #fff;
}

/* セクションタイトル帯（コンテンツ幅・右側装飾線） */
.flow-section__title {
	background: var(--flow-color);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 auto;               /* ② コンテンツ幅に合わせて中央配置 */
	max-width: var(--max-width, 1280px);
	padding: 20px 50px;
	letter-spacing: 0.04em;
	scroll-margin-top: 96px;
	display: flex;
	align-items: center;
}

/* 左側の見えない均等スペーサー（テキストを中央に保つ） */
.flow-section__title::before {
	content: '';
	flex: 1;
}

/* ③ 右側の白い装飾線（spanのmargin-rightでテキストと分離、線は右端まで届く） */
.flow-section__title span {
	margin-right: 24px;
}

.flow-section__title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: rgba(255, 255, 255, 0.65);
	margin-right: -50px; /* 右padding分を打ち消して端まで届かせる */
}

/* セクション本文エリア
   ★ padding-left を大きくしてバッジのはみ出し分を確保 */
.flow-section__body {
	padding: 50px 50px 60px;
}

/* ============================================================
   タイムライン
   ============================================================ */
.flow-timeline {
	list-style: none;
	margin: 0 auto;          /* 中央寄せ */
	padding: 0 0 0 44px;     /* ← バッジが左にはみ出す分（badge幅88px の半分） */
	max-width: 900px;
}

/* カード間の縦ラインコネクター */
.flow-step + .flow-step::before {
	content: '';
	display: block;
	width: 2px;
	height: 28px;
	background: var(--flow-color);
	margin: 0 auto;
}

/* ============================================================
   ステップカード
   ============================================================ */
.flow-step__content {
	position: relative;      /* バッジの absolute 基準 */
	display: flex;
	flex-wrap: wrap;         /* flow-step__action を次の行に折り返す */
	border: 2px solid var(--flow-color);
	background: #fff;
	overflow: visible;       /* バッジのはみ出しを表示 */
	min-height: 120px;
}

/* ------ Stepバッジ ------
   ・高さ = カード高さの 50%（min-height確保）
   ・左端から横半分はみ出す（left = -(badge幅/2) = -44px）
   ・縦中央
   ・角丸なし
*/
.flow-step__badge {
	position: absolute;
	left: -44px;             /* 88px幅の半分をはみ出し */
	top: 50%;
	transform: translateY(-50%);
	width: 88px;
	height: 50%;
	min-height: 64px;
	background: var(--flow-color);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.4;
	z-index: 1;
	/* border-radius なし（角丸なし） */
}

.flow-step__badge-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.flow-step__badge-num {
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
	margin-top: 3px;
}

/* ------ カード左エリア（30%）―タイトル・中央寄せ ------ */
.flow-step__left {
	flex: 0 0 30%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px 16px 36px 56px; /* left: バッジ内側 44px + 余白 12px */
	text-align: center;
}

.flow-step__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--flow-color);
	margin: 0;
	line-height: 1.5;
	text-align: center;
}

.flow-step__title small {
	display: block;
	font-size: 0.82em;
	font-weight: 700;
	color: var(--flow-color);
	margin-top: 2px;
}

/* ------ カード右エリア（70%）―テキスト・左寄せ ------ */
.flow-step__right {
	flex: 0 0 70%;
	padding: 36px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.flow-step__text {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.9;
	color: #444;
	margin: 0;
	text-align: left;
}

/* ------ ボタン行（カード全幅・中央揃え） ------ */
.flow-step__action {
	flex: 0 0 100%;          /* 必ず次の行に折り返し全幅 */
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 40px 28px;
}

/* inquiry__btn と同スタイル・メールアイコンあり */
.flow-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 50%;
	padding: 10px 24px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	border-radius: 35px;
	color: #fff;
	border: solid 2px var(--key-pink, #ee3b5d);
	background: var(--key-pink, #ee3b5d);
	box-sizing: border-box;
	transition: opacity 0.2s, transform 0.2s;
}

.flow-contact-btn::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 21px;
	height: 15px;
	background: url(../images/common/icon_mail.png) no-repeat center;
	background-size: 21px 15px;
}

.flow-contact-btn:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

/* ============================================================
   注意事項エリア
   ============================================================ */
.flow-notice.column {
	background: #fff;          /* ① 白背景 */
}

.flow-notice.column .section-in {
	max-width: 960px;
}

.flow-notice__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.flow-notice__title {
	font-size: 17px;
	font-weight: 700;
	color: #222;
	margin: 0;
}

.flow-notice__date {
	font-size: 13px;
	color: #222;               /* ② */
	margin: 0;
}

.flow-notice__list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.flow-notice__list li {
	font-size: 14px;
	line-height: 1.8;
	color: #222;               /* ② */
	padding: 9px 0 9px 18px;
	position: relative;        /* ③ border-bottom なし */
}

.flow-notice__list li::before {
	content: "・";
	position: absolute;
	left: 0;
	color: #888;
}

/* ---------- 強調テキスト ---------- */
.flow-hl {
	color: #248c77;
	font-size: 20px;
	font-weight: 700;
}

/* section2 は #1a73a7 */
.flow-section--narrator .flow-hl {
	color: #1a73a7;
}

/* ④ お取引ガイドラインボタン：矢印なし・中央寄せ・幅広め */
.flow-notice .btn__block {
	justify-content: center;
}

.flow-notice .btn__block a.type04.blue {
	padding: 12px 90px;
}

.flow-notice .btn__block a.type04.blue::after {
	display: none;
}

/* ============================================================
   レスポンシブ (SP ≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

	:where(body.page-template-page-flow) .page-title h1 br {
		display: none;
	}

	/* SP専用改行：SPでは有効化 */
	br.sp-br { display: block; }

	/* ---------- アンカーナビ：SP縦積み ---------- */
	.flow-anchor-nav {
		margin: 0;
	}
	
	.flow-anchor-nav__inner {
		flex-direction: column;
		padding: 0;
	}

	/* セパレーター（縦線）は非表示 */
	.flow-anchor-sep {
		display: none;
	}

	.flow-anchor-link {
		flex: none;
		width: 100%;
		justify-content: space-between; /* テキスト左・アイコン右 */
		padding: 16px 20px;
		font-size: 14px;
		border-left: none !important;
		border-right: none !important;
		border-bottom: 1px solid #d8e6f0;
	}

	.flow-anchor-link:first-child {
		padding-left: 20px;   /* PC の 50px を上書き */
		/* border-top: 1px solid #1a73a7; */
	}

	.flow-anchor-link:last-child {
		padding-right: 20px;  /* PC の 50px を上書き */
		/* border-bottom: 1px solid #1a73a7; */
	}

	.flow-anchor-link__icon {
		width: 1.4em;
		height: 1.4em;
		flex-shrink: 0;
	}

	/* ---------- セクションタイトル ---------- */
	.flow-section__title {
		font-size: 18px;
		padding: 14px 20px;
		scroll-margin-top: 60px;
	}

	/* 右側の白線：SPのpadding(20px)分を打ち消す */
	.flow-section__title::after {
		margin-right: -20px;
	}

	/* ---------- セクション本文 ---------- */
	.flow-section__body {
		padding: 20px 16px 28px;
	}

	/* ---------- タイムライン ---------- */
	/* SP: バッジ幅64px → 左に32px はみ出し */
	.flow-timeline {
		padding-left: 24px;
	}

	/* コネクター線：SP では短めに */
	.flow-step + .flow-step::before {
		margin: 0 auto;
		height: 16px;
	}

	/* ---------- バッジ ---------- */
	.flow-step__badge {
		width: 2.5em;
		left: -1.3em;           /* 64px / 2 */
		height: auto;
		min-height: 0;
		aspect-ratio: 1;
		top: 6px;
		transform: none;
		padding: 0;
		font-size: 19px;
	}

	.flow-step__badge-label {
		font-size: .5em;
		letter-spacing: 0;
		line-height: 1.4;
		font-weight: 500;
	}

	.flow-step__badge-num {
		font-size: inherit;
		margin-top: .15em;
		font-weight: 700;
	}

	/* ---------- カード：縦積み ---------- */
	.flow-step__content {
		flex-direction: column;
		min-height: auto;
		flex-wrap: nowrap;
	}

	/* 左エリア：タイトルのみ、左寄せ・コンパクトに */
	.flow-step__left {
		flex: none;
		width: 100%;
		padding: 12px 16px 12px 36px; /* left: バッジ32px + 余白12px */
		justify-content: flex-start;
		align-items: center;
		text-align: left;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		min-height: 62px;
	}

	.flow-step__title {
		font-size: 16px;
		text-align: left;
	}

	/* SP：タイトル内の改行を無効化 */
	.flow-step__title br {
		display: none;
	}

	.flow-step__title small {
		display: inline-block;
		font-size: 0.75em;
		font-weight: normal;
		margin: 0 .5em;
	}

	/* 右エリア：テキスト、余白調整 */
	.flow-step__right {
		flex: none;
		width: 100%;
		padding: 12px 16px 16px;
	}

	.flow-step__text {
		font-size: inherit;
		line-height: var(--line-height-text);
	}

	.flow-step__text br {
		display: none;
	}

	/* 強調テキスト：SP ではサイズを抑える */
	.flow-hl {
		font-size: inherit;
	}

	/* ボタン行 */
	.flow-step__action {
		padding: 4px 16px 24px;
	}

	.flow-contact-btn {
		width: 85%;
		font-size: 14px;
	}

	/* ---------- 注意事項 ---------- */
	.flow-notice.column {
		background: var(--bg-light);
	}
	.flow-notice.column .section-in {
		max-width: 100%;
	}

	.flow-notice__header {
		flex-direction: column;
		gap: 4px;
	}

	.flow-notice .btn__block a.type04.blue {
		padding: 12px 40px;
	}
}
