* {
    padding: 0;
    margin: 0;
    font-family: Arial;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul, li {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

tt, i {
    font-style: normal;
}

a img {
    border: 0px;
}

.clear {
    clear: both;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    /* overflow: hidden; */
}

body {
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* ios15 */
.ios15 body {
    /* overflow: hidden; */
    padding-bottom: env(safe-area-inset-bottom);
}

/* iphone 6 / 7 / 8 */
@media screen and (orientation: portrait) and (height: 629px), screen and (orientation: portrait) and (height: 664px), screen and (orientation: portrait) and (height: 746px), screen and (orientation: portrait) and (height: 715px), screen and (orientation: portrait) and (height: 635px), screen and (orientation: portrait) and (height: 719px) {
    html.ios15 {
        height: 100vh !important;
    }
}

@media screen and (orientation: portrait) and (height: 548px), screen and (orientation: portrait) and (height: 552px) {
    html.ios15 {
        height: 624px !important;
    }

    .ios15 body {
        height: 100%;
    }
}

@media screen and (orientation: portrait) and (height: 617px), screen and (orientation: portrait) and (height: 620px) {
    html.ios15 {
        height: 693px !important;
    }

    .ios15 body {
        height: 100%;
    }
}

i > svg {
    display: block;
    width: 100%;
    height: 100%;
}

table {
    border-collapse: collapse;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input:hover {
    outline: none;
}

*,
*:focus,
*:active,
*:hover {
    outline: none;
    -moz-outline: none;
    -webkit-user-modify: read-write-plaintext-only;
    -webkit-user-modify: read-only;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

[class^="btn_"] {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

label {
    background: none;
}

@media screen and (orientation: landscape) {
    * {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
    }

    body {
        padding-right: env(safe-area-inset-right);
        padding-left: env(safe-area-inset-left);
    }
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
    outline: none;
    border: none;
}

select {
    background: transparent;
}

::-moz-focus-inner {
    border: 0;
}

/*
[class^="btn_"]{
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
[class^="btn_"] *{
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
*/
.ord_down_style {
    pointer-events: auto;
}

/* hide scrollbar */
.box_slide::-webkit-scrollbar {
    display: none;
}

.box_slide {
    -ms-overflow-style: none;
}

/* fixed android chrome pull to refresh issuse */
body {
    margin: 0;
}

input {
    -webkit-user-select: auto !important;
    user-select: text !important;
}


/* PC setting */
@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) {
    .dragscroll,
    div[class^="dragscroll_"] {
        cursor: grab;
    }
}


.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);

    /*2*/
    /* height: 100%; */
}

.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/hg/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),
(-moz-touch-enabled: 1), screen and (pointer: fine) and (min-resolution: 2dppx) and (max-width: 1023px) {
    .bet_slip.on {
        animation: none;
        /* transform: translate3d(0, 0%, 0); */
    }

    .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 {
    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 {
    visibility: visible;
}

.popup > div > 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 */
.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;
}

/* .bet_slip{z-index: 7;} */
.head_sport {
    z-index: 4;
}

.content_l .loading, .content_r .loading {
    z-index: 3;
}


.wrapper {
    height: auto;
    min-height: 100%;
    flex-direction: column-reverse;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.content_r {
    display: none;
}

.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%;
}

.login {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    overflow: hidden;
}

/*
.ios15 .login,
.ios15 .sys{
	display: block;
	height: 100%;
	overflow-y: auto;
}
*/
.scroll_lock .login {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
}

.chg_acc {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login:empty,
.chg_acc:empty {
    display: none;
}

.nav_menu {
    position: relative;
}

.menu_bottom {
    height: 56px;
}

.ios15 .menu_bottom {
    height: auto;
    min-height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 11/25 */
.wrapper {
    flex-direction: column;
}

.header {
    position: unset;
    flex: 0 0 56px;
}

.nav_menu {
    position: unset;
    width: 100vw;
    height: 56px;
    flex: 0 0;
}

.content_l {
    position: absolute;
    top: 56px;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: unset;
    max-height: calc(100% - 112px);
    flex-direction: column;
    flex: 1 1 100%;
    overflow: hidden;
}

.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%;
}

/*å…§å±¤æ©«å‘æ²è»¸*/
.box_scroll {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.box_slide > label,
.menu_sport > label,
.menu_date > label {
    display: inline-block;
    width: auto;
    height: 100%;
}

.box_scroll .btn_go_l,
.box_scroll .btn_go_r {
    position: absolute;
    z-index: 3;
    display: block;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.box_scroll .btn_go_l {
    transform: translate3d(0, 0, 0) rotate(180deg);
}

.box_scroll .btn_go_r {
    transform: translate3d(0, 0, 0);
}

.box_scroll .btn_go_l.on,
.box_scroll .btn_go_r.on {
    opacity: 1;
}

.btn_go_l {
    transform: rotate(180deg);
}

.btn_go_r {
    padding-left: 10px;
}

.btn_go_l svg,
.btn_go_r svg {
    width: 8px;
    height: 12px;
    fill: rgba(0, 0, 0, 0.72);
}

/* mobile setting */
@media (pointer: coarse),
(-moz-touch-enabled: 1), screen and (pointer: fine) and (min-resolution: 2dppx) and (max-width: 1023px) {
    .btn_go_l,
    .btn_go_r {
        top: 0;
        width: 16px;
        height: 100%;
        pointer-events: none;
        background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
    }

    .header_scroll .btn_go_l,
    .header_scroll .btn_go_r {
        background-image: linear-gradient(to right, rgba(72, 57, 45, 0), #48392d);
    }

    .date_scroll .btn_go_l,
    .date_scroll .btn_go_r {
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0), #fafafa);
    }

    .btn_go_l {
        /* display: none!important; */
        left: 0;
    }

    .btn_go_r {
        right: 0;
    }

    .btn_go_l svg,
    .btn_go_r svg {
        display: none;
    }

    .box_scroll .btn_go_l.on,
    .box_scroll .btn_go_r.on {
        transition: none !important;
    }

}

/* 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 (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) {
    /* 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;
    }

    .box_obt_lebet .box_lebet_r::-webkit-scrollbar-track {
        background: #ededed;
    }

    .main_height {
        height: 100%;
    }

    .box_l {
        overflow-y: scroll;
    }

    .box_slide,
    .menu_sport {
        /* transition: all 0.3s ease; */
        /* scroll-behavior: smooth; */
    }

    .dragscroll,
    div[class^="dragscroll_"] {
        cursor: grab;
    }

    .box_scroll .btn_go_l,
    .box_scroll .btn_go_r {
        top: -100%;
        width: 44px;
        height: 38px;
        line-height: 38px;
        padding-top: 13px;
        cursor: pointer;
        background: #d6d6d6;
        border-radius: 50% 0 0 50%;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.24);
    }

    .btn_go_l {
        left: -22px;
        padding-left: 10px;
        transition: all 0.3s ease;
    }

    .btn_go_r {
        right: -22px;
        padding-left: 10px;
        transition: all 0.3s ease;
    }

    .box_scroll .btn_go_l.on,
    .box_scroll .btn_go_r.on {
        top: calc(50% - 19px);
    }

    .btn_go_l svg,
    .btn_go_r svg {
        display: block;
    }

    .btn_go_l:hover {
        left: 0;
        background: #ebebeb;
    }

    .btn_go_r:hover {
        right: 0;
        background: #ebebeb;
    }

    .btn_go_l:active,
    .btn_go_r:active {
        background: #c2c2c2;
    }

    .dragscroll:active {
        cursor: grabbing;
    }
}

.box_lebet_r {
    /* overflow-anchor: none; */
}


/* set for mobile input focus hide bottom menu */
@media (pointer: coarse),
(-moz-touch-enabled: 1), screen and (pointer: fine) and (min-resolution: 2dppx) and (max-width: 1023px) {
    .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;
        min-height: 100%;
        max-height: unset;
        overflow: hidden;
    }

    .keyin_scroll .header {
        position: absolute;
        width: 100%;
        margin: 0;
    }
}

@media (pointer: coarse) and (min-width: 1px) and (max-width: 1023px),
(-moz-touch-enabled: 1) and (min-width: 1px) and (max-width: 1023px), screen and (pointer: fine) and (min-resolution: 2dppx) and (max-width: 1023px) {
    .keyin_scroll {
        height: 100%;
        overflow-y: auto !important;
    }

}

.locker {
    visibility: hidden;
    background-image: url('../images/hg/icon_nobet.svg');
}


/*èƒŒæ™¯æ²è»¸éŽ–å®š*/
body.scroll_lock {
    overflow: hidden;
}

.box_l.scroll_lock {
    /* overflow-y: hidden; */
    overflow: hidden;
    -webkit-overflow-scrolling: auto !important;
}

@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) {
    .box_l.scroll_lock {
        overflow-y: scroll;
    }
}


/* 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;
    }

    .content_r {
        position: relative;
        top: 56px;
        display: block;
        min-width: 342px;
        height: calc(100% - 56px);
        padding: 8px 8px 56px 8px;
        overflow-x: hidden;
        overflow-y: scroll;
        flex: 1 1 33.3%;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }

    .loading_right {
        display: flex;
    }

    .content_r > .loading {
        position: relative;
        width: 100%;
        height: 80px;
        margin-bottom: 16px;
    }

    .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);
    }
}

.content_sport .loading {
    position: absolute;
    flex: none;
}

.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;
}

#element {
    background: #f5f5f5;
}
