/* ------------------------------------------------------------------------
    Header
------------------------------------------------------------------------  */

header {
	width: 100%;
	z-index: 20;
	transition: background-color .4s linear;
	background: #fff;
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
header .HD_container{
	position: relative;
	height: 70px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding-left: 15px;
	padding-right: 70px;
}
header .HD_container h1{
	display: flex;
	align-items: center;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.3em;
}
header h1 .HD_Logo{
	margin-right: 1em;
}
/* 代理店名 */
header h1 .sitename{
	position: relative;
	display: inline-flex;
	align-items: center;
}
header h1 .sitename .agency{
	position: absolute;
	left: 0;
	top: calc(-1em - 10px);
	font-size: 12px;
	font-weight: 500;
	padding-left: .5em;
	color: #999;
}
header h1 .HD_Logo img{
	height: auto;
	width: auto;
	max-width:130px; 
	max-height: 40px;
	object-fit: contain;
}
@media screen and (max-width:769px){
	header {
		position: fixed;
	}
	header h1 .HD_Logo img{
		max-width: 100px;
	}
	header h1 .sitename {
		padding-top: 10px;
	}
	header h1 .sitename .agency{
		top: -10px;
	}
}
@media screen and (min-width:1024px){
	header a.sitename:hover {
		color: #323232;
	}
	header .HD_container{
		height: 100px;
		padding-right: 15px;
	}
	header .HD_container h1{
	}
	header h1 .HD_Logo{
		max-width: 300px;
	}
	header h1 .HD_Logo{
		max-height: 60px;
	}
	header h1 .HD_Logo img{
		height: 60px;
		object-fit: contain;
	}
}



/* ------------------------------------------------------------------------
    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: #323232;
	transition: all .5s;
}
.hamburger.open span{
	background-color: #323232;
}
.Scrl .hamburger span {
	background-color: #323232;
}
.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:1024px){
	#TOP-PAGE .hamburger span {
		background-color: #fff;
	}
	#TOP-PAGE .hamburger.open span {
		background-color: #323232;
	}
}
/* none */
@media screen and (min-width:1024px){
	.hamburger{display: none;}
}
/* ------------------------------------------------------------------------
    PAGETITLE
------------------------------------------------------------------------  */
#PG-Title {
	background:#323232;
	line-height:1.3em;
	padding-top: 77px;
	padding-bottom: 7px;
	text-align: center;
	font-size: 1.1em;
	font-weight: bold;
	color: #FFF;
}
@media screen and (min-width:1201px){
	#PG-Title {
		padding-top: 7px;
	}
}


/* ------------------------------------------------------------------------
    nav
------------------------------------------------------------------------  */
/* Nav */
nav {}
/* SP Overlay */
.Overlay {}
.Overlay.open {}
.NavSp{}
.SubMenu {display: none;}
.SubMenu.active {display: block;}
.HD-Logout {
	width: 150px;
}
@media screen and (min-width:1400px){
	.HD-Logout {
		width: 200px;
	}
}
/* SP */
@media screen and (max-width:1023px){
	nav{
		background: #fff;
	}
	/* drawer menu */
	nav.nav_list {
		width: 100%;
		height: calc(100% - 70px);
		padding-bottom: 61px;
		position: fixed;
		top: 70px; /* right:-100% or left:-100% */
		right: -100%;
		z-index: 100;
		transition: all .6s 0s ease;

		overflow: auto !important;
		overflow-x: auto !important;
		overflow-y: scroll !important;
		webkit-overflow-scrolling: touch;
	}
	nav.nav_list.open {
		/* Top */
		right:0; /* right:0 or left:0 */
		transition: all .5s 0s ease;
	}
	nav ul.navigation{
		padding-top: 15px;
		padding-bottom: 20px;
		background: #fff;
	}
	nav ul.navigation > li {
		padding: 0 20px;
		list-style: none;
		border-top: 1px solid #dcdcdc;
	}
	nav ul.navigation > li:first-child {
		border-top: none;
	}
	nav ul.navigation > li > a{
		text-decoration: none;
		position: relative;
		display: block;
		vertical-align: middle;
		
		padding-top: 1.5em;
		padding-bottom: 1.5em;
	}
	nav ul.navigation > li > a.single::before{
		position: absolute;
		margin: auto;
		content: "";
		vertical-align: middle;

		right: 12px;
		top:0;
		bottom:0;

		width: 6px;
		height: 6px;
		border-top: 1px solid #717171;
		border-right: 1px solid #717171;
		transform: rotate(45deg);
	}
	
	/* SubMenu */
	.SubMenu {
		margin-bottom: 20px;
	}
	.SubMenu li a{
		display: block;
		position: relative;
		padding-left: .5em;
		padding-right: .5em;
		padding-top: .75em;
		padding-bottom: .75em;
		
		background: #dcdcdc;
		border-radius: 3px;
		margin-bottom: .5em;
	}
	.SubMenu li a:not(.link):after{
		display: block;
		content: "";
		position: absolute;
		top: 50%;
		right: 10px;
		width: 6px;
		height: 6px;
		border-top: solid 1px #666;
		border-right: solid 1px #666;
	    transform: translateY(-50%) rotate(45deg);
	}
	/* link */
	.SubMenu li a.link:after{
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		content: '';
		width: 14px;
		height: 13px;
		background-image: url("../images/blank.png");
		background-size: cover;
	}
	/* LOGOUT */
	.HD-Logout {
		width: 90%;
		margin-top: 30px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* PC */
@media screen and (min-width:1024px){
	.NavSp{display: none !important;}
	nav {
		display: flex;
		align-items: center;
	}
	nav ul.navigation{
		display: flex;
		margin-right: 20px;
	}
	nav ul.navigation > li{
		padding-left: 5px;
		padding-right: 5px;
	}
	nav ul.navigation > li > a{
		display: block;
		text-align: center;
		font-weight: 500;
	}
	nav ul.navigation li a:hover{
		color: #1c7cd5;
	}
	/* Submenu */
	.SubTriger {
		position: relative;
	}
	.SubTriger .triger{
		padding-right: 1.5em;
	}
	.SubMenu {
		display: none;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		width:200%;
		height: auto;
		padding: 15px;
		background: #fff;
		border-radius: 5px;
		white-space: nowrap;
		z-index: 10;
		
		box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
	}
	.SubMenu li{
		width: 100%;
	}
	.SubMenu li a{
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 3px 5px;
		transition: all .2s;
		background: #fff;
	}
	.SubMenu li a:hover{
		background: #ececec;
		border-radius: 3px;
	}
	/* link */
	.SubMenu li a.link{
		position: relative;
	}
	.SubMenu li a.link:after{
		position: absolute;
		right: 5px;
		top: 50%;
		transform: translateY(-50%);
		content: '';
		width: 14px;
		height: 13px;
		background-image: url("../images/blank.png");
		background-size: cover;
	}
}


/* ------------------------------------------------------------------------
    main section
------------------------------------------------------------------------  */
section {
  position: relative;
  margin: 100px auto;
}
main {
}
@media screen and (max-width: 1040px) {
  section {
    margin: 50px auto;
  }
  main {
    position: relative;
    padding-top: 70px;
  }
}

/* ------------------------------------------------------------------------
    sidebar
------------------------------------------------------------------------  */
.sidebar {
  position: sticky;
  top: 50px;
  height: 100vh;
}
.sidebar ul {
  list-style: none;
}
.sidebar ul li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 15px;
}
.sidebar ul li:hover {
  font-weight: bold;
  color: #1c7cd5;
}
.sidebar ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 7px;
  height: 10px;
  background: url(../images/side_arrow.png) no-repeat center/contain;
}
@media screen and (max-width: 991px) {
  .sidebar {
    position: relative;
    top: 0;
    height: auto!important;
    margin-bottom: 20px;
  }
  .sidebar ul li {
    margin-bottom: 10px;
    padding: 0;
    font-weight: bold;
    color: #3b7fdb;
    border: 1px solid #1c7cd5;
    border-radius: 5px;
  }
  .sidebar ul li a {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
  }
  .sidebar ul li:before {
    left: 95%;
    background: url(../images/qa_arrow.png) no-repeat center/contain;
    transform: rotate(90deg);
  }
}


/* ------------------------------------------------------------------------
    footer
------------------------------------------------------------------------  */
footer {
  padding: 45px 0;
  color: #3B4043;
  border-top: 2px solid #CCCCCC;
}
footer .container {
	position: relative;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
  list-style: none;
}
footer ul li {
  position: relative;
  margin: 5px 10px 5px 0;
  padding-right: 10px;
}
footer ul li:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 1px;
  height: 60%;
  background: #3b4043;
}
footer ul li:last-child:after {
  display: none;
}
footer .sns {
  display: none;
  margin: 20px auto;
}
footer .sns a {
  padding-right: 15px;
}
footer .copyright {
  font-size: 10px;
}
footer .entry-btn {
	width: auto;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  padding: 20px 40px;
  font-weight: 500;
  color: #004bb1;
  background: #fff;
  border: 2px solid #cdd6dd;
  border-radius: 50px;
	cursor: pointer;
}

@media screen and (max-width: 991px) {
  footer {
	  /*
    padding: 0 0 80px;
	  */
    color: #707f89;
    border: none;
  }
  footer .entry-btn {
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-radius: 0;
  }
  footer .entry-btn-red {
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-radius: 0;
  }
}

/* ------------------------------------------------------------------------
    To Top
------------------------------------------------------------------------  */
#TO_TOP {
	position: fixed;
	right: 10px;
	bottom: 10px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(145,159,172,.8);
	transition: all .6s;
	z-index: 20;
	opacity: 0;
	visibility: hidden;
}
#TO_TOP:after {
	display: block;
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;

	width: 10px;
	height: 10px;
	margin-top: 2.5px;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: translate(-50%,-50%) rotate(-45deg);
	
	transition: all .2s ease;
}
/* active */
#TO_TOP.active {
	visibility: inherit;
	opacity: 1;
}
@media screen and (min-width:769px){
	#TO_TOP {
		right: 40px;
		bottom: 40px;
	}
}
