header {
  /* headerを画面上部に固定する */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* ロゴとナビゲーションを横並びにする */
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* スクロールしても他のコンテンツの下にならないようにする */
  z-index: 10;
  /* 背景色を黒にする */
  background: none;
  /* headerに余白を作る */
  padding: 0;
  /* アニメーションの変化時間 */
  transition: 0.5s;
  height: 78px;
}

.head-nav {
  width: 1400px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  box-sizing: border-box;
}

/* ロゴのデザイン */
.logo {
  color: #3e3a39;
  /* アニメーションの変化時間 */
  transition: 0.5s;
  width: 310px;
}

.logo > svg {
  fill: currentColor;
  width: 100%;
  height: auto;
  padding-top: 5px	
}

.logo:hover {
  opacity: 1;
}

/* ナビゲーションのリンクを横並びにする */
header ul {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 5px;
  padding-left: 0;
  margin: 0;
}

header li {
  list-style: none;
}

/* ナビゲーションのリンクのスタイル調整 */
header ul li a,
ul li.gnavi__list span {
  display: inline-block;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1px;
  /* アニメーションの変化時間 */
  transition: 0.5s;
  padding: 25px 28px 27px 0;
}

header a.en-link {
  color: #000;
  background-color: #fff;
  padding: 8px 25px;
  border-radius: 20px;
  border: 1px solid #0f0f0f;
}

/* スクロールして「scroll-navクラス」がついたときのヘッダーデザイン */
header.scroll-nav {
  /* 背景を黒にする */
  background: #0f0f0fcc;
  /* コンテンツの背景が白でもナビゲーションだと分かりやすいように影をつける */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* 「scroll-navクラス」がヘッダーについたときに、ロゴとナビゲーションの文字を黒にする */
header.scroll-nav .logo {
  color: #fff;
}

/* svgにcolorの数値を渡す */
header.scroll-nav .logo > svg > path,
header.scroll-nav .logo > svg > polygon,
header.scroll-nav .logo > svg > rect {
  fill: currentColor;
}

header.scroll-nav ul li a,
header.scroll-nav ul li span {
  color: #fff;
  cursor: pointer;
}

#smp_nav.list_active ul li span {
  color: #fff;
  font-size: 18px;
}

header.scroll-nav .openbtn span,
.openbtn.active span {
  background-color: #fff;
  font-size: 18px;
}

header.scroll-nav a.en-link {
  color: #000;
}

ul li.gnavi__list span:after {
  content: "";
  background-image: url(../img/arrow-icon-02.png);
  background-repeat: no-repeat;
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 10px;
  background-size: contain;
  vertical-align: middle;
  transform: rotate(0deg);
  transition: 0.2s;
}

header.scroll-nav ul li.gnavi__list span:after {
  content: "";
  background-image: url(../img/arrow-icon-02w.png);
  background-repeat: no-repeat;
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 10px;
  background-size: contain;
  vertical-align: middle;
  transform: rotate(0deg);
  transition: 0.3s;
}

header.scroll-nav ul li.gnavi__list span:hover:after {
  transform: rotate(180deg);
  transition: 0.3s;
}

@media screen and (min-width: 1279px) {
  /* ドロップダウンメニュー */
  .dropdown__lists {
    transform: scaleY(0);
    display: none;
  }
  .gnavi__list:hover .dropdown__lists {
    transform: scaleY(1); /*Gナビメニューにホバーしたら表示*/
    transform-origin: center top;
    transition: all 0.3s;
    width: 100%;
    position: absolute;
    top: 78px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: rgb(0, 0, 0, 0.6);
    left: 0;
    padding: 20px 0;
  }
  .dropdown__list {
    background-color: none;
    height: 60px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 1400px;
    margin: 0 auto;
  }
  .dropdown__list:not(:first-child)::before {
    content: "";
    width: 100%;
    height: 1px;
    background-color: none;
    position: absolute;
    top: 0;
    left: 0;
  }
  .dropdown__list:hover {
  }

  .dropdown__list a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #bababa !important;
    text-decoration: none;
    position: absolute;
    left: 725px;
    padding: 20px 0;
  }

  .dropdown__list a:hover {
    color: #fff !important;
    opacity: 1;
  }

  .dropdown__list a#text {
    width: 18em;
  }

  .dropdown__list a:after {
    background-image: url(../img/arrow-icon-01w.png) !important;
    height: 10px !important;
    margin-left: 25px !important;
  }
}

/*==== ナビ調整用 ====*/
@media screen and (max-width: 1400px) {
  .dropdown__list a {
    margin-left: -1%;
  }
}
@media screen and (max-width: 1385px) {
  .dropdown__list a {
    margin-left: -2%;
  }
}
@media screen and (max-width: 1370px) {
  .dropdown__list a {
    margin-left: -3%;
  }
}
@media screen and (max-width: 1355px) {
  .dropdown__list a {
    margin-left: -4%;
  }
}
@media screen and (max-width: 1340px) {
  .dropdown__list a {
    margin-left: -5%;
  }
}
@media screen and (max-width: 1325px) {
  .dropdown__list a {
    margin-left: -6%;
  }
}
@media screen and (max-width: 1310px) {
  .dropdown__list a {
    margin-left: -7%;
  }
}
@media screen and (max-width: 1295px) {
  .dropdown__list a {
    margin-left: -8%;
  }
}
@media screen and (max-width: 1279px) {
  .dropdown__list a {
    margin-left: 0;
  }
}
/*================ タブレット表示用 =======================*/
@media screen and (max-width: 1279px) {
  header {
    height: 70px;
  }

  .head-nav {
    padding: 0 20px;
  }

  .logo {
    font-size: 20px;
    z-index: 99999;
    padding: 0;
    margin-bottom: 0;
  }

  header a.en-link {
    padding: 10px 30px !important;
    margin-right: 20px;
    margin-top: 20px;
  }

  header.scroll-nav .logo {
  }

  /* 四角の部分 */
  .openbtn {
    position: fixed; /* 設置する位置を固定 */
    top: 12px;
    right: 20px;
    z-index: 9999; /* 一番手前に表示 */
    cursor: pointer; /* カーソルが上に来たらポインターに変身 */
    width: 50px; /* 横幅５０px */
    height: 50px; /* 縦幅５０px */
    background-color: none; /* 四角の色 */
  }

  /* ３本線 */
  .openbtn span {
    display: inline-block;
    transition: all 0.4s; /* 変化速度 */
    position: absolute; /* 四角い箱に対して線の位置を調整するためのおまじない */
    left: 14px; /* 四角の箱の左から１４pxの位置 */
    width: 45%; /* 線の幅 */
    height: 3px; /* 線の太さ */
    border-radius: 2px; /* 線の角を少し丸く */
    background-color: #000; /* 線の色 */
  }
  .openbtn span:nth-of-type(1) {
    top: 15px; /* １本目の線の四角い箱の上からの位置 */
  }
  .openbtn span:nth-of-type(2) {
    top: 23px; /* ２本目の線の四角い箱の上からの位置 */
  }
  .openbtn span:nth-of-type(3) {
    top: 31px; /* ３本目の線の四角い箱の上からの位置 */
  }

  /* ×に変化 */
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    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: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg); /* １本目の線の角度と上からの位置の変更 */
    width: 30%;
  }

  /* メニューのレイアウト */
  nav ul {
    text-align: center;
    width: 100%;
  }
  nav ul li a {
    color: #fff;
    padding: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 18px;
  }
  #smp_nav ul {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
    padding-top: 0px;
  }

  #smp_nav ul li {
    padding: 25px 0;
    border-top: 1px solid #3e3a39;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  #smp_nav ul li.dropdown__list {
    width: 100%;
  }

  #smp_nav ul li a,
  ul li.gnavi__list span {
    padding: 0 20px;
    font-size: 18px;
    font-weight: 500;
  }

  /* クラスが付与される前のレイアウト */
  #smp_nav {
    position: fixed;
    z-index: 999;
    top: 0px;
    right: -120%; /* 画面の右側に隠すためのコード */
    width: 30%;
    height: 100vh;
    background-color: #121212;
    transition: all 0.6s;
  }

  /* クラスが付与された後のレイアウト */
  #smp_nav.list_active #smp_list {
    position: fixed;
    z-index: 999;
    width: 30%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #smp_nav.list_active {
    right: 0;
  }

  /* クラスが付与される前のレイアウト */
  .dropdown__lists {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -120%; /* 画面の右側に隠すためのコード */
    width: 30%;
    height: 100vh;
    background-color: #121212;
    transition: all 0.6s;
    justify-content: flex-start;
    margin-top: 141px !important;
  }

  /* クラスが付与された後のレイアウト */
  .dropdown__lists.dlist_active {
    position: fixed;
    z-index: 1000;
    right: 0;
    width: 30%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    top: 0px;
    margin-top: 141px !important;
  }

  header.scroll-nav ul li.gnavi__list span.dnav:after {
    transform: rotate(0deg);
    transition: 0.3s;
  }
  header.scroll-nav ul li.gnavi__list span.dnav.active:after {
    transform: rotate(180deg);
    transition: 0.3s;
  }
}

/*================ スマホ表示用 =======================*/
@media screen and (max-width: 767px) {
  header {
    height: 70px;
  }

  .head-nav {
    padding: 0 20px;
  }

  .logo {
    z-index: 99999;
    padding: 0;
    margin-bottom: 0;
    width: 230px;
  }

  header a.en-link {
    padding: 10px 30px !important;
    margin-left: 20px;
    margin-top: 20px;
  }

  .logo > svg {
    width: 100%;
  }

  header.scroll-nav .logo {
  }

  /* 四角の部分 */
  .openbtn {
    position: fixed; /* 設置する位置を固定 */
    top: 12px;
    right: 20px;
    z-index: 9999; /* 一番手前に表示 */
    cursor: pointer; /* カーソルが上に来たらポインターに変身 */
    width: 50px; /* 横幅５０px */
    height: 50px; /* 縦幅５０px */
    background-color: none; /* 四角の色 */
  }

  /* ３本線 */
  .openbtn span {
    display: inline-block;
    transition: all 0.4s; /* 変化速度 */
    position: absolute; /* 四角い箱に対して線の位置を調整するためのおまじない */
    left: 14px; /* 四角の箱の左から１４pxの位置 */
    width: 45%; /* 線の幅 */
    height: 3px; /* 線の太さ */
    border-radius: 2px; /* 線の角を少し丸く */
    background-color: #000; /* 線の色 */
  }
  .openbtn span:nth-of-type(1) {
    top: 15px; /* １本目の線の四角い箱の上からの位置 */
  }
  .openbtn span:nth-of-type(2) {
    top: 23px; /* ２本目の線の四角い箱の上からの位置 */
  }
  .openbtn span:nth-of-type(3) {
    top: 31px; /* ３本目の線の四角い箱の上からの位置 */
  }

  /* ×に変化 */
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    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: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg); /* １本目の線の角度と上からの位置の変更 */
    width: 30%;
  }

  /* メニューのレイアウト */
  nav ul {
    text-align: center;
    width: 100%;
  }
  nav ul li a {
    color: #fff;
    padding: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 18px;
  }
  #smp_nav ul {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
  }

  #smp_nav ul li {
    padding: 25px 0;
    border-top: 1px solid #3e3a39;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #smp_nav ul li a,
  ul li.gnavi__list span {
    padding: 0 20px;
    font-size: 18px;
    font-weight: 500;
  }

  /* クラスが付与される前のレイアウト */
  #smp_nav {
    position: fixed;
    z-index: 999;
    top: 0;
    right: -120%; /* 画面の右側に隠すためのコード */
    width: 100%;
    height: 100vh;
    background-color: #121212;
    transition: all 0.6s;
  }

  /* クラスが付与された後のレイアウト */
  #smp_nav.list_active #smp_list {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #smp_nav.list_active {
    right: 0;
  }

  /* クラスが付与される前のレイアウト */
  .dropdown__lists {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -120%; /* 画面の右側に隠すためのコード */
    width: 100%;
    height: 100vh;
    background-color: #121212;
    transition: all 0.6s;
    margin-top: 141px !important;
  }

  /* クラスが付与された後のレイアウト */
  .dropdown__lists.dlist_active {
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    margin-top: 141px !important;
  }

  ul li.gnavi__list span.dnav:after {
    transform: rotate(0deg);
    transition: 0.3s;
  }

  ul li.gnavi__list span.dnav.active:after {
    transform: rotate(180deg);
    transition: 0.3s;
  }
}

/*========= 流れるテキスト ===============*/
@media screen and (min-width: 1279px) {
  /*全共通*/

  .slide-in {
    overflow: hidden;
    display: inline-block;
  }

  .slide-in_inner {
    display: inline-block;
  }

  /* 上下のアニメーション*/
  .upAnime {
    opacity: 0; /* 事前に透過0 にして消しておく*/
  }

  .slideAnimeDownUp {
    animation-name: slideTextY100;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    opacity: 0;
  }

  @keyframes slideTextY100 {
    from {
      transform: translateY(100%); /* 要素を上の枠外に移動*/
      opacity: 0;
    }
    to {
      transform: translateY(0); /* 要素を元の位置に移動*/
      opacity: 1;
    }
  }
  .slideAnimeUpDown {
    animation-name: slideTextY-100;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    opacity: 0;
  }

  @keyframes slideTextY-100 {
    from {
      transform: translateY(-100%); /* 要素を下の枠外に移動*/
      opacity: 0;
    }
    to {
      transform: translateY(0); /* 要素を元の位置に移動*/
      opacity: 1;
    }
  }

  ul.dropdown__lists li:nth-child(1) {
    animation-delay: 0;
  }

  ul.dropdown__lists li:nth-child(2) {
    animation-delay: 0.1s;
  }

  ul.dropdown__lists li:nth-child(3) {
    animation-delay: 0.2s;
  }
}
