/* 第97弾フォーム（Figma リッチデザイン案_SP 390px）。PC は同じレイアウトを中央寄せで広げる */
:root {
	--cp97-primary: #ea5503;
	--cp97-primary-tint: #fdede3;
	--cp97-text: #28435e;
	--cp97-text-sub: #3e566e;
	--cp97-border: #dfdfdf;
	--cp97-required: #f00;
	--cp97-page: #efe9a4;
}

.main {
	background-color: var(--cp97-page);
}

.cp97 {
	max-width: 100%;
	margin: 0 auto;
	color: var(--cp97-text);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
}

.cp97 img {
	display: block;
	width: 100%;
	height: auto;
}

.cp97-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 16px 16px 32px;
}

/* 見出し */
.cp97-heading {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: bold;
	line-height: 28px;
}

.cp97-heading::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	min-height: 38px;
	background-color: var(--cp97-primary);
}

.cp97-heading > span {
	align-self: center;
}

.cp97-heading--small {
	gap: 10px;
	font-size: 18px;
	line-height: 27px;
}

.cp97-heading--small::before {
	width: 4px;
	min-height: 20px;
	margin: 4px 0;
}

/* 導入 */
.cp97-intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cp97-cue {
	font-size: 16px;
	font-weight: bold;
	line-height: 20px;
	text-align: center;
}

.cp97-info {
	padding: 14px 16px;
	background-color: #fff;
	border: 1px solid var(--cp97-primary);
}

.cp97-info__title {
	margin-bottom: 4px;
	color: var(--cp97-primary);
	font-size: 14px;
	font-weight: bold;
	line-height: 21px;
}

.cp97-info__text {
	font-size: 12px;
	line-height: 20px;
}

.cp97-courses {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
}

.cp97-course {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid var(--cp97-border);
}

.cp97-course__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 6px;
}

.cp97-course__title {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: -0.03em;
	line-height: 18px;
	text-align: center;
}

/* 景品カード（第97〜99弾で色だけ変わる） */
.cp97-prize {
	--cp97-accent: var(--cp97-primary);
	--cp97-band: #f4dbce;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 20px 24px;
	background-color: #fff;
	border: 1px solid var(--cp97-border);
	scroll-margin-top: 8px;
}

.cp97-prize--circus {
	--cp97-accent: #666;
	--cp97-band: var(--cp97-border);
}

.cp97-prize--skyfes {
	--cp97-accent: #00409f;
	--cp97-band: #d1e0f5;
}

.cp97-prize__title {
	padding-left: 8px;
	color: var(--cp97-accent);
	border-left: 4px solid var(--cp97-accent);
	font-size: 20px;
	font-weight: bold;
	line-height: 28px;
}

.cp97-prize__summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cp97-tickets {
	display: flex;
	gap: 6px;
}

.cp97-ticket {
	flex: 1 0 0;
	min-width: 0;
	color: var(--cp97-text-sub);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.cp97-ticket__label,
.cp97-ticket-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	border-radius: 2px;
	font-size: 13px;
	font-weight: 500;
	line-height: 14px;
	text-align: center;
}

.cp97-ticket__label {
	margin-bottom: 6px;
	background-color: var(--cp97-band);
}

/* 家族チケットの駐車場の注記（Figma 403:455: 12px / 行の高さ 14px、数量との間 6px） */
.cp97-ticket__note {
	margin-top: 6px;
	font-size: 12px;
	line-height: 14px;
}

.cp97-ticket-title {
	color: #fff;
	background-color: #697b8e;
}

.cp97-badge-row {
	display: flex;
	justify-content: center;
}

.cp97-ok-badge {
	padding: 6px 10px 6px 8px;
	color: var(--cp97-primary);
	background-color: var(--cp97-primary-tint);
	border-radius: 2px;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	/* 2 行のバッジ（サーカス・HY）は Figma どおり中央寄せ */
	text-align: center;
}

/* キングスの 3 行のバッジは Figma で枠の左右に 2.5px ずつはみ出す幅（321px）。390px 幅で 3 行に収めるため同じだけ広げる */
.cp97-badge-row--wide {
	margin: 0 -2.5px;
}

.cp97-note {
	padding: 12px 14px;
	color: var(--cp97-primary);
	background-color: #fff;
	border: 1px solid var(--cp97-primary);
	font-size: 12px;
	line-height: 20px;
}

/* common.css の p { line-height: 1.25em } で 15px に詰まるので、Figma の 20px に戻す */
.cp97-note p {
	line-height: inherit;
}

.cp97-note__em {
	font-weight: 500;
}

.cp97-note__link {
	color: #1f9ad1;
	text-decoration: underline;
}

/* 設問 */
.cp97-field-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: bold;
	line-height: 24px;
}

.cp97-required {
	flex-shrink: 0;
	color: var(--cp97-required);
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
}

.cp97-optional {
	color: #999;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
}

.cp97-choices {
	display: grid;
	gap: 10px;
}

.cp97-choices--half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* input は隠さず透明にする。validation.js のエラースクロールが input の位置を使うため */
.cp97-choice {
	position: relative;
}

.cp97-choice input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.cp97-choice label {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	min-height: 56px;
	padding: 8px 12px;
	background-color: #fff;
	border: 1px solid var(--cp97-border);
	border-radius: 2px;
	cursor: pointer;
}

.cp97-choice label::before {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background-color: #fff;
	border: 1px solid #949494;
	border-radius: 50%;
}

.cp97-choice__text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 4px;
	min-width: 0;
}

.cp97-choice__main {
	font-size: 16px;
	font-weight: bold;
	line-height: 24px;
}

.cp97-choice__year {
	font-size: 13px;
}

/* 日程ボタン: Web フォントが読めずシステムフォント（Noto Sans JP より幅が広い）になっても「[土]」が 2 行目に落ちないよう折り返しを禁止し、余白を詰める */
.cp97-choices--date .cp97-choice label {
	gap: 6px;
	padding-right: 8px;
	padding-left: 8px;
}

.cp97-choices--date .cp97-choice input:checked + label {
	padding-right: 7px;
	padding-left: 7px;
}

.cp97-choices--date .cp97-choice__text {
	flex-wrap: nowrap;
	gap: 0 2px;
	white-space: nowrap;
}

.cp97-choice__sub {
	color: var(--cp97-text-sub);
	font-size: 12px;
	line-height: 18px;
}

.cp97-choice input:checked + label {
	padding: 7px 11px;
	color: var(--cp97-primary);
	background-color: var(--cp97-primary-tint);
	border: 2px solid var(--cp97-primary);
}

.cp97-choice input:checked + label::before {
	background: url("/campaigns/97/images/icon-radio-on.svg") center / 24px 24px no-repeat;
	border: 0;
}

.cp97-choice input:checked + label .cp97-choice__sub {
	color: var(--cp97-primary);
}

.cp97-choice input:focus-visible + label {
	outline: 2px solid var(--cp97-text);
	outline-offset: 2px;
}

.cp97-choice input.error + label {
	border-color: var(--cp97-required);
}

/* 情報入力・アンケート */
.cp97-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px 20px 24px;
	background-color: #fff;
	border: 1px solid var(--cp97-border);
}

.cp97-q-label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: bold;
	line-height: 21px;
}

.cp97-q-tag {
	margin-bottom: 8px;
}

.cp97-tel-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: bold;
	line-height: 21px;
}

.cp97 input.cp97-input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	color: var(--cp97-text);
	background-color: #fff;
	border: 1px solid var(--cp97-border);
	border-radius: 0;
	font-size: 16px;
	line-height: 24px;
	text-align: left;
}

.cp97 input.cp97-input.error {
	border-color: var(--cp97-required);
}

.cp97-help {
	margin-top: 8px;
	color: var(--cp97-text-sub);
	font-size: 12px;
	line-height: 18px;
}

.cp97-help--alert {
	color: var(--cp97-required);
}

.cp97-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cp97-check {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.cp97-check input {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin: 4px 0 0;
	accent-color: var(--cp97-primary);
	cursor: pointer;
}

.cp97-check label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

/* cp-know.js が form-hidden を切り替える */
#cp-know_other.cp97-input {
	margin-top: 4px;
}

#cp-know_other.form-hidden {
	background-color: #fff;
	border-color: #f3f3f3;
}

#cp-know_other.form-hidden::placeholder {
	color: #c0c0c0;
}

.cp97 .msg-error {
	font-size: 12px;
	line-height: 18px;
}

.cp97 .msg-error:not(:empty) {
	margin-top: 6px;
}

/* ボタン */
.cp97-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cp97-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 0 48px;
	color: #fff;
	background-color: var(--cp97-primary);
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 20px 20px;
	border: 0;
	border-radius: 2px;
	font-family: inherit;
	font-size: 18px;
	font-weight: bold;
	line-height: 27px;
	text-decoration: none;
	cursor: pointer;
}

.cp97-btn--next {
	background-image: url("/campaigns/97/images/icon-right.svg");
}

.cp97-btn--navy {
	background-color: var(--cp97-text);
	font-size: 17px;
	line-height: 26px;
}

.cp97-btn:disabled {
	opacity: .6;
	cursor: default;
}

.cp97-privacy {
	font-size: 14px;
	text-align: center;
}

.cp97-privacy a,
.cp97-back-link a {
	color: var(--cp97-text);
	text-decoration: underline;
}

.cp97-back-link {
	font-size: 14px;
	text-align: center;
}

.cp97-applied img {
	max-width: 100%;
}

.cp97-closed {
	font-size: 16px;
	text-align: center;
}

/* 確認 */
.cp97-confirm-lead {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 20px;
}

.cp97-summary {
	background-color: #fff;
	border: 1px solid var(--cp97-border);
}

.cp97-entries {
	padding: 0 16px;
}

.cp97-entry {
	display: flex;
	align-items: stretch;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--cp97-border);
}

.cp97-entry::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	background-color: var(--cp97-primary);
}

.cp97-entry--circus::before {
	background-color: #666;
}

.cp97-entry--skyfes::before {
	background-color: #00409f;
}

.cp97-entry__text {
	flex: 1 0 0;
	min-width: 0;
}

.cp97-entry__title {
	font-size: 14px;
	font-weight: bold;
	line-height: 20px;
}

.cp97-entry__wish {
	margin-top: 2px;
	color: var(--cp97-text-sub);
	font-size: 12px;
	line-height: 18px;
}

.cp97-badge {
	flex-shrink: 0;
	align-self: center;
	padding: 4px 8px;
	border-radius: 2px;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	white-space: nowrap;
}

.cp97-badge--entry {
	color: #2e7d32;
	background-color: #e8f3e8;
}

.cp97-badge--skip {
	color: #999;
	background-color: var(--cp97-border);
}

.cp97-kv-block {
	padding: 12px 16px 16px;
}

.cp97-kv-block + .cp97-kv-block {
	padding-top: 0;
}

.cp97-kv-row + .cp97-kv-row {
	margin-top: 12px;
}

.cp97-kv-row__key {
	margin-bottom: 2px;
	color: var(--cp97-text-sub);
	font-size: 12px;
	line-height: 1.4;
}

.cp97-kv-row__key--tel {
	font-size: 11px;
	line-height: 16px;
}

.cp97-kv-row__tel {
	font-size: 15px;
	font-weight: bold;
	line-height: 22px;
}

.cp97-kv-row__value {
	font-size: 15px;
	line-height: 22px;
	word-break: break-word;
}

/* 完了 */
.cp97-body--complete {
	padding-top: 40px;
}

.cp97-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px 20px 24px;
	background-color: #fff;
}

.cp97-message {
	display: flex;
	flex-direction: column;
	gap: 16px;
	line-height: 1.4;
}

.cp97-message__title {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}

.cp97-message__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.cp97-message__alert {
	color: var(--cp97-required);
}

.cp97-message__note {
	font-size: 12px;
}

.cp97-flow {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--cp97-border);
	color: var(--cp97-text-sub);
	font-size: 12px;
	line-height: 1.4;
}

.cp97-flow__title {
	color: var(--cp97-text);
	font-size: 14px;
	font-weight: bold;
	line-height: 21px;
}

.cp97-sns {
	padding: 16px;
	border: 1px solid var(--cp97-border);
}

.cp97-sns__text {
	color: #333;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
}

.cp97-sns__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 12px;
	list-style: none;
}

.cp97-sns__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 12px 4px;
	color: #000;
	border: 1px solid var(--cp97-border);
	font-size: 11px;
	font-weight: bold;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.cp97 .cp97-sns__list img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.cp97-sns__sub {
	display: block;
	font-size: 10px;
	white-space: nowrap;
}

/* PC: SP のレイアウトを中央寄せで広げる */
@media (min-width: 768px) {
	.cp97 {
		max-width: 560px;
	}

	.cp97-btn:hover,
	.cp97-sns__list a:hover {
		opacity: .8;
	}
}

@media (min-width: 992px) {
	.cp97 {
		max-width: 640px;
	}
}
