/* ------------------------------------------------------------------------
    Main Layout
------------------------------------------------------------------------  */
:root{
    /* header height */
    --hd-height:70px;
    --hd-scrlheight:60px;
}
@media screen and (min-width:769px){
    :root{
        /* header height */
        --hd-height:90px;
        --hd-scrlheight:80px;
    }
}
header {
    position:sticky;
    top: 0;
	width: 100%;
	z-index: 20;
	transition: background-color .4s linear;
}
header.Scrl {
    background: rgba(255,255,255,.9);
}
#SITE_CONTAINER {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100vh;
}
main {
    position: relative;
}

@media screen and (min-width:769px){
	main {
	}
}


/* ------------------------------------------------------------------------
    Header
------------------------------------------------------------------------  */

header {
    background: rgba(255,255,255,1);
}
header .HD_container{
    height: var(--hd-height);
    
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding-left: 15px;
    transition: all .3s;
}
header .Header_Logo img{
    width: auto;
    max-height: 32px;
    transition: all .3s;
}
@media screen and (max-width:1023px){
}
@media screen and (min-width:1024px){
    header .HD_container{
        height: var(--hd-height);
    }
    header .Header_Logo img{
        max-height: 40px;
        transition: all .3s;
    }
}
/* Scroll */
header.Scrl .HD_container{
    height: var(--hd-scrlheight);
}
@media screen and (max-width:1023px){
    header.Scrl .Header_Logo img{
       max-height: 28px; 
    }
}
@media screen and (min-width:1024px){
    header.Scrl .Header_Logo img{
       max-height: 32px; 
    }
}


/* ------------------------------------------------------------------------
    Humburger
------------------------------------------------------------------------  */
.hamburger {
	display: block;
	width: 35px;
	height: 35px;
	vertical-align: middle;
	cursor: pointer;
	position: absolute;
	top: 50%;
	right: 20px;
	z-index: 110;
	transform: translateY(-50%);
	transition: transform .5s;
}

.hamburger span {
	display: block;
	box-sizing: border-box;
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--base-color);
	transition: all .5s;
}
.hamburger.open span{
	background-color: var(--base-color);
}
.Scrl .hamburger span {
	background-color: var(--base-color);
}
.hamburger span:nth-of-type(1) {
	top: 20%;
}

.hamburger.open span:nth-of-type(1) {
	top:50%;
	transform: rotate(-45deg);
}

.hamburger span:nth-of-type(2) {
	bottom: 50%;
}
.hamburger.open span:nth-of-type(2) {
	opacity: 0;
}
.hamburger span:nth-of-type(3) {
	bottom: 20%;
}
.hamburger.open span:nth-of-type(3) {
	bottom:50%;
 	transform: rotate(45deg);
}
@media screen and (min-width:1001px){
	#TOP-PAGE .hamburger span {
		background-color: #fff;
	}
	#TOP-PAGE .hamburger.open span {
		background-color: #fff;
	}
}
/* none */
@media screen and (min-width:1001px){
	.hamburger{display: none;}
}

/* ------------------------------------------------------------------------
    nav
------------------------------------------------------------------------  */
/* Nav */
#Navigation {}
nav {}

/* SP Overlay */
.Overlay {}
.Overlay.open {}
.SubMenu_Contents {display: none;}
.SpMenu {display: none;}
.SpInfo {display: none;}
.SpCopy{display: none;}

.HD-Logout {}

/* Lang */
.Sub_Nav .Lang {
    display: flex;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid var(--main-color);
}
.Sub_Nav .Lang a{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 24px;
    box-sizing: border-box;
    color: var(--main-color);
    transition: all .6s;
}
.Sub_Nav .Lang a.active{
    background: var(--main-color);
    color: #fff;
    pointer-events: none;
}

/* Social */
.HD_Social {
    display: none;
    justify-content: center;
    column-gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.HD_Social > div{
    max-width: 30px;
}

/* RexClub */
.RexClub a{
    border: 1px solid var(--main-color);
}
.RexClub a span{
    padding-left: 1em;
    padding-right: 1em
}
.RexClub a{
    position: relative;
    display: block;
    padding-right: 36px;
    height: 36px;
    color: var(--main-color);
}
.RexClub a:before,
.RexClub a:after{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    content: '';
    width: 36px;
    height: 36px;
}
.RexClub a:before {
    background: var(--main-color);
}
.RexClub a:after{
    background-image: url("../../../asset/images/icon_login.png");
    background-size: 14px;
    background-position: 50%;
    background-repeat: no-repeat;
}

/* INQUIRY */
.HD_inquiry {
}
@media screen and (min-width:1024px){
    .HD_inquiry {
        position: absolute;
        right: 0;
        top: 0;
        
        display: flex;
        justify-content: center;
        align-items: center;
        width: var(--hd-height);
        height: var(--hd-height);
        color: #fff;
        font-size: 12px;
        transition: all .3s;
    }
    .Scrl .HD_inquiry {
        width: var(--hd-scrlheight);
        height: var(--hd-scrlheight);
    }
    .HD_inquiry span{
        display: inline-block;
        position: relative;
        font-size: 12px;
        padding-top: 26px;
    }
    .HD_inquiry span:before{
        position: absolute;
        left: 50%;
        top: 0;
        content: '';
        transform: translateX(-50%);
        width: 24px;
        height: 24px;
        background-image: url("../../../asset/images/icon_mail_wh.png");
        background-repeat: no-repeat;
        background-size: contain;
    }
}
/* SP */
@media screen and (max-width:1023px){
    /* SP Menu */
    .SpMenu{display: block;}
    /* Navigation open */
	#Navigation{
		background: #fff;
        width: 100%;
		height: calc(100% - 70px);
		position: fixed;
		top: 70px; /* right:-100% or left:-100% */
		left: 0;
		z-index: 100;
		transition: all .6s 0s ease;
        opacity: 0;
        visibility: hidden;

		overflow: auto !important;
		overflow-x: auto !important;
		overflow-y: auto !important;
		webkit-overflow-scrolling: touch;
        
        overscroll-behavior-y: contain;
        /* scroll bar */
        -ms-overflow-style: none;
        scrollbar-width: none;
	}
    .Scrl #Navigation{
        height: calc(100% - 60px);
        top: 60px;
    }
    /* scroll bar */
    #Navigation::-webkit-scrollbar{
        display:none;
    }
    #Navigation.open{
        /* Top */
		opacity: 1;
        visibility: inherit;
    }
    #Navigation .container{
        padding-left: 0;
        padding-right: 0;
    }
    #Navigation .Sub_Title{
        display: none;
    }
    
    /* Sub Navi */
    .Sub_Nav{
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: var(--container-side);
        padding-right: var(--container-side);
    }
    .Sub_Nav .Lang,
    .Sub_Nav a{
        height: 36px;
    }
    .Sub_Nav .AboutUs{
        display: none;
    }
    .Sub_Nav .AboutUs,
    .Sub_Nav .Download,
    .Sub_Nav .Search{
        margin-bottom: 20px;
    }
    .Sub_Nav .AboutUs a,
    .Sub_Nav .Download a,
    .Sub_Nav .Search a{
        position: relative;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        border-radius: 9999px;
        padding: 3px 0;
        color: #fff;
    }
    
    .Sub_Nav .Download a{
        background: var(--sub-color);
    }
    .Sub_Nav .AboutUs a,
    .Sub_Nav .Search a{
        background: var(--main-color);
    }
    .Sub_Nav .AboutUs a:after,
    .Sub_Nav .Download a:after,
    .Sub_Nav .Search a:after{
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        content: '';
        width: 12px;
        height: 12px;
        background-repeat: no-repeat;
        background-position: 50%;
        background-size: cover;
    }
    .Sub_Nav .AboutUs a:after{
        background-image: url("../../../asset/images/icon_company.png");
    }
    .Sub_Nav .Download a:after{
        background-image: url("../../../asset/images/icon_download_wh.png");
    }
    .Sub_Nav .Search a:after{
        background-image: url("../../../asset/images/icon_search_wh.png");
    }
    
    /* Social */
    .Sub_Nav .social {
        display: none;
    }
    /* RexClub */
    .RexClub {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .RexClub a{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* list */
    .nav_list {
        border-bottom: 1px solid #dcdcdc;
    }
	.nav_list > ul{
		padding-top: 15px;
		background: #fff;
	}
	.nav_list li {
		border-top: 1px solid #dcdcdc;
	}
	.nav_list a{
        color: var(--main-color);
		text-decoration: none;
		position: relative;
		display: block;
		vertical-align: middle;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-right: 20px;
        padding-left: 20px;
	}
	.nav_list li a::before{
		position: absolute;
		margin: auto;
		content: "";
		vertical-align: middle;

		right: 20px;
		top:0;
		bottom:0;

		width: 6px;
		height: 6px;
		border-top: 1px solid #717171;
		border-right: 1px solid #717171;
		transform: rotate(45deg);
	}
    .nav_list li a.Sub_Triger::before{
        transform: rotate(135deg);
        transition: all .6s;
    }
    .nav_list li.current a.Sub_Triger::before{
        transform: rotate(-45deg);
    }
    
    /* SubMenu */
    .SubMenu_Contents{
        background: var(--sub4-color);
    }
    
    /* RexGroup */
    ul.RexGroup li{
        padding-left: var(--container-side);
    }
    
    /* Inquiry */
    .HD_inquiry{
        display: block;
        padding-left: var(--container-side);
        padding-right: var(--container-side);
        margin-top: 40px;
        margin-bottom: 40px;
        background: #fff;
    }
    .HD_inquiry span{
        display: block;
        width: 100%;
        border-radius: 9999px;
        text-align: center;
        color: #fff;
        background: var(--main-color);
        padding: 5px 0;
    }
    
    /* Social */
    .HD_Social {
        display: flex;
    }
    
    /* INFO */
    .SpInfo{
        display: block;
        padding-left: var(--container-side);
        padding-right: var(--container-side);
        color: var(--base-color);
    }
    .SpInfo h2{
        margin-bottom: .75em;
        font-weight: 500;
    }
    .SpInfo p{
        font-size: 12px;
        margin-bottom: .3em;
        line-height: 1.3em;
    }
    .SpCopy{
        display: block;
        margin-top: 20px;
        background: var(--sub2-color);
        padding: 5px 0;
        text-align: center;
        font-size: 10px;
        margin-bottom: 0;
    }
    .SP_sns {
        display: flex;
        justify-content: center;
        column-gap: 30px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .SP_sns a{
        width: 32px;
    }
}

/* PC */
@media screen and (min-width:1024px){
    #Navigation {
        padding-right: var(--hd-height);
        transition: padding .3s;
    }
    .Scrl #Navigation {
        padding-right: var(--hd-scrlheight);
    }
    
    /* Sub Navi */
    .Sub_Nav{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        column-gap:30px;
        margin-bottom: 10px;
        padding-right: 2em;
    }
    .Sub_Nav a{
        font-size: 14px;
    }
    
    /* social */
    .Sub_Nav .social {
        max-width: 30px;
    }
    
    /* icon */
    .Sub_Nav .icon{
        position: relative;
        padding-right: 40px;
    }
    .Sub_Nav .icon:before,
    .Sub_Nav .icon:after{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        content: '';
    }
    .Sub_Nav .icon:before{
        right: 8px;
        width: 14px;
        height: 14px;
        background-position: 50%;
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 2;
    }
    .Sub_Nav .icon:after{
        right: 0;
        width: 30px;
        height: 30px;
        border-radius: 5px;
        z-index: 1;
    }
    /* icon bg */
    .Sub_Nav .icon.dl:after{ background: var(--base-color); }
    .Sub_Nav .icon.sc:after{ background: var(--main-color); }
    .Sub_Nav .icon.about:after{ background: var(--base-color); }
    .Sub_Nav .icon.dl:before{ background-image: url("../../../asset/images/icon_download_wh.png"); }
    .Sub_Nav .icon.sc:before{ background-image: url("../../../asset/images/icon_search_wh.png"); }
    .Sub_Nav .icon.about:before{ background-image: url("../../../asset/images/icon_company.png"); }
    
    /* Lang */
    .Sub_Nav .Lang {
        width: 180px;
    }
    .Sub_Nav .Lang a:hover{
        background: var(--main-color);
        color: #fff;
    }
    
    /* REX倶楽部 */
    .RexClub a{
        height: 30px;
    }
    .RexClub a:before,
    .RexClub a:after{
        width: 30px;
        height: 30px;
    }
    
    
    /* Nav */
	nav {
		display: flex;
        justify-content: flex-end;
	}
	nav ul{
		display: flex;
	}
    nav > ul > li {
        line-height: 1em;
    }
	nav > ul > li:not(:first-child){
        border-left: 1px solid var(--base-color);
        padding-left: 1em;
        padding-right: 1em;
	}
	nav > ul > li > a{
        position: relative;
        line-height: 1em;
        padding-left: 1em;
        padding-right: 1em;
	}
    nav > ul > li > a:hover,
    nav > ul > li.current > a{
        color: var(--main-color);
    }
	nav > ul > li > a:after{
        position: absolute;
        left: 50%;
        bottom: -15px;
        transform: translateX(-50%);
        transition: all .6s;
        content: '';
        width: 0%;
        height: 3px;
        background: var(--main-color);
	}
    nav > ul > li > a:hover:after,
    nav > ul > li.current > a:after{
        width: 90%;
    }
    .Scrl #Navigation nav > ul > li > a:after{
        bottom: -8px;
    }
    /* SubMenu */
    .SubMenu_Contents{
        position: absolute;
        left: 0;
        top: var(--hd-height);
        width: 100%;
        padding: 40px 0;
        background: rgba(255,255,255,.9);
        z-index: -1;
    }
    .Scrl .SubMenu_Contents{
        top: var(--hd-scrlheight);
    }
    
    /* REX GROUP */
    .SubMenu_Contents ul{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 20px;
    }
    .SubMenu_Contents ul li{
        width: 100%;
        max-width: calc(100% / 3);
        box-sizing: border-box;
    }
}

/* font-size */
@media screen and (min-width:1023px) and ( max-width:1200px) {
    #Navigation a {
        font-size: 14px;
    }
}


/* ------------------------------------------------------------------------
    Social
------------------------------------------------------------------------  */
#SOCIAL {
    display: flex;
    flex-wrap: wrap;
    row-gap:10px;
    column-gap:10px;
    justify-content: center;
}
#SOCIAL .Item{
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: all .6s;
}
#SOCIAL .Item:hover{
    opacity: .7;
}
#SOCIAL .Item img{
    max-width: 32px;
}
#SOCIAL .Item.x img{
    max-width: 28px;
}
#SOCIAL .Item.fb{
    background: #0866ff;
}
#SOCIAL .Item.x{
    background: #000000;
}
#SOCIAL .Item.hb{
    background: #00A4DE;
}
#SOCIAL .Item.ln{
    background: #06c755;
}

@media screen and (max-width:768px){
    #SOCIAL .Item{
        width: calc( (100% - 10px) / 2 );
    }
}
@media screen and (min-width:769px){
    #SOCIAL {
        row-gap:1.5em;
        column-gap:1.5em;
    }
    #SOCIAL .Item{
        flex: 1;
    }
}

/* ------------------------------------------------------------------------
    PAGE TITLE
------------------------------------------------------------------------  */
/* BASE */
#PAGE_TITLE {
    position: relative;
    height: 200px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    z-index: 0;
}
#PAGE_TITLE:before,
#PAGE_TITLE:after {
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    width: 100%;
    height: 100%;
}
#PAGE_TITLE:before{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -3;
}
#PAGE_TITLE:after {
    background: var(--color-mask);
    z-index: -1;
}
/* INNER */
#PAGE_TITLE .Inner{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
#PAGE_TITLE .Inner:before{
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    content: '';
    background: rgba(0,0,0,.6);
    transform: translateX(-100%)skewX(-20deg);
    z-index: -1;
    transition: all .6s;
}
/* container */
#PAGE_TITLE .Inner .container{
}

/* active */
#PAGE_TITLE.active .Inner:before{
    transform: translateX(-15%)skewX(-20deg);
}
@media screen and (min-width:769px){
    #PAGE_TITLE {
        height: 300px;
    }
    #PAGE_TITLE .Inner:before{
        width: 40%;
    }
}

/* Title */
#PAGE_TITLE h2{
    font-size: 20px;
    color: #fff;
    letter-spacing: .05em;
    line-height: 1.5em;
}
#PAGE_TITLE p{
    color: #fff;
    margin-top: .5em;
}
@media screen and (min-width:769px){
    #PAGE_TITLE h2{
        font-size: 30px;
    }
    #PAGE_TITLE p{
        font-size: 20px;
    }
}

/* ------------------------------------------------------------------------
    Breadcrumb
------------------------------------------------------------------------  */

.Breadcrumb{
    margin-top: var(--space-15);
    margin-bottom: var(--space-15);
}
.Breadcrumb ul li{
    position: relative;
    display: inline-block;
    padding-top: .5px;
    padding-bottom: .5px;
    
    font-size: .875em;
    line-height: 1.5em;
}
.Breadcrumb ul li:before {
    position: absolute;
    left: 0;
    top: 50%;
    content: '';
}
.Breadcrumb ul li:first-child {
    padding-left: 30px;
}
.Breadcrumb ul li:first-child:before {
    background-image: url("../../../asset/images/icon_home.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}
.Breadcrumb ul li:not(:first-child){
    margin-left: 1em;
    padding-left: 1em;
}
.Breadcrumb ul li:not(:first-child):before{
    transform: translateY(-45%) translateX(-6px)rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: solid 1px var(--base-color);
    border-right: solid 1px var(--base-color);
}

/* ------------------------------------------------------------------------
    footer
------------------------------------------------------------------------  */
footer {}
/* MENU */

@media screen and (max-width:1023px){
    #FT_MENU {
        display: none;
    }
}
@media screen and (min-width:1024px){
    #FT_MENU {
        background: #F6F6F1;
        padding-top: var(--space-30);
        padding-bottom: var(--space-30);
    }
    #FT_MENU .container{
        display: flex;
        column-gap: 20px;
        justify-content: center;
    }

    #FT_MENU .container .Item .sns {
        display: flex;
        justify-content: flex-end;
        column-gap: 30px;
    }
    #FT_MENU .container .Item .sns .Item{
        width: 32px;
    }
    #FT_MENU .container{
        justify-content: space-between;
    }
    #FT_MENU .container .Item .Link_Title{
        display: block;
    }
    #FT_MENU .container .Item .Link_Title,
    #FT_MENU .container .Item .Link_Title span{
        font-weight: 500;
        font-size: 18px;
    }
    #FT_MENU .container .Item .Link_List {
        margin-top: 1em;
        padding-left: .5em;
    }
    #FT_MENU .container .Item .Link_List a{
        width: 100%;
        line-height: 1.5em;
    }
    #FT_MENU .container .Item .sns {
        column-gap: 20px;
        margin-top: 30px;
    }
}

/* Social */
.FT_Social{
    display: flex;
    justify-content: flex-end;
    column-gap: 15px;
    margin-top: var(--space-20);
}
.FT_Social a{
    max-width: 30px;
}

/* Bottom */
#FT_INFO {
    background: #d4d4d4;
    padding-top: var(--space-30);
    padding-bottom: var(--space-30);
}
#FT_INFO .container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#FT_INFO .container > *{
    width: 100%;
}
#FT_INFO .container h3{
    font-size: 1.125em;
    font-weight: 500;
    margin-bottom: 15px;
}
#FT_INFO .container .RexInfo{
    line-height: 1.5em;
    font-size: .875em;
}
#FT_INFO .container .RexLink{
    display: flex;
    justify-content: center;
    margin-top: 1em;
    font-size: .875em;
}
#FT_INFO .container .RexLink a:not(:last-child):after{
    content: '　｜　';
}
#FT_INFO .container .Copy{
    margin-top: 1em;
    font-size: .75em;
    text-align: center;
}
@media screen and (min-width:769px){
    #FT_INFO .container .RexInfo{
        max-width: calc(100% - 450px);
    }
    #FT_INFO .container .RexLink{
        margin-top: 0;
        justify-content: flex-end;
        max-width: 450px;
    }
    #FT_INFO .container .Copy{
        text-align: right;
    }
}

/* ------------------------------------------------------------------------
    Page-Top
------------------------------------------------------------------------  */
#PG-Top {
}
