/* INTEGRA Type S 抽選販売 */
/* 数値は _ref/lottery_pc.json（PC 1440px 幅）、SP は lottery_sp.json・lottery_sp_caroulsel.json（750px 幅）の 1/2 */
.p-lottery {
	background: #000;
	color: #fff
}
.p-lottery img {
	display: block;
	max-width: 100%;
	height: auto
}
.p-lottery__mainvisual {
	margin: 0
}
.p-lottery__mainvisual img {
	width: 100%;
	max-width: 2000px;
	margin: 0 auto
}
.p-lottery__inner {
	box-sizing: content-box;
	max-width: 980px;
	padding: 10px 20px 0;
	margin: 0 auto
}
.p-lottery__notice {
	margin: 0;
	font-family: var(--font-light);
	font-size: 12px
}

/* 応募期間 */
.p-lottery__period {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	max-width: 600px;
	padding: 28.5px 13px;
	margin: 64px auto 0;
	background: #fffefe;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.8);
	color: #3c3c3c;
	font-family: var(--font-sbold);
	text-align: center
}
.p-lottery__period p {
	margin: 0
}
/* letter-spacing は最後の文字の後ろにも付くので、左に同じ幅を足して中央に揃える */
.p-lottery__period-label {
	padding-left: .5em;
	font-size: 20px;
	line-height: 48px;
	letter-spacing: .5em
}
.p-lottery__period-date {
	font-size: 28px;
	line-height: 48px
}
.p-lottery__period-date--end {
	position: relative;
	padding-left: 36px
}
.p-lottery__period-date--end .p-lottery__period-arrow {
	position: absolute;
	top: 10px;
	left: 4px;
	width: 16px
}
.p-lottery__kern {
	letter-spacing: -0.4em
}

/* 抽選の説明 */
.p-lottery__about {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	max-width: 600px;
	padding: 21px 11px;
	margin: 50px auto 0;
	background: #4c4c4c;
	color: #fffefe;
	text-align: center
}
.p-lottery__about p {
	margin: 0
}
.p-lottery__about-title {
	font-family: var(--font-sbold);
	font-size: 20px;
	line-height: 50px
}
.p-lottery__about-text {
	font-family: var(--font-light);
	font-size: 24px;
	line-height: 50px
}

/* 見出し（下に全幅のグラデーションの線） */
.p-lottery__heading {
	position: relative;
	padding-bottom: 11px;
	margin: 0;
	color: #fffdfd;
	font-family: var(--font-sbold);
	font-size: 20px;
	line-height: 44px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5)
}
.p-lottery__heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #282828 15%, #787878 50%, #282828 85%)
}

/* 見出しの背面の光（値は Figma の「CSS としてコピー」。中心は上端で、上半分は見切れる） */
.p-lottery__live,
.p-lottery__flow,
.p-lottery__terms {
	position: relative
}
.p-lottery__live::before,
.p-lottery__flow::before,
.p-lottery__terms::before {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 250px;
	pointer-events: none
}
.p-lottery__live::before {
	top: -86px;
	background: radial-gradient(40.31% 67.5% at 50% 0%, rgba(99, 99, 99, 0.4) 0%, rgba(59, 59, 59, 0) 100%)
}
.p-lottery__flow::before {
	top: -80px;
	background: radial-gradient(40.31% 67.5% at 50% 0%, rgba(99, 99, 99, 0.4) 0%, rgba(59, 59, 59, 0) 100%)
}
.p-lottery__terms::before {
	top: 88px;
	background: radial-gradient(40.31% 67.5% at 50% 0%, rgba(100, 100, 100, 0.4) 0%, rgba(59, 59, 59, 0) 100%)
}

/* 東京オートサロン */
.p-lottery__live {
	margin-top: 186px
}
.p-lottery__live-text {
	padding: 0 20px;
	margin: 49px 0 0;
	color: #fffefe;
	font-family: var(--font-light);
	font-size: 24px;
	line-height: 54px;
	text-align: center
}
.p-lottery__live-text + .p-lottery__live-text {
	margin-top: 0.75lh
}
.p-lottery .p-lottery__live-logo {
	width: 429.5px;
	margin: 54.5px auto 0
}

/* 抽選販売の流れ */
.p-lottery__flow {
	margin-top: 180px
}
.p-lottery__steps {
	position: relative;
	box-sizing: content-box;
	max-width: 980px;
	padding: 0 20px;
	margin: 67px auto 0
}
/* 3 枚＋2 枚の 2 段。2 段目は中央に寄せる。狭い画面では先に間隔を縮め（最小 10px）、項目は 264px を保つ */
.p-lottery__step-list {
	flex-wrap: wrap;
	justify-content: center;
	gap: 77px max(10px, (100% - 792px) / 2);
	padding: 0;
	margin: 0;
	list-style: none
}
.p-lottery__step {
	flex: none;
	width: min(264px, (100% - 20px) / 3);
	height: auto
}
/* 位置は 250px 角のカードに対する割合。項目幅 264px の中央に置く */
.p-lottery__step-card {
	position: relative;
	max-width: 250px;
	margin: 0 auto;
	aspect-ratio: 1;
	background: linear-gradient(#4c4c4c 28%, #d9d9d9 28%);
	color: #3c3c3c;
	text-align: center
}
.p-lottery__step-number,
.p-lottery__step-title {
	position: absolute;
	left: 0;
	width: 100%
}
.p-lottery__step-number {
	top: 5.2%;
	color: #fff;
	font-family: var(--font-normal);
	font-size: 32px;
	line-height: 44px
}
.p-lottery__step-title {
	top: 30.8%;
	font-family: var(--font-sbold);
	font-size: 16px;
	line-height: 44px
}
.p-lottery .p-lottery__step-illust {
	position: absolute
}
.p-lottery .p-lottery__step-illust--01 {
	top: 55.2%;
	left: 24%;
	width: 52%
}
.p-lottery .p-lottery__step-illust--02 {
	top: 52%;
	left: 30.8%;
	width: 38.4%
}
.p-lottery .p-lottery__step-illust--03 {
	top: 57.6%;
	left: 27.6%;
	width: 45.2%
}
.p-lottery .p-lottery__step-illust--04 {
	top: 55.2%;
	left: 16.8%;
	width: 66%
}
.p-lottery .p-lottery__step-illust--05 {
	top: 54.76%;
	left: 24%;
	width: 52%
}
.p-lottery__step-text {
	margin: 26px 0 0;
	font-family: var(--font-normal);
	font-size: 16px;
	line-height: 28px;
	text-align: center
}
.p-lottery__steps-button {
	display: none
}
/* 2 行の左端を揃えたまま、ブロックごと中央に置く */
.p-lottery__flow-note {
	box-sizing: content-box;
	width: fit-content;
	max-width: 980px;
	padding: 0 20px;
	margin: 64px auto 0;
	font-family: var(--font-normal);
	font-size: 16px;
	line-height: 28px;
	text-align: left
}

/* 応募フォーム・販売店検索 */
.p-lottery__links {
	display: flex;
	justify-content: center;
	gap: 36px;
	padding: 0 20px;
	margin-top: 90px;
}
.p-lottery__link {
	display: flex;
	flex: 0 1 472px;
	align-items: center;
	justify-content: center;
	height: 100px;
	background: #fff;
	color: #3c3c3c;
	font-family: var(--font-sbold);
	font-size: 20px;
	line-height: 44px;
	text-decoration: none;
	transition: opacity .4s ease
}
.p-lottery__link--dealer {
	letter-spacing: 0.1em
}
.p-lottery__link::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	background: url(/INTEGRATYPE-S/common/images/icon/icon_blank.svg) no-repeat 0 0 / contain
}
@media (hover: hover) {
	.p-lottery__link:hover {
		opacity: .7
	}
}

/* キャンペーン規約・お問い合わせ先 */
.p-lottery__terms {
	padding-top: 190px;
	padding-bottom: 167px
}
.p-lottery__terms-box {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 980px;
	height: 700px;
	padding: 34px 57px 34px 45px;
	border: 1px solid #787878;
	margin: 97px auto 0;
	background: #000;
	overflow-y: auto
}
.p-lottery__terms-heading,
.p-lottery__terms-text {
	margin: 0;
	font-size: 16px;
	line-height: 28px
}
.p-lottery__terms-heading {
	font-family: var(--font-bold)
}
.p-lottery__terms-text {
	font-family: var(--font-normal)
}
.p-lottery__terms-text + .p-lottery__terms-heading {
	margin-top: 28px
}
.p-lottery__terms-text a {
	color: inherit
}

@media screen and (max-width: 768px) {
	.p-lottery__inner {
		padding: 5px 20px 0
	}
	/* デザインの注記の箱は 2 行分の高さ（85px） */
	.p-lottery__notice {
		min-height: 42.5px;
		padding: 0 1px;
		font-size: 12px
	}

	.p-lottery__period {
		padding: 12px 4px 21px;
		margin-top: 10.5px
	}
	.p-lottery__period-label {
		font-size: 14px;
		line-height: 32px
	}
	/* デザインは行頭の半角スペース2つ */
	.p-lottery__period-date {
		padding-left: 7px;
		font-size: 18px;
		line-height: 32px
	}
	/* デザインは行頭の全角スペース2つ */
	.p-lottery__period-date--end {
		padding-left: 36px
	}
	.p-lottery__period-date--end .p-lottery__period-arrow {
		top: 8px;
		left: 16px;
		width: 8px
	}

	.p-lottery__about {
		padding: 9px 4px 14.5px;
		margin-top: 25px
	}
	.p-lottery__about-title {
		font-size: 14px;
		line-height: 30px
	}
	.p-lottery__about-text {
		font-size: 14px;
		line-height: 30px
	}

	.p-lottery__heading {
		padding-bottom: 5.78px;
		font-size: 14px;
		line-height: 25px;
		text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5)
	}
	.p-lottery__heading::after {
		height: 1.28px;
		background: linear-gradient(90deg, #282828 10%, #afafaf 50%, #282828 90%)
	}
	.p-lottery__terms .p-lottery__heading {
		padding-bottom: 6px
	}
	.p-lottery__terms .p-lottery__heading::after {
		height: 1px
	}

	.p-lottery__live::before,
	.p-lottery__flow::before,
	.p-lottery__terms::before {
		height: 125px;
		background: radial-gradient(40.31% 67.5% at 50% 0%, rgba(99, 99, 99, 0.4) 0%, rgba(59, 59, 59, 0) 100%)
	}
	.p-lottery__live::before {
		top: -43px;
		height: 100px
	}
	.p-lottery__flow::before {
		top: -46px
	}
	.p-lottery__terms::before {
		top: 0
	}

	/* 東京オートサロン */
	.p-lottery__live {
		margin-top: 96.5px
	}
	.p-lottery__live-text {
		margin-top: 31.22px;
		font-size: 14px;
		line-height: 30px
	}
	.p-lottery .p-lottery__live-logo {
		width: 305.625px;
		margin-top: 66.45px
	}

	/* 抽選販売の流れ（スライダー） */
	.p-lottery__flow {
		margin-top: 106px
	}
	.p-lottery__steps {
		max-width: none;
		padding: 0;
		margin-top: 47.72px
	}
	.p-lottery__step-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0
	}
	.p-lottery__step {
		flex: none;
		width: 100%
	}
	.p-lottery__step-card {
		width: 212px;
		margin: 0 auto;
		background: linear-gradient(#787878 59.5px, #d9d9d9 59.5px)
	}
	.p-lottery__step-number {
		top: 20px;
		font-size: 26px;
		line-height: 22px
	}
	.p-lottery__step-title {
		top: 70.5px;
		font-size: 14px;
		line-height: 22px
	}
	.p-lottery .p-lottery__step-illust--01 {
		top: 120.5px;
		left: 51px;
		width: 110px
	}
	.p-lottery .p-lottery__step-illust--02 {
		top: 107.5px;
		left: 65.5px;
		width: 81px
	}
	.p-lottery .p-lottery__step-illust--03 {
		top: 120.5px;
		left: 56.5px;
		width: 98.84px
	}
	.p-lottery .p-lottery__step-illust--04 {
		top: 120.5px;
		left: 31px;
		width: 149.5px
	}
	.p-lottery .p-lottery__step-illust--05 {
		top: 120.5px;
		left: 51.5px;
		width: 109.5px
	}
	.p-lottery__step-text {
		margin-top: 18.5px;
		font-size: 14px;
		line-height: 23px
	}
	/* 22×44 の矢印（線 2.165px）。押せないときは #787878 */
	.p-lottery__steps-button {
		display: block;
		position: absolute;
		top: 84.75px;
		z-index: 2;
		width: 22px;
		height: 44px;
		padding: 0;
		border: 0;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='44' viewBox='0 0 22 44'%3E%3Cpath d='M21 1 1 22l20 21' fill='none' stroke='%23fff' stroke-width='2.165'/%3E%3C/svg%3E") center / contain no-repeat;
		cursor: pointer
	}
	.p-lottery__steps-button.swiper-button-disabled {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='44' viewBox='0 0 22 44'%3E%3Cpath d='M21 1 1 22l20 21' fill='none' stroke='%23787878' stroke-width='2.165'/%3E%3C/svg%3E");
		cursor: default
	}
	.p-lottery__steps-button--prev {
		left: 21px
	}
	.p-lottery__steps-button--next {
		right: 21px;
		transform: scaleX(-1)
	}

	.p-lottery__flow-note {
		margin-top: 32px;
		text-align: left;
		font-size: 12px;
		line-height: 1.5
	}

	.p-lottery__links {
		flex-direction: column;
		align-items: center;
		gap: 13px;
		margin-top: 64px
	}
	.p-lottery__link {
		flex: none;
		width: 212px;
		height: 50px;
		font-size: 14px;
		line-height: 30px
	}
	.p-lottery__link--dealer {
		letter-spacing: 0
	}
	.p-lottery__link::after {
		width: 11px;
		height: 11px;
		margin-left: 7px
	}

	.p-lottery__terms {
		margin-top: 36px;
		padding-top: 44.5px;
		padding-bottom: 128.5px
	}
	.p-lottery__terms-box {
		height: 400px;
		padding: 15px 22.5px;
		margin-top: 40px
	}
	.p-lottery__terms-heading,
	.p-lottery__terms-text {
		font-size: 12px;
		line-height: 1.5
	}
	.p-lottery__terms-text + .p-lottery__terms-heading {
		margin-top: 14px
	}
}
