/* =============================================================
   ナビゲーション(ハンバーガーメニュー / SP固定フッターメニュー)
   PC用・SP用のマークアップは parts/hm_nav.htm に1本化されており、
   このファイルは両方のスタイルを持つ。表示の出し分けは
   ファイル末尾の @media ブロックで行う(境界は 992px)。

   PC用とSP用は元々 .gnav / .gnav-base / .gnav-wrap / .nav-wrapper1 /
   .nav-wrapper2 / .close-btn-wrap / .btn-trigger という同名クラスを
   別々のレイアウトに使っていたため、1ファイルにまとめるにあたって
   すべて .gnav-pc / .btn-trigger-pc、.gnav-sp / .btn-trigger-sp 配下に
   限定している(宣言の内容自体は一切変更していない)。
   ============================================================= */


/* =============================
   PC用(992px以上で表示)
   トリガーボタン: .btn-trigger-pc (#hm_btn_pc)
   オーバーレイ  : .gnav-pc
============================= */

.btn-trigger-pc {
  position: fixed;
  width: 60px;
  height: 42px;
  margin-left: 50px;
  cursor: pointer;
  z-index: 9999999;
  right: 30px;
  top: 50px;

}

.btn-trigger-pc span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
}

.btn-trigger-pc,
.btn-trigger-pc span {
  display: inline-block;
  transition: all .5s;
  box-sizing: border-box;
}

.btn-trigger-pc span:nth-of-type(1) {
  top: 0;
}

.btn-trigger-pc span:nth-of-type(2) {
  top: 20px;

}

.btn-trigger-pc span:nth-of-type(3) {
  bottom: 0;

}

/*=============================
#hm_btn_pc
=============================*/
@-webkit-keyframes active-hm_btn-bar02 {
  100% {
    height: 0;
  }
}
@keyframes active-hm_btn-bar02 {
  100% {
    height: 0;
  }
}

#hm_btn_pc::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: '';
  width: 60px;
  height: 60px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all .75s;
}

#hm_btn_pc.active span:nth-of-type(1) {
  -webkit-transform: translate(16px, 24px) rotate(-225deg);
  transform: translate(16px, 24px) rotate(-225deg);
  height: 2px;
  width: 35px;
  background-color: #000;
}

#hm_btn_pc.active span:nth-of-type(2) {
  top: -10%;
  opacity: 0;
  -webkit-animation: active-hm_btn-bar02 .2s forwards;
  animation: active-hm_btn-bar02 .2s forwards;
}

#hm_btn_pc.active span:nth-of-type(3) {
  -webkit-transform: translate(16px, -16px) rotate(225deg);
  transform: translate(16px, -16px) rotate(225deg);
  height: 2px;
  width: 35px;
  background-color: #000;
}

#hm_btn_pc.active::after {
  -webkit-animation: active-hm_btn .7s .25s forwards;
  animation: active-hm_btn .7s .25s forwards;
}

@-webkit-keyframes active-hm_btn {
  0% {
    border-color: transparent;
    -webkit-transform: rotate(0);
  }

  25% {
    border-color: transparent #000 transparent transparent;
  }

  50% {
    border-color: transparent #000 #fff transparent;
  }

  75% {
    border-color: transparent #000 #000 #000;
  }

  100% {
    border-color: #fff;
    -webkit-transform: rotate(-680deg);
  }
}

@keyframes active-hm_btn {
  0% {
    border-color: transparent;
    transform: rotate(0);
  }

  25% {
    border-color: transparent #000 transparent transparent;
  }

  50% {
    border-color: transparent #000 #000 transparent;
  }

  75% {
    border-color: transparent #000 #000 #000;
  }

  100% {
    border-color: #000;
    transform: rotate(-680deg);
  }
}

/*gnav(PC)*/
.gnav-pc {
  background: rgba(255, 255, 255, 0.9);
  display: none;
  height: 100%;
  position: fixed;
  width: 100vw;
  z-index: 99;
  top: 0;
  left: 0;
  backdrop-filter: blur(10px);
}

.gnav-pc .gnav-base {
  height: 100%;
}
.gnav-pc .gnav-wrap {
  margin-right:auto;
  margin-left: auto;
  width:60%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.gnav-pc .gnav-wrap a {
  color: #000
}

.gnav-pc .gnav-wrap ul.nav-wrapper1 {
  min-width: 1000px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #666;
  margin-bottom: 5rem;
  overflow: auto;

  li {
    width: 33.333%;
    width: calc(100% / 3) ;
    margin-bottom: 4rem;
    padding-left:7rem ;
    position: relative;
    box-sizing: border-box;
  }
  li::before{
    content: '';
    position: absolute;
    top: 38%;
    display: inline-block;
    width: 5rem;
    height: 1px;
    background-color: black;
    left:0;
  }

  li a {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    font-size: 1.4rem;
    font-weight: lighter;
    margin: 0;
    text-decoration: none;
    color: #404040;
  }
  li a:hover{
    opacity:0.25;
    transition-duration: 200ms;
  }
  li a span {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 3.1rem;
    display: block;
    color: #000;
    line-height: 1.4;
  }
}

.gnav-pc .gnav-wrap ul.nav-wrapper2 {
  min-width: 960px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 7rem;

  li {
    display: inline-block;
  }

  li a {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    font-size: 1.3rem;
    font-weight: lighter;
    margin: 0;
    text-decoration: none;
    color: #404040;
  }
  li a:hover{
    opacity:0.4;
    transition-duration: 200ms;
  }
  li a span {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
    display: block;
    color: #000;
  }
}


/* =============================
   SP用(991.98px以下で表示)
   固定フッターバー: #fixed_footer_menu
   トリガーボタン  : .btn-trigger-sp (#hm_btn)
   オーバーレイ    : .gnav-sp
============================= */

#fixed_footer_menu {
  position: fixed;
  width: 100%;
  bottom: 0px;
  z-index: 9999;
  box-shadow: 0px -1px 3px 0px rgba(0, 0, 0, 0.15);

}

/* メニューを横並びにする */
#fixed_footer_menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 65px;
  background: #fff;
}

/* メニューの要素 */
#fixed_footer_menu li {
  justify-content: center;
  align-items: center;
  width: 25%;
  padding: 10px 0;
  margin: 0;
  position: relative;
}
#fixed_footer_menu li.fm-home{
  background: #000;
  display: flex;
  align-items: center;
  color:#fff;

  img{
    width:30px;
    margin:0 auto;
  }
}


#fixed_footer_menu li a {
  color: #333;
  text-align: center;
  display: block;
  width: 100%;
  font-size: 8px;
  text-decoration: none;
  line-height: 1;
}


#fixed_footer_menu li p {
  display: block;
  position: relative;
  font-size: 10px;
  margin-top: 0.5rem;
  text-align: center;
}

#fixed_footer_menu li p span{
  display: block;
  width:100%;
  position: absolute;
  text-align: center;
  top:0;
  left:0;
}
#fixed_footer_menu li p span.text-close{
  display: none;
}



.footer-icon {
  font-size: 25px;
  margin-bottom: 3px;
}


.footer-icon-home{
  font-size: 20px;
  color:#fff;
}


#fixed_footer_menu.UpMove{
	animation: UpAnime 0.8s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
	transform: translateY(0);
  }
  to {
    opacity: 0;
	transform: translateY(100px);
  }
}

/*　下に下がる動き　*/

#fixed_footer_menu.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(100px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
}




#hm_btn.active span{
  transform: rotate(135deg);
}

#hm_btn.active span:before,
#hm_btn.active span:after {
  top: 0;
  transform: rotate(90deg);
}

#hm_btn.active span:after {
  opacity: 0;
}




#hm_btn.active span {
  transform: rotate(225deg);
}

#hm_btn.active span {
  transform: rotate(225deg);
}

.btn-trigger-sp {
  display: flex;
  flex-direction: column ;
  justify-content:center;
  position: relative;
  width:25px;
  height:25px;
  margin:0 auto;
  border: none;
  cursor: pointer;
}


.btn-trigger-sp,
.btn-trigger-sp span {
  transition: all .5s;
  box-sizing: border-box;
}

.btn-trigger-sp span {
  position: relative;
  flex: none;
  width: 100%;
  height: 2px;
  background: #000000;
  transition: all .4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-trigger-sp span:before,
.btn-trigger-sp span:after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: inherit;
  transition: all .4s ease;
}

.btn-trigger-sp span:after  {
  top: 8px;
}




/*gnav(SP)*/
.gnav-sp {
  background: rgba(255, 255, 255, 0.95);
  display: none;
  height: 100vh;
  position: fixed;
  width: 100vw;
  z-index: 99;
  top: 0;
  left: 0;
  backdrop-filter: blur(10px);
}

.gnav-sp .gnav-base {
  width: 100%;
  height: calc(100svh - 70px);
  position: relative;
  overflow: auto;
}
.gnav-sp .close-btn-wrap{
  position: absolute;
  top:20px;
  right:20px;

  .close-btn {
    display: block;
    position: relative;
    width: 35px;
    height: 35px;
    border: 1px solid #333;
    background: #fff;
  }

  .close-btn::before, .close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 27px;
    background: #333;
  }

  .close-btn::before {
    transform: translate(-50%,-50%) rotate(45deg);
  }

  .close-btn::after {
    transform: translate(-50%,-50%) rotate(-45deg);
  }
}

.gnav-sp .gnav-wrap {
  width:80%;
  height: 100%;
  margin:0 auto;
  display: block;
  padding-top:60px;
}
.gnav-sp .gnav-wrap a {
  color: #000
}

.gnav-sp .gnav-wrap ul.nav-wrapper1 {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;

  li {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    box-sizing: border-box;
    padding-left: 6rem;
    line-height: 1.8rem;
  }

  li a {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    font-size: 1.25rem;
    font-weight: lighter;
    margin: 0;
    text-decoration: none;
    color: #404040;
  }
  li a:hover{
    opacity:0.25;
    transition-duration: 200ms;
  }
  li a span {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 2.2rem;
    display: block;
    color: #000;
    line-height:1.5rem;
    margin-bottom:0.5rem
  }
  li a::before{
    content: '';
    position: absolute;
    top: 1rem;
    display: inline-block;
    width: 4.3rem;
    height: 1px;
    background-color: black;
    left:0;
  }
}

.gnav-sp .gnav-wrap ul.nav-wrapper2 {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;

  li {
    width:50%;
    display: block;
    margin-bottom: 1.5rem;
  }

  li a {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    font-size: 1.2rem;
    font-weight: lighter;
    margin: 0;
    text-decoration: none;
    color: #969696;
    line-height: 1.4;
  }
  li a:hover{
    opacity:0.4;
    transition-duration: 200ms;
  }
  li a span {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8rem;
    display: block;
    color: #000;
  }
}


/* =============================
   PC/SPナビの表示切り替え(境界: 992px)
   parts/hm_nav.htm はPC用(.gnav-pc / .btn-trigger-pc)とSP用
   (#fixed_footer_menu / .gnav-sp)のマークアップを常に両方出力するため、
   画面幅でどちらか一方のみを表示させる。
   「表示する側」の display 値は上記の各定義のままで変更していない。
   ここでは「非表示にする側」だけを指定する。
============================= */

/* 991.98px以下(SP幅): PC用トリガーボタン・オーバーレイを非表示
   上限が 991px ではなく 991.98px なのは(この .98 は消さないこと):
   ブラウザのCSSピクセル幅は整数に限らない(ズーム・OSの拡大縮小・
   小数のdevicePixelRatio等)。境界を 991px / 992px の整数ペアにすると
   幅がちょうどその間の小数値(例: 991.5px)になったときどちらの @media
   にも一致せず、下の非表示指定が両方とも効かないためPC用ナビとSP用ナビが
   同時に表示されてしまう。上限側を 991.98px にしてこの隙間を埋めている
   (Bootstrapが同じ理由で採用している手法。css/style.css も同じ)。
   下限側の (min-width: 992px) は変更してはいけない。 */
@media (max-width: 991.98px) {
  .btn-trigger-pc {
    display: none;
  }
  /* .gnav-pc は元々 display:none がデフォルト(JSで開閉)だが、
     ウィンドウ幅を跨いでリサイズされ開いたまま残るケースに備えて
     この幅では強制的に閉じる。!importantは非表示側のみに限定しているため
     992px以上でのJS開閉(インラインstyle)には影響しない。 */
  .gnav-pc {
    display: none !important;
  }
}

/* 992px以上(PC幅): SP用固定フッターバー・オーバーレイを非表示 */
@media (min-width: 992px) {
  #fixed_footer_menu {
    display: none;
  }
  .gnav-sp {
    display: none !important;
  }
}

/* =============================================================
   iPad Pro幅(1024px)向けのオーバーフロー修正
   (min-width: 992px) and (max-width: 1199.98px) に限定。

   .gnav-pc .gnav-wrap ul.nav-wrapper1/nav-wrapper2 は min-width:1000px/
   960px を持つが、親の .gnav-wrap は width:60%(1024px幅で約614px)しか
   無いため、この幅ではメニュー項目一覧が右にはみ出す。
   このブロック自体が(min-width: 992px) and (max-width: 1199.98px)に
   限定されているため、min-widthの撤去は1200px以上・SP幅(991.98px以下)
   には一切影響しない。
   ============================================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .gnav-pc .gnav-wrap ul.nav-wrapper1,
  .gnav-pc .gnav-wrap ul.nav-wrapper2 {
    min-width: 0;
  }

  /* .gnav-wrap自体もwidth:60%だと1024px幅で約614pxしか無く、
     項目一覧が画面左寄りに偏って余白が目立つため、この幅だけ広げる。 */
  .gnav-pc .gnav-wrap {
    width: 80%;
  }

  /* min-width撤去で列(li)の実際の幅が狭くなり(直上の.gnav-wrap:80%
     基準で1024px時点で1列約273px、padding-left:7rem控除後の
     中身は約203px)、"Photo Log"
     (他の項目は1単語で収まるが、これだけ2単語)だけ2行に折り返して
     他の項目と行の高さが揃わなくなるため、この幅域だけフォントサイズを
     縮小して1行に収まるようにする。 */
  .gnav-pc .gnav-wrap ul.nav-wrapper1 li a span {
    font-size: 2.4rem;
  }
}
