.gallery-head {
  background: #ffffff;
  padding-top: 0;
  padding-inline: clamp(20px, 10.47vw, 201px);
  padding-bottom: clamp(60px, 8.9vw, 171px);
  text-align: center;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin: auto;
}
.gallery-head__en {
  font-family: "Jost", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.875rem, 9.375vw, 11.25rem);
  line-height: 1;
  color: #029b79;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
.gallery-head__jp {
  margin-top: clamp(8px, 1.04vw, 20px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5625vw, 1.875rem);
  color: #029b79;
  letter-spacing: 0.128em;
  line-height: 1.5;
  text-align: left;
  margin-left: 20px;
}

.gallery-tabs {
  background: #029b79;
  padding-top: clamp(28px, 2.97vw, 57px);
  padding-inline: 4%;
  padding-bottom: 0;
}
.gallery-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.3vw, 25px);
  list-style: none;
}
.gallery-tabs__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(100px, 10.26vw, 197px);
  padding: clamp(6px, 0.52vw, 10px) clamp(14px, 1.04vw, 20px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  letter-spacing: 0.128em;
  color: #ffffff;
  border: 1px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}
@media (hover: hover) {
  .gallery-tabs__item a:hover {
    background: #ffffff;
    color: #029b79;
  }
}
.gallery-tabs__item:first-child a {
  width: clamp(110px, 14.79vw, 284px);
}
.gallery-tabs__item.is-active a {
  background: #ffffff;
  color: #029b79;
}

.gallery-archive {
  background: #029b79;
  padding-top: clamp(18px, 1.98vw, 38px);
  padding-inline: 4%;
  padding-bottom: clamp(40px, 4.53vw, 87px);
}

.gallery-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(16px, 2.34vw, 45px);
  row-gap: clamp(20px, 1.98vw, 38px);
  list-style: none;
}
@media screen and (max-width: 1024px) {
  .gallery-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .gallery-archive__grid {
    grid-template-columns: 1fr;
  }
}

.gallery-archive__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-archive__thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #d3d3d3;
}
.gallery-archive__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
@media (hover: hover) {
  .gallery-archive__thumb:hover img {
    transform: scale(1.06);
  }
}

.gallery-archive__no-thumb {
  display: block;
  position: absolute;
  inset: 0;
  background: #d3d3d3;
}

.gallery-archive__badge {
  position: absolute;
  top: clamp(6px, 0.677vw, 13px);
  right: clamp(6px, 0.677vw, 13px);
  background: var(--badge-color, #029b79);
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  letter-spacing: 0.128em;
  padding: clamp(4px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px);
  white-space: nowrap;
  line-height: 1.5;
}

.gallery-archive__info {
  background: #ffffff;
  border: 4px solid #ffffff;
  margin-top: clamp(8px, 0.833vw, 16px);
  padding: clamp(10px, 1.04vw, 20px) clamp(6px, 0.573vw, 11px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px, 0.833vw, 16px);
  text-align: center;
}

.gallery-archive__date {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  color: #029b79;
  letter-spacing: 0.128em;
  line-height: 1.5;
}

.gallery-archive__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5625vw, 1.875rem);
  color: #029b79;
  letter-spacing: 0.128em;
  line-height: 1.5;
}

.gallery-archive__empty {
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  text-align: center;
  padding: clamp(40px, 4.1vw, 80px) 0;
}

.gallery-pagination {
  margin-top: clamp(40px, 4.79vw, 92px);
}
.gallery-pagination .wp-pagenavi {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.833vw, 16px);
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-pagination .page,
.gallery-pagination .current,
.gallery-pagination .nextpostslink,
.gallery-pagination .previouspostslink,
.gallery-pagination .first,
.gallery-pagination .last {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 2.865vw, 55px);
  height: clamp(36px, 2.865vw, 55px);
  border: 1px solid #ffffff;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  letter-spacing: 0.128em;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
  .gallery-pagination a.page:hover,
  .gallery-pagination a.nextpostslink:hover,
  .gallery-pagination a.previouspostslink:hover,
  .gallery-pagination a.first:hover,
  .gallery-pagination a.last:hover {
    background: #ffffff;
    color: #029b79;
  }
}
.gallery-pagination .current {
  background: #ffffff;
  color: #029b79;
}
.gallery-pagination .extend {
  border: none;
  pointer-events: none;
  letter-spacing: 0;
  color: #ffffff;
}
.gallery-pagination .previouspostslink,
.gallery-pagination .nextpostslink {
  position: relative;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.gallery-pagination .previouspostslink::before,
.gallery-pagination .nextpostslink::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45em;
  height: 0.45em;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  font-size: 1.5rem;
}
@media (hover: hover) {
  .gallery-pagination .previouspostslink:hover,
  .gallery-pagination .nextpostslink:hover {
    background: #ffffff;
  }
  .gallery-pagination .previouspostslink:hover::before,
  .gallery-pagination .nextpostslink:hover::before {
    border-color: #029b79;
  }
}
.gallery-pagination .previouspostslink::before {
  transform: translate(-25%, -50%) rotate(-135deg);
}
.gallery-pagination .nextpostslink::before {
  transform: translate(-75%, -50%) rotate(45deg);
}
