@charset "utf-8";
/* ===============================
about
=============================== */


html,
body {
  width: 100vw;
  height: 100vh;
}

.article {
  padding: 0 2.7%;
  
}

.article__header {
  display: block;
  width: 100%;
  height: 180px;
  background-image: url(../images/gallery_header.webp);
  background-size: 200%;
  background-position: 40%;
  font-family: var(--fontFamilyEN);
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: 0.8rem;
  line-height: 180px;
  text-align: center;
}

.nav__galleryList {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8.3%;
  width: 300px;
  text-align: center;

}

.nav__galleryItem {
  width: 40%;
  font-family: var(--fontFamilyEN);
  font-size: 1.2rem;

  letter-spacing: 0.3rem;
  margin-top: 24px;
  transition: 0.4s;
}

.nav__galleryItem:hover {
  opacity: 0.5;
  cursor: pointer;
}

/* Gallery*/


/* 初期状態ではすべての画像は透明 */
.fade-in-image {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* 最初の画像（1列目）は最初から表示 */
.fade-in-image.first {
  opacity: 1;
}

/* スクロールで表示された画像に対して */
.fade-in-image.visible {
  opacity: 1;
}

.section--Gallery {
  padding: 60px 2.7%;
  background-color: var(--primary-lightGray);
  margin-top: 24px;
}


.Gallery__list a {
  margin: 0 auto;
}

.Gallery__item {
  display: block;
  width: 268px;
  height: 354px;
  background-color: #ffffff;
  padding: 12px 15px 25px;
  transition: 0.4s;
  margin: 0 auto 40px;
}

.Gallery__item:hover {
  cursor: pointer;
}

.Gallery__item img {
  width: 100%;
  object-fit: cover;
  object-position: center; /* 画像が親要素の中心に配置される */
}


.Gallery__itemTopic {
  font-size: 1.4rem;
  font-family: var(--fontFamilyJP);
  letter-spacing: 0.5rem;
  margin: 22px 0 12px;
}

time {
  font-family: var(--fontFamilyEN);
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
}

/* Gallery */


@media screen and (min-width: 600px) {
 
  .nav__galleryList {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0%;
    width: 624px;
    margin: 0 auto;
    text-align: center;
  }

  .nav__galleryItem {
    font-family: var(--fontFamilyEN);
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    margin: 35px 0;
  }

/* Gallery*/

.section--Gallery {
  padding: 60px 2.7%;
  background-color: var(--primary-lightGray);
  margin-top: 0px;
}

.Gallery__list {
  display: grid;
  grid-template-columns: repeat(2, auto); /* 4列 */
  place-content: center;
  gap: 0px 6%;
}

.Gallery__list a {
  margin: 0 auto;
}

.Gallery__item {
  display: block;
  width: 268px;
  height: 354px;
  background-color: #ffffff;
  padding: 12px 15px 25px;
  transition: 0.4s;
  margin: 0 auto 40px;
}

.Gallery__item:hover {
  opacity: 0.8;
  cursor: pointer;

}

.Gallery__item img {
  width: 100%;
  object-fit: cover;
  object-position: center; /* 画像が親要素の中心に配置される */
}

.Gallery__itemTopic {
  font-size: 1.4rem;
  font-family: var(--fontFamilyJP);
  letter-spacing: 0.5rem;
  margin: 22px 0 12px;
}

time {
  font-family: var(--fontFamilyEN);
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
}
}
/* Gallery */




@media screen and (min-width: 1281px) {

  .article {
    padding: 0 2.7%;
    
  }
  
  .article__header {
    display: block;
    width: 100%;
    height: 280px;
    background-image: url(../images/gallery_header.webp);
    background-size: 120%;
    background-position: 70%;
  
    font-family: var(--fontFamilyEN);
    font-size: 3.2rem;
    color: #ffffff;
    letter-spacing: 0.8rem;
    line-height: 280px;
    text-align: center;
  }
  
 
  .nav__galleryList {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0%;
    width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .nav__galleryItem {
    font-family: var(--fontFamilyEN);
    font-size: 1.4rem;
    letter-spacing: 0.3rem;
    margin: 35px 0;
  }


/* Gallery*/

  .section--Gallery {
    padding: 74px 2.7%;
    background-color: var(--primary-lightGray);
    margin-top: 0px;
  }

  .Gallery__conetents {
    margin: 0 auto; /* 中央寄せ */
  }

  .Gallery__list {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 4列 */
    place-content: center;
    gap: 80px 2%;
  }

  .Gallery__item {
    display: block;
    width: 330px;
    height: auto;
    background-color: #ffffff;
    padding: 12px 15px 25px;
    transition: filter 0.3s ease-in-out; /* なめらかに変化させる */
  }

  .Gallery__item:hover {
    filter: brightness(1.2); /* 全体を明るくする */
  }

  .Gallery__item img {
    width: 100%;
    object-fit: cover;
    object-position: center; /* 画像が親要素の中心に配置される */
  }

  .Gallery__itemTopic {
    font-size: 1.6rem;
    font-family: var(--fontFamilyJP);
    letter-spacing: 0.5rem;
    margin: 22px 0 12px;
  }

  time {
    font-family: var(--fontFamilyEN);
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
  }
}

/* Gallery */
