.main{
	width: 100%;
	height: 100%;

	margin-bottom: constant(safe-area-inset-bottom);
	margin-bottom: env(safe-area-inset-bottom);
	background: #fff;
}
.main_height{
	height: calc(100% + 1px);
	/* background: #f002; */
}


.wrapper{
	position: relative;
	display: flex;
	width: 100%;
	height: auto;
	min-height: 100%;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
	flex-wrap: wrap;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}

.loading{
	position: fixed;
	top: 0;
	left: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 80px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	background: #fff;
}
.loading_right{
	position: fixed;
	right: 0;
	top: 56px;
	display: none;
	width: 33.33%;
	height: calc(100% - 56px);
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}
.icon_load{
	display: block;
	width: 32px;
	height: 32px;
	background-image: url('../images/icon_load.svg');
	background-size: 32px 32px;
	background-repeat: no-repeat;
	animation: loading-animate 1s linear infinite both;
	-webkit-animation: loading-animate 1s linear infinite both;
}
@keyframes loading-animate{
	0%{
		transform: rotate(0);
	}
	100%{
		transform: rotate(360deg);
	}
}
@-webkit-keyframes loading-animate{
	0%{
		-webkit-transform: rotate(0);
	}
	100%{
		-webkit-transform: rotate(360deg);
	}
}

.header{
	display: flex;
	width: 100%;
	height: 56px;
	font-size: 14px;
	align-items: center;
	justify-content: space-between;
}

.menu_l,
.slide_r{
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	width: 100%;
	height: 100%;
	visibility: collapse;
	transition: visibility 0s 0.3s;
}
.slide_r{
	align-items: flex-start;
}
.menu_l.on,
.slide_r.on{
	visibility: visible;
	transition: visibility 0s;

}
.bet_slip{
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	width: 100%;
	height: auto;
	max-height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	pointer-events: none;
	z-index: 7;
}
.bet_slip .ord_full_mask{
	pointer-events: none;
}
.bet_slip.on .ord_full_mask{
	pointer-events: auto;
}

@media (pointer: coarse),
(hover: none),
(-moz-touch-enabled: 1){
	.bet_slip.on{
		animation: none;
	}
	.main_ios .bet_slip.on{
		animation: bet_slip_on 0.3s ease backwards;
	}
	main:not(.main_ios) .bet_slip.off{
		animation: none;
		transform: translate3d(0, 100%, 0);
	}
	.main_ios .bet_slip.off{
		animation: bet_slip_off 0.3s ease both;
		transform: auto;
	}
}

@media (pointer: fine) and (max-resolution: 2dppx),
screen and (pointer: fine) and (-webkit-max-device-pixel-ratio: 2),
(-moz-touch-enabled: 0),
screen and (-ms-high-contrast: active), (-ms-high-contrast: none){
	.bet_slip.on{
		animation: bet_slip_on 0.3s ease backwards;
	}
	.bet_slip.off{
		animation: bet_slip_off 0.3s ease both;
		transform: auto;
	}
}

@keyframes bet_slip_on{
	0%{
		transform: translate3d(0, 100%, 0);
	}
	1%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 0%, 0);
	}
}
@-webkit-keyframes bet_slip_on{
	0%{
		transform: translate3d(0, 100%, 0);
	}
	1%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 0%, 0);
	}
}
@keyframes bet_slip_off{
	0%{
		transform: translate3d(0, 0%, 0);
	}
	99%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 100%, 0);
	}
}
@-webkit-keyframes bet_slip_off{
	0%{
		transform: translate3d(0, 0%, 0);
	}
	99%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 100%, 0);
	}
}

.popup,
.forecast{
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	overflow: hidden;
	pointer-events: none;
}
.popup.on,
.popup>.on,
.forecast.on{
	visibility: visible;
}
.popup > div >div,
.forecast>div{
	pointer-events: auto;
}
.nav_menu{
	display: block;
}
.maintain,
.maintain_clear{
	position: fixed;
	width: 100%;
	height: 100%;
	background: #fff;
	overflow-y: auto;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	-webkit-overflow-scrolling: touch;
}
.maintain_clear{
	position: absolute;
	top: 0;
	left: 0;
	padding-top: 56px;
	padding-bottom: 56px;
	padding-bottom: calc( 56px + constant(safe-area-inset-bottom)) ;
	padding-bottom: calc( 56px + env(safe-area-inset-bottom)) ;
}
@media screen and (min-width: 1024px) {
	.maintain_clear{
		width: 66.66%;
	}
}


/* z-index */
.forecast{z-index: 8;}
.popup{z-index: 8;}
.popup_sys{z-index: 10;}
.slide_r,.menu_l{z-index: 9;}
.header{z-index: 7;}
.menu_bottom{z-index: 7;}
.maintain{z-index: 7;}
.maintain_clear{z-index: 6;}
.loading{z-index: 6;}


.wrapper{
	height: auto;
	min-height: 100%;
	flex-direction: column-reverse;
}
.header{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}
.nav_menu{
	display: block;
}


@media screen and (min-width: 1px) and (max-width: 639px){
	.box_acc>.box_content{
		padding-bottom: 0;
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
	}
}



/* change scroll bar to #body_show*/
.wrapper{
	height: 100%;
}

.chg_acc{
	position: relative;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.chg_acc:empty{
	display: none\9;
}
.nav_menu{
	position: relative;
}
.menu_bottom{
	min-height: 56px;
}
/* 11/25 */
.wrapper{
	flex-direction: column;
}
.header{
	position: unset;
	flex: 0 0 56px;
}
.nav_menu{
	position: unset;
	width: 100vw;
	min-height: 56px;
	flex: 0 0;
}
.content_l{
	position: relative;
	top: 56px;
	display: flex;
	width: 100%;
	height: 100%;
	min-height: unset;
	max-height: calc(100%);
	flex-direction: column;
	flex: 1 1 100%;
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom);
}
.box_l{
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	flex: 1 1 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	will-change: scroll-position;
}
.header{
	position: fixed;
	top: 0;
	width: 100%;
}

.menu_bottom{
	position: fixed!important;
	bottom: 0!important;
	width: 100%;
}


/* clone_show setting*/
.zindex{
	position: absolute!important;
	top: 176px;
	width: 100%;
	height: auto;
	z-index: -1;
	opacity: 0.5;
	pointer-events: none;
}

.zindex .box_lebet_r{
	max-width: calc(100% - 192px);
}


/* PC setting */
@media (pointer: fine) and (hover: hover){
	/* scroll bar style setting */
	::-webkit-scrollbar {
		width: 4px;
		height: 8px;
	}
	::-webkit-scrollbar-thumb {
		background: rgba(0,0,0,0.16);
		border-radius: 20px;
	}
	::-webkit-scrollbar-track {
		background: #F0F0F0;
		border-radius: 20px;
	}

	.fore_form_box::-webkit-scrollbar {
		width: 8px;
		height: 8px;
	}


	.main_height{
		height: 100%;
	}

	.box_l{
		overflow-y: scroll;
	}

	.dragscroll:active{
		cursor: grabbing;
	}
}

/* set for mobile input focus hide bottom menu */
@media (pointer: coarse),
(hover: none),
(-moz-touch-enabled: 1){
	.keyin_scroll .nav_menu{
		height: 0px;
		opacity: 0;
		pointer-events: none!important;
	}
	.keyin_scroll .nav_menu .menu_bottom{
		pointer-events: none;
	}
	.keyin_scroll .content_l{
		/* position: relative; */
		height: auto;
		max-height: calc(100% - 56px);
		/*
		min-height: 100%;
		max-height: unset;
		*/
		overflow: hidden;
	}
	.keyin_scroll .main_ios .content_l{
		position: relative;
		min-height: 100%;
		max-height: unset;
	}
	.keyin_scroll .header{
		position: absolute;
		width: 100%;
		margin: 0;
	}
}
@media (pointer: coarse) and (min-width: 1px) and (max-width: 1023px),
(hover: none) and (min-width: 1px) and (max-width: 1023px),
(-moz-touch-enabled: 1) and (min-width: 1px) and (max-width: 1023px){
 	.keyin_scroll{
		height: 100%;
		overflow-y: auto!important;
	}

}

.locker{
	visibility: hidden;
	background-image: url('../images/icon_nobet.webp');
}

body.scroll_lock{
	overflow: hidden;
}
.box_l.scroll_lock{
	/* overflow-y: hidden; */
	overflow: hidden;
	-webkit-overflow-scrolling: auto!important;
}
/* PC setting */
@media (pointer: fine) and (hover: hover){
	.box_l.scroll_lock{
		overflow-y: scroll;
	}
	.locker{
		background-image: url('../images/icon_nobet.svg');
	}
}



/* STAG 2 */
@media screen and (min-width: 1024px){
	body{
		overflow-x: hidden;
		/* overflow-y: hidden; */
	}
	.wrapper{
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: nowrap;
	}
	.content_l{
		position: relative;
		max-height: calc(100% - 56px);
		flex: 1 1 66.6%;
	}
	.content_l > .loading{
		position: fixed;
		top: 56px;
		left: 0;
		width: calc(200% / 3);
		z-index: 7;
	}
	
	.loading_right{
		display: flex;
	}
	
	.nav_menu {
		display: none;
	}
	.bet_slip {
		bottom: 0;
		left: auto;
		right: 0;
		width: calc(100% / 3);
		padding-top: 56px;
	}
	.bet_slip.mini{
		/* animation: bet_slip_mini 0.3s ease both; */
	}

}

@keyframes bet_slip_mini{
	0%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 0%, 0);
	}
}
@-webkit-keyframes bet_slip_mini{
	0%{
		transform: translate3d(0, 0%, 0);
	}
	100%{
		transform: translate3d(0, 0%, 0);
	}
}



.right_wrap{
	position: relative;
	height: auto;
	overflow: hidden;
}
.right_wrap.on_loading{
	height: 80px;
}
.loading_r{
	display: none;
}
.on_loading .loading_r{
	position: absolute;
	z-index: 6!important;
	display: flex;
}



/* 640setting*/
@media screen and (min-width: 1024px){
	.sideshow_l,
	.sideshow_s{
		display: none;
	}
}


.box_l_height{
	display: none!important;
}
.footer{
	position: relative;
	width: 100%;
	height: auto;
	margin-top: auto;
	padding-top: 200px;
	flex: none;
	overflow: hidden;
}