/**
 * CSS File: news-search.css
 * 2026-05-08 | Final checked
 */

.news-search-wrapper {
  position: relative;
  width: 100%;
  background-color: #fdfaf7;
  padding-bottom: 60px;
  z-index: var(--z_0-base);
}

.news-search-main-section {
  padding: 40px 15px;
}

.news-search-container {
  max-width: 960px;
  margin: 0 auto;
}

.news-search-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-search-header__sub {
  font-size: 0.8125rem;
  color: #f69381;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.news-search-entry-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 10px;
}

.news-search-header__count {
  font-size: 0.8125rem;
  color: #888;
}

.news-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.news-search-item {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-search-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-search-thumb {
  width: 100%;
  height: 160px;
  background: #eee;
  overflow: hidden;
}

.news-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #ccc;
  font-size: 0.75rem;
}

.news-search-body {
  padding: 20px;
}

.news-search-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.news-search-date {
  font-size: 0.75rem;
  color: #aaa;
}

.news-search-label {
  font-size: 0.625rem;
  background: rgba(0, 64, 152, 0.05);
  color: #004098;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.news-search-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-search-excerpt {
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-search-re-form {
  margin-top: 50px;
  padding: 30px 20px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
  text-align: center;
}

.news-search-re-form__text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.news-search-form__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.news-search-form__input {
  flex-grow: 1;
  height: 50px;
  padding: 0 20px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.news-search-form__input:focus {
  border-color: #f69381;
}

.news-search-form__submit {
  height: 50px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.news-search-empty {
  text-align: center;
  padding: 30px 0;
}

.news-search-empty__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.news-search-empty__title {
  font-size: 1.25rem;
  font-weight: 800;
}

.news-search-bottom-nav {
  margin-top: 50px;
  text-align: center;
}

.news-search-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 50px;
  border: 2px solid #f69381;
  color: #f69381;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.875rem;
}

.news-search-btn-back__arrow {
  margin-right: 10px;
  transform: translateY(-1px);
}

@media screen and (min-width: 768px) {
  .news-search-wrapper {
    padding-bottom: 100px;
  }

  .news-search-main-section {
    padding: 60px 15px;
  }

  .news-search-entry-title {
    font-size: 2rem;
  }

  .news-search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .news-search-thumb {
    height: 180px;
  }

  .news-search-body {
    padding: 25px 30px;
  }

  .news-search-item-title {
    min-height: 2.8em;
  }

  .news-search-re-form {
    margin-top: 60px;
    padding: 40px 20px;
  }

  .news-search-form__inner {
    flex-direction: row;
  }

  .news-search-form__submit {
    padding: 0 30px;
  }

  .news-search-btn-back {
    padding: 0 45px;
    height: 56px;
    font-size: 1rem;
  }

  .news-search-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  }

  .news-search-item:hover .news-search-thumb img {
    transform: scale(1.05);
  }
}
