/*
 * ご葬儀プランのページ専用CSS
 * page-templates/template-plan-list.php(/plan/)と template-plan-detail.php(/plan/kasou/ 等)。
 * 値は旧サイト https://family-hall.com/plan/ 系の computed style を PC1440 / SP390 で実測したもの。
 * プランカード・声カルーセル・お知らせカードはトップ用 home.css を共用する。
 */

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

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

.ns-planpage__h1 {
	margin-top: 20px;
	padding-bottom: 20px;
}

.ns-planpage__h1 h1 {
	width: 60vw;
	color: #7f7e7e;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.7;
	letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------
 * プラン種別のタブ(火葬式 / 1日家族葬 / 家族葬 = 3 ページへのリンク)
 * ------------------------------------------------------------------ */

.ns-plandetail__tabs {
	margin-top: 30px;
	border-bottom: 1px solid var(--ns-plan-color);
}

.ns-plantabs {
	display: flex;
	justify-content: center;
	gap: 30px;
	width: min(var(--fh-inner), 100% - 40px);
	margin-inline: auto;
}

.ns-plantabs__item {
	flex: 1 1 0;
	display: flex;
}

.ns-plantabs__btn {
	width: 100%;
	padding: 8px 10px;
	background: #f4f4f4;
	border-radius: 10px 10px 0 0;
	color: #333333;
	font-family: var(--fh-sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
	text-align: center;
	text-decoration: none;
}

.ns-plantabs__item.is-current .ns-plantabs__btn {
	background: var(--ns-plan-color);
	color: #ffffff;
}

.ns-plandetail__panels {
	padding-top: 20px;
}

/* ------------------------------------------------------------------
 * 火葬式の 7 プランのタブ(JS で切り替え)
 * ------------------------------------------------------------------ */

.ns-plansubtabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.ns-plansubtabs__item {
	flex: 1 1 0;
	display: flex;
}

.ns-plansubtabs__btn {
	width: 100%;
	padding: 8px 10px;
	background: var(--ns-plan-pale);
	border: 2px solid var(--ns-plan-pale);
	border-radius: 10px;
	color: #333333;
	font-family: var(--fh-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	cursor: pointer;
}

.ns-plansubtabs__btn.is-current {
	background: var(--ns-plan-color);
	border-color: var(--ns-plan-color);
	color: #ffffff;
}

/* ------------------------------------------------------------------
 * プラン 1 件のパネル(写真 / 見出し / キャッチ / 価格 / 流れ)
 * ------------------------------------------------------------------ */

.ns-planpanel__main {
	display: grid;
	grid-template-columns: minmax(0, 351px) minmax(0, 714px);
	grid-template-areas:
		"photo title"
		"photo body";
	justify-content: center;
	column-gap: 40px;
	padding-top: 10px;
	margin-bottom: 30px;
}

.ns-planpanel__photo {
	grid-area: photo;
	align-self: center;
}

.ns-planpanel__photo img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.ns-planpanel__note {
	margin-top: 5px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
}

.ns-planpanel__ttl {
	grid-area: title;
	margin-bottom: 15px;
	color: var(--ns-plan-color);
	font-family: var(--fh-sans);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
}

.ns-planpanel__body {
	grid-area: body;
	text-align: center;
}

.ns-planpanel__catch {
	display: inline;
	max-width: 100%;
	margin-bottom: 10px;
	padding: 12px 15px;
	background: #ffffff;
	border: 2px solid #333333;
	border-radius: 3px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}

.ns-plandetail__mini {
	font-size: 16px;
	font-weight: 700;
}

.ns-plandetail__red {
	color: var(--fh-red);
	font-size: 18px;
	font-weight: 700;
}

/* 価格(一般価格 → 無料会員価格) */

.ns-planprice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 30px 0;
	color: var(--fh-red);
	font-weight: 600;
}

.ns-planprice__unit {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
}

.ns-planprice__lead {
	display: grid;
	align-items: center;
	border-radius: 5px;
	color: #ffffff;
	font-family: var(--fh-sans);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.ns-planprice__unit--general .ns-planprice__lead {
	width: 42px;
	height: 42px;
	background: #919191;
	font-size: 14px;
}

.ns-planprice__unit--member .ns-planprice__lead {
	padding: 3px 6px;
	background: var(--fh-red);
	font-size: 20px;
}

.ns-planprice__num {
	padding-left: 10px;
	font-family: var(--fh-num);
	font-weight: 700;
	text-align: center;
}

.ns-planprice__unit--general .ns-planprice__num {
	color: #919191;
	font-size: 34px;
	line-height: 1.4;
}

.ns-planprice__unit--member .ns-planprice__num {
	color: var(--fh-red);
	font-size: 60px;
	line-height: 1.2;
}

.ns-planprice__unitmark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	vertical-align: bottom;
	margin-left: 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.ns-planprice__unitmark small {
	font-size: 12px;
	line-height: 1.4;
}

.ns-planprice__unit--member .ns-planprice__unitmark small {
	font-size: 14px;
}

.ns-planprice__taxin {
	grid-column: 1 / -1;
	line-height: 1.2;
	text-align: right;
}

.ns-planprice__unit--general .ns-planprice__taxin {
	color: #919191;
	font-family: var(--fh-sans);
	font-size: 14px;
	font-weight: 600;
}

.ns-planprice__unit--member .ns-planprice__taxin {
	color: var(--fh-red);
	font-family: var(--fh-num);
	font-size: 18px;
	font-weight: 700;
}

.ns-planprice__arrow {
	flex: 0 0 auto;
	margin: 0 20px;
	color: var(--fh-red);
}

/* ご葬儀の流れ */

.ns-planflow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 10px;
	background: #fafafa;
}

.ns-planpanel .ns-planflow {
	padding: 10px;
}

.ns-planflow__item {
	position: relative;
	width: 99px;
	padding: 5px 0;
	background: #cccccc;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.ns-planflow__item.is-on {
	background: var(--ns-plan-color);
}

.ns-planflow__sep {
	position: absolute;
	top: 50%;
	right: -17px;
	transform: translateY(-50%);
}

/* ------------------------------------------------------------------
 * バナー(お寺の手配 / 仮会員登録)
 * ------------------------------------------------------------------ */

.ns-planpanel__bnr,
.ns-planpanel__club {
	margin-bottom: 30px;
	text-align: center;
}

.ns-planpanel__bnr img,
.ns-planpanel__club img,
.ns-planpanel__club picture {
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.ns-planpanel__clubnote {
	display: block;
	max-width: 1105px;
	margin: 5px auto 0;
	color: #333333;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	text-align: left;
	/* PC の右端の追従バナー(画面の右 98px)の下に文字が入らないようにする(2026-10-02: 注記が長くなったため)。1024px 以下では 0 に戻す */
	padding-right: max(0px, calc(108px - (100vw - 100%) / 2));
}

.ns-planpanel__tomember {
	margin-top: 10px;
	font-weight: 600;
	text-align: center;
}

.ns-planpanel__tomember a {
	color: var(--fh-red);
	text-decoration: none;
}

.ns-planpanel__tomember a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * プラン料金に含まれるもの
 * ------------------------------------------------------------------ */

.ns-planinc__ttl {
	position: relative;
	margin-bottom: 20px;
	padding-left: 20px;
	color: #333333;
	font-family: var(--fh-sans);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.7;
	text-align: left;
}

.ns-plandetail__bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--fh-navy);
}

.ns-planinc__list {
	display: flex;
	flex-wrap: wrap;
}

.ns-planinc__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 25%;
	border: 1px solid var(--fh-line);
}

.ns-planinc__img {
	flex: 0 0 129px;
}

.ns-planinc__img img {
	width: 100%;
	height: auto;
}

.ns-planinc__txt {
	flex: 0 1 161px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.ns-planinc__txt span {
	display: block;
	font-size: 13px;
	line-height: 1.4;
}

/* ------------------------------------------------------------------
 * 価格の訴求(下向き三角 → 文言 → 税込価格)
 * ------------------------------------------------------------------ */

.ns-planappeal {
	overflow: hidden;
	padding: 50px 0 30px;
	text-align: center;
}

.ns-planappeal__arrow {
	display: block;
	margin: 0 auto 50px;
}

.ns-planappeal__txt {
	color: #333333;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

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

.ns-planappeal__box {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.ns-planappeal__left {
	text-align: left;
}

.ns-planappeal__sale {
	display: block;
	margin: 0 20px 5px 0;
	padding: 0 10px;
	border: 1px solid var(--fh-red);
	border-radius: 4px;
	color: var(--fh-red);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
}

.ns-planappeal__general {
	display: block;
	color: #333333;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
}

.ns-planappeal__price {
	display: flex;
	align-items: flex-end;
}

.ns-planappeal__num {
	color: var(--fh-red);
	font-family: var(--fh-num);
	font-size: 90px;
	font-weight: 600;
	line-height: 1;
}

.ns-planappeal__mark {
	display: flex;
	flex-direction: column;
	margin-left: 10px;
	color: var(--fh-red);
	font-weight: 700;
}

.ns-planappeal__mark small {
	font-size: 18px;
	line-height: 1;
}

.ns-planappeal__mark span {
	font-size: 20px;
	line-height: 1;
}

.ns-planappeal__slash {
	position: absolute;
	top: 10px;
	width: 4px;
	height: 70px;
	background: var(--fh-navy);
}

.ns-planappeal__slash--l {
	left: 130px;
	transform: rotate(-20deg);
}

.ns-planappeal__slash--r {
	right: 130px;
	transform: rotate(20deg);
}

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

@media (max-width: 1024px) {
	.ns-planpanel__clubnote {
		padding-right: 0;
	}

	.ns-planinc__img {
		flex: 0 0 100px;
	}

	.ns-planinc__txt {
		flex: 0 1 auto;
	}

	.ns-planappeal__slash--l {
		left: 20px;
	}

	.ns-planappeal__slash--r {
		right: 20px;
	}
}

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

@media (max-width: 767px) {

	/* 旧 .column_top_banner は SP では上下 20px */
	.ns-planpage__cta {
		padding: 20px 0;
	}
	.ns-planpage .ns-inner {
		width: min(1300px, 100% - 30px);
	}

	.ns-plantabs {
		gap: 5px;
	}

	.ns-plantabs__btn {
		padding: 10px 0;
		font-size: 14px;
	}

	.ns-plansubtabs {
		gap: 5px;
	}

	.ns-plansubtabs__item {
		flex: 0 0 calc(50% - 5px);
	}

	.ns-plansubtabs__btn {
		padding: 5px;
		font-size: 13px;
	}

	.ns-planpanel__main {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"title"
			"photo"
			"body";
		margin-bottom: 20px;
	}

	.ns-planpanel__photo {
		margin-bottom: 20px;
	}

	.ns-planpanel__ttl {
		font-size: 26px;
	}

	.ns-planpanel__catch {
		display: block;
		padding: 10px 5px;
		font-size: 13px;
	}

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

	.ns-planflow {
		gap: 10px;
		background: none;
	}

	.ns-planpanel .ns-planflow {
		padding: 0;
	}

	.ns-planflow__item {
		width: 78px;
		font-size: 14px;
	}

	.ns-planflow__sep {
		right: -10px;
		width: 6px;
		height: 12px;
	}

	.ns-planpanel__tomember {
		font-size: 12px;
	}

	.ns-planinc__item {
		flex-wrap: wrap;
		width: calc(100% / 3);
		gap: 0;
		padding-bottom: 10px;
	}

	.ns-planinc__img,
	.ns-planinc__txt {
		flex: 0 0 100%;
	}

	.ns-planappeal {
		padding: 30px 15px;
	}

	.ns-planappeal__arrow {
		width: 200px;
		height: 40px;
		margin-bottom: 30px;
	}

	.ns-planappeal__txt {
		padding: 15px;
		background: #eeeeee;
		border-radius: 25px;
		font-size: 18px;
	}

	.ns-planappeal__txt span {
		font-size: 23px;
	}

	.ns-planappeal__box {
		margin-top: 20px;
	}

	.ns-planappeal__num {
		font-size: 50px;
	}

	.ns-planappeal__mark small {
		font-size: 16px;
	}

	.ns-planappeal__slash {
		top: auto;
		bottom: 0;
		width: 2px;
		height: 40px;
	}

	.ns-planappeal__slash--l {
		left: 0;
	}

	.ns-planappeal__slash--r {
		right: 0;
	}
}

@media (max-width: 767px) {
	/* 旧 .including_list li.item は SP で写真と文字の間が 10px、下が 10px */
	.ns-plandetail .ns-planinc__item {
		padding-bottom: 10px;
	}

	.ns-plandetail .ns-planinc__txt {
		margin-top: 10px;
	}
}
