@charset "utf-8";


/* Webフォント指定 */
* {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


body {
  margin: 0;
}


/* footer下端維持用 */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 背景画像設定用 */
/* .site-wrapper::before {
  background-image: url(../img/bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  filter: blur(5px) brightness(0.7);
  z-index: -1;

} */


/* -- ヘッダー開始 -- */
header {
  background: #030303;
  overflow: hidden;
}
header .hdcontainer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-image: url(../img/header.webp);
  background-size: 55%;
  background-position: left 50%;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 75%;
  height: 220px;
}
header h1 {
  margin: 0;
  margin-right: 5%;
  width: min-content;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 60px;
  white-space: nowrap;
  color: #fff;
}
/* -- ヘッダー終了 -- */


/* -- フィルターボタン開始 -- */
.filters {
  text-align: center;
  position: sticky;
  top: 0;
  padding-top: 6px;
  padding-bottom: 2px;
  /* background: transparent; */
  background: #fff;
  box-shadow: 0px 8px 8px 0px #fff;
  z-index: 100;
}
.ftcontainer {
  display: inline-block;
  margin-left: 1%;
  margin-right: 1%;
}
.filters button {
  padding: 6px 14px;
  margin: 5px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  font-size: 14px;
  transition: .6s ease-out;
  cursor: pointer;
  color: #000;
}
/* no-hover適用時は無効化 */
.filters button:hover:not(.no-hover) {
  background: #c5c5c5;
}
.filters button.active {
  background: #1e1e1e;
  color: #fff;
  font-weight: 600;
}
/* -- フィルターボタン終了 -- */


/* -- ギャラリーボックス開始 -- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: 75vw;
  margin: 20px auto;
}
/* 最後の画像を左詰め */
.gallery::after {
  content:"";
  flex-grow: 1;
  min-width: 24%;
}
.gallery a {
  /* Flexbox用 */
  flex-grow: 1;
  max-width: 24%;
  position: relative;

  /* フェードイン用 */
  opacity: 0;
  transform: translateY(50px);
  transition: 
  opacity .8s ease-out, transform .8s ease-out;
}
/* フェードイン後処理 */
.gallery a.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery a:hover {
  z-index: 10;  /* ホバー時の重なり防止 */
}
.gallery img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  transition: 
  transform .3s ease-out, box-shadow .3s ease-out;
  position: relative;
}
.gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px #1e1e1e;
}
/* フィルター非表示用 */
.gallery-item.hide {
  display: none;
}
/* -- ギャラリーボックス終了 -- */


/* -- フッター開始 -- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  height: 55px;
  text-align: center;
  background: #030303;
  z-index: 100;
}
footer p {
  margin: 0.1em auto;
  font-size: 14px;
  color: #707070;
}
/* -- フッター終了 -- */


/* -- スマホ用 -- */
@media screen and (max-width: 430px) {
  header .hdcontainer {
    width: 100%;
    height: 130px;
    background-size: 75%;
    background-position: -45% 60%;
  }
  header h1 {
    margin-right: 7%;
    font-size: 36px;
    white-space: normal;
  }

  .filters {
    padding: 2px 0;
    white-space: nowrap;
    overflow-x: scroll;
  }
  .filters button {
    font-size: 13px;
  }

  .gallery {
    gap: 5px;
    width: 95vw;
    margin: 10px auto;
  }
  .gallery::after {
    flex-grow: 0;
    width: 32%;
  }
  .gallery a {
    flex-grow: 0;
    max-width: none;
    width: 32%;
  }
  .gallery img {
    height: 165px;
    border-radius: 6px;
  }

  footer {
    height: 50px;
  }
  footer p {
    font-size: 12px;
  }
}


/* -- タブレット用 -- */
@media screen and (min-width: 431px) and (max-width: 1024px) {
  header .hdcontainer {
    width: 100%;
    height: 200px;
    background-size: 65%;
    background-position: -15% 55%;
  }
  header h1 {
    margin-right: 8%;
    font-size: 50px;
    white-space: normal;
  }
  
  .filters {
    padding-top: 2px;
    padding-bottom: 0px;
    white-space: nowrap;
    overflow-x: scroll;
  }
  .filters button {
    font-size: 15px;
  }

  .gallery {
    gap: 8px;
    width: 90vw;
    margin: 10px auto;
    margin-bottom: 15px;
  }
  .gallery::after {
    min-width: 32%;
  }
  .gallery a {
    max-width: 32%;
  }
  .gallery img {
    height: 160px;
  }

  footer {
    height: 60px;
  }

}