/*
 * Shared HANDA/Otemachi home-section presentation.
 * Clinic-specific copy and imagery remain in each theme's index.php.
 */

/* Consultation section */
#soudan {
	background: url("../img/home/soudan_bg.webp") no-repeat top center;
	background-size: cover;
}

#soudan .soudan_clinic_img,
#soudan .soudan_sp {
	display: none;
}

#soudan .wrap {
	width: min(610px, calc(100% - 80px));
	padding-top: 50px;
	padding-bottom: 16px;
	text-align: center;
}

#soudan .wrap h2 {
	margin-bottom: 10px;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .06em;
}

#soudan .wrap h3 {
	margin-bottom: 20px;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.4;
}

#soudan .wrap h3 span {
	border-bottom: 1px solid var(--main-color);
	font-size: 46px;
	color: var(--main-color);
}

#soudan .wrap p {
	margin-bottom: 6px;
	font-size: 20px;
	font-weight: 500;
	line-height: 2;
}

#soudan .wrap p.small {
	margin-bottom: 0;
	font-size: 14px;
	color: rgba(63, 58, 50, .6);
}

@media screen and (max-width: 1080px) {
	#soudan {
		background: url("../img/home/sp_soudan_bg.webp") no-repeat top center;
		background-size: cover;
	}

	#soudan .wrap {
		padding-bottom: 0;
	}
}

@media screen and (max-width: 750px) {
	#soudan {
		padding: 34px 0 52px;
		background:
			linear-gradient(180deg, rgba(246, 250, 255, .9), rgba(255, 255, 255, .96)),
			url("../img/home/sp_soudan_bg.webp") no-repeat center top;
		background-size: auto, cover;
	}

	#soudan .soudan_clinic_img {
		display: block;
		width: calc(100% - 40px);
		max-width: 430px;
		margin: 0 auto;
		text-align: center;
	}

	#soudan .soudan_clinic_img img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		object-position: center 42%;
		border: 8px solid #fff;
		box-shadow: 0 18px 34px rgba(50, 50, 50, .14);
	}

	#soudan .wrap {
		position: relative;
		overflow: hidden;
		box-sizing: border-box;
		width: calc(100% - 40px);
		max-width: 420px;
		margin: 18px auto 0;
		padding: 32px 18px 34px;
		background: url("../img/home/soudan_bg.webp") no-repeat center center;
		background-size: auto 100%;
		border: 1px solid rgba(95, 76, 48, .12);
		border-radius: 2px;
		box-shadow: 0 18px 36px rgba(50, 50, 50, .12);
	}

	#soudan .wrap::before,
	#soudan .wrap::after {
		content: none;
	}

	#soudan .soudan_copy {
		position: relative;
		z-index: 1;
		width: min(100%, 310px);
		margin: 0 auto;
		padding: 0 4px;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	#soudan .wrap h2,
	#soudan .wrap h3,
	#soudan .wrap p {
		position: relative;
		z-index: 2;
		width: 100%;
		margin-right: auto;
		margin-left: auto;
		text-shadow: none;
	}

	#soudan .wrap h2 {
		margin-bottom: 18px;
		font-size: clamp(18px, 5vw, 21px);
		line-height: 1.55;
	}

	#soudan .wrap h3 {
		margin-bottom: 15px;
		font-size: clamp(18px, 5.4vw, 27px);
		line-height: 1.45;
		letter-spacing: .02em;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	#soudan .wrap h3 span {
		font-size: 32px;
	}

	#soudan .wrap p {
		margin-bottom: 8px;
		font-size: clamp(13px, 3.8vw, 15px);
		line-height: 1.8;
	}

	#soudan .wrap p.small {
		font-size: 12px;
		line-height: 1.6;
	}
}

/* Shared repeated-card geometry */
#reason .reason_link {
	align-items: flex-end;
}

#reason .reason_list_child > img {
	height: 280px;
	object-fit: cover;
}
