.jirei-filter-panel {
  background: #ffffff;
  border: 2px solid #f5d98f;
  border-radius: 14px;
  padding: 32px 34px 28px;
}

.jirei-filter-panel * {
  box-sizing: border-box;
}

.jirei02 .jirei-filter-panel {
  margin-right: 20px;
}

.jirei-filter-title {
  margin: 0 0 6px;
  font-size: 2.1rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ef5b2a;
}

.jirei-filter-subtitle {
  margin: 0 0 16px;
  font-size: 1.45rem;
  line-height: 1.55;
  color: #52606d;
}

.jirei-filter-form {
  width: 100%;
}

.jirei-filter-fields {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
}

.jirei-filter-fields>.form-group[class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.jirei-filter-form label {
  min-height: 1.6em;
  margin: 0 0 6px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #354251;
}

.jirei-filter-form .form-control {
  width: 100%;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 56px !important;
  min-height: 56px;
  border: 2px solid #f7c85d;
  border-radius: 10px;
  background-color: #fffefb;
  color: #202b38;
  font-size: 1.65rem;
  line-height: 1.2;
  box-shadow: none;
}

.jirei-filter-form input.form-control {
  padding: 0 16px;
}

.jirei-filter-form .form-control::placeholder {
  color: #7f8b99;
  font-size: 1.5rem;
}

.jirei-filter-form select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0 44px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234c5865' d='M6 8 0 2.2 1.4.8 6 5.2 10.6.8 12 2.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.jirei-filter-form .form-control:focus {
  border-color: #ff6f3d;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 111, 61, 0.12);
}

.jirei-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  justify-content: end;
  gap: 10px;
  margin-top: 20px;
}

.jirei-filter-actions .btn {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 1.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jirei-filter-submit::before,
.jirei-filter-reset::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.jirei-filter-submit {
  border: 2px solid #ff6f3d;
  color: #ffffff;
  background: #ff6f3d;
}

.jirei-filter-submit::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12.5 12.5 17 17' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12.5 12.5 17 17' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.jirei-filter-submit:hover,
.jirei-filter-submit:focus {
  border-color: #e7501e;
  background: #e7501e;
  color: #ffffff;
}

.jirei-filter-reset {
  border: 2px solid #3fa7ff;
  color: #1178d1;
  background: #ffffff;
}

.jirei-filter-reset::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.2 6.2A5.9 5.9 0 1 1 4.1 10' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M4.1 4.2v4.4h4.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.2 6.2A5.9 5.9 0 1 1 4.1 10' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M4.1 4.2v4.4h4.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.jirei-filter-reset:hover,
.jirei-filter-reset:focus {
  border-color: #2a95ef;
  background: #2a95ef;
  color: #ffffff;
}

.jirei-filter-result-count {
  display: inline-block;
  margin: 35px 0 18px;
  padding: 5px 14px;
  border: 2px solid #f7d37d;
  border-radius: 999px;
  background: #fff6da;
  color: #243241;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
}

.jirei-filter-empty {
  margin-bottom: 22px;
  color: #4f5a67;
  font-size: 1.55rem;
  line-height: 1.7;
}

.jirei-more-wrap {
  margin-top: 14px;
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-end;
}

.jirei-more-btn {
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid #ef5b2a;
  border-radius: 999px;
  background: #ffffff;
  color: #ef5b2a;
  font-size: 1.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jirei-more-btn::after {
  content: ">";
  font-size: 1.5rem;
  line-height: 1;
}

.jirei-more-btn:hover,
.jirei-more-btn:focus {
  background: #ef5b2a;
  border-color: #ef5b2a;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .jirei02 .jirei-filter-panel {
    margin-right: 0;
  }

  .jirei-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jirei-filter-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jirei-more-wrap {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .jirei-filter-panel {
    border-radius: 12px;
    padding: 24px 20px 22px;
  }

  .jirei-filter-title {
    font-size: 1.82rem;
  }

  .jirei-filter-subtitle {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .jirei-filter-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jirei-filter-form label {
    min-height: 0;
    font-size: 1.35rem;
    margin-bottom: 5px;
  }

  .jirei-filter-form .form-control {
    height: 50px !important;
    min-height: 50px;
    font-size: 1.55rem;
  }

  .jirei-filter-form .form-control::placeholder {
    font-size: 1.4rem;
  }

  .jirei-filter-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .jirei-filter-actions .btn {
    min-height: 56px;
    padding: 0 20px;
    font-size: 1.58rem;
  }

  .jirei-filter-result-count {
    margin-bottom: 14px;
    font-size: 1.4rem;
  }

  .jirei-filter-empty {
    font-size: 1.45rem;
  }

  .jirei-more-wrap {
    margin-top: 12px;
  }

  .jirei-more-btn {
    width: 100%;
    min-height: 50px;
    font-size: 1.58rem;
    padding: 0 14px;
  }
}
