/* ======================================================================
 p-archive-magazine
====================================================================== */
.l-main {
  max-width: 800px;
  width: 100%;
  justify-self: flex-end;
}

.search-section {
  position: relative;
  z-index: 0;
  margin: 20px auto 0;
  padding: 40px 20px;
  border-radius: 10px;
  background: #faf7f2;
}
@media screen and (max-width: 767px) {
  .search-section {
    padding: 0;
  }
}
@media screen and (max-width: 767px) {
  .search-section__container {
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr;
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }
  .search-section__container.is-open {
    grid-template-rows: 1fr;
  }
}
.search-section__inner {
  min-height: 0;
}
.search-section__title {
  position: relative;
  font-weight: bold;
}
@media screen and (min-width: 768px) {
  .search-section__title {
    position: absolute;
    top: 0;
    left: 50%;
    text-align: center;
    font-size: 26px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
}
@media screen and (max-width: 767px) {
  .search-section__title {
    padding: 20px 15px;
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }
  .search-section__title::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    background-image: url(../img/common/search-plus.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    content: "";
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  .search-section__title.is-active::after {
    background-image: url(../img/common/search-minus.svg);
  }
}

.search-form__controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}
@media screen and (max-width: 767px) {
  .search-form__controls {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}
.search-form__category {
  padding: 18px 40px 18px 15px;
  max-width: 250px;
  width: 100%;
  height: 60px;
  border: solid 1px #272523;
  border-radius: 5px;
  background: #fff url(../img/common/triangle-4.svg) no-repeat right 15px center;
  font-size: 16px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .search-form__category {
    padding: 12px 40px 12px 20px;
    max-width: 305px;
    height: 45px;
    font-size: 14px;
    line-height: 1.4285714286;
  }
}
.search-form__keyword {
  padding: 18px 15px;
  max-width: 330px;
  width: 100%;
  height: 60px;
  border: solid 1px #272523;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .search-form__keyword {
    padding: 12px 20px;
    max-width: 305px;
    height: 45px;
    font-size: 14px;
    line-height: 1.4285714286;
  }
}
.search-form__keyword::-webkit-input-placeholder {
  color: #929191;
}
.search-form__keyword::-moz-placeholder {
  color: #929191;
}
.search-form__keyword:-ms-input-placeholder {
  color: #929191;
}
.search-form__keyword::-ms-input-placeholder {
  color: #929191;
}
.search-form__keyword::placeholder {
  color: #929191;
}
.search-form__submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 0 10px;
  max-width: 100%;
  width: 150px;
  height: 60px;
  border-radius: 9999px;
  background: #58514f;
  -webkit-box-shadow: 0 3px 10px 0 rgba(39, 37, 35, 0.3);
  box-shadow: 0 3px 10px 0 rgba(39, 37, 35, 0.3);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
@media screen and (max-width: 767px) {
  .search-form__submit {
    margin: 10px auto 20px;
    width: 200px;
    height: 40px;
    font-size: 14px;
    line-height: 1.4285714286;
  }
}
@media (hover: hover) {
  .search-form__submit:hover {
    opacity: 0.8;
  }
}
.search-form__submit:before {
  margin: 4px 0 0;
  content: url(../img/common/i-search-2.svg);
}
@media screen and (max-width: 767px) {
  .search-form__submit:before {
    content: url(../img/common/i-search-2-sm.svg);
  }
}

.results-section {
  margin: 60px auto 0;
}
@media screen and (max-width: 767px) {
  .results-section {
    margin: 30px auto 0;
  }
}
.results-section__container {
  max-width: 100%;
}
.results-section__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
}
@media screen and (max-width: 767px) {
  .results-section__header {
    -webkit-box-align: self-start;
    -ms-flex-align: self-start;
    align-items: self-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
  }
}
.results-section__title {
  font-weight: bold;
  font-size: 22px;
  line-height: 1.4545454545;
}
@media screen and (max-width: 767px) {
  .results-section__title {
    font-size: 20px;
    line-height: 1.45;
  }
}
.results-section__info {
  padding: 5px 12px;
  border-radius: 9999px;
  background: #eaeaea;
  font-size: 14px;
  line-height: 1.4285714286;
}
.results-section__filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 15px;
}
.results-section__filter-label {
  font-weight: bold;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin: 20px auto 0;
}
@media screen and (max-width: 767px) {
  .articles-grid {
    gap: 20px;
  }
}

.article-card {
  position: relative;
  z-index: 0;
  display: block;
  overflow: hidden;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  -webkit-box-shadow: 0 3px 10px 0 rgba(145, 114, 104, 0.12);
  box-shadow: 0 3px 10px 0 rgba(145, 114, 104, 0.12);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
@media (hover: hover) {
  .article-card:hover {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  .article-card:hover > * {
    opacity: 0.6;
  }
}
.article-card > * {
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.article-card__thumbnail {
  aspect-ratio: 316/178;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
}
.article-card__content {
  padding: 12px 15px 20px;
}
.article-card__date {
  color: #58514f;
  font-weight: 500;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2857142857;
}
.article-card__categories {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 0;
}
.article-card__category {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding: 2px 10px 3px;
  border-radius: 9999px;
  background: #f8e233;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4285714286;
}
.article-card__title {
  margin: 15px 0 0;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.625;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.article-card__tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 0;
}
.article-card__hashtag {
  color: #58514f;
  font-size: 14px;
}

.no-results {
  padding: 60px 20px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .no-results {
    padding: 40px 20px;
  }
}
.no-results p {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .no-results p {
    font-size: 14px;
  }
}