@charset "utf-8";

body {
  font-size: 18px;
  background-color: #FBFAF6;
  font-family: 'Meiryo UI',
    'メイリオ', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Verdana, 'ＭＳ Ｐゴシック', sans-serif;
}

h1 {
  font-size: 50px;
  text-align: center;
  font-weight: bold;
  display: inline-block;
  margin-top: 50px;
}

/* ヘッダー要素の設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  background-color: #20A1C7;
  color: #ffff;
  z-index: 100;
}

header div {
  width: 100%;
  display: flex;

  .logo {
    margin-left: 20px;

    a {

      display: flex;

      img {
        width: 70px;
        height: 70px;
      }

      p {
        margin-left: 26px;
        font-size: 26px;
        display: flex;
        align-items: center;
        width: 400px;
      }
    }
  }
}

header nav {
  margin-right: 2%;
}

header div nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  li {
    width: 100px;
    height: 82px;
    text-align: center;

    a {
      padding: 30px 0;
      display: block;

    }
  }

}

/*==================================================
　5-3-3 左から右に線が伸びる（下部）
===================================*/
.selectNav {
  /*線の基点とするためrelativeを指定*/
  position: relative;
}

header nav ul li.current a,
.selectNav:hover {
  color: #fff;
}

.selectNav::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 12px;
  left: 10%;
  /*線の形状*/
  width: 80%;
  height: 2px;
  background: #fff;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0, 1);
  /*X方向0、Y方向1*/
  transform-origin: left top;
  /*左上基点*/
}

/*現在地とhoverの設定*/
header nav ul li.current a::after,
.selectNav:hover::after {
  transform: scale(1, 1);
  /*X方向にスケール拡大*/
}


/* 洗濯済み */
.selectedNav {
  /*線の基点とするためrelativeを指定*/
  position: relative;
}

header nav ul li.current a,
.selectedNav:hover {
  color: #fff;
}

.selectedNav::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 12px;
  left: 10%;
  /*線の形状*/
  width: 80%;
  height: 2px;
  background: #fff;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0, 1);
  /*X方向0、Y方向1*/
  transform-origin: left top;
  /*左上基点*/
}

/*現在地とhoverの設定*/
.selectedNav::after {
  transform: scale(1, 1);
  /*X方向にスケール拡大*/
}



main {
  margin-top: 100px;
}

/* フッター要素の設定 */
footer {
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #DEDED5;
  color: #000000;
  text-align: center;
  border: solid 1px #000;

  div {
    width: 100%;
  }

  .footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    p {
      margin-left: 1%;
    }
  }


  small {
    display: inline-block;
    background-color: #919191;
    width: 100%;
    height: 40px;
    text-align: center;
    padding-top: 15px;
  }

  .mailImg {
    width: 50px;
    height: 50px;
  }
}


/*----------------------------
scroll_up ｜下から上へ出現
----------------------------*/
.scroll_up {
  transition: 0.8s ease-in-out;
  transform: translateY(30px);
  opacity: 0;
}

.scroll_up.on {
  transform: translateY(0);
  opacity: 1.0;
}

.scroll_up_delay {
  transition: 0.8s ease-in-out;
  transform: translateY(30px);
  opacity: 0;
}

.scroll_up_delay.on {
  transform: translateY(0);
  opacity: 1.0;
}


/*----------------------------
scroll_left ｜左から出現
----------------------------*/
.scroll_left {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(-30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}

.scroll_left.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}

/*----------------------------
scroll_right ｜右から出現
----------------------------*/
.scroll_right {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}

.scroll_right.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}


/*jsで生成されるspanタグ*/


/*表示するテキストが切り替わる*/
.switchText {
  width: 100%;
  /*テキストの基点とするためrelativeを指定*/
  position: relative;
  font-size: 40px;
  text-align: center;
  display: inline-block;
  color: #333;
  outline: none;
  /*アニメーションの指定*/
  transition: all .2s;
}

/*hoverした際の変化*/
.switchText:hover {
  text-align: center;
  /* color: #ffffff; */
  display: inline-block;
}

.switchText span {
  /*絶対配置でテキストの位置を決める*/
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /*アニメーションの指定*/
  transition: all .5s;
  /*ブロック要素にしてテキスト折り返しなし*/
  display: block;
  white-space: nowrap;
}

/*差し替わるテキストの設定*/
.switchText span:nth-child(2) {
  opacity: 0;
  /*透過0に*/
  /* background-color: #121212; */
}

/*hoverするとテキストが入れ替わる設定*/
.switchText:hover span:nth-child(1) {
  opacity: 0;
  /*透過0に*/
}

.switchText:hover span:nth-child(2) {
  opacity: 1;
  /*不透明に*/
  /* background-color: #121212; */
}

/* キーボード風スタイル */
.keyboard-key {
  padding: 0px 12px;
  margin: 0 4px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
}

.keyboard-style {

  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #282828, #202020);
  box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),
    inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.75), 10px 20px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.keyboard-style::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  bottom: 14px;
  right: 12px;
  background: linear-gradient(90deg, #232323, #4a4a4a);
  border-radius: 10px;
  box-shadow: -10px -10px 10px rgba(255, 255, 255, 0.25), 10px 5px 10px rgba(0, 0, 0, 0.15);
  border-left: 1px solid #0004;
  border-bottom: 1px solid #0004;
  border-top: 1px solid #0009;
}

.keyboard-style i {
  position: relative;
  color: #FBFAF6;
}

.keyboard {
  height: 100%;

  padding: 0 10px;
  margin: 15px 10px;
  background: #EDEDED;
  border-radius: 5px;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
  color: #808080;
  text-align: center;
  line-height: 25px;
  display: inline-block;
}

.mac-key {
  /*Box Properties*/

  width: 100%;
  height: 100%;

  /* background: #fff; */
  border-radius: 5px;
  outline: none;
  border: none;
  color: #000000;
  background-color: rgb(214, 214, 214);
  box-shadow: 5px 5px 10px #474347 -5px -5px 10px #fff;

  text-align: center;
  /* color: #666; */
}






/*========= ナビゲーションのためのCSS ===============*/

#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: -120%;
  left: 0;
  width: 100%;
  height: 100vh;
  /*ナビの高さ*/
  background: #999;
  /*動き*/
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  top: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  /*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/

#g-nav li {
  list-style: none;
  text-align: center;
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}


/*==================================================
　5-2-4 MENUがCLOSEに
===================================*/

/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn {
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  z-index: 9999;
  position: fixed;
  background: #D54884;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  right: 0;
}

/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  /*アニメーションの設定*/
  position: absolute;
  left: 14px;
  height: 2px;
  border-radius: 5px;
  background: #fff;
  width: 45%;
}


.openbtn span:nth-of-type(1) {
  top: 13px;
}

.openbtn span:nth-of-type(2) {
  top: 19px;
}

.openbtn span:nth-of-type(3) {
  top: 25px;
}

.openbtn span:nth-of-type(3)::after {
  content: "Menu";
  /*3つ目の要素のafterにMenu表示を指定*/
  position: absolute;
  top: 5px;
  left: -2px;
  color: #fff;
  font-size: 0.6rem;
  text-transform: uppercase;
}

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

.openbtn.active span:nth-of-type(1) {
  top: 14px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 26px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(3)::after {
  content: "Close";
  /*3つ目の要素のafterにClose表示を指定*/
  transform: translateY(0) rotate(-45deg);
  top: 5px;
  left: 4px;
}

.onlySF {
  display: none;
}

@media screen and (max-width:640px) {

  main {
    overflow: hidden;
  }

  .onlyPC {
    display: none;
  }

  .onlySF {
    display: inline-block;
  }
}