@charset "utf-8";

/*==================================================
機能編 　5-1-11 クリックしたらナビが上から下に出現
===================================*/

@media screen and (max-width: 960px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh; /*ナビの高さ*/
    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: 999;
    width: 100%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /*ナビゲーション*/
  #g-nav ul {
    /*ナビゲーション天地中央揃え*/
    width: 90%;
    margin: 100px auto 0 auto;
  }

  #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: #aaa;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}

/*==================================================
　機能編 5-2-7 3本線が奥行きを持って回転して×に
===================================*/

.g-nav-openbtn {
  display: none;
}

@media screen and (max-width: 960px) {
  .g-nav-openbtn {
    display: block;
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: 10px;
    right: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }

  /*ボタン内側*/

  .g-nav-openbtn .openbtn-area {
    transition: all 0.4s;
  }

  .g-nav-openbtn span {
    display: inline-block;
    transition: all 0.4s; /*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #333;
    width: 45%;
  }

  .g-nav-openbtn span:nth-of-type(1) {
    top: 15px;
  }

  .g-nav-openbtn span:nth-of-type(2) {
    top: 23px;
  }

  .g-nav-openbtn span:nth-of-type(3) {
    top: 31px;
  }

  /*activeクラスが付与されると
線と周りのエリアが回転して×になる*/

  .g-nav-openbtn.active .openbtn-area {
    transform: rotateY(-360deg);
  }

  .g-nav-openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
  }

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

  .g-nav-openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
  }
}

/*==================================================
　機能編 5-3-3 左から右に線が伸びる（下部）
===================================*/
.nav01c li a {
  /*線の基点とするためrelativeを指定*/
  position: relative;
}

.nav01c li.current a,
.nav01c li a:hover {
  color: #333;
}

.nav01c li a::after {
  content: "";
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 16px;
  left: 25%;
  /*線の形状*/
  width: 50%;
  height: 1px;
  background: #333;
  /*アニメーションの指定*/
  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: 960px) {
  .nav01c li a::after {
    display: none;
  }
}

/*==================================================
　機能編 9-1-1	縦線が動いてスクロールを促す
===================================*/

/*スクロールダウン全体の場所*/
.scrolldown1 {
  position: absolute;
  right: 40px;
  bottom: 0;
  height: 50px;
  margin-bottom: 93px;
}

@media screen and (max-width: 960px) {
  .scrolldown1 {
    margin-bottom: 20px;
  }
}

/*Scrollテキストの描写*/
.scrolldown1 span {
  /*描画位置*/
  position: absolute;
  left: -15px;
  top: -15px;
  /*テキストの形状*/
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.scrolldown1 span {
  transform: rotate(-90deg);
  text-transform: uppercase;
  left: -23px;
  top: -50px;
}
/* 線の描写 */
.scrolldown1::after {
  content: "";
  /*描画位置*/
  position: absolute;
  top: 0;
  right: -6px;
  /*線の形状*/
  width: 1px;
  height: 30px;
  background: #ffffff;
  /*線の動き1.4秒かけて動く。永遠にループ*/
  animation: pathmove 1.4s ease-in-out infinite;
  opacity: 0;
}
/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove {
  0% {
    height: 0;
    top: 0px;
    opacity: 0;
  }
  30% {
    height: 30px;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 50px;
    opacity: 0;
  }
}
@media screen and (max-width: 960px) {
  .scrolldown1 span {
    transform: rotate(-90deg);
    text-transform: uppercase;
    left: -23px;
    top: -100px;
  }
  /* 線の描写 */
  .scrolldown1::after {
    content: "";
    /*描画位置*/
    position: absolute;
    top: 0;
    right: -6px;
    /*線の形状*/
    width: 1px;
    height: 30px;
    background: #ffffff;
    /*線の動き1.4秒かけて動く。永遠にループ*/
    animation: pathmove 1.4s ease-in-out infinite;
    opacity: 0;
  }
  /*高さ・位置・透過が変化して線が上から下に動く*/
  @keyframes pathmove {
    0% {
      height: 0;
      top: -50px;
      opacity: 0;
    }
    30% {
      height: 30px;
      opacity: 1;
    }
    100% {
      height: 0;
      top: 0px;
      opacity: 0;
    }
  }
}
/*==================================================
　機能編 7-1-34	少し出ていた線が伸びる
===================================*/

.btnlinestretches2 {
  /*線の基点とするためrelativeを指定*/
  position: relative;
  /*ボタンの形状*/
  color: #333;
  padding: 5px 40px;
  display: inline-block;
  text-decoration: none;
  outline: none;
  font-family: "Oswald", sans-serif;
}

/*線の設定*/
.btnlinestretches2::before,
.btnlinestretches2::after {
  content: "";
  /*絶対配置で線の位置を決める*/
  position: absolute;
  /*事前に出現させる線の形状*/
  border: solid #333;
  width: 10px;
  height: 10px;
  /*アニメーションの指定*/
  transition: all 0.3s ease-in-out;
}

.btnlinestretches2::before {
  /*事前に出現させる線の位置*/
  top: 0;
  left: 0;
  /*事前に出現させる線の形状*/
  border-width: 1px 0 0 1px;
}

.btnlinestretches2::after {
  /*事前に出現させる線の位置*/
  bottom: 0;
  right: 0;
  /*事前に出現させる線の形状*/
  border-width: 0 1px 1px 0;
}

/*hoverした際の線の形状*/
.btnlinestretches2:hover::before,
.btnlinestretches2:hover::after {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-color: #c7b600;
}

/*==================================================
機能編 8-1-4 ページの指定の範囲内で出現（下から上)
===================================*/

/*リンクの形状*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #c7b600;
  color: #c7b600;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  transition: all 0.3s;
}

#page-top a:hover {
  background: #777;
}

/*リンクを右下に固定*/
#page-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  /*はじめは非表示*/
  opacity: 0;
  transform: translateX(100px);
}

#page-top span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-top: 2px solid #c7b600;
  border-left: 2px solid #c7b600;
  transform: rotate(45deg);
  margin: 8px 0 0 0;
}

/*　左の動き　*/

#page-top.LeftMove {
  animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*　右の動き　*/

#page-top.RightMove {
  animation: RightAnime 0.5s forwards;
}
@keyframes RightAnime {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(100px);
  }
}

/*==================================================
/*機能編 5-4-1タブメニュー*/
/*===================================*/

.tab {
  display: flex;
  flex-wrap: wrap;
}

.tab li {
  text-align: center;
  white-space: nowrap;
}

.tab li a {
  display: block;
  border-top: transparent 1px solid;
  padding: 8px 30px;
  background: #333;
  color: #eee; /* ここを #eee に変更しました！ */
}

@media screen and (max-width: 400px) {
  .tab li a {
    padding: 8px 20px;
  }
}

/*liにactiveクラスがついた時の形状*/
.tab li.active a {
  /* background: linear-gradient(90deg, #960021 0%, #611618 100%); */
  background: linear-gradient(90deg, #d2d200 0%, #a55f00 100%);
  border-top: #aaa 1px solid;
}

/*エリアの表示非表示と形状*/
.area {
  display: none; /*はじめは非表示*/
  opacity: 0; /*透過0*/
  padding: 20px 40px;
}

/*areaにis-activeというクラスがついた時の形状*/
.area.is-active {
  display: block; /*表示*/
  animation-name: displayAnime; /*ふわっと表示させるためのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

@keyframes displayAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*===========================================================*/
/*機能編  6-1-4 動きを組み合わせて全画面で見せる */
/*===========================================================*/
#slider {
  width: 100%;
  height: 91vh; /*スライダー全体の縦幅を91vhにする*/
}

/*==================================================
機能編 6-2-1 複数の画像を一覧で見せる
===================================*/
.gallery {
  columns: 3; /*段組みの数*/
  padding: 0 15px; /*ギャラリー左右に余白をつける*/
  width: 100%;
}

.gallery li {
  margin-bottom: 20px; /*各画像下に余白をつける*/
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img {
  width: 100%;
  height: auto;
  vertical-align: bottom; /*画像の下にできる余白を削除*/
}

@media only screen and (max-width: 780px) {
  .gallery {
    columns: 2;
  }
}
@media only screen and (max-width: 430px) {
  .gallery {
    columns: 1;
  }
}

/*==================================================
印象編 4 最低限おぼえておきたい動き
===================================*/

/*印象編　4-9、4-10　背景色が伸びて出現（左から・右から）　*/
.bgextend {
  height: 100%;
  animation-name: bgextendAnimeBase;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  position: relative;
  overflow: hidden; /*　はみ出た色要素を隠す　*/
  opacity: 0;
}

@keyframes bgextendAnimeBase {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*中の要素*/
.bgappear {
  animation-name: bgextendAnimeSecond;
  animation-duration: 1s;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes bgextendAnimeSecond {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*印象編　4-9 背景色が伸びて出現（左から）*/
.bgLRextend::before {
  animation-name: bgLRextendAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #111; /*伸びる背景色の設定*/
}
@keyframes bgLRextendAnime {
  0% {
    transform-origin: left;
    transform: scaleX(0);
  }
  50% {
    transform-origin: left;
    transform: scaleX(1);
  }
  50.001% {
    transform-origin: right;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}

/*印象編　4-9 背景色が伸びて出現（右から）*/
.bgRLextend::before {
  animation-name: bgRLextendAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #111; /*伸びる背景色の設定*/
}
@keyframes bgRLextendAnime {
  0% {
    transform-origin: right;
    transform: scaleX(0);
  }
  50% {
    transform-origin: right;
    transform: scaleX(1);
  }
  50.001% {
    transform-origin: left;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.bgappearTrigger,
.bgUDextendTrigger,
.bgDUextendTrigger,
.bgRLextendTrigger,
.bgLRextendTrigger {
  opacity: 0;
}

/*==================================================
 7 画像リンクの動き
===================================*/

/*　印象編　7-3 画像が拡大＋回転　*/

.zoomInRotate {
  /*opacityとtransformがかけあわさると生じる表示バグの回避*/
  backface-visibility: hidden;
}
.zoomInRotate img {
  transform: scale(1);
  transition: 0.3s ease-in-out; /*移り変わる速さを変更したい場合はこの数値を変更*/
}

.zoomInRotate a:hover img {
  /*hoverした時の変化*/
  transform: rotate(5deg) scale(1.2); /*拡大、回転の値を変更したい場合はこの数値を変更*/
}
