﻿@charset "utf-8";

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: background 0.3s;
}


@media (min-width: 1324px) {
/*----------------------------------------------------サイドナビ--*/
ul.sidnav {
	position: fixed;
	bottom: 60px;
	right: 0px;
	width: auto;
	
}
ul.sidnav li {
	position: relative;
	writing-mode: vertical-rl;
	margin-bottom: 15px;
	background-color: #336699;
	border: 5px solid #fff;
	box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);
	padding-bottom: 20px;
}
ul.sidnav li a {
	font-size: 14px;
	text-decoration: none;
	color: #fff;
	padding: 3px;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 1.2em;
}
ul.sidnav li .inlok {
	display:inline-block;
}
ul.sidnav li img {
	position: absolute;
	bottom: -20px;
}
ul.sidnav li:hover {background-color: #8CBEEC;}
ul.sidnav li a:hover {color:#369;}
}

@media (max-width: 1325px) {

ul.sidnav {
	width:100%;
	display:flex;
	position:fixed;
	bottom:0;
	margin-right:60px;
	z-index:1;
}
ul.sidnav li {
	/*background-color: #078464;*/
	background-color: #369;
	width: 100%;
	border-right: 1px solid #4093df;
	height: 50px;
	text-align: center;
	padding: 5px 5px 0px;
	font-size: 12px;
	overflow: hidden;
}
ul.sidnav li:last-child {
	border-right-style: none;
}
ul.sidnav li a {
	display: block;
	color: #fff;
	padding-bottom: 0px;
	text-decoration: none;
}
ul.sidnav li {
	position:relative;
}
ul.sidnav li .inlok {
	display: none;
}
ul.sidnav li img {
	margin-left: 10px;
}
ul.sidnav .fas {
	display: block;
	text-align: center;
	font-size:20px;
}

}

@media (min-width: 1201px) {
.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: auto;
	padding-top:0.3rem;
	padding-right: 1rem;
	padding-left: 1rem;
}
/* スクロール後 */
header.scrolled {
	background: #fff;
}

}

.header-info {z-index:11;}
.logo {
	padding: 1rem 0px;
	z-index: 20;
	position: relative;
}
.logo img{ height:42px;}

@media (min-width: 1201px) {
header.scrolled .logo {padding: 0.4rem 0px;
}
header.scrolled .logo img{ height:30px;}

}

.cd-menu {
	position: relative;
}

.cd-menu ul.menu {
	list-style: none;
	display: flex;
	
}
.cd-menu ul.menu a {
	font-size: 16px;
	color: #000;
	font-weight: bold;
	text-decoration: none;
	padding-left:11px;
	padding-right:11px;


	padding-top: 10px;
	padding-bottom: 10px;
	display:block;

}
.cd-menu ul.menu li {
	position:relative;
}
.cd-menu ul.menu li:after {
	position:absolute;
	bottom:0px;
	content: '';
	width: 0;
	transition: all 0.3s ease;
	border-bottom: 1px solid #000;
	display: block;
}
.cd-menu ul.menu li:hover:after {
	width: 100%;
	border-bottom: 1px solid #000;
}
/*
.cd-menu ul.menu li:last-child:after {
	border-bottom-style: none;
}
*/
.cd-menu ul.menu .contactba:hover:after {
	border-bottom-style: none;
}
.cd-menu ul.menu .contactba:after {
	border-bottom-style: none;
}

.cd-menu ul.menu > li {
	position: relative;
	cursor: pointer;
}

.cd-menu ul.menu > li > span {
	margin-left: 0.3rem;
	display: inline-block;
	transition: transform 0.3s;
}

.cd-menu ul.menu li ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	min-width: 150px;
	display: none;
	flex-direction: column;
	transition: max-height 0.3s ease;
	z-index: 10;
}

.cd-menu ul.menu li.open ul {
	display: flex;
}

.cd-menu ul.menu li ul li {
	padding: 0.8rem 1rem;
	white-space: nowrap;
}
.cd-menu ul.menu .menu_contact { margin-left:0.2em;border-radius:20px; color:#fff; background-color:#4093df; padding:10px;box-shadow: 0px 0px 16px -6px rgba(0,0,0,1.0);transition: 0.9s ease;}
.cd-menu ul.menu .menu_contact:hover {background-color:#336699;}

.sp-menu { display:none;}


@media (max-width: 1200px) {
.hamburger{
    width: 60px;
    height: 60px;
    position: absolute;
    top: -5px;
    right: 0px;
    z-index: 20;
}

.hamburger span{
    width: 30px;
    height: 3px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    transition: .3s;
}

.hamburger span:nth-of-type(1){
    transform: translate(-50%,-10px);
}

.hamburger span:nth-of-type(3){
    transform: translate(-50%,10px);
}

.hamburger.active span:nth-of-type(1){
    transform: rotate(45deg) translate(-50%,0);
    transform-origin: 0% 50%;
}

.hamburger.active span:nth-of-type(2){
    opacity: 0;
}

.hamburger.active span:nth-of-type(3){
    transform: rotate(-45deg) translate(-50%,0);
    transform-origin: 0% 50%;
}

}

@media (max-width: 1200px) {
   .header-inner {
   }
   .header-info {
	display: flex;
	justify-content: space-between;
	background-color: #fff;
	width: 100%;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 1rem;
	}
	header .logo {padding: 0.4rem 0px;
	}
	header .logo img{ height:30px;}


  .cd-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        overflow-y: auto;
  }
  .cd-menu.active {
        transform: translateX(0);
  }

  .cd-menu ul.menu {
        /*flex-direction: column;*/
        align-items: center;
        /*gap: 1rem;*/
        width: 350px;
		display: flex;
		margin-bottom:50px;
		flex-wrap: wrap;
		justify-content: center;
  }
  .cd-menu ul.menu a {
	padding-top: 20px;
	padding-bottom: 20px;
}

  .cd-menu ul.menu li {
/*	padding: 1rem;*/
	width: 50%;
	text-align: center;
	border-bottom: 1px solid #CCC;
	margin-bottom:1em;
  }
 .cd-menu ul.menu li:first-child {
	 width:100%; text-align:left; font-weight:bold;
}
 .cd-menu ul.menu li:last-child {
	width: 100%;
	border-bottom-style: none;
}

  .cd-menu ul.menu li ul {
        position: static;
        display: none;
        box-shadow: none;
  }

  .cd-menu ul.menu li.open ul {
        display: flex;
        flex-direction: column;
  }
	ul.sp-menu {
			display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width:318px;
}
	ul.sp-menu li {font-size:14px;}
	ul.sp-menu img { height:35px;}

.cd-menu ul.menu .contactba {
	padding-bottom:10px;
}

header.scrolled .logo {padding: 0.4rem 0px;
}
header.scrolled .logo img{ height:20px;}

}

.has-sub i {
	transition: transform 0.3s;
}

.has-sub.open i {
	transform: rotate(180deg);
}

