.w880 {
	max-width: 88rem;
}

#contents {
	background-color: #f8f8f8;
}

#application-guidelines {
	padding-top: 12rem;
	padding-bottom: 12rem;

	@media screen and (max-width: 767px) {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

.ag-tabs {
	border-bottom: 1px solid #cccccc;
}

.ag-tab-items {
	display: flex;
	gap: 8rem;
	width: 100%;

	@media screen and (max-width: 767px) {
		gap: 1.1rem;
		justify-content: center;
	}
}

.ag-tab-item {
	width: 40rem;
	max-width: 100%;
	padding: 2.5rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 500;
	font-size: 2.2rem;
	line-height: 200%;
	text-align: center;
	letter-spacing: 0.08em;
	color: #000000;
	cursor: pointer;
	transition: all 0.3s ease;

	&:hover {
		opacity: 0.6;
	}

	@media screen and (max-width: 767px) {
		width: 15rem;
		padding: 1.15rem 0;
		font-size: 1.125rem;
	}
}

.ag-tab-item.active {
	background-color: #e50012;
	color: #fff;
	pointer-events: none;
}

.application-guidelines-container {
	display: none;
	/* padding-top: 13rem; */
	@media screen and (max-width: 767px) {
		/* padding-top: 5rem; */
	}
}

.application-guidelines-container.active {
	display: block;
}

.application-guidelines-table {
	width: 100%;
	border-collapse: collapse;
	/* border: 1px solid #000000; */
	/* background: rgba(255, 255, 255, 0.9); */
}

.application-guidelines-table tr {
	display: flex;
	width: 100%;
	align-self: start;
	padding: 2rem 0;
	border-bottom: 1px solid #cfcfcf;

	@media screen and (max-width: 767px) {
		flex-direction: column;
		gap: 1rem;
	}
}

.application-guidelines-table-title {
	width: 20%;
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 700;
	font-size: 2rem;
	line-height: 3rem;
	letter-spacing: 0.1em;
	color: #e50012;

	@media screen and (max-width: 767px) {
		font-size: 1.4rem;
		width: 100%;
	}
}

.application-guidelines-table-content {
	width: 80%;
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 400;
	font-size: 1.8rem;
	line-height: 180%;
	letter-spacing: 0.08em;
	color: #000000;

	@media screen and (max-width: 767px) {
		font-size: 1.4rem;
		width: 100%;
	}
}

#flow {
	padding-bottom: 12rem;

	@media screen and (max-width: 767px) {
		padding-bottom: 5rem;
	}
}

.flow-container {
	width: 100%;
	display: flex;
	position: relative;
	gap: 6rem;

	@media screen and (max-width: 767px) {
		flex-direction: column;
		gap: 3rem;
	}
}

.flow-item {
	width: 25.5rem;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 2rem;
	position: relative;
	@media screen and (max-width: 767px) {
		gap: 1rem;
	}
	&::after {
		content: "";
		position: absolute;
		top: 45%;
		left: 100%;
		width: 100%;
		height: 2px;
		background-color: #ccc;
		transform: translateY(-50%);
		@media screen and (max-width: 767px) {
			display: none;
		}
	}

	&:last-child {
		&::after {
			display: none;
		}
	}

	@media screen and (max-width: 767px) {
		width: 100%;

		&::after {
			top: 100%;
			left: 50%;
			width: 2px;
			height: 100%;
			transform: translateX(-50%);
		}
	}
}

.flow-item-img {
	@media screen and (max-width: 767px) {
		width: 20rem;
		margin: auto;
	}
}

.flow-item-title {
	font-family: var(--cjk);
	font-style: normal;
	font-weight: 500;
	font-size: 2rem;
	line-height: 3.4rem;
	leading-trim: both;
	text-edge: cap;
	text-align: center;
	letter-spacing: 0.08em;
	color: #000000;

	@media screen and (max-width: 767px) {
		font-size: 1.6rem;
	}
}

#flow .note {
	margin-top: 8.8rem;
	font-style: normal;
	font-weight: 400;
	font-size: 1.8rem;
	line-height: 200%;
	letter-spacing: 0.08em;
	color: #000000;
	@media screen and (max-width:767px){
		margin-top: 4rem;
		font-size: 1.4rem;
	}
}
