@charset "utf-8";

 :root {
    --primary-lightbrown: #9D9684;
    --primary-brown: #4A3D3D;
    --primary-beige: #EDEBE6;
    --contentPadding: 0 2.7%;
    --fontFamilyEN: 'Crimson Text';
    --fontFamilyJP: 'Shippori Mincho';
    --background: 237 235 230;
}

/* ===============================
galleryphoto
PC FIRST
=============================== */

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

.article {
  padding: 0 2.7%;
}

/* ===============================
Main Visual
=============================== */

.article__header {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.article__header > .mainImg_PC {
  display: block;    
  height: auto;
}

.article__header > img:nth-of-type(3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10vw;
  height: auto;
}

/* ===============================
Fade In
=============================== */

.fade-in-image {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in-image.first {
  opacity: 1;
}

.fade-in-image.visible {
  opacity: 1;
}

/* ===============================
Gallery Section
=============================== */

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

/* タイトル */

.Gallery__title {
  display: block;
  margin: 40px 0;
}

.photo__name {
  font-size: 2.0rem;
  font-family: var(--fontFamilyJP);
  letter-spacing: 0.5rem;
  margin-bottom: 12px;
}

/* .photo__name::after {
  content: '';
  display: block;
  max-width: 890px;
  height: 1px;
  background-color: var(--primary-gray);
  margin: 18px 0;
} */

.photo__date {
  font-size: 1.6rem;
  font-family: var(--fontFamilyEN);
  letter-spacing: 0.3rem;
}

/* ===============================
写真グリッド
=============================== */

.Gallery__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

/* --------------------------------
横画像 + 縦画像
-------------------------------- */

.Gallery__contents {
    display: grid;
    grid-template-columns: 2.25fr 1fr;
    gap: 24px;
}

.Gallery__contents02 {
    display: grid;
    grid-template-columns: 1fr 2.25fr;
    gap: 24px;
}


/* --------------------------------
縦画像 + 縦画像
-------------------------------- */

.Gallery__contentsWide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --------------------------------
画像共通
-------------------------------- */

.Gallery__contents img,
.Gallery__contents02 img,
.Gallery__contentsWide img {
    width: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .4s;
}

.Gallery__contents img:hover,
.Gallery__contents02 img:hover,
.Gallery__contentsWide img:hover {
    opacity: .7;
}

/* --------------------------------
横画像
-------------------------------- */

.imgWide {
    aspect-ratio: 3 / 2;
}

/* --------------------------------
縦画像
-------------------------------- */

.Gallery__contents img:not(.imgWide),
.Gallery__contents02 img:not(.imgWide),
.Gallery__contentsWide img {
    aspect-ratio: 2 / 3;
}

  .btn__gallery a {
    display: block;
    text-align: center;
    letter-spacing: 0.5rem;
    width: 300px;
    height: 80px;
    border: 1px solid var(--primary-brown);
    transition: 0.4s;
    font-size: 2.0rem;
    line-height: 80px;
    /* position: relative; */
  }



/* ==========================================
Tablet
========================================== */

@media screen and (max-width: 1200px) {

    .Gallery__list {
        gap: 16px;
    }

    .Gallery__contents,
    .Gallery__contents02,
    .Gallery__contentsWide {
        gap: 16px;
    }

}



/* ===============================
Modal
=============================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 70%);
    padding: 10vw 0 0;
}


.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 2000px;
}

.close {
position: fixed;
    top: 10vw;
    right: 15vw;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
  }

.close:hover,
.close:focus {
  color: #bbb;
}

#caption {
  margin: 0;
  padding: 30px;
  text-align: center;
  color: #ccc;
  font-size: 2.0rem;
  font-family: var(--fontFamilyJP);
  letter-spacing: 0.3rem;
}

/* ===============================
Button
=============================== */

/* .gallery_icon {
  display: none;
} */

.gallery__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 0;
  gap: 20px;
}

.btn {
  display: block;
}

.btn img {
  width: 81px;
  height: auto;
}

.btn p a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5vw;
  height: auto;
  transition: 0.4s;
  position: relative;
  z-index: 10;
}

.btn p a:hover {
  opacity: 0.5;
}

.btn__gallery a:hover {
  opacity: 0.5;
}

/* ==========================================
Tablet（〜1200px）
========================================== */

@media screen and (max-width: 1200px) {

  .section--Gallery {
    padding: 60px 2.7% 0;
  }

  .Gallery__title {
    width: 93%;
  }

  .photo__name {
    font-size: 1.8rem;
  }

  .Gallery__list {
    max-width: 100%;
    gap: 16px;
  }

  .gallery__btn {
    gap: 20px;
  }

  .btn img {
    width: 60px;
  }

  .btn p a {
    width: 140px;
    height: 65px;
    font-size: 1.0rem;
    gap: 10px;
  }

}

/* ==========================================
SP（〜768px）
========================================== */

@media screen and (max-width: 768px) {

  .article {
    padding: 0;
  }

  /* Main Visual */

  .article__header > .mainImg_PC {
    display: block;
    margin: 15vw 0 0;
  }

  .article__header > img:nth-of-type(3) {
        position: absolute;
        /* transform: none; */
        width: 32vw;
        height: auto;
  }


  /* Gallery */

  .section--Gallery {
    padding: 8vw 4vw 0;
    margin-top: 0;
    width: 95%;
  }

  .Gallery__title {
    width: 100%;
    margin: 24px 0;
  }

  .photo__name {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .photo__date {
    font-size: 1.2rem;
  }

/* 写真グリッド：SP は1列 */
.Gallery__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Gallery__contents,
.Gallery__contents02,
.Gallery__contentsWide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Gallery__contents img,
.Gallery__contents02 img,
.Gallery__contentsWide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}


  .close {
    top: 15px;
    right: 10px;
  }

  #caption {
    padding: 20px;
    font-size: 1.4rem;
  }

  /* Button */

  .gallery_icon {
    display: block;
  }

  .gallery_icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background-color: var(--primary-brown);
    box-shadow: 5px 5px 14px rgba(25, 36, 77, 0.3);
  }

  .gallery_icon img {
    width: 24px;
    height: auto;
  }

  .gallery__btn {
    margin: 12vw auto 0;
    gap: 14px;
  }

  .btn__gallery a {
    display: block;
        width: 180px;
        height: 60px;
        font-size: 1.4rem;
        line-height: 60px;
}
}


/* ===============================
Modal
=============================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  padding: 3vw 0 0;
}

.modal-content {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: 120%;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.close {
    position: fixed;
    top:0;
    right: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
  }

#caption {
  color: #fff;
  text-align: center;
  margin-top: 16px;
  font-size: 1.4rem;
  letter-spacing: 0.2rem;
}

/* クリックできる感 */
.click-zoom {
  cursor: zoom-in;
}