@charset "UTF-8";

/* gallery list
====================================================*/
main {
  padding-top: 60px;
}
.ph__gallery {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/assets/images/gallery/gallery_main_image@2x.webp");
  background-position: center;
  background-size: cover;
}
.sort__container {
  background-color: #f7f4f0;
  margin: 40px 4.27% 32px;
  padding: 20px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sort__ttl {
  font-size: 1.8rem;
  text-align: center;
  font-weight: 300;
  margin-bottom: 20px;
}
.sort-btn {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.sort-btn li {
  background: #ffffff;
  border-radius: 100vh;
  cursor: pointer;
  padding: 5px 20px;
}
.sort-btn li.active {
  background: #594a3d;
  color: #ffffff;
}

/* Muuri layout
====================================================*/
.grid {
  position: relative;
  width: calc(100% - 6.4vw);
  margin: 0 auto 64px;
  overflow: hidden;
}

/*各画像の横幅などの設定*/
.item {
  display: block;
  position: absolute;
  width: 49.75%; /*カラム設定*/
  z-index: 1;
}

/*内側のボックスの高さが崩れないように維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px 5px;
}

/* アイテム文章 */
.item-txt {
  font-size: 1.4rem;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-date {
  display: block;
  font-size: 1.3rem;
  margin-top: 8px;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

/* hover */
.item-image__wrapper {
  overflow: hidden;
}
.item-content img {
  transition: transform 0.9s ease;
}
.item-content:hover img {
  transform: scale(1.05);
}

@media screen and (min-width: 768px), print {
  .sort__container {
    height: 136px;
    width: calc(702px - 10px); /* 一覧と幅合わせるために-10px */
    margin: 56px auto 32px;
  }
  .grid {
    width: 702px;
  }
  .item {
    width: calc(100% / 3); /*カラム設定*/
  }
  .item-txt {
    margin-bottom: 16px;
  }
}
@media screen and (min-width: 1200px), print {
  main {
    padding-top: 80px;
  }
  .sort__container {
    height: 136px;
    width: calc(996px - 10px); /* 一覧と幅合わせるために-10px */
    margin: 132px auto 48px;
    flex-direction: row;
    justify-content: start;
    padding: 0 48px;
  }
  .sort__ttl {
    font-size: 2rem;
    margin-right: 56px;
    margin-bottom: 0;
  }
  .sort-btn {
    gap: 20px;
  }
  .sort-btn li {
    font-size: 1.4rem;
    letter-spacing: normal;
  }
  .grid {
    width: 996px;
  }
  .item-txt {
    font-size: 1.6rem;
  }
  .item-date {
    font-size: 1.4rem;
    margin: 16px 0 4px;
  }
  .grid {
    margin: 0 auto 180px;
  }
}

/* gallery detail
====================================================*/
.gallery-detail__container {
  margin-bottom: 56px;
}
.gallery-detail__header {
  height: 240px;
  overflow: hidden;
}

/* ヘッダー画像の位置調整 */
.postion65 {
  object-position: 50% 65%;
}

.gallery-detail__body {
  margin: 56px 0 72px;
  padding: 0 8%;
}
.gallery-detail__ttl {
  font-size: 1.8rem;
  margin-bottom: 40px;
}
.gallery-detail__disc {
  font-size: 1.4rem;
  line-height: 2;
  margin-bottom: 40px;
}
.gallery-detail__info {
  padding-top: 22px;
  border-top: 1px solid #e2d9d1;
}
.gallery-detail__info li {
  display: flex;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2d9d1;
}
.gallery-detail__info li span {
  width: 40%;
  padding-left: 10px;
  letter-spacing: 0.03em;
}
.gallery-detail__info li p {
  width: 60%;
}
.gallery-article__body {
  margin: 0 6.4vw 48px;
}
.gallery-article__body figure {
  margin-bottom: 4px;
}
@media screen and (min-width: 768px), print {
  .gallery-detail__header {
    height: 35vw;
  }
  .gallery-detail__header img {
    width: 100%;
    height: 35vw;
    object-fit: cover;
  }
}
@media screen and (min-width: 960px), print {
  .gallery-detail__container {
    margin-bottom: 180px;
  }
  .gallery-detail__body {
    width: 800px;
    margin: 144px auto 72px;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .gallery-detail__ttl {
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    width: 800px;
    margin-bottom: 96px;
  }
  .gallery-detail__txt {
    width: 60%;
  }
  .gallery-detail__disc {
    font-size: 1.6rem;
    line-height: 2;
    margin-right: 40px;
  }
  .gallery-detail__info {
    width: 40%;
  }
  .gallery-article__body {
    width: 800px;
    margin: 0 auto 48px;
  }
  .gallery-article__body figure {
    margin-bottom: 10px;
  }
}

/* progress circle
====================================================*/
.progress-circle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-image: conic-gradient(#594a3d 0% 0%, #d9d9d9 0% 100%);
  border-radius: 50%;
  margin: 0 auto;
  opacity: 0;
}
.progress-circle-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 96%;
  height: 96%;
  font-size: 14px;
  color: #594a3d;
  background: #fff;
  border-radius: 50%;
}

.progress-circle.g-FadeIn {
  animation: FadeIn 0.5s forwards;
}
@keyframes FadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*　下に下がる動き　*/
.progress-circle.g-FadeOut {
  animation: FadeOut 0.5s forwards;
}
@keyframes FadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media screen and (min-width: 1200px), print {
  .progress-circle {
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
  }
  .progress-circle-inner {
    font-size: 16px;
  }
}

/* 更新マーク */

.new::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 16px;
  margin-right: 8px;
  background: url(../images/gallery/new_tag.svg) no-repeat;
  background-size: contain;
  vertical-align: middle;
  transform: translateY(-1px);
}

@media screen and (min-width: 768px), print {
  .new::before {
    width: 42px;
    height: 18px;
    transform: translateY(-2px);
  }
}

@media screen and (min-width: 1200px), print {
  .new::before {
    width: 44px;
    height: 20px;
    transform: translateY(-1px);
  }
}
/* .new:after {
  content: "NEW";
  font-size: 1rem;
  color: #fff !important;
  vertical-align: text-top;
  background-color: #594a3d;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 4px;
}

@media screen and (min-width: 768px), print {
  .new:after {
    font-size: 1rem;
    padding: 2px 6px;
  }
} */
