@charset "utf-8";
/* 閲覧者向け画面専用（tpl/login.tpl・index.tpl・acv.tpl・end.tpl から読み込み）
   管理画面の pg_css/style.css、共通の base.css とは独立 */

.lp, .lp * { box-sizing: border-box; }
html, body.lp { margin: 0; padding: 0; }

body.lp {
	min-height: 100vh;
	min-height: 100dvh;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1f1a2e;
	background-color: #160f2e;
	background-image:
		radial-gradient(circle at 15% 10%, rgba(255, 79, 154, .45) 0, rgba(255, 79, 154, 0) 45%),
		radial-gradient(circle at 90% 90%, rgba(111, 92, 255, .55) 0, rgba(111, 92, 255, 0) 50%),
		linear-gradient(160deg, #241a4d 0%, #160f2e 60%, #0d0920 100%);
	background-attachment: fixed;
	-webkit-text-size-adjust: 100%;
	display: flex;
	flex-direction: column;
}

.lp-wrap {
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 8px;
}

.lp-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 20px;
	padding: 32px 22px 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .15);
}

/* 見出し */
.lp-head { text-align: center; margin-bottom: 22px; }
.lp-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ffe3ef;
	color: #d81b6a;
	font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.lp-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #ff2d7a;
	animation: lp-pulse 1.6s ease-in-out infinite;
}
@keyframes lp-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.75); }
}
.lp-title { margin: 12px 0 6px; font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.lp-lead { margin: 0; font-size: 14px; color: #6b6580; }

/* エラー（$ng- が空なら非表示） */
.lp-error:empty { display: none; }
.lp-error {
	margin: 0 0 18px;
	padding: 12px 14px 12px 40px;
	border-radius: 12px;
	background: #fff0f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23e5304f'/%3E%3Crect x='11' y='6' width='2' height='8' rx='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='17.5' r='1.3' fill='%23fff'/%3E%3C/svg%3E") no-repeat 14px 50%;
	background-size: 18px 18px;
	border: 1px solid #ffc7d0;
	color: #b4183a;
	font-size: 14px; font-weight: 700;
}
.lp-error p { margin: 0; }

/* 入力欄 */
.lp-field { margin-bottom: 16px; }
.lp-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px; font-weight: 700; color: #4a4460;
}
.lp-field input[type=email],
.lp-field input[type=password],
.lp-field input[type=text] {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	font-size: 16px; /* 16px未満だと iPhone で自動ズームする */
	color: #1f1a2e;
	background: #f6f5fa;
	border: 1.5px solid #e2dfec;
	border-radius: 12px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.lp-field input::placeholder { color: #aaa4bd; }
.lp-field input:focus {
	background: #fff;
	border-color: #7b5cff;
	box-shadow: 0 0 0 4px rgba(123, 92, 255, .18);
}
.lp-pass { position: relative; }
.lp-pass input { padding-right: 68px !important; }
.lp-eye {
	position: absolute; top: 50%; right: 8px;
	transform: translateY(-50%);
	height: 36px; min-width: 52px;
	padding: 0 10px;
	border: 0; border-radius: 8px;
	background: transparent;
	color: #6a4dff;
	font: inherit; font-size: 13px; font-weight: 700;
	cursor: pointer;
}
.lp-eye:hover, .lp-eye:focus-visible { background: #efebff; outline: none; }

/* ボタン */
.lp .submit { margin: 24px 0 0; text-align: center; }
.lp-btn {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff4f9a 0%, #7b5cff 100%);
	color: #fff;
	font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .1em;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(123, 92, 255, .35);
	-webkit-appearance: none;
	appearance: none;
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.lp-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 28px rgba(123, 92, 255, .45); }
.lp-btn:active { transform: translateY(1px) scale(.99); }
.lp-btn:focus-visible { outline: 3px solid #ffd2e6; outline-offset: 3px; }

/* 注意書き */
.lp-note {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid #eeecf4;
	font-size: 12px; line-height: 1.7;
	color: #8a849d;
	text-align: center;
}

/* validationEngine の吹き出しを馴染ませる */
.lp .formError .formErrorContent {
	background: #e5304f;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	font-size: 12px;
	padding: 6px 10px;
	min-width: 0;
}
.lp .formError .formErrorArrow { display: none; }

/* PC・タブレット */
@media (min-width: 600px) {
	.lp-card { padding: 44px 40px 34px; border-radius: 24px; }
	.lp-title { font-size: 26px; }
}

/* ===== ログイン後の視聴画面 ===== */
body.lp-view { color: #fff; }
.lp-end .lp-head { margin-bottom: 0; }
.vw-wrap {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	flex: 1 0 auto;
	padding: 20px 0 32px;
}
.vw-head {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 6px 12px;
	padding: 0 16px 14px;
}
.vw-head .lp-badge { flex: none; }
.lp-badge-dark { background: rgba(255, 45, 122, .18); color: #ff8fb8; }
.lp-badge-acv { background: rgba(123, 92, 255, .25); color: #c9bcff; }
.lp-badge-end { background: #eeeaf8; color: #6a4dff; }
.vw-title {
	margin: 0;
	font-size: 20px; font-weight: 700; line-height: 1.4;
	letter-spacing: .02em;
	word-break: break-word;
}
.vw-title:empty { display: none; }

/* プレーヤー（16:9） スマホは画面幅いっぱい */
.vw-player { background: #000; }
.vw-player .iframe {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}
.vw-player .iframe iframe {
	position: absolute; top: 0; left: 0;
	display: block;
	width: 100%; height: 100%;
	border: 0;
}
/* 準備中メッセージ（stream.pl が出力） */
.vw-player .stream_wait {
	position: absolute; left: 0; right: 0; top: 50%;
	transform: translateY(-50%);
	margin: 0; padding: 0 20px;
	text-align: center;
	font-size: 14px; color: #d8d3ea;
}
.vw-player .stream_wait + .stream_wait { top: calc(50% + 28px); }

.vw-info {
	margin: 16px 16px 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .1);
	font-size: 12px; line-height: 1.7;
	color: #c9c3dc;
}
.vw-info p { margin: 0; }
.vw-info p + p { margin-top: 4px; }

@media (min-width: 600px) {
	.vw-wrap { padding: 24px 24px 48px; }
	.vw-head { padding: 0 0 14px; }
	.vw-title { font-size: 24px; }
	.vw-player {
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	}
	.vw-info { margin: 20px 0 0; font-size: 13px; }
}

/* コピーライト（全画面共通・最下部） */
.lp-copy {
	flex: none;
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
	text-align: center;
	font-size: 11px;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
	.lp-dot { animation: none; }
	.lp-btn, .lp-field input { transition: none; }
}

/* ===== demo_domain 専用：背景に薄く「Demo Mode」（本番・domain1 には入れない） =====
   body の背景の上・カードや動画の下（z-index:-1）に敷くだけ。クリックは通す。
   消すときはこのブロックを削除するだけでよい */
body.lp::before {
	content: "";
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160'%3E%3Ctext x='130' y='90' text-anchor='middle' transform='rotate(-25 130 80)' font-family='Arial,Helvetica,sans-serif' font-size='26' font-weight='700' fill='%23ffffff' fill-opacity='0.09'%3EDemo Mode%3C/text%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 260px 160px;
}
@media (max-width: 599px) {
	body.lp::before { background-size: 200px 123px; }
}
