@charset "utf-8";

/* Webメンテンナンス中のサイン*/
#MainteWeb {
  display: none; /* 消す時はnone、表示ははflexにする。 */
  width: 300px;
  left: 50%;
  margin: 100px auto;
}
/* Webメンテンナンス中のサイン*/
#MainteWeb2 {
  display: none; /* 消す時はnone、表示ははflexにする。 */
  width: 300px;
  left: 50%;
  margin: 100px auto;
}
/*==========================================*/


/*========= レイアウトのためのCSS ==========*/

/*==========================================
          ヘッターのレイアウトCSS
===========================================*/
/* header */

#header {
  background: thistle;
  top: 0px;
  left: 0px;
  height: 96px;
}

/* トップのロゴと会社名; */
#header .header_area {
  font-size: 1.5rem;
  height: 96px;
}

#header .header_area a {
  display: block;
  text-decoration: none;
}

.LogoBlock {
  display: inline-block;
  /* transform: translateY(2px); */
  top: 0px;
  left: 0px;
  padding: 0px;
  height: 96px;
  z-index: 99; /*最前面へ*/
}
.KSKLogo {
  height: 96px;
}

.CompanyBlock {
  display: inline-block;
  height: 50px;
  z-index: 99; /*最前面へ*/
  transform: translateY(-15px);
  /* background: yellow;  */
}

.CompanyForm {
    color: #333;
    margin: 0px 2px;
    font-size: large;
    /* background: red; */
}

.CompanyName {
    color: #333;
    font-size: xx-large;
    /* background: blue; */
}

/* 確認設定 */
.has-child {
  z-index: 90;
  /* background: red; */
}

/* 各ブラウザの幅による書式変更 */
@media screen and (max-width: 1200px) {
  .CompanyBlock {
    height: 40px; 
    /* background: yellow;  */
  }
  
  .CompanyForm {
    font-size: Normal;
    /* background: red; */
  }
  .CompanyName {
    font-size: x-large;
    transform: translateY(20px);
    /* background: blue; */
  }
  #g-nav-Top {
    display: none;
  }
}

@media screen and (max-width: 1045px) {
  #header {
    background: thistle;
    height: 96px;
  }

    #header .header_area {
      font-size: 1.2rem;
      height: 96px;
      /* background: green; */
    }

    #header .header_area a {
        /* トップのロゴと会社名; */
        transform: translateX(-40px);
        transform: translateY(0px); 
    }

  .LogoBlock {
    display: none;
    height: 96px;
  }

  .KSKLogo {
    display: none;
  }

  .CompanyBlock {
    height: 50px; 
    transform: translateY(25px);
    /* background: yellow;  */
  }

  .CompanyForm {
    font-size: Normal;
    transform: translateY(0px);
    /* background: red; */
  }

  .CompanyName {
    font-size: xx-large;
    /* background: blue; */
  }
}

@media screen and (max-width: 768px) {
  #header {
    background: thistle;
    height: 70px;
    /* background: green; */
  }

    #header .header_area {
      font-size: 1.2rem;
      height: 70px;
    }

    #header .header_area a {
      /* トップのロゴと会社名; */
      transform: translateX(0px);
    }

  .LogoBlock {
    height: 70px;
  }

  .CompanyBlock {
    transform: translateY(10px);
    height: 50px;
    /* background: yellow;  */
  }

  .CompanyForm {
    transform: translateY(25px);
    /* background: red; */
  }

  .CompanyName {
    font-size: xx-large;
    /* background: blue; */
  }
}

@media screen and (max-width: 640px) {
  #header {
    background: thistle;
    height: 70px;
    /* background: green; */
  }

    #header .header_area {
      font-size: 1.00rem;
      height: 70px;
    }

    #header .header_area a {
      /* トップのロゴと会社名; */
      transform: translateX(0px);
    }

  .CompanyBlock {
    transform: translateY(15px);
    height: 40px;
    /* background: yellow;  */
  }
    
  .CompanyForm {
    transform: translateY(25px);
    /* background: red; */
  }
  .CompanyName {
    font-size: xx-large;
    transform: translateY(20px);
    /* background: blue; */
  }
}

@media screen and (max-width: 500px) {
  #header {
    background: thistle;
    height: 70px;
    /* background: green; */
  }

    #header .header_area {
      font-size: 0.80rem;
      height: 70px;
    }

    #header .header_area a {
      /* トップのロゴと会社名; */
      transform: translateX(0px);
    }

  .CompanyBlock {
    transform: translateY(20px);
    height: 25px;
    /* background: yellow;  */
  }
    
  .CompanyForm {
    font-size: small;
    transform: translateY(35px);
    /* background: red; */
  }
  .CompanyName {
    font-size: x-large; /* Normal; */
    transform: translateY(30px);
    /* background: blue; */
  }
}

/*======================================================*/
/* ヘッダーの右上絵柄(アクセス・問い合わせ) */
/*======================================================*/
#header ul {
  list-style: none;
}

#header ul#utility-navi {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99;
  display: flex;
  font-size: 0.8rem;
}

#header ul#utility-navi li {
  text-align: center;
}

#header ul#utility-navi li span {
  display: block;
}

#header ul#utility-navi li a {
  color: #fff;
  padding: 15px 0;
  display: block;
  width: 100px;
  height: 96px;
  transition: all 0.5s;
}

#header ul#utility-navi li img {
  width: 35%;
}

#header ul#utility-navi li:first-child a {
  /* background: #4868ad; */
  background: #666;
}

#header ul#utility-navi li:first-child a:hover {
  /* background: #668ad8; */
  background: #999;
}

#header ul#utility-navi li:last-child a {
  /* background: #5a79bd; */
  background: #182578;
}

#header ul#utility-navi li:last-child a:hover {
  /* background: #7fa1e9; */
  background: #7381ce;
}

@media screen and (max-width: 768px) {
  #header ul#utility-navi li span {
    display: none;
  }

  #header ul#utility-navi li a {
    width: 70px;
    height: 70px;
    padding: 0;
  }

  #header ul#utility-navi li img {
    width: 45%;
    margin: 17px 0 0 0px;
  }
}

@media screen and (max-width: 640px) {
  #g-nav ul li:last-child {
    display: none;
  }

  #header ul#utility-navi li:first-child {
    display: none;
  }

  #header ul#utility-navi li:last-child a {
    background: #4868ad;
    /* background: #666; */
  }

  #header ul#utility-navi li:last-child a:hover {
    background: #668ad8;
    /* background: #999; */
  }
}

/*===========================================================*/
/*機能編  5-1-1 ドロップダウンメニュー（上） */
/*===========================================================*/

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*ナビゲーションを横並びに*/
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  z-index: 99;
  transform: translateX(-12%);
}
/*2階層目以降は横並びにしない*/
nav ul ul {
  display: block;
  z-index: 99;
  transform: translateX(20%);
}
/*3階層目以降は横並びにしない*/
nav ul ul ul {
  z-index: 99;
  transform: translateX(0%);
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
  z-index: 99;
  position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a {
  display: block;
  text-decoration: none;
  z-index: 99;
  color: #333;
  /* color: #fff; */
  padding: 20px 35px;
  transition: all 0.3s;
}

nav ul li li a {
  padding: 10px 35px;
  z-index: 99;
}

nav ul li a:hover {
  color: #fff;
  z-index: 99;
}
nav li.old-works a:hover {
  color: green;
  z-index: 99;
}
nav li.New-works a:hover {
  color: red;
  z-index: 99;
}

nav ul li a:active {
    color: #fff;
    z-index: 99;
}
nav li.old-works a:active {
  color: green;
  z-index: 99;
}
nav li.New-works a:active {
  color: red;
  z-index: 99;
}

@media screen and (max-width: 1045px) {
  nav ul {
    transform: translateX(-50%);
  }
  nav ul li a {
    padding: 20px;
  }
  nav ul li li a {
    padding: 10px 20px;
  }
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  /* border-bottom: 2px solid #fff; */
  border-right: 2px solid #fff;
  transform: rotate(135deg);
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  /* border-bottom: 2px solid #fff; */
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

@media screen and (max-width: 1045px) {
  nav ul li.has-child::before {
    left: 0;
    /* border-top: 2px solid #fff; */
    /* border-right: 2px solid #fff; */
  }
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul {
  /*絶対配置で位置を指定*/
  position: absolute;
  left: 0;
  top: 62px;
  z-index: 4;
  /*形状を指定*/
  background: #668ad8;
  /* background: #999; */
  /* background:rgba(255,255,255,0.2); */
  width: 180px;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  /*アニメーション設定*/
  transition: all 0.3s;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul {
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a {
  color: #fff;
  border-bottom: solid 1px rgba(255, 255, 255, 0.4);
}
nav li.old-works ul li a {
  color: green;
  border-bottom: solid 1px rgba(255, 255, 255, 0.4);
}
nav li.New-Works ul li a {
  color: red;
  border-bottom: solid 1px rgba(255, 255, 255, 0.4);
}

nav li.has-child ul li:last-child a {
    border-bottom: 1px solid #ccc;
  /* border-bottom: none; */
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
  color: #fff;
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}
nav li.old-works ul li a:hover,
nav li.old-works ul li a:active {
  color: green;
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}
nav li.New-Works ul li a:hover,
nav li.New-Works ul li a:active {
  color: red;
  /* color: #fff; */
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}

/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul {
  top: 0;
  left: 182px;
  background: #5e84d4;
  /* background: #888; */
  color: #fff;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active {
  color: #fff;
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}
nav li.old-works ul ul li a:hover,
nav li.old-works ul ul li a:active {
  color: green;
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}
nav li.New-Works ul ul li a:hover,
nav li.New-Works ul ul li a:active {
  color: red;
  /* background: #999; */
  background:rgba(255,255,255,0.2);
}

/*==1300px以下の形状*/

@media screen and (max-width: 1045px) {
  nav {
    padding: 0;
  }

  nav ul {
    /* display: flex; */
    display: block;
  }

  nav ul li a {
    border-bottom: 1px solid #ccc;
  }

  /*矢印の位置と向き*/

  nav ul li.has-child::before {
    left: 20px;
  }

  nav ul ul li.has-child::before {
    transform: rotate(135deg);
    left: 20px;
  }

  nav ul li.has-child.active::before {
    transform: rotate(-45deg);
  }
}

/*===========================================================*/
/*機能編  5-1-6 スクロール途中から上部固定 */
/*===========================================================*/

#header {
  position: fixed; /*fixedを設定して固定*/
  /* height: 96px;*/ /*高さ指定 */
  width: 100%; /*横幅指定*/
  z-index: 99; /*最前面へ*/
  /*以下はレイアウトのためのCSS*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 20px 100px 20px 0;
}

/*==ふわっと出現させるためのCSS*/

/*　上に上がる動き　*/

#header.UpMove {
  position: fixed;
  width: 100%;
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

#header.DownMove {
  position: fixed;
  width: 100%;
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1045px) {
  #header,
  #header.UpMove,
  #header.DownMove {
    animation: none;
    height: auto;
    padding: 0;
    display: block;
  }
}

/*==============================================
機能編 　5-1-11 クリックしたらナビが上から下に出現
==============================================*/

@media screen and (max-width: 1045px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 99;
    /*ナビのスタート位置と形状*/
    top: -120%;
    left: 0px;
    width: 100%;
    height: 100vh; /*ナビの高さ*/
    background: #668ad8;
    /* background: #999; */
    /* background:rgba(0,0,0,0.8); */
    /*動き*/
    transition: all 0.6s;
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    top: 0;
  }

  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 99;
    width: 90%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /*ナビゲーション*/
  #g-nav ul {
    /*ナビゲーション天地中央揃え*/
    /* position: absolute; */
    /* z-index: 99; */
    /* top:50%; */
    /* left:50%; */
    /* transform: translate(-50%,-50%); */
    width: 90%;
    margin: 10% 5% 0 5%;
    transform: translateX(5%);
  }

  #g-nav ul ul {
    width: 100%;
    margin: 0;
  }

  /*プルダウンナビのCSS*/
  #g-nav ul li.has-child ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible; /* JSで制御するため一旦表示 */
    opacity: 1; /* JSで制御するため一旦表示 */
    display: none; /* JSのslidetoggleで表示させるため非表示に */
    transition: none; /* JSで制御するためCSSのアニメーションを切る */
    transform: none;
  }

  /*リストのレイアウト設定*/

  #g-nav li {
    list-style: none;
    text-align: center;
  }

  #g-nav li a {
    /* color: #333; */
    /* color: #999; */
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}

@media screen and (max-width: 768px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 99;
    /*ナビのスタート位置と形状*/
    top: -120%;
    right: 0px;
    width: 100%;
    height: 100vh; /*ナビの高さ*/
    background: #668ad8;
    /* background: #999; */
    /*動き*/
    transition: all 0.6s;
  }
}

/*===========================================================*/
/*機能編  5-2-1　3本線が×に*/
/*===========================================================*/

.g-nav-openbtn {
  display: none;
}

@media screen and (max-width: 1045px) {
  .g-nav-openbtn {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /*ボタンを最前面に*/
    cursor: pointer;
    width: 96px;
    height: 96px;
    background: #182578;
  }

  /*×に変化*/
  .g-nav-openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 23px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 45%;
  }

  .g-nav-openbtn span:nth-of-type(1) {
    top: 33px;
  }

  .g-nav-openbtn span:nth-of-type(2) {
    top: 46px;
  }

  .g-nav-openbtn span:nth-of-type(3) {
    top: 58px;
  }

  .g-nav-openbtn.active span:nth-of-type(1) {
    top: 41px;
    left: 28px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }

  .g-nav-openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .g-nav-openbtn.active span:nth-of-type(3) {
    top: 52px;
    left: 28px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
}

@media screen and (max-width: 768px) {
  .g-nav-openbtn {
    width: 70px;
    height: 70px;
  }

  /*×に変化*/
  .g-nav-openbtn span {
    left: 17px;
  }

  .g-nav-openbtn span:nth-of-type(1) {
    top: 20px;
  }

  .g-nav-openbtn span:nth-of-type(2) {
    top: 33px;
  }

  .g-nav-openbtn span:nth-of-type(3) {
    top: 45px;
  }

  .g-nav-openbtn.active span:nth-of-type(1) {
    top: 28px;
    left: 22px;
  }

  .g-nav-openbtn.active span:nth-of-type(3) {
    top: 40px;
    left: 22px;
  }
}

/*==========================================
　機能編 5-3-3 左から右に線が伸びる（下部）
===========================================*/
.nav01c li a {
  /*線の基点とするためrelativeを指定*/
  position: relative;
}

.nav01c li.current a {
  color: #eee; /*プルダウンメニューの文字色(サイト選択)*/
}

.nav01c li a:hover {
  color: #aaa; /*プルダウンメニューの文字色(マウス選択*/
}

.nav01c li a::after {
  content: "";
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 16px;
  left: 25%;
  /*線の形状*/
  width: 50%;
  height: 1px;
  background: gray;
  /*アニメーションの指定*/
  transition: all 0.3s;
  transform: scale(0, 1); /*X方向0、Y方向1*/
  transform-origin: left top; /*左上基点*/
}

.nav01c li li a::after {
  display: none;
}

/*現在地とhoverの設定*/
.nav01c li.current a::after,
.nav01c li a:hover::after {
  transform: scale(1, 1); /*X方向にスケール拡大*/
}

@media screen and (max-width: 1045px) {
  .nav01c li a::after {
    display: none;
  }
}

/*==========================================
          ボタンのレイアウトCSS
===========================================*/

.btn-square-emboss {
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  background: #668ad8;/*ボタン色*/
  color: #4868ad;/*ボタン色より暗く*/
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
  border-bottom: solid 3px #627295;
  border-radius: 3px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-square-emboss:active  {
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
  border-bottom: none;
}

/*==========================================
          フッターのレイアウトCSS
===========================================*/

/* footer */

#footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

#footer .footer-r {
  width: 70%;
  padding: 30px;
  background: #182578;
  color: #fff;
}

#footer .footer-r .map-address {
  display: flex;
  justify-content: center;
  align-items: center;
}

#footer .footer-r .map-address address {
  font-style: normal;
  margin: 0 0 30px 0;
}

#footer .footer-r .map-area {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 30px 0;
}

#footer .footer-r .map-area h2 {
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.3rem;
  width: 10%;
  height: 10em;
  letter-spacing: 0.3em;
  text-align: center;
}

#footer .footer-r .map-address {
  width: 30%;
}

#footer .footer-r .map-block {
  width: 50%;
}

#footer .footer-r .iframe-area {
  position: relative;
  padding-bottom: 51.65%;
  padding-top: 20px;
  height: 0;
  overflow: hidden;
}

#footer .footer-r .iframe-area iframe,
#footer .footer-r .iframe-area object,
#footer .footer-r .iframe-area embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#footer .footer-link {
  font-size: 0.9rem;
  padding: 0 0 0 50px;
}

#footer .footer-link li {
  display: flex;
  /* display: inline-block; */
  /* background: lightblue; */
}

/* フッターのメニューリスト */
#f-nav #F-nav-list {
  display: flex;
}

/*2階層目以降は横並びにしない*/
#f-nav #F-nav-list ul ul {
  display: block;
  color: red;
  /* transform: translateX(30%); */
}

/* #footer .footer-link a {
  color: #fff;
} */

/* #footer .footer-link a::after {
  content: "/";
  padding: 0 10px;
} */

#footer .footer-link li:last-child a::after {
  content: "";
  padding: 0;
}

#footer .footer-l {
  width: 30%;
  background: #333333;
}

#footer .footer-l .footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #cccccc;
  height: 35vh;
}

#footer .footer-l .footer-contact-area h2 {
  font-size: 1.6rem;
  margin: 10px 0 5px 0;
  letter-spacing: 0.1em;
}

#footer .footer-l .footer-contact-area a {
  font-size: 1.3rem;
  padding: 0 0 5px 0;
  display: inline-block;
}

#footer .footer-l .footer-contact-area p {
  font-size: 1.0rem;
  padding: 0 0 5px 0;
  display: inline-block;
}

@media screen and (max-width: 1300px) {
  #footer .footer-l .footer-contact-area h2 {
    font-size: 1.3rem;
  }
  
  #footer .footer-l .footer-contact-area a {
    font-size: 1.0rem;
  }
  
  #footer .footer-l .footer-contact-area p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 960px) {
  #footer .footer-l .footer-contact-area h2 {
    font-size: 1.6rem;
  }
  
  #footer .footer-l .footer-contact-area a {
    font-size: 1.3rem;
  }
  
  #footer .footer-l .footer-contact-area p {
    font-size: 1.0rem;
  }
}


#footer #copyright {
  background: #333333;
  color: #ccc;
  display: flex;
  text-align: center;
  margin-top: 20px;
  margin-left: auto;
  padding: 5px;
  height: 55vh;
}
#footer .Copy_Logo {
  display: flex;
  text-align: center;
  margin: 5px auto 0px auto;
}


.KSK-QR {
  display: block;
  width: 160px;
  height: 160px;
}

.Gifu-SDGs {
  display: block;
  width: 260px;
  height: auto;
}

#footer #copyright a h3 {
  color: lightpink;
}

#footer #page-top {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#footer #page-top span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-top: 2px solid #182578;
  border-left: 2px solid #182578;
  transform: rotate(45deg);
}

@media screen and (max-width: 1045px) {
  #footer .footer-r,
  #footer .footer-l {
    width: 100%;
  }

  #footer .footer-l .footer-contact,
  #footer #copyright {
    height: inherit;
    padding: 20px 0;
  }

  #footer .footer-r .map-area h2 {
    width: 5%;
  }

  #footer .footer-link {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  #footer .footer-r {
    padding: 60px 20px;
  }

  #footer .footer-r .map-area {
    margin: 0;
  }

  #footer .footer-link {
    display: none;
  }

  #footer .footer-r .map-area h2 {
    width: 100%;
    height: inherit;
    margin: 0 0 20px 0;
    -ms-writing-mode: lr-tb;
    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;
  }

  #footer .footer-r .map-address {
    width: 48%;
  }

  #footer #page-top {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 560px) {
  #footer .footer-r .map-address,
  #footer .footer-r .map-block {
    width: 100%;
  }

  #footer .footer-r .map-address {
    margin: 0 0 20px 0;
  }
}


/*==========================================
共通　横並びのための設定
===========================================*/

/* #f-nav-list {
  background: red;
} フッターのメニュー位置確認*/

.footer-link {
  display: flex;
  flex-wrap: wrap; /*スマホ表示折り返し用なのでPCのみなら不要*/
  margin: 0 0 30px 0;
  list-style: none;
  transform: translateX(0%);
}

.footer-link li a {
  display: block;
  padding: 5px 20px;
  text-decoration: none;
  /* color: red; */
  color: #fff;
}

.footer-link li {
  margin-bottom: 10px;
}

/*==========================================
　5-3-6 左から右に線が伸びて背景になる
===========================================*/

/*背景の設定*/

.footer-link li a {
  /*背景色の基点とするためrelativeを指定*/
  position: relative;
  /*アニメーションの指定*/
  transition: all 0.7s;
}
.footer-link li a:hover {
  color: #182578;
}
.footer-link li a::after {
  content: "";
  /*絶対配置で線の位置を決める*/
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  /*背景の形状*/
  width: 0;
  height: 1px;
  background: #fff;
  opacity: 0; /*はじめは透過を0に*/
}

/*現在地とhoverの設定*/
.footer-link li.current a::after,
.footer-link li a:hover::after {
  /*背景の形状*/
  width: 100%;
  opacity: 1;
  /*アニメーションの指定*/
  animation: bgappear 0.5s forwards;
}
.footer-link li.current {
  color: #182578;
}

/*アニメーションで線を伸ばして背景をつける*/
@keyframes bgappear {
  0% {
    width: 0%;
    height: 1px;
  }
  50% {
    width: 100%;
    height: 1px;
  }
  100% {
    width: 100%;
    height: 100%;
    background: #fff;
  }
}

/*現在地とhoverの設定*/
.footer-link li.current a,
.footer-link li a:hover {
  color: #182578;
  /*テキストを最前面へ*/
  z-index: 1;
}
