.tax-gallery .page-header {
  display: none;
}
.tax-gallery .page-body > .container {
  padding: 0 !important;
  width: 100%;
}
.tax-gallery .gallery-main {
  padding: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 100px !important;
}
.tax-gallery .realtime-search-box {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 20px 20px;
}
.tax-gallery .gallery-main .realtime-search-title {
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  margin: 0;
  color: #21445b;
}
.tax-gallery .gallery-main .realtime-search-list {
  padding: 0;
  margin: 0;
}
.tax-gallery .gallery-main .realtime-search-list li {
  list-style: none;
  display: block;
  border-bottom: 1px dashed #000;
  margin-bottom: 0;
  padding: 16px 0 16px;
}
.tax-gallery .gallery-main .realtime-search-detail li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.tax-gallery .gallery-main .realtime-search-list ul {
  padding: 0;
}
.tax-gallery .gallery-main .realtime-search-subtitle {
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  margin: 0;
  color: #21445b;
  line-height: 1.6;
}
.tax-gallery .accordion-title {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tax-gallery .accordion-title::after {
  content: '';
  background-image: url(images/plus.svg);
  background-position: top right;
  background-repeat: no-repeat;
  display: block;
  height: 18px;
  width: 18px;
  margin-left: 6px;
}
.tax-gallery .accordion-title.open::after {
  background-image: url(images/minus.svg);
  width: 18px;
}
.tax-gallery #category-filters {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 10px;
}
.tax-gallery #custom-field-filters,
.tax-gallery #additional-field-filters-1,
.tax-gallery #additional-field-filters-2 {
  margin-bottom: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tax-gallery .category-filter {
  padding: 6px 8px;
  margin-bottom: 0;
  background-color: #f4f4f4;
  border: 1px solid #21445b;
  cursor: pointer;
  display: block;
  width: 100%;
  font-size: 1.4rem;
  border-radius: 100vmax;
  color: #21445b;
  line-height: 1.4;
  text-align: center;
}
.tax-gallery .category-filter.active {
  background-color: #cfd7dc;
}

.tax-gallery .custom-field-filter,
.tax-gallery .additional-field-filter-1,
.tax-gallery .additional-field-filter-2 {
  padding: 6px 8px;
  background-color: #f4f4f4;
  border: 1px solid #21445b;
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  border-radius: 100vmax;
  color: #21445b;
  margin-right: 0;
  margin-bottom: 0;
  line-height: 1.4;
}
.tax-gallery .custom-field-filter.active,
.tax-gallery .additional-field-filter-1.active,
.tax-gallery .additional-field-filter-2.active {
  background-color: #cfd7dc;
}

.tax-gallery #search-results {
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0 0;
}
.tax-gallery #search-results li {
  list-style: none;
  margin-top: 10px;
  width: calc((100% - 10px) / 2);
}
.tax-gallery #search-results li:nth-child(-n + 2) {
  margin-top: 0;
}
.tax-gallery #search-results li a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  height: 43vw;
}
.tax-gallery #search-results li a:hover::before {
  background: #21445b4d;
}
.tax-gallery #search-results li a::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 10px;
  z-index: 1;
  transition: 0.7s;
  background: linear-gradient(180deg, rgba(33, 68, 91, 0) 85.71%, rgba(33, 68, 91, 0.2) 92.86%, rgba(33, 68, 91, 0.5) 100%);
}
.tax-gallery #search-results li a p {
  position: absolute;
  bottom: 8px;
  left: 12px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
  width: 85%;
  word-break: break-word;
  z-index: 1;
}
.tax-gallery #search-results li a img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  height: 43vw;
  object-fit: cover;
  z-index: 0;
}
.tax-gallery .search-results-box {
  padding-top: 10px;
  padding-bottom: 30px;
}
.tax-gallery .search-results-box p {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  color: #21445b;
  margin: 0;
}
.tax-gallery .search-results-retry {
  text-align: center;
  display: block;
  width: 100%;
  background-image: url(images/03.svg);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 35px 0;
  position: relative;
}
.tax-gallery .search-results-retry::before {
  position: absolute;
  content: '';
  display: block;
  background-image: url(images/01.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 54px 112px;
  width: 54px;
  height: 112px;
  left: 26px;
  top: 10px;
}
.tax-gallery .search-results-retry::after {
  position: absolute;
  content: '';
  display: block;
  background-image: url(images/02.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 54px 114px;
  width: 54px;
  height: 114px;
  top: 50px;
  right: 16px;
}
.tax-gallery .search-results-retry p {
  font-size: 14px;
  display: block;
  font-weight: 600;
  line-height: 1.6em;
  margin-bottom: 8px;
  margin-top: 0;
  color: #21445b;
}
.tax-gallery .search-results-retry span {
  font-size: 12px;
  display: block;
  font-weight: 600;
  line-height: 1.4em;
  letter-spacing: 0.05em;
  color: #21445b;
}
.tax-gallery .search-results-more {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6em;
  letter-spacing: 0.05em;
  margin: 20px auto 0;
  color: #21445b;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tax-gallery .search-results-more::after {
  content: '';
  display: block;
  background-image: url(images/more.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  width: 15px;
  height: 15px;
  margin-top: 6px;
}
.tax-gallery .realtime-search-more {
  display: none;
}
@media only screen and (min-width: 769px) {
  .tax-gallery .gallery-main {
    margin-bottom: 200px !important;
  }
  .tax-gallery .realtime-search-box {
    width: 800px;
    margin: 0 auto;
    padding: 25px 40px;
  }
  .tax-gallery .gallery-main .realtime-search-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: none;
  }
  .tax-gallery .gallery-main .realtime-search-detail li:last-child {
    padding-bottom: 20px;
  }
  .tax-gallery .gallery-main .realtime-search-detail li {
    border-top: 1px dashed #000;
  }
  .tax-gallery .gallery-main .realtime-search-subtitle {
    text-align: left;
  }
  .tax-gallery .category-filter {
    width: auto;
  }

  .tax-gallery #category-filters {
    display: flex;
    width: 645px;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
  }
  .tax-gallery #custom-field-filters,
  .tax-gallery #additional-field-filters-1,
  .tax-gallery #additional-field-filters-2 {
    width: 645px;
    margin-bottom: 0px;
    gap: 10px;
    margin-top: 0;
  }
  .tax-gallery .accordion-title {
    display: block;
  }
  .tax-gallery .accordion-title::after {
    content: none;
  }
  .tax-gallery .realtime-search-more {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #000;
  }
  .tax-gallery .realtime-search-more:hover {
    opacity: 0.75;
  }
  .tax-gallery .realtime-search-more::after {
    content: '';
    margin-left: 11px;
    display: block;
    width: 16px;
    height: 10px;
    background-image: url(images/toggle.svg);
    background-position: top left;
    background-repeat: no-repeat;
  }
  .tax-gallery .realtime-search-more.open::after {
    transform: rotate(-180deg);
  }
  .tax-gallery #search-results {
    width: 1024px;
    margin: 30px auto 0;
  }
  .tax-gallery #search-results li {
    margin-top: 12px;
  }
  .tax-gallery #search-results li:nth-child(-n + 4) {
    margin-top: 0;
  }
  .tax-gallery #search-results::before {
    content: '';
    display: block;
    max-width: calc((100% - 12px * 3) / 4);
    flex: 0 0 calc((100% - 12px * 3) / 4);
    order: 1;
  }
  .tax-gallery #search-results::after {
    content: '';
    display: block;
    max-width: calc((100% - 12px * 3) / 4);
    flex: 0 0 calc((100% - 12px * 3) / 4);
  }
  .tax-gallery #search-results li {
    max-width: calc((100% - 12px * 3) / 4);
    flex: 0 0 calc((100% - 12px * 3) / 4);
  }
  .tax-gallery #search-results li a {
    height: 247px;
  }
  .tax-gallery #search-results li a img {
    height: 247px;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .tax-gallery #search-results li a:hover img {
    transform: translateY(-50%) scale(1.15);
  }
  .tax-gallery .search-results-retry {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 0;
  }
  .tax-gallery .search-results-retry::before {
    background-size: 65px 134px;
    width: 65px;
    height: 134px;
    left: 60px;
    top: 38px;
  }
  .tax-gallery .search-results-retry::after {
    background-size: 68px 138px;
    width: 68px;
    height: 138px;
    top: 50px;
    right: 50px;
  }
  .tax-gallery .search-results-retry p {
    font-size: 16px;
    margin-bottom: 16px;
    margin-top: 0;
  }
  .tax-gallery .search-results-retry span {
    font-size: 14px;
  }
  .tax-gallery .search-results-more:hover {
    opacity: 0.75;
  }
}
.tax-gallery .results {
  position: relative;
}
.tax-gallery .results .reload-icon {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.tax-gallery .loading-container {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
}

.tax-gallery .loading-icon,
.tax-gallery .loading-icon:after {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-image: radial-gradient(4px 4px at 10% 50%, #cdd0d3, #cdd0d3 95%, transparent), radial-gradient(4px 4px at 50% 10%, #cdd0d3, #cdd0d3 95%, transparent), radial-gradient(4px 4px at 90% 50%, #cdd0d3, #cdd0d3 95%, transparent), radial-gradient(4px 4px at 50% 90%, #cdd0d3, #cdd0d3 95%, transparent);
}
.tax-gallery .loading-icon {
  position: relative;
  animation: spin 2s linear infinite;
}
.tax-gallery .loading-icon:after {
  position: absolute;
  content: ' ';
  left: 0;
  top: 0;
  margin: 0;
  transform: rotate(45deg);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
