@charset "utf-8";

/* =========================================================
   ベネフィットナウ LP (lp-e)  style.css
   ========================================================= */

:root {
	--maxw: 600px;
	--blue: #0349dc;
	/* CTA① / CTA③ 背景 */
	--purple: #d5baf5;
	/* CTA② 背景 */
	--cream: #fcf4ee;
	/* フォーム背景 */
	--orange: #ff6e38;
	/* フッター / 送信ボタン */
	--orange-2: #ff8a2c;
	--req: #e8533b;
	/* 必須バッジ */
	--any: #9aa0a6;
	/* 任意バッジ */
	--page-bg: #eaf1fb;
	/* PC表示時の余白背景 */
	--text: #333;
}

/* リセット --------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	color: var(--text);
	background-color: var(--page-bg);
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
		"Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
	line-height: 1.6;
}

img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

a {
	text-decoration: none;
	color: inherit;
}

fieldset {
	margin: 0;
	border: 0;
	padding: 0;
	min-width: 0;
}

/* 視覚的に非表示（スクリーンリーダー用） */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* キーボード操作時のフォーカス可視化（共通） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--orange-2);
	outline-offset: 2px;
}

/* コンテナ（中央600px） ------------------------------------*/
.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	background-color: #fff;
	overflow: hidden;
}

@media screen and (min-width: 620px) {
	.container {
		box-shadow: 0 0 16px rgba(3, 73, 220, .18);
	}
}

/* セクション共通（画像は隙間なく積む） ---------------------*/
.sec,
.header {
	font-size: 0;
	/* 画像下の余白を消す */
}

/* ヘッダー（追従しない） ------------------------------------*/
.header {
	position: static;
}

/* FV オーバーレイCTA ----------------------------------------*/
.fv-wrap {
	position: relative;
}

.fv-cta {
	display: block;
	position: absolute;
	bottom: 4%;
	left: 5%;
	right: 5%;
	z-index: 2;
}

.fv-cta img {
	animation: cta-pulse 1.5s ease-in-out infinite;
	transform-origin: center;
}

.fv-cta:hover img {
	animation-duration: .8s;
}

/* CTA エリア -----------------------------------------------*/
.cta {
	font-size: 0;
}

.cta--blue {
	background-color: var(--blue);
	position: relative;
}

.cta--purple {
	background-color: var(--purple);
	position: relative;
}

.cta__lead {
	width: 100%;
}

/* CTAボタンは「ベース画像の下部に絶対配置でオーバーレイ」する。
   ・ベース画像(.cta__lead)は通常フロー → これがセクション高さを決める＝元画像に無い余白を作らない・切り取らない
   ・ボタンは position:absolute ＋ %指定で重ねる（スマホも比例）。ボタンPNGの四隅は透過済みで下画像に馴染む
   ・位置/幅はバリアントごとに指定（青＝cta1_leadの下部青帯に／紫＝マスコット下部に乗せる） */
.cta__btn {
	display: block;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.cta--blue .cta__btn {
	bottom: 0.5%;
	width: 90%;
}

.cta--purple .cta__btn {
	bottom: 3%;
	width: 82%;
}

/* CTAボタン：大きく／小さくなる拡大縮小アニメ（opacityの点滅は使わない） */
.cta__btn img {
	animation: cta-pulse 1.5s ease-in-out infinite;
	transform-origin: center;
}

/* ホバー時はテンポを上げて、より躍動的に */
.cta__btn:hover img {
	animation-duration: .8s;
}

@keyframes cta-pulse {

	0%,
	100% {
		transform: scale(.95);
	}

	50% {
		transform: scale(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.cta__btn img,
	.cta__btn:hover {
		animation: none;
	}
}

/* =========================================================
   無料相談フォーム
   ========================================================= */
.formsec {
	background-color: #fff;
	padding: 34px 18px 40px;
	scroll-margin-top: 8px;
}

/* フォーム本体（白カード廃止：肌色背景に直接配置・枠なし） */
.cform {
	background: transparent;
	padding: 0;
}

/* 上部のロゴ（バナー） */
.cform__logo {
	display: block;
	width: 92%;
	max-width: 420px;
	height: auto;
	margin: 6px auto 8px;
}

/* 個人情報スクロール枠 */
.policy_scroll {
	height: 168px;
	overflow-y: scroll;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	padding: 12px 16px;
	margin: 32px 0 0;
	font-size: 12px;
	line-height: 1.8;
	color: #444;
}

.policy_scroll h3 {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
}

.policy_scroll h4 {
	font-size: 13px;
	font-weight: 700;
	margin: 16px 0 4px;
}

.policy_scroll p {
	font-size: 12px;
	margin: 0 0 10px;
}

.policy_scroll .end_text {
	margin-top: 18px;
}

/* 同意チェック */
.policy {
	position: relative;
	margin: 18px auto 4px;
	text-align: center;
}

/* チェックボックス本体は視覚的に隠すが、キーボードフォーカスは維持する
   （display:none はタブ順から外れ、キーボードで同意操作できなくなるため使わない） */
.policy input[type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
}

.policy label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

/* カスタムチェックボックスのキーボードフォーカス可視化 */
.policy input[type="checkbox"]:focus-visible+label::before {
	outline: 3px solid var(--orange-2);
	outline-offset: 2px;
}

.policy label::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 2px solid #b5bac2;
	border-radius: 5px;
	background: #fff;
	transition: all .2s;
}

.policy input[type="checkbox"]:checked+label::before {
	background-color: var(--orange);
	border-color: var(--orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: 18px;
	background-repeat: no-repeat;
	background-position: center;
}

/* LINE友だち追加ボタン（画像差し替え：OFF=グレー / ON=グリーン） */
.line-cta {
	margin-top: 20px;
}

.line-btn {
	display: block;
	width: 100%;
	pointer-events: none;
	/* OFF（未同意）：押下不可 */
	cursor: not-allowed;
}

.line-btn.is-active {
	pointer-events: auto;
	/* ON（同意済み）：押下可 */
	cursor: pointer;
	transition: filter .15s, transform .1s;
}

.line-btn.is-active:hover {
	filter: brightness(1.04);
}

.line-btn.is-active:active {
	transform: translateY(1px);
}

/* =========================================================
   フッター
   ========================================================= */
.footer {
	background: var(--orange);
	text-align: center;
	padding: 18px 0 20px;
}

.footer__link {
	margin: 0 0 6px;
}

.footer__link a {
	color: #fff;
	font-size: 13px;
	text-decoration: underline;
}

.footer__copy {
	margin: 0;
	color: #fff;
	font-size: 11px;
	letter-spacing: .05em;
}
