@charset "utf-8";
/*========= 共通ヘッダー設定 ===============*/
/*header設定*/
#header{
  position: relative;
  z-index: 10;
  /* max-width: 1240px; */
  margin: auto;
  width: 95%;
}
#head_logo {
  position: absolute;
  top: 15px;
  left: 2%;
  width: 60%;
  max-width: 600px;
  float: left;
}
#header_link {
  font-family: "MFW-KoburinaGoStdN-W3";
  position: absolute;
  top: 18px;
  right: 70px;
  width: 80%;
  float: right;
  text-align: right;
}
#header_link li {
  width: 30%;
  max-width: 300px;
  display: inline-block;
  /* background-color:rgba(255,255,255,0.7);
  border-radius: 3px; */
  padding: 3px 7px;
}
#header_link li img {
  width: 100%;
  margin: 0 5px 0 0;
  vertical-align: middle;
}
#header_link li span {
  vertical-align: middle;
}
.side_link {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: -100px;
  width: 45px;
  z-index: 10;
  /*デフォルトで非表示にする*/
  opacity: 0;
}
.active {
  opacity: 1;
  right: 0px;
  animation-name: displayAnime;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes displayAnime{
  from {
    opacity: 0;
    right: -100px;
  }
  to {
    opacity: 1;
    right: 0px;
  }
}
.side_link li {
  background-color:rgba(255,255,255,0.7);
  padding: 10px 10px;
  text-align: center;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  border-bottom: 1px solid #000;
}
.side_link li:nth-child(3) {
  border-bottom: 0px solid #000;
}
.side_link li img {
  height: 25px;
  width: 25px;
  text-align: center;
  vertical-align: inherit !important;
}
/* ###g-navのためのCSS ### */
#g-nav {
  position:fixed;
  z-index: 10;
  top:0px;
  right: -120%;
  width: 100%;
  height: 100vh;
  background-color: #10aee4;
  opacity: 0.95;
  transition: all 0.6s;
  border-left: #fff solid 2px;
}
#g-nav.change-color {
  top:0px;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
  right: 0;
}
/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5%;
}
/*ナビゲーション*/
#g-nav ul {
}
#g-nav li::before {
  content: "▶︎";
  font-size: 0.7em;
  color: #fff;
  display: inline-block;
  float: left;
  margin: 1.3% 0.3em 0 0;
}
#g-nav li.substance {
  padding-left: 1em;
}
#g-nav li a{
  text-decoration: none;
  padding:0 0 10px 0;
  display: block;
  /* font-weight: bold; */
  color: #fff;
}
#menu_cont {
  padding: 90px 2.0%;
  overflow: hidden;
}
#menu_cont .category {
  width: 32.333%;
  margin: 0.5%;
  float: left;
  height: 550px;
  border-left: #ccc solid 1px;
  padding-left: 1%;
  box-sizing: border-box;
}
#head_thumb {
  margin-bottom: 5px;
}
#menu_logo {
  width: 100%;
  padding: 2% 5%;
  box-sizing: border-box;
}
.sub-menu-title {
  color: #172a88;
  font-size: 1.2em;
  font-weight: bolder;
  line-height: 1.0em;
  margin: 10px auto;
}
.category .sns_list {
  text-align: center;
  width: 100%;
  margin: 5px auto 10px;
  padding: 0 5%;
  box-sizing: border-box;
  overflow: hidden;
}
.category .sns_list li {
  display: inline-block;
  width: 40px;
  margin: 0 5px;
}
.category p {
  color: #fff;
  /* font-weight: bold; */
  margin-bottom: 0.5em;
}

@media screen and (max-width:768px){
  #g-nav {
    right: -120%;
    width: 100%;
    height: 100vh;
  }
  #g-nav li::before{
    margin: 1.0% 0.3em 0 0;
  }
  #g-nav-list #copyright {
    padding: 0% 45% 0 0%;
  }
  #menu_cont {
    padding: 15% 2.5% 200px;
  }
  #menu_cont .category {
  }
  #menu_cont .category {
    width: 98%;
    margin: 1%;
    float: left;
    height: inherit;
  }
  .category .sns_list {
    padding: 0 10%;
  }
  .category .sns_list li {
    display: inline-block;
    width: 30px;
    margin: 0 5px;
  }

}
/*==================================================
5-2-1 3本線が×に
===================================*/
.openbtn{
  top: 10px;
  right: 15px;
  position: fixed;
  z-index: 11;
  cursor: pointer;
  width: 64px;
  height:60px;
  background-color:rgba(255,255,255,0.3);
  border-radius: 5px;
}
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: #000;
  width: 62%;
}
.openbtn span:nth-of-type(1) {
  top:11px;
}
.openbtn span:nth-of-type(2) {
  top:21px;
}
.openbtn span:nth-of-type(3) {
  top:31px;
  width: 48%;
}
.menu_text {
  text-align: center;
  font-family: "MFW-KoburinaGoStdN-W6" !important;
  font-size: 70%;
  margin-top: 55%;
  margin-left: -5px;
}
/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 14px;
  transform: translateY(6px) rotate(-45deg);
  width: 52%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
  top: 30px;
  left: 14px;
  transform: translateY(-6px) rotate(45deg);
  width: 52%;
}

footer {
  background-color: #10aee4;
  padding: 3% 0;
  text-align: center;
  color: #fff;
  font-size: 0.9em;
  float: left;
  width: 100%;
}
ul.sns_list li {
  width: 40px;
  margin: 0 15px 0 ;
  display: inline-block;
}
#g-nav ul.sns_list li::before {
  content: "●";
  font-size: 0em;
  margin: 0;
}
ul.sns_link li img {
  width: 100%;
}

.footer_logo {
  width: 10%;
  margin: 0 auto 1em;
}
#copyright {
  font-size: 0.9em;
  line-height: 1.2em;
  margin: 0;
}
#copyright p {
  text-align: center;
}

@media screen and (max-width:768px){
  #head_logo {
    top: 15px;
    left: 2%;
    width: 80%;
    max-width: 1000px;
  }
  #g-nav {
    top:-2px;
  }
  footer {
    padding: 3% 0 50px;
  }
  .footer_link {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 20;
    margin: 0;
    padding: 0;
  }
  .footer_link li {
    /* border-top: 1px solid #ccc; */
    background-color: #fff;
    width: 50%;
    float: left;
    padding: 3% 1%;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.2em;
    margin: 2% auto 0 ;
    overflow: hidden;
  }
  .footer_link li img {
    width: 12%;
    margin-right: 5px;
    vertical-align: middle;
    padding-top: -0.2em;
  }
  .footer_link li {
    background-color: #e2a130;
  }
  .footer_link li:nth-child(2) {
    background-color: #006eaa;
  }
  .footer_link li a {
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
  }
  .footer_logo {
    width: 20%;
    margin: 0 auto 1em;
  }
}
