/*
|---------------------------------------------------------------
| qinc2026-top-news.css - お知らせセクション（枠付きボックス）
|---------------------------------------------------------------
*/

/* ==========================================================================
   Section
   ========================================================================== */
.top-news {
  padding: var(--section-padding-y) 0 0;
}

/* ==========================================================================
   Box
   ========================================================================== */
.top-news__box {
  padding: 40px 48px;
  background: linear-gradient(to right, #eff6ff, #f8fafc);
  border: 1px solid var(--color-blue01);
  border-radius: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.top-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-blue-grey);
  margin-bottom: 0;
}

/* Label */
.top-news__label {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-blue01);
  margin-bottom: 12px;
}

/* Title */
.top-news__title {
  margin: 0;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.11;
  color: var(--color-blue01);
}

/* Button */
.top-news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 32px;
  background-color: var(--color-white);
  border: 1px solid var(--color-blue01);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-blue01);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.top-news__btn:hover {
  background-color: var(--color-blue01);
  color: var(--color-white);
}

/* ==========================================================================
   News List
   ========================================================================== */
.top-news__list {
  border-top: none;
}

/* ==========================================================================
   News Item
   ========================================================================== */
.top-news__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-blue-grey);
  color: var(--color-blue01);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-news__item:hover {
  opacity: 0.7;
}

/* Date */
.top-news__date {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-family-en);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-blue-grey02);
}

/* Badge */
.top-news__badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
}

/* Item Title */
.top-news__item-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-blue01);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-news__item-title::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ==========================================================================
   Responsive - Tablet (1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .top-news {
    padding-top: var(--section-padding-y-md);
  }

  .top-news__box {
    padding: 32px 32px;
  }

  .top-news__header {
    padding-bottom: 20px;
  }

  .top-news__title {
    font-size: 28px;
  }

  .top-news__btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .top-news__item {
    gap: 12px;
    padding: 16px 0;
  }

  .top-news__date {
    font-size: 13px;
  }

  .top-news__item-title {
    font-size: 14px;
  }
}

/* ==========================================================================
   Responsive - SP (768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .top-news {
    padding-top: var(--section-padding-y-sp);
  }

  .top-news__box {
    padding: 24px 20px;
  }

  .top-news__header {
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
  }

  .top-news__title {
    font-size: 24px;
  }

  .top-news__btn {
    align-self: flex-end;
    padding: 10px 20px;
    font-size: 13px;
  }

  .top-news__item {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px 0;
  }

  .top-news__date {
    font-size: 12px;
  }

  .top-news__badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .top-news__item-title {
    flex-basis: 100%;
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media screen and (max-width: 480px) {
  .top-news__btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}
