@charset "utf-8";
/* ============================================================
   ログイン前の新しいページのモーダル (2026-10-30)
   中身は今のポップアップ (templates/lp/load/popup_*.tpl)。 今の見た目 (css/common_lp.css) は
   ページ全体の書き換えを含むので読み込まず、 #modal の中だけに効く形で新しい見た目を当てる
   色・影は quorea-lp.css の :root を使う (このファイルは quorea-lp.css の後に読む)
   ============================================================ */

/* 開いている間は後ろを止める。 スクロールバーの幅を常にとっておき、 止めたときにページが横にずれないようにする */
html { scrollbar-gutter: stable; }
body.modal-lock { overflow: hidden; }

#modal[hidden] { display: none; }
#modal {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	padding: 24px 16px;
	font-family: var(--font);
}
#modal .modal-mask {
	position: fixed; inset: 0;
	background: rgba(6,27,49,0.48);
	opacity: 0; transition: opacity .2s ease;
}
#modal.is-open .modal-mask { opacity: 1; }

#modal .modal-container {
	position: relative;
	display: flex; flex-direction: column;
	width: 100%; max-width: 440px;
	max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
	background: var(--white);
	border-radius: 12px;
	box-shadow: var(--shadow-float);
	overflow: hidden;
	opacity: 0; transform: translateY(14px) scale(.985);
	transition: opacity .2s ease, transform .2s ease;
}
#modal.is-open .modal-container { opacity: 1; transform: none; }
#modal .modal-scroll {
	overflow: auto; overscroll-behavior: contain;
	padding: 44px 36px 32px;
}
/* 中のスクロールバーは出すが、 OS の太いバー (矢印・溝つき) ではなく細い角丸のつまみだけにする */
#modal .modal-scroll::-webkit-scrollbar { width: 10px; }
#modal .modal-scroll::-webkit-scrollbar-track { background: transparent; }
#modal .modal-scroll::-webkit-scrollbar-button { display: none; }
#modal .modal-scroll::-webkit-scrollbar-thumb {
	background-color: rgba(6,27,49,0.16); background-clip: padding-box;
	border: 3px solid transparent; border-radius: 10px;
}
#modal .modal-scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(6,27,49,0.3); }
@supports not selector(::-webkit-scrollbar) {
	#modal .modal-scroll { scrollbar-width: thin; scrollbar-color: rgba(6,27,49,0.2) transparent; }
}

/* 閉じる印 (今の画像は白い線なので使わず、 線で描く) */
#modal .modal-close-button {
	position: absolute; top: 12px; right: 16px; z-index: 2;
	width: 40px; height: 40px; margin: 0; border-radius: 50%;
	cursor: pointer; transition: background-color .15s;
}
#modal .modal-close-button img { display: none; }
#modal .modal-close-button::before,
#modal .modal-close-button::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 16px; height: 1.6px; border-radius: 1px; background: var(--text);
	transition: background-color .15s;
}
#modal .modal-close-button::before { transform: translate(-50%, -50%) rotate(45deg); }
#modal .modal-close-button::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* 触れたら線を濃くし、 地はごく薄い灰色 (朱やベージュは押させるボタンの色なので使わない) */
#modal .modal-close-button:hover { background: rgba(6,27,49,0.05); }
#modal .modal-close-button:hover::before,
#modal .modal-close-button:hover::after { background: var(--heading); }
#modal .modal-close-button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ── 中身 ── */
#modal article { color: var(--text); text-align: center; }
#modal article h1 {
	margin: 0 0 24px;
	font-size: 22px; font-weight: 400; line-height: 1.45; letter-spacing: -0.2px;
	color: var(--heading);
}
#modal form { margin: 0; }
#modal ul { list-style: none; margin: 0 0 6px; padding: 0; }
#modal ul li { margin: 0 0 14px; text-align: left; }
#modal ul li > span { display: block; padding: 6px 2px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
#modal label.label { display: block; font-size: 13px !important; color: var(--label); }
#modal label.label + input,
#modal label.label + textarea { margin-top: 6px !important; }

#modal input[type=email],
#modal input[type=text],
#modal input[type=password],
#modal select,
#modal textarea {
	display: block; width: 100%; margin: 0;
	padding: 12px 14px;
	font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--heading);
	background: var(--white);
	border: 1px solid #d9e2ec; border-radius: 6px;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
#modal textarea { resize: vertical; min-height: 140px; }
#modal select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23425466' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
#modal input::placeholder,
#modal textarea::placeholder { color: var(--muted); opacity: 1; }
/* 選ぶ欄は、 まだ選んでいない間だけ見本の文字と同じ色にする */
#modal select:invalid { color: var(--muted); }
#modal select option { color: var(--heading); }
#modal input:focus,
#modal select:focus,
#modal textarea:focus {
	outline: none;
	border-color: var(--ember);
	box-shadow: 0 0 0 3px rgba(224,86,42,0.16);
}
/* 選ぶ欄の開いた一覧も整える (Chrome・Edge の appearance: base-select。 使えないブラウザ・スマホは今までの一覧) */
@supports (appearance: base-select) {
	#modal select,
	#modal select::picker(select) { appearance: base-select; }
	#modal select { display: flex; align-items: center; background-image: none; }
	#modal select::picker-icon {
		content: ""; width: 12px; height: 8px; transition: transform .15s;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23425466' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
	}
	#modal select:open::picker-icon { transform: rotate(180deg); }
	/* 下に開く (入らないときだけ上に。 標準は上下の広い方) */
	#modal select::picker(select) {
		position-try-order: normal;
		margin: 6px 0; padding: 6px;
		border: 1px solid #d9e2ec; border-radius: 10px; background: var(--white);
		box-shadow: 0 18px 40px -12px rgba(6,27,49,0.22), 0 4px 12px -4px rgba(6,27,49,0.08);
	}
	/* 見本の行 (選んでください) は一覧に出さない */
	#modal select option[value=""] { display: none; }
	#modal select option { padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--heading); }
	#modal select option:hover,
	#modal select option:focus-visible { outline: none; background: var(--ember-tint); color: var(--ember-deep); }
	#modal select option:checked { background: var(--ember-tint); font-weight: 500; color: var(--ember-deep); }
	#modal select option::checkmark { color: var(--ember-cta); }
}

/* パスワードの表示・非表示 */
#modal .pw { position: relative; }
#modal .pw input { padding-right: 48px; }
#modal .pw > span {
	position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; cursor: pointer;
}
#modal .pw > span img { width: 20px; height: 20px; opacity: .55; }
#modal .pw > span:hover img { opacity: .85; }

/* チェック (ログインしたままにする・利用規約に同意する) */
#modal li.autologin {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding-top: 6px;
	font-size: 14px; color: var(--text);
}
#modal input[type=checkbox] {
	flex: none; width: 18px; height: 18px; margin: 0;
	accent-color: var(--ember-cta); cursor: pointer;
}
#modal li.autologin label { cursor: pointer; }

/* 文 */
#modal p { margin: 0 0 16px; font-size: 13px; line-height: 1.75; color: var(--body); text-align: left; }
#modal p.mb0 { margin-bottom: 4px; }
#modal .txt01 { margin: 8px 0 28px; font-size: 14px; line-height: 1.9; color: var(--text); text-align: center; }
#modal .txt02 { margin: 6px 0 18px; font-size: 13px; }
#modal .txt,
#modal .txt2 { position: relative; height: 1em; margin: 26px 0; font-size: 12px; line-height: 1; color: var(--muted); }
#modal .txt::before,
#modal .txt2::before { content: ""; position: absolute; left: 0; right: 0; top: .5em; height: 1px; background: var(--border); }
#modal .txt::after {
	content: "またはソーシャルログイン";
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	padding: 0 12px; background: var(--white); white-space: nowrap;
}

/* お知らせ (誤り・成功・補足) */
#modal .error_des1,
#modal .success_des1,
#modal .extra_des1 {
	margin: 0 0 18px; padding: 11px 14px;
	font-size: 13px; line-height: 1.7; text-align: left;
	border-radius: 6px;
}
#modal .error_des1 { background: #fdeef1; color: #b0173f; }
#modal .success_des1 { background: #eaf7ef; color: var(--success-text); }
#modal .extra_des1 { background: var(--ember-tint); color: var(--ember-deep); text-align: center; }
#modal .inquiry_success:empty { display: none; }

/* 登録の完了 (popup_complete2): 朱の丸のチェック、 3 秒後にマイページへ (残りの秒と細い帯で見せる) */
#modal .cp-done { text-align: center; }
#modal .cp-check { width: 64px; height: 64px; margin: 6px auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-ember); box-shadow: 0 0 0 8px var(--ember-tint), 0 14px 28px -12px rgba(224,86,42,0.7); }
#modal .cp-check svg { width: 32px; height: 32px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: cp-draw .45s .2s ease-out forwards; }
@keyframes cp-draw { to { stroke-dashoffset: 0; } }
#modal .cp-done h1 { margin-bottom: 0; }
#modal .cp-lead { margin: 10px 0 0; text-align: center; font-size: 15px; line-height: 1.85; color: var(--text); }
#modal .cp-count { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 14px; font-size: 13px; color: var(--body); }
#modal .cp-count b { font-weight: 500; color: var(--ember-deep); font-variant-numeric: tabular-nums; }
#modal .cp-bar { display: block; width: 180px; height: 3px; overflow: hidden; border-radius: 2px; background: var(--ember-soft); }
#modal .cp-bar i { display: block; height: 100%; background: var(--ember-cta); transform-origin: left center; animation: cp-bar 3s linear forwards; }
@keyframes cp-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ボタン (送信・閉じる・SNS)。 quorea-lp.css の .btn を、 モーダルの中では幅いっぱいの押させるボタンにする */
#modal .btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: auto; margin: 0;
	padding: 15px 20px;
	font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.2;
	color: var(--white); background: var(--ember-cta);
	border: 1px solid transparent; border-radius: 4px;
	box-shadow: 0 6px 14px -8px rgba(222,54,0,0.45);
	cursor: pointer; text-decoration: none;
	-webkit-appearance: none; appearance: none;
	transition: background-color .15s, box-shadow .25s, transform .25s;
}
#modal .btn:hover {
	color: var(--white);
	box-shadow: 0 0 0 4px rgba(240,110,50,0.18), 0 0 20px rgba(240,110,50,0.38), 0 14px 26px -12px rgba(222,54,0,0.7);
	transform: translateY(-1px);
}
#modal .btn:disabled,
#modal .btn[disabled] {
	color: #9a8676; background: #efe7e2;
	box-shadow: none; transform: none; cursor: not-allowed;
}
/* SNS は白地に枠の控えめなボタンにそろえ、 色はロゴだけ (Facebook は青、 X は黒。 どちらもロゴの形・色は変えない) */
#modal .snsBox { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
#modal .snsBox .btn {
	padding: 12px 20px; font-size: 15px;
	color: var(--heading); background: var(--white);
	border: 1px solid #d9e2ec; box-shadow: none;
}
#modal .snsBox .btn:hover {
	color: var(--heading); background: #f6f9fc; border-color: #c3cfdc;
	box-shadow: none; transform: none;
}
#modal .btn.fb::before,
#modal .btn.tw::before {
	content: ""; display: inline-block; flex: none;
	-webkit-mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain;
	mask-position: center; mask-repeat: no-repeat; mask-size: contain;
}
#modal .btn.fb::before {
	width: 16px; height: 16px; background-color: #1877f2;
	-webkit-mask-image: url(../../../images/common/icon-facebook.svg); mask-image: url(../../../images/common/icon-facebook.svg);
}
#modal .btn.tw::before {
	width: 14px; height: 14px; background-color: #000000;
	-webkit-mask-image: url(../../../images/common/icon-x.svg); mask-image: url(../../../images/common/icon-x.svg);
}

/* リンク */
#modal .link { color: var(--ember); font-size: 14px; cursor: pointer; }
#modal .link:hover { color: var(--ember-hover); text-decoration: underline; }
#modal .link01,
#modal .link02,
#modal .link03 { display: inline-block; margin-top: 18px; }
#modal .link01 { margin-top: 4px; }

/* 絵 (登録の完了など) */
#modal .img01 { max-width: 220px; margin: 8px auto 28px; }
#modal .img01 img { display: block; width: 100%; height: auto; }

/* スマホは下から出す */
@media (max-width: 600px) {
	#modal { align-items: flex-end; padding: 0; }
	#modal .modal-container {
		max-width: none;
		max-height: 92vh; max-height: 92dvh;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
		transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1);
	}
	#modal.is-open .modal-container { transform: none; }
	#modal .modal-scroll { padding: 40px 20px calc(24px + env(safe-area-inset-bottom)); }
	#modal article h1 { font-size: 20px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	#modal .cp-check svg { animation: none; stroke-dashoffset: 0; }
	#modal .cp-bar i { animation: none; }
	#modal .modal-mask,
	#modal .modal-container,
	#modal .btn { transition: none; }
	#modal .btn:hover { transform: none; }
}
