/* ============================================
   plan.css — プランページ用追加スタイル
   /assets/css/plan.css として配置
   ============================================ */

/* ------------------------------------------
   ヒーロー：画像 + タイトルオーバーレイ
   ------------------------------------------ */

/* ヒーロー画像のアスペクト比調整（高さを抑えめに） */
.f-body-plan .p-hero_image {
	aspect-ratio: 16 / 7;
	overflow: hidden;
}

@media screen and (max-width: 425px) {
	.f-body-plan .p-hero_image {
		aspect-ratio: 4 / 3;
	}
}

/* タイトルを画像中央下部に配置 */
.f-body-plan .p-hero_text {
	align-self: end;
	justify-self: center;
	text-align: center;
	margin: 0 0 clamp(24px, 6%, 64px) 0;
}

/* タイトルにドロップシャドウ */
.f-body-plan .p-hero_textMain {
	text-shadow:
		0 2px 24px rgba(0, 0, 0, 0.55),
		0 1px 8px  rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------
   カード一覧
   ------------------------------------------ */
.s_plan-index {
	padding-bottom: min(calc(0.096 * var(--width-body)), 120px);
}

@media screen and (max-width: 425px) {
	.s_plan-index {
		padding-bottom: calc(0.1333333333 * var(--width-body));
	}
}

.s_plan-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 30px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}

.s_plan-card {
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.s_plan-card:hover {
	opacity: 0.8;
}

.s_plan-card_image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	margin-bottom: 16px;
}

.s_plan-card_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.s_plan-card_name {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.6;
	margin-bottom: 4px;
}

.s_plan-card_subtitle {
	font-size: 13px;
	color: #888;
	font-weight: 300;
	margin-bottom: 8px;
}

.s_plan-card_description {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.9;
	color: #555;
	margin-bottom: 14px;
}

.s_plan-card_price {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.8;
}

.s_plan-card_price strong {
	font-weight: 500;
}

.s_plan-card_note {
	font-size: 12px;
	color: #888;
	font-weight: 300;
	margin-bottom: 14px;
}

.s_plan-card_link {
	margin-top: 8px;
}

/* 「プランの詳細を見る」リンクボタン */
.e-textlink {
	appearance: none;
	border: none;
	background: none;
	padding: 0;
	font-size: 13px;
	color: #555;
	letter-spacing: 0.04em;
	cursor: pointer;
	position: relative;
	font-family: inherit;
}

.e-textlink::after {
	content: " ＞";
}

.e-textlink:hover {
	color: #333;
}


/* ------------------------------------------
   モーダル
   ------------------------------------------ */
.s_plan-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 非表示時 */
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.s_plan-modal.is-active {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s, opacity 0.4s ease;
}

/* 背景オーバーレイ */
.s_plan-modal_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

/* モーダル本体 */
.s_plan-modal_container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: clamp(200px, 42vh, 420px) 1fr;
	max-width: 960px;
	width: 92%;
	height: min(88vh, 780px);
	background: #fff;
	overflow: hidden;
	/* ふわっとアニメーション */
	transform: translateY(24px);
	transition: transform 0.4s ease;
}

.s_plan-modal.is-active .s_plan-modal_container {
	transform: translateY(0);
}

/* --- 全幅ヒーロー画像 --- */
.s_plan-modal_topImage {
	grid-column: 1 / 3;
	grid-row: 1 / 2;
	overflow: hidden;
}

.s_plan-modal_topImage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
}

/* --- モーダル左側（基本情報） --- */
.s_plan-modal_left {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
	background: #f7f6f3;
	overflow-y: auto;
	padding: 24px 28px 28px;
}

.s_plan-modal_leftName {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.5;
	margin-bottom: 4px;
}

.s_plan-modal_leftSub {
	font-size: 12px;
	color: #888;
	font-weight: 300;
	margin-bottom: 10px;
}

.s_plan-modal_leftDescription {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.9;
	color: #555;
	margin-bottom: 16px;
}

.s_plan-modal_leftPrice {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.8;
}

.s_plan-modal_leftPrice strong {
	font-weight: 500;
}

.s_plan-modal_leftNote {
	font-size: 12px;
	color: #888;
	font-weight: 300;
	margin-top: 2px;
}

/* --- モーダル右側（プラン詳細） --- */
.s_plan-modal_right {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	padding: 24px 28px 28px;
	overflow-y: auto;
}

/* 閉じるボタン（画像右上に重ねて配置） */
.s_plan-modal_close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	appearance: none;
	border: none;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	font-size: 16px;
	color: #444;
	cursor: pointer;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.2s, color 0.2s;
	font-family: inherit;
}

.s_plan-modal_close:hover {
	background: rgba(255, 255, 255, 1);
	color: #111;
}

/* 見出し */
.s_plan-modal_heading {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.06em;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e6e1;
}

/* セクション */
.s_plan-modal_section {
	margin-bottom: 20px;
}

.s_plan-modal_sectionTitle {
	font-size: 13px;
	font-weight: 500;
	color: #555;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

/* 含まれる項目リスト */
.s_plan-modal_list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	line-height: 2;
}

/* 注意事項ボックス */
.s_plan-modal_notice {
	background: #f7f6f3;
	padding: 12px 16px;
	margin-bottom: 20px;
}

.s_plan-modal_notice p {
	font-size: 11px;
	font-weight: 300;
	color: #888;
	line-height: 1.9;
}

/* オプション小見出し */
.s_plan-modal_optGroup {
	font-size: 11px;
	font-weight: 500;
	color: #888;
	letter-spacing: 0.06em;
	padding-top: 10px;
	padding-bottom: 4px;
	margin: 0;
}

/* オプションテーブル */
.s_plan-modal_optTable {
	width: 100%;
	font-size: 12px;
	border-collapse: collapse;
}

.s_plan-modal_optTable td {
	padding: 6px 0;
	border-bottom: 1px solid #f0eeea;
	font-weight: 300;
	vertical-align: top;
}

.s_plan-modal_optTable td:last-child {
	text-align: right;
	font-weight: 400;
	white-space: nowrap;
	padding-left: 16px;
}

/* スケジュール */
.s_plan-modal_schedule {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	line-height: 2;
}

.s_plan-modal_scheduleTime {
	display: inline-block;
	min-width: 48px;
	font-weight: 400;
	color: #888;
	font-size: 12px;
}

.s_plan-modal_scheduleNote {
	font-size: 11px;
	color: #888;
	font-weight: 300;
	margin-top: 8px;
}


/* プラン詳細（左カラム内） */
.s_plan-modal_leftDetail {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e8e6e1;
}

.s_plan-modal_leftDetailItems {
	font-size: 13px;
	color: #555;
	line-height: 1.8;
	font-weight: 300;
	margin-top: 8px;
}

/* スクロール矢印インジケーター */
.s_plan-modal_scrollArrow {
	position: sticky;
	bottom: 0;
	width: 100%;
	height: 60px;
	margin-top: 8px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95) 60%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 10px;
	color: #bbb;
	font-size: 18px;
	pointer-events: none;
	transition: opacity 0.4s;
}
.s_plan-modal_scrollArrow.is-hidden {
	opacity: 0;
}

/* ------------------------------------------
   スクロールロック（モーダル表示時）
   ------------------------------------------ */
body.is-modalOpen {
	overflow: hidden;
}


/* ------------------------------------------
   レスポンシブ（SP）
   ------------------------------------------ */
@media screen and (max-width: 767px) {
	/* カード一覧を1カラムに */
	.s_plan-cards {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 0 16px;
	}

	/* モーダルを縦積みに */
	.s_plan-modal_container {
		grid-template-columns: 1fr;
		grid-template-rows: clamp(180px, 40vw, 300px) auto 1fr;
		height: 92vh;
		width: 96%;
	}

	.s_plan-modal_topImage {
		grid-column: 1 / 2;
		grid-row: 1 / 2;
	}

	.s_plan-modal_left {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		padding: 16px 20px 20px;
	}

	.s_plan-modal_right {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
		padding: 20px;
	}
}
