/**
 * #Apply（WEB出願）
 */

.p-apply-intro {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 50px;
}

.p-apply-notice {
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 10px;
	background-color: var(--white);
}

.p-apply-notice__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 15px;
	border-bottom: 1px solid #ddd;
	background-color: #f6f6f6;
}

.p-apply-notice__icon {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	overflow: hidden;
}

.p-apply-notice__icon img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.p-apply-notice__title {
	margin: 0;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 28px;
}

.p-apply-notice__body {
	padding: 20px;
}

.p-apply-notice__list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: #111;
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
}

.p-apply-notice__list li {
	margin: 0;
	padding: 0;
}

.p-apply-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 2px;
	row-gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-apply-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
	padding: 10px 10px 15px;
	border-bottom: 5px solid var(--color-accent);
}

.p-apply-step__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 17px;
	border-radius: 999px;
	background-color: var(--color-accent);
	color: var(--white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	font-feature-settings: "palt" 1;
}

.p-apply-step__label {
	color: #111;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.p-single-body .p-form h2.p-form__step-heading,
.p-contact .p-form h2.p-form__step-heading {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	max-width: none;
	margin: 50px 0 20px;
	padding: 0;
	border: 0;
	border-bottom: 5px solid #efefef;
	background: none;
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	position: relative;

	&:first-child {
		margin-top: 0;
	}

	&::before {
		content: none;
	}

	&::after {
		content: "";
		position: static;
		left: auto;
		bottom: auto;
		display: block;
		width: 150px;
		max-width: none;
		height: 5px;
		margin: 0 0 -5px;
		background-color: var(--color-accent);
		transform: none;
	}
}

.p-form__step-heading-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.p-form__step-badge {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 88px;
	padding: 4px 17px;
	border-radius: 999px;
	background-color: var(--color-accent);
	color: var(--white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	font-feature-settings: "palt" 1;
}

.p-form__step-title {
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 768px) {
	.p-apply-intro {
		margin-bottom: 30px;
		gap: 20px;
	}

	.p-apply-notice__body {
		padding: 16px;
	}

	.p-apply-notice__list {
		font-size: 14px;
		line-height: 1.8;
	}

	.p-apply-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-apply-step:last-child {
		grid-column: 1 / -1;
	}

	.p-apply-step__label {
		white-space: normal;
	}

	.p-single-body .p-form h2.p-form__step-heading,
	.p-contact .p-form h2.p-form__step-heading {
		margin-top: 32px;
		font-size: 20px;
	}

	.p-form__step-title {
		font-size: 20px;
	}

	.p-form__step-badge {
		min-width: 0;
		font-size: 14px;
	}
}
