/*
 * 選ばれる理由ページ専用CSS(page-templates/template-reasons.php = /reasons/)
 * 値は旧サイト https://family-hall.com/reasons/ の computed style を PC1440 / SP390 で実測したもの。
 * お知らせカード・CTA バナー・末尾 h1 は home.css / site.css を共用する。
 */

.ns-reasons {
	overflow-x: clip;
}

.ns-reasons__lead {
	padding: 0 0 50px;
}

.ns-reasons__lead .ns-tit {
	margin-bottom: 30px;
}

/* 旧は 6 項目リンクの下に 100px 空けている(820px 以下では 0) */
.ns-reasons__nav {
	padding-bottom: 100px;
}

@media (max-width: 820px) {
	.ns-reasons__nav {
		padding-bottom: 0;
	}
}

/* 6 項目へのリンクカード */
.ns-reasons .ns-rnav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 20px;
	padding: 0 10px;
}

.ns-rnav__item {
	background: #ffffff;
	border: 1px solid var(--fh-line);
	border-top: 3px solid var(--fh-navy);
	border-radius: 10px;
	box-shadow: 0 0 5px #cccccc;
}

.ns-rnav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 90px;
	padding: 15px;
	color: #333333;
	text-decoration: none;
}

.ns-rnav__link:hover {
	text-decoration: none;
	opacity: 0.8;
}

.ns-rnav__num {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	background: var(--fh-navy);
	border-radius: 50px;
	color: #ffffff;
	font-family: var(--fh-num);
	font-size: 13px;
	line-height: 60px;
	text-align: center;
	white-space: nowrap;
}

.ns-rnav__no {
	font-size: 20px;
}

.ns-rnav__tit {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ns-rnav__tit span {
	color: var(--fh-red);
	font-size: 19px;
}

.ns-rnav__link .ns-ico-chev--down {
	position: absolute;
	top: 50%;
	right: 20px;
	color: var(--fh-navy);
	transform: translateY(-50%);
}

/* 6 項目の詳細 */
.ns-reasons__list {
	padding: 45px 0 50px;
}

.ns-rrow {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 100px;
}

.ns-rrow:last-child {
	margin-bottom: 0;
}

.ns-rrow--alt {
	justify-content: flex-start;
}

.ns-rrow__img {
	flex: 0 0 600px;
	width: 600px;
	line-height: 0;
}

.ns-rrow__img img {
	width: 600px;
	height: 400px;
	object-fit: cover;
}

.ns-rrow__box {
	position: absolute;
	left: 65px;
	width: 650px;
	padding: 10px 32px 30px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 5px var(--fh-line);
}

.ns-rrow--alt .ns-rrow__box {
	right: 65px;
	left: auto;
}

.ns-rrow__no {
	position: absolute;
	top: -15px;
	left: -20px;
	width: 79px;
	padding: 15px 10px;
	background: var(--fh-navy);
	border-radius: 0 0 20px 20px;
	color: #ffffff;
	font-family: var(--fh-num);
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.ns-rrow__no span {
	display: block;
	font-size: 38px;
	line-height: 1.2;
}

.ns-rrow__ttl {
	padding: 15px 0 30px 60px;
	color: var(--fh-navy);
	font-family: var(--fh-sans);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
}

.ns-rrow__lead {
	font-size: 16px;
	line-height: 1.7;
}

.ns-rrow__btn {
	margin-top: 30px;
}

.ns-reasons__cta {
	padding: 40px 0;
}

/* ------------------------------------------------------------------
 * タブレット(1024px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ns-reasons .ns-rnav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 20px;
	}

	.ns-rrow__img {
		flex: 0 0 55%;
		width: 55%;
	}

	.ns-rrow__img img {
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.ns-rrow__box {
		width: 60%;
	}
}

/* ------------------------------------------------------------------
 * スマートフォン(767px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.ns-reasons .ns-inner {
		width: min(1300px, 100% - 30px);
	}

	.ns-reasons__lead {
		padding: 0 0 30px;
	}

	.ns-reasons .ns-rnav {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 0;
	}

	.ns-rnav__tit {
		font-size: 16px;
	}

	.ns-rnav__tit span {
		font-size: 17px;
	}

	.ns-reasons__list {
		padding: 45px 0 30px;
	}

	.ns-rrow {
		display: block;
		margin-bottom: 30px;
		padding-top: 15px;
	}

	.ns-rrow__img,
	.ns-rrow--alt .ns-rrow__img {
		flex: none;
		width: 100%;
	}

	.ns-rrow__img img {
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.ns-rrow__box,
	.ns-rrow--alt .ns-rrow__box {
		position: static;
		width: 100%;
		padding: 20px 18px;
	}

	.ns-rrow__no {
		top: -50px;
		left: 0;
		width: 61px;
		padding: 10px;
		font-size: 12px;
	}

	.ns-rrow__no span {
		font-size: 26px;
	}

	.ns-rrow__ttl {
		padding: 10px 0 20px;
		font-size: 18px;
	}

	.ns-rrow__btn {
		max-width: none;
		font-size: 14px;
	}

	.ns-reasons__cta {
		padding: 20px 0;
	}

	/* 旧は選ばれる理由のページだけ、お知らせの上を 20px にしている(他ページは 50px) */
	.ns-reasons .ns-news {
		padding-top: 20px;
	}
}
