@charset "UTF-8";
/* スナップ写真ダウンロード */
.snapPage {
  padding: 120px 0 96px;
}

.snapPage__inner {
  max-width: 720px;
}

/* ゲート */
.snapGate {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  text-align: center;
}

.snapGate__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}

.snapGate__lead {
  font-size: 1.4rem;
  color: #666666;
  margin-bottom: 24px;
}

.snapGate__error {
  color: #cc0000;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.snapGate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.snapGate__form label {
  text-align: left;
  font-weight: 600;
  font-size: 1.3rem;
}
.snapGate__form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 16px;
}

.snapGate__submit {
  margin: 8px auto 0;
}

/* 検索・結果 */
.snapSearch__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.snapSearch__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333333;
}

.snapSearch__logout {
  font-size: 1.3rem;
  color: #007bc7;
  text-decoration: underline;
}

.snapSearch__notice {
  color: #666666;
}

.snapSearch__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background: #f6f7f7;
  border-radius: 8px;
  margin-bottom: 32px;
}

.snapSearch__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.snapSearch__field label {
  font-weight: 600;
  font-size: 1.3rem;
}
.snapSearch__field select,
.snapSearch__field input[type="text"] {
  padding: 8px 10px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 16px;
  min-width: 200px;
}

/* 種目カテゴリー：独自ドロップダウン（js/snap.jsでネイティブselectと差し替え） */
.snapCustomSelect {
  position: relative;
  min-width: 200px;
}

.snapCustomSelect__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 16px;
  color: #333333;
  text-align: left;
  cursor: pointer;
}

.snapCustomSelect.is-open .snapCustomSelect__button {
  border-color: #007bc7;
}

.snapCustomSelect__arrow {
  flex-shrink: 0;
  color: #666666;
  font-size: 1.1rem;
}

.snapCustomSelect__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.snapCustomSelect__option {
  padding: 10px 12px;
  font-size: 1.4rem;
  color: #333333;
  cursor: pointer;
}

.snapCustomSelect__option:hover,
.snapCustomSelect__option.is-selected {
  background: #f6f7f7;
  color: #007bc7;
}

.snapSearch__submit {
  height: 44px;
  max-width: 140px;
}

.snapResults__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.snapResults__count {
  font-size: 1.4rem;
  color: #333333;
}

.snapResults__zipBtn {
  max-width: 240px;
  height: 52px;
}
.snapResults__zipBtn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.snapResults__hint {
  margin: 0 0 16px;
  color: #666666;
  font-size: 1.2rem;
}

.snapResults__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.snapResults__item {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.snapResults__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.snapResults__download {
  display: block;
  padding: 10px;
  font-size: 1.3rem;
  color: #007bc7;
  border-top: 1px solid #dcdcde;
  transition: all 0.3s ease;
}
.snapResults__download:hover {
  background: #f6f7f7;
}

.snapResults__empty {
  color: #666666;
  padding: 24px;
  text-align: center;
  background: #f6f7f7;
  border-radius: 8px;
}

@media screen and (max-width: 820px) {
  .snapPage {
    padding: 80px 0 64px;
  }
  .snapGate {
    padding: 32px 20px;
  }
  .snapSearch__form {
    flex-direction: column;
    align-items: stretch;
  }
  .snapSearch__field select,
  .snapSearch__field input[type="text"] {
    min-width: 0;
    width: 100%;
  }
  .snapSearch__submit {
    max-width: 100%;
  }
}
