@charset "UTF-8";

/* ==========================================================================
   サービス利用規約モーダル 専用スタイル (modal_terms.css)
   かえりの森・ペット用山林散骨
   設計アプローチ: モバイルファースト (スマホ基準 → min-width: 768pxで拡張)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. モーダル基本構造 (c-modal)
   -------------------------------------------------------------------------- */
.c-modal--terms {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.c-modal--terms.is-open {
	opacity: 1;
	visibility: visible;
}

.c-modal--terms .c-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.65);
}

.c-modal--terms .c-modal__window {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 92vh;
	background-color: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1;
}

.c-modal--terms .c-modal__window--large {
	max-width: 760px;
}

.c-modal--terms .c-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #EEEEEE;
	background-color: #FAF7F2;
	flex-shrink: 0;
}

.c-modal--terms .c-modal__title {
	font-weight: 700;
	color: #E86A33;
	letter-spacing: 0.05em;
}

.c-modal--terms .c-modal__close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #999999;
	cursor: pointer;
	padding: 4px;
	transition: color 0.2s ease;
}

.c-modal--terms .c-modal__close:hover {
	color: #333333;
}

/* --------------------------------------------------------------------------
   2. コンテンツエリア (c-modal__body)
   -------------------------------------------------------------------------- */
.c-modal--terms .c-modal__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	padding: 0;
}

/* 固定リード文エリア */
.c-modal--terms .c-modal__terms-lead-wrap {
	padding: 12px 14px 10px;
	background-color: #FFFFFF;
	border-bottom: 1px solid #EEEEEE;
	flex-shrink: 0;
}

/* 規約リード文 */
.c-modal__terms-lead {
	font-size: 14px;
	line-height: 1.7;
	color: #555555;
	background-color: #FAF7F2;
	padding: 10px 12px;
	border-radius: 6px;
	border-left: 3px solid #E86A33;
	margin-bottom: 0;
}

/* スクロール本文エリア */
.c-modal--terms .c-modal__terms-content {
	padding: 16px 14px;
	overflow-y: auto;
	flex: 1;
	line-height: 1.7;
	color: #444444;
	background-color: #FFFFFF;
}

/* スクロールバー装飾（Webkit） */
.c-modal--terms .c-modal__terms-content::-webkit-scrollbar {
	width: 8px;
}

.c-modal--terms .c-modal__terms-content::-webkit-scrollbar-track {
	background: #F4EFEA;
}

.c-modal--terms .c-modal__terms-content::-webkit-scrollbar-thumb {
	background: #D9CFC4;
	border-radius: 4px;
}

.c-modal--terms .c-modal__terms-content::-webkit-scrollbar-thumb:hover {
	background: #BFAEA0;
}

/* 章見出し (フルアクセント帯デザイン) */
.c-modal--terms .p-terms-chapter,
.c-modal--terms .c-modal__terms-heading {
	margin-top: 28px;
	margin-bottom: 16px;
	background: linear-gradient(to right, #E86A33, #FF3D27);
	border-radius: 6px;
	padding: 10px 14px;
	box-shadow: 0 2px 8px rgba(232, 106, 51, 0.20);
	border-bottom: none;
}

.c-modal--terms .p-terms-chapter:first-of-type,
.c-modal--terms .c-modal__terms-heading:first-of-type {
	margin-top: 0;
}

.c-modal--terms .p-terms-chapter__title {
	font-weight: 700;
	color: #FFFFFF;
	letter-spacing: 0.04em;
	line-height: 1.4;
	margin: 0;
	padding: 0;
}

.c-modal--terms .p-terms-chapter__title::before {
	display: none;
}

/* 条文カード (Article Card) */
.c-modal--terms .p-terms-article {
	margin-bottom: 16px;
	padding: 14px 16px;
	background-color: #FAF7F2;
	border: 1px solid #E5DCD3;
	border-radius: 8px;
}

.c-modal--terms .p-terms-article__header {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px dashed #E5DCD3;
}

.c-modal--terms .p-terms-article__title,
.c-modal--terms .c-modal__terms-subheading {
	font-weight: 700;
	color: #E86A33;
	margin: 0;
	padding: 0;
	border: none;
	display: flex;
	align-items: center;
	gap: 6px;
}

.c-modal--terms .p-terms-article__body {
	font-size: 14px;
	line-height: 1.7;
	color: #444444;
}

.c-modal--terms .p-terms-article__body p {
	margin-bottom: 8px;
	text-align: justify;
}

.c-modal--terms .p-terms-article__body p:last-child {
	margin-bottom: 0;
}

.c-modal--terms .p-terms-article__body strong,
.c-modal--terms .c-modal__terms-content strong {
	color: #222222;
	font-weight: 700;
}

/* 箇条書きリスト */
.c-modal--terms .p-terms-list {
	list-style: none;
	padding-left: 0;
	margin: 10px 0 12px;
}

.c-modal--terms .p-terms-list li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 6px;
	line-height: 1.7;
}

.c-modal--terms .p-terms-list li::before {
	content: "・";
	position: absolute;
	left: 2px;
	top: 0;
	color: #E86A33;
	font-weight: 700;
}

/* インデント付き下位項目 */
.c-modal--terms .p-terms-sublist {
	list-style: none;
	padding-left: 14px;
	margin: 6px 0 8px;
}

.c-modal--terms .p-terms-sublist li {
	padding-left: 0;
	margin-bottom: 4px;
}

.c-modal--terms .p-terms-sublist li::before {
	content: none;
	display: none;
}

/* --------------------------------------------------------------------------
   3. ボタンエリア（下部固定）
   -------------------------------------------------------------------------- */
.c-modal--terms .c-modal__btn-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid #EEEEEE;
	background-color: #FAF7F2;
	flex-shrink: 0;
}

/* 同意して申し込むボタン */
.c-modal--terms .c-modal__btn-agree {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(to right, #FF5B26, #E8381A);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 0;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(232, 56, 26, 0.25);
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
}

.c-modal--terms .c-modal__btn-agree:hover {
	opacity: 0.90;
	transform: translateY(-1px);
}

/* 同意して申し込むボタン（非活性状態） */
.c-modal--terms .c-modal__btn-agree.is-disabled {
	background: #CCCCCC;
	color: #777777;
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.65;
	transform: none;
}

.c-modal--terms .c-modal__btn-cancel:hover,
.c-modal--terms .c-modal__btn-ok:hover {
	background-color: #F5F5F5;
	color: #333333;
}

/* --------------------------------------------------------------------------
   4. レスポンシブ: タブレット・PC対応 (768px 〜)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
	.c-modal--terms {
		padding: 16px;
	}

	.c-modal--terms .c-modal__window {
		max-height: 88vh;
		border-radius: 12px;
	}

	.c-modal--terms .c-modal__header {
		padding: 16px 20px;
	}

	.c-modal--terms .c-modal__title {
		font-size: 16px;
	}

	.c-modal--terms .c-modal__terms-lead-wrap {
		padding: 16px 24px 12px;
	}

	.c-modal--terms .c-modal__terms-lead {
		padding: 12px 16px;
	}

	.c-modal--terms .c-modal__terms-content {
		padding: 24px;
		line-height: 1.8;
	}

	.c-modal--terms .p-terms-chapter,
	.c-modal--terms .c-modal__terms-heading {
		margin-top: 36px;
		margin-bottom: 20px;
		padding: 12px 18px;
		border-radius: 8px;
	}

	.c-modal--terms .p-terms-chapter__title {
		font-size: 18px;
	}

	.c-modal--terms .p-terms-article {
		padding: 18px 20px;
		margin-bottom: 20px;
	}

	.c-modal--terms .p-terms-article__title,
	.c-modal--terms .c-modal__terms-subheading {
		font-size: 18px;
	}

	.c-modal--terms .p-terms-article__body {
		font-size: 16px;
	}

	.c-modal--terms .c-modal__btn-wrap {
		flex-direction: row;
		justify-content: flex-end;
		gap: 16px;
		padding: 16px 20px;
	}

	.c-modal--terms .c-modal__btn-agree {
		width: auto;
		padding: 12px 36px;
	}
}