/*
 * 応募フォームの確認画面（2026-11-04）。ホームページ・オウンドメディアのお問い合わせと同じ「入力 → 内容の確認 → 送信完了」の3段。
 * 色は採用サイトの紺（#004097）と赤（#DC5257）。ボタンの大きさは今までの「送信」ボタン（legacy.css の input.submit）と同じ。
 * 段ごとの出し分けは、JavaScript が動いたとき（form に data-hrc-step が付いたとき）だけ。動かないときは今までどおり「送信」ボタンだけが出る。
 */
.hrc-cf__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 770px;
	margin: 0 auto 56px;
	padding: 0;
	list-style: none;
}
.hrc-cf__steps li {
	display: grid;
	gap: 2px;
	padding: 12px 6px;
	border: 1px solid #004097;
	background: #fff;
	color: #004097;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
}
.hrc-cf__steps li + li {
	border-left: 0;
}
.hrc-cf__steps li span {
	font-family: "Oswald", sans-serif;
	font-size: 13px;
	font-weight: normal;
	letter-spacing: .08em;
}
.hrc-cf__steps li.is-current {
	background: #004097;
	color: #fff;
}
.hrc-cf__steps li.is-done {
	background: #e8eef7;
}

.hrc-cf__confirm {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 48px;
}
.hrc-cf__confirm-lead {
	margin-bottom: 24px;
	text-align: center;
	font-weight: bold;
	line-height: 1.8;
}
.hrc-cf__confirm-list {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	margin: 0;
	border-top: 1px solid #c9d5e8;
}
.hrc-cf__confirm-list dt,
.hrc-cf__confirm-list dd {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid #c9d5e8;
	line-height: 1.7;
	text-align: left;
}
.hrc-cf__confirm-list dt {
	background: #f2f5fa;
	color: #004097;
	font-weight: bold;
}
.hrc-cf__confirm-list dd {
	font-weight: normal;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.hrc-cf__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 24px;
}
.hrc-cf__to-confirm,
.hrc-cf__back {
	justify-content: center;
	align-items: center;
	width: 300px;
	height: 86px;
	margin-bottom: 20px;
	font: inherit;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
}
.hrc-cf__to-confirm {
	color: #fff;
	background: #004097;
	border: 0;
}
.hrc-cf__to-confirm:disabled {
	opacity: .6;
	cursor: wait;
}
.hrc-cf__back {
	color: #004097;
	background: #fff;
	border: 2px solid #004097;
}
form[data-hrc-step] input.submit.hrc-cf__send {
	background: #DC5257;
}

/* 段ごとの出し分け */
.hrc-cf__to-confirm,
.hrc-cf__back {
	display: none;
}
form[data-hrc-step="1"] .hrc-cf__to-confirm {
	display: flex;
}
form[data-hrc-step="1"] .hrc-cf__send,
form[data-hrc-step="1"] .wpcf7-spinner {
	display: none !important;
}
form[data-hrc-step="2"] .entry-txt,
form[data-hrc-step="2"] .entry-item:not(.submit-wrap),
form[data-hrc-step="2"] .wpcf7-response-output,
form[data-hrc-step="2"] .hrc-cf__to-confirm {
	display: none !important;
}
form[data-hrc-step="2"] .hrc-cf__back {
	display: flex;
}
form[data-hrc-step="3"] .hrc-cf__actions,
form[data-hrc-step="3"] .hrc-cf__confirm {
	display: none !important;
}

@media screen and (max-width: 768px) {
	.hrc-cf__steps {
		margin-bottom: 40px;
	}
	.hrc-cf__steps li {
		padding: 10px 4px;
		font-size: 13px;
	}
	.hrc-cf__steps li span {
		font-size: 11px;
	}
	.hrc-cf__confirm-list {
		grid-template-columns: minmax(0, 1fr);
	}
	.hrc-cf__confirm-list dt {
		padding: 12px 16px 6px;
		border-bottom: 0;
	}
	.hrc-cf__confirm-list dd {
		padding: 6px 16px 14px;
	}
	.hrc-cf__actions {
		flex-direction: column-reverse;
		align-items: center;
	}
	.hrc-cf__to-confirm,
	.hrc-cf__back {
		max-width: 100%;
	}
}

/*
 * 希望日程（2026-11-04）：開始時刻は「10:00」の1つの欄。選ぶと右に「〜 [11:30] 終了」（面接は1時間30分・会社説明会は1時間）。
 * 終了時刻はグレーの入力できない欄（選ぶ前は「--:--」）。日付・開始・終了を左に寄せて詰め、スマホでも1行に収める
 */
.desired-date .item-wrap {
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px 16px;
}
.desired-date-wrap select.time {
	width: 90px;
	padding-left: 6px;
	padding-right: 6px;
}
.desired-date .time-wrap .wpcf7-form-control-wrap {
	padding-right: 0;
}
/* 「〜」は開始と終了の欄のちょうど真ん中（左のすき間＝行のすき間16px−4px＝12px、右のすき間12px） */
.desired-date .item-wrap span.hrc-end-time {
	align-items: center;
	gap: 12px;
	margin-left: -4px;
	padding-right: 0;
	color: #004097;
	font-weight: bold;
	white-space: nowrap;
}
.desired-date .item-wrap span.hrc-end-time span {
	height: auto;
	padding: 0;
	font-size: inherit;
}
.desired-date .item-wrap input.hrc-end-time__cell {
	width: 90px;
	height: 48px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid #c4c4c4;
	border-radius: 0;
	background: #ededed;
	color: #555;
	-webkit-text-fill-color: #555;
	opacity: 1;
	font: inherit;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	cursor: not-allowed;
}
.desired-date .item-wrap span.hrc-end-time.is-empty input.hrc-end-time__cell {
	color: #999;
	-webkit-text-fill-color: #999;
}
@media screen and (max-width: 768px) {
	.desired-date .item-wrap {
		gap: 8px 6px;
	}
	.desired-date .item-wrap input[type="date"] {
		width: 120px;
		min-width: 0;
		padding-left: 4px;
		padding-right: 4px;
		font-size: 14px;
	}
	.desired-date-wrap select.time {
		width: 60px;
		min-width: 0;
		padding-left: 2px;
		padding-right: 2px;
		font-size: 14px;
	}
	.desired-date .item-wrap span.hrc-end-time {
		gap: 6px;
		margin-left: 0;
		font-size: 13px;
	}
	.desired-date .item-wrap input.hrc-end-time__cell {
		width: 56px;
		padding: 0 2px;
		font-size: 14px;
	}
}
@media screen and (max-width: 374px) {
	.desired-date .item-wrap input[type="date"] {
		width: 114px;
		font-size: 13px;
	}
	.desired-date-wrap select.time {
		width: 54px;
		font-size: 13px;
	}
	.desired-date .item-wrap input.hrc-end-time__cell {
		width: 50px;
		font-size: 13px;
	}
	.desired-date .item-wrap span.hrc-end-time {
		font-size: 12px;
	}
}

/*
 * 希望日程の「未入力です。」など（2026-11-04）：欄の右ではなく、その欄のすぐ下に出す（行の並びを崩さない）。
 * Contact Form 7 は、ある欄を変えるとその前の未入力の必須欄にも出すので、日付より先に時刻を選んだときに日付の下に出る
 */
.desired-date .item-wrap .wpcf7-form-control-wrap {
	position: relative;
}
.desired-date .item-wrap .wpcf7-form-control-wrap .wpcf7-not-valid-tip,
form.invalid .desired-date .item-wrap .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
	display: block;
	position: absolute;
	top: 100%;
	bottom: auto;
	left: 0;
	width: max-content;
	height: auto;
	margin: 2px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
}
/* エラーが出ている行だけ、下の行との間を少しあける */
.desired-date:has(.wpcf7-not-valid-tip) .item-wrap {
	margin-bottom: 16px;
}

/*
 * 応募のサンクスページ（/recruit/entry/thanks/・2026-11-09〜）。ページの本文は管理画面の固定ページ「応募完了」。
 * 応募ページと同じ紺の枠（.entry-wrap）の中に、STEP の表示（3つ目が今）と受付の案内・今後の流れを出す。
 */
.hrc-thanks {
	max-width: 770px;
	margin: 0 auto 64px;
	line-height: 1.9;
}
.hrc-thanks__title {
	margin: 0 0 24px;
	color: #004097;
	font-size: 26px;
	font-weight: bold;
	line-height: 1.5;
	text-align: center;
}
.hrc-thanks__lead {
	margin: 0 0 40px;
	text-align: center;
}
.hrc-thanks__flow {
	margin: 0 0 32px;
	padding: 28px 32px;
	background: #f2f5fa;
}
.hrc-thanks__flow h3 {
	margin: 0 0 16px;
	color: #004097;
	font-size: 18px;
	font-weight: bold;
}
.hrc-thanks__flow dl {
	margin: 0;
}
.hrc-thanks__flow dt {
	margin: 0;
	color: #004097;
	font-weight: bold;
}
.hrc-thanks__flow dd {
	margin: 0 0 16px;
}
.hrc-thanks__flow dd:last-child {
	margin-bottom: 0;
}
.hrc-thanks__note {
	margin: 0 0 40px;
	font-size: 14px;
	color: #555;
}
.hrc-thanks__back {
	margin: 0;
	text-align: center;
}
.hrc-thanks__back a {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 300px;
	max-width: 100%;
	height: 72px;
	color: #fff;
	background: #004097;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
}
.hrc-thanks__back a:hover {
	opacity: .85;
}
@media screen and (max-width: 768px) {
	.hrc-thanks {
		margin-bottom: 40px;
	}
	.hrc-thanks__title {
		font-size: 21px;
	}
	.hrc-thanks__lead {
		margin-bottom: 28px;
		text-align: left;
	}
	.hrc-thanks__flow {
		padding: 20px 18px;
	}
	.hrc-thanks__back a {
		height: 64px;
		font-size: 16px;
	}
}
