@charset "utf-8";
/*================================
  ご契約と特典に関するご案内（2026-11 追加・アコーディオン）
  PC：新規ご契約の画像の真下／SP：新規ご契約の注意書きの下
  ボタンを押すと開く（details/summary＝JSなし）
  水のモチーフ：しずくアイコン／下辺でゆれる波／ホバーで水がたまる
  文字は40〜60代の方にも読みやすい大きさ（PC本文18px／SP本文17px）
================================*/
.cp-terms {
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto 80px;
	border: 2px solid #59D9D9;
	border-radius: 10px;
	background: #fff;
	color: #333;
	overflow: hidden;
}

/* ---- 大きめのボタン ---- */
.cp-terms__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 104px;
	padding: 18px 96px 28px;
	position: relative;
	overflow: hidden;
	background: #59D9D9;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}
.cp-terms__btn::-webkit-details-marker { display: none; }
.cp-terms__btn:focus-visible { outline: 3px solid #f2b705; outline-offset: -3px; }
.cp-terms__btn > *:not(.cp-terms__water):not(.cp-terms__wave) { position: relative; z-index: 2; }

/* ホバーで下から水がたまる */
.cp-terms__water {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 100%;
	background: #2fbfc4;
	transform: translateY(100%);
	transition: transform .45s ease;
	z-index: 0;
}
.cp-terms__btn:hover .cp-terms__water,
.cp-terms[open] .cp-terms__water { transform: translateY(0); }

/* 下辺でゆっくりゆれる波 */
.cp-terms__wave {
	position: absolute;
	left: 0; bottom: -1px;
	width: 200%;
	height: 18px;
	fill: rgba(255,255,255,.45);
	animation: cpWave 6s linear infinite;
	z-index: 1;
}
@keyframes cpWave {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* しずくアイコン */
.cp-terms__drop {
	flex-shrink: 0;
	width: 27px;
	height: 36px;
}
.cp-terms__drop path { fill: #fff; }
.cp-terms__drop .hl { fill: none; stroke: #59D9D9; stroke-width: 2; stroke-linecap: round; }

.cp-terms__btnTxt small {
	font-size: 18px;
	font-weight: 500;
}

/* 右端の＋／－（白い丸） */
.cp-terms__icon {
	position: absolute !important;
	right: 28px;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -27px;
	border-radius: 50%;
	background: #fff;
}
.cp-terms__icon::before,
.cp-terms__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 4px;
	margin: -2px 0 0 -10px;
	border-radius: 2px;
	background: #2aa7a7;
	transition: transform .3s ease;
}
.cp-terms__icon::after { transform: rotate(90deg); }
.cp-terms[open] .cp-terms__icon::after { transform: rotate(0deg); }

/* ---- 開いた中身 ---- */
/* 高さの開閉アニメーションは js/campaign/campaign-terms-202611.js（JSが無いときは普通に開閉する） */
.cp-terms__body {
	overflow: hidden;
}
.cp-terms__inner {
	padding: 8px 48px 44px;
	background: linear-gradient(#eefafa, #fff 160px);
	transition: opacity .35s ease, transform .35s ease;
}
/* 開き始め・閉じるときは中身をうすく＋少し上に */
.cp-terms.is-opening .cp-terms__inner,
.cp-terms.is-closing .cp-terms__inner {
	opacity: 0;
	transform: translateY(-10px);
}
/* 閉じる動きの間に、＋への戻りと水が引く動きを先に始める */
.cp-terms.is-closing .cp-terms__icon::after { transform: rotate(90deg); }
.cp-terms.is-closing .cp-terms__water { transform: translateY(100%); }
.cp-terms__h {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 34px 0 8px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
	color: #2aa7a7;
}
/* 小見出しの頭に小さなしずく */
.cp-terms__h::before {
	content: "";
	flex-shrink: 0;
	width: 15px;
	height: 20px;
	background: #59D9D9;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1C12 1 2 13.5 2 20.5A10 10 0 0 0 22 20.5C22 13.5 12 1 12 1Z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1C12 1 2 13.5 2 20.5A10 10 0 0 0 22 20.5C22 13.5 12 1 12 1Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cp-terms__list { margin: 0; }
.cp-terms__row {
	display: flex;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px dashed #bfe9ea;
}
.cp-terms__row dt {
	flex-shrink: 0;
	width: 10em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.8;
	color: #333;
}
.cp-terms__row dd {
	margin: 0;
	font-size: 18px;
	line-height: 1.8;
}
.cp-terms__txt {
	margin: 12px 0 0;
	font-size: 18px;
	line-height: 1.8;
}
.cp-terms__note {
	margin: 30px 0 0;
	padding: 16px 20px;
	border-radius: 6px;
	background: #EBF8F8;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.8;
}

/* 最後の注意書き：PCは1文ずつで改行（「す。」だけが次の行に残らないように）。SPは自然に折り返す */
@media (max-width: 959px) {
	.cp-terms__br { display: none; }
}

/* 動きを減らす設定の方には、波・水の動きを止める */
@media (prefers-reduced-motion: reduce) {
	.cp-terms__wave { animation: none; }
	.cp-terms__water, .cp-terms__icon::before, .cp-terms__icon::after { transition: none; }
	.cp-terms__inner { transition: none; }
}

/* ---- SP ---- */
@media (max-width: 959px) {
	.cp-terms {
		width: 95%;
		margin: 10px auto 50px;
	}
	.cp-terms__btn {
		justify-content: flex-start;
		gap: 12px;
		min-height: 92px;
		padding: 16px 70px 24px 18px;
		font-size: 21px;
		text-align: left;
	}
	.cp-terms__drop { width: 22px; height: 30px; }
	.cp-terms__btnTxt small {
		display: block;
		font-size: 16px;
	}
	.cp-terms__icon {
		right: 16px;
		width: 40px;
		height: 40px;
		margin-top: -24px;
	}
	.cp-terms__icon::before,
	.cp-terms__icon::after {
		width: 18px;
		margin-left: -9px;
	}
	.cp-terms__wave { height: 14px; }
	.cp-terms__inner { padding: 4px 18px 28px; }
	.cp-terms__h {
		margin-top: 28px;
		font-size: 19px;
	}
	.cp-terms__row {
		display: block;
		padding: 14px 0;
	}
	.cp-terms__row dt {
		width: auto;
		font-size: 17px;
		line-height: 1.6;
	}
	.cp-terms__row dd,
	.cp-terms__txt,
	.cp-terms__note {
		font-size: 17px;
		line-height: 1.8;
	}
	.cp-terms__note {
		margin-top: 26px;
		padding: 14px 16px;
	}
}
