* {
  margin: 0;
  padding: 0;
}

ol,
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}
.ec-topicpath {
  display: flex;
  margin: 30px 10% 0;
}
.ec-topicpath a {
  color: #09860d;
}
.ec-topicpath__divider {
  margin: 0 5px;
}

.category-btn {
  justify-content: center;
}
.category-btn img {
  margin-right: 15px;
}
.tab {
  margin: 30px 10% 0;
}

@media screen and (max-width: 768px) {
  .tab img {
    width: 15%;
  }
  .category-btn {
    margin-bottom: 15px;
  }
}

.tab-list {
  display: flex;
  gap: 1px;
}
@media screen and (max-width: 768px) {
  .tab-list {
    flex-direction: column;
  }
}

.tab-item {
  border-radius: 5px 5px 0 0;
  background-color: #09860d;
  border-top: solid 1px #09860d;
  border-right: solid 1px #09860d;
  border-left: solid 1px #09860d;
}
.tab-item a {
  color: #fff;
  padding: 0.5em 1.2em;
  display: block;
}

.tab-content:has(.tab-panel.active) {
  display: flex;
  justify-content: space-between;
  border-top: solid 1px #09860d;
  border-right: solid 1px #09860d;
  border-left: solid 1px #09860d;
  border-radius: 0 8px 0 0;
}

.tab-content:not(:has(.tab-panel.active)) {
  display: none;
}

@media screen and (max-width: 768px) {
  .tab-content {
    flex-direction: column;
    border-radius: 0;
  }
}

.tab-panel {
  display: none;
}

.tab-item.active {
  background-color: #fff;
  font-weight: bold;
  position: relative;
}

.tab-item.active a {
  color: #09860d;
}

.tab-item.active::before {
  content: "";
  width: 100%;
  border-bottom: 1px solid #fff;
  position: absolute;
  bottom: -1px;
  left: 0;
}

.tab-panel.active {
  display: flex;
  padding: 3%;
  flex-wrap: wrap;
  gap: 20px 20px;
  flex: 10;
}
@media screen and (max-width: 768px) {
  .tab-panel.active {
    justify-content: center;
  }
}

.tab-panel.active h2 {
  font-size: 20px;
  font-weight: bold;
}

.search-form-box {
  border: solid 1px #09860d;
  border-radius: 0 0 8px 8px;
}

.tab-content:not(:has(.active)) + .search-form-box {
  border-radius: 0 8px 8px 8px;
}

.search-form-box .search-form-content {
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 768px) {
  .search-form-box .search-form-content {
    flex-direction: column;
  }
}
.search-form-box .search-form-item {
  padding: 3%;
}
@media screen and (max-width: 768px) {
  .search-form-box .search-form-item {
    margin: 0 auto;
  }
}

.search-form-box .search-form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #09860d;
  border-radius: 25px;
  width: 30vw;
  padding-left: 20px;
  height: 36px;
  background-color: #f5f5f5;
}
@media screen and (max-width: 768px) {
  .search-form-box .search-form-input {
    width: 50vw;
    box-sizing: border-box;
  }
  .search-form-box .search-form-input::placeholder {
    font-size: 2vw;
  }
}

select {
  background: none;
  appearance: none;
  font: inherit;
  padding: 9.5px 10px;
  border: 1px solid #09860d;
  box-sizing: border-box;
  width: 250px;
  border-radius: 2px;
}

.select {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.select::before {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 0;
  height: 0;
  border-width: 10px 5px 0 5px;
  border-style: solid;
  border-color: #09860d transparent transparent transparent;
  content: "";
  pointer-events: none;
}

.contents-list {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.category-btn {
  display: flex;
  width: fit-content;
  margin-right: 3%;
  background-color: #09860d;
  color: #ffffff;
  padding: 10px 30px;
  border: none;
  border-radius: 50px;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  cursor: pointer;
  text-align: center;
}

.list-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: rgb(255, 255, 255);
  margin: 100px 10% 100px 10%;
  padding: 20px;
  border: solid 1px;
  border-color: #555555;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

@media screen and (max-width: 840px) {
  .list-view {
    margin: 10px 3% 20px 3%;
  }
}

.list-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0 15px;
}

@media screen and (max-width: 840px) {
  .list-title {
    margin: 0 0 0 10px;
  }
}

.tax {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.list-area {
  display: flex;
  justify-content: flex-start;
  padding: 20px 0 20px 0;
  flex-wrap: wrap;
  gap: 1.5% 1.5%;
}

@media screen and (max-width: 840px) {
  .list-area {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px 10px;
  }
}

.card-1 {
  width: calc(100% / 5 - 30px);
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 25px;
}

@media screen and (max-width: 840px) {
  .card-1 {
    width: calc(100% / 3 - 10px);
  }
}

.card-1 h3,
.card-1 p {
  width: 100%;
  display: flex;
  color: #111111;
}

@media screen and (max-width: 840px) {
  .card-1 h3,
  .card-1 p {
    font-size: 12px;
    color: #111111;
  }
}

.card-1 a,
.card-1 a img {
  width: 100%;
  height: 19.024vw;
  object-fit: cover;
}

@media screen and (max-width: 840px) {
  .card-1 a img {
    height: 36vw;
  }
}

.card-1 h3 {
  border: solid 2px #09860d;
  padding-left: 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #111111;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page-advance,
.page-return {
  display: flex;
  background-color: #09860d;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
}

.page-num {
  height: 38px;
  display: flex;
  align-items: center;
}

.page-num a {
  border: solid 1px #09860d;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  background-color: #09860d;
  font-weight: bold;
  color: #ffffff;
}

.page-num a:first-child {
  border-radius: 50% 0 0 50%;
}

.page-num a:last-child {
  border-radius: 0 50% 50% 0;
}

.page-num a.active {
  border: solid 1px #09860d;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  background-color: #ffffff;
  font-weight: bold;
  color: #09860d;
}

.list-title p {
  font-size: 14px;
  font-weight: bold;
  padding: 0 0 0 20px;
  font-weight: 300;
}
.list-view h2 {
  border: solid 3px #09860d;
  border-right: none;
  border-top: none;
  border-bottom: none;
  text-align: left;
  padding: 0 0 0 10px;
  color: #111111;
}
