/* ==========================================================================
   News Page — Company-based arch structure
   ========================================================================== */

.p-news-page {
  background: #fb9516;
}

.p-news {
  padding: 0;
  overflow: hidden;
}

.p-news-hub img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Hub Section — Orange bg + single white arch (top + bottom radius)
   -------------------------------------------------------------------------- */

.p-news-hub {
  position: relative;
  z-index: 3;
  background: #fb9516;
  padding-top: 86px;
}

.p-news-hub__arch {
  width: 100%;
  padding: clamp(70px, 7.1vw, 102px) clamp(30px, 6vw, 80px) clamp(200px, 24vw, 340px);
  background: linear-gradient(to bottom, #ffffff 0%, #f2f8f7 45%, #e3f3f1 70%, #f2f8f7 100%);
  border-top-left-radius: 50% clamp(300px, 40vw, 580px);
  border-top-right-radius: 50% clamp(300px, 40vw, 580px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Hero (icon + title)
   -------------------------------------------------------------------------- */

.p-news-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.p-news-hero__icon {
  width: clamp(76px, 9vw, 124px);
  height: auto;
}

.p-news-hero__title {
  width: min(325px, 74vw);
}

.p-news-hero__title img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Search & Tags
   -------------------------------------------------------------------------- */

.p-news-board {
  width: min(1027px, calc(100% - 56px));
}

.p-news-board--list {
  width: min(1148px, calc(100% - 56px));
}

.p-news-controls {
  margin-bottom: 0;
}

.p-news-controls__search-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  border: 1px solid rgb(251, 149, 22);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 16px;
  margin-bottom: 12px;
}

.p-news-controls__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a9e9e;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid #ccc;
  flex-shrink: 0;
}

.p-news-controls__search {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: #4a4a4a;
}

.p-news-controls__search:focus {
  outline: 0;
}

.p-news-controls__search::placeholder {
  color: #b3b3b3;
}

.p-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 12px;
}

.p-news-tags__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 127px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgb(251, 149, 22);
  background: #fff;
  color: #333333;
  font-size: 18px;
  font-weight: 500;
  padding: 0 24px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.p-news-tags__button:hover,
.p-news-tags__button:focus-visible,
.p-news-tags__button.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   News List
   -------------------------------------------------------------------------- */

.p-news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
}

.p-news-item {
  border-bottom: 1px solid #ccc;
}

.p-news-item__link {
  display: block;
  padding: 36px 12px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.p-news-item__link:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.p-news-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.p-news-item__date {
  font-size: 15px;
  color: #666;
  font-weight: 400;
  white-space: nowrap;
}

.p-news-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid rgb(251, 149, 22);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  padding: 2px 16px;
  white-space: nowrap;
}

.p-news-item__title {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.p-news-empty {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.p-news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  margin-top: 48px;
}

.p-news-pagination__item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-family-en);
  font-size: 23px;
  font-weight: 600;
  color: #8f8f8f;
  border: 1px solid transparent;
}

.p-news-pagination__item:hover,
.p-news-pagination__item.is-current {
  color: var(--color-primary);
  border-color: rgba(251, 149, 22, 0.35);
  background: #fff;
}

/* --------------------------------------------------------------------------
   CTA Grid wrapper (inside arch, width-constrained)
   -------------------------------------------------------------------------- */

.p-news-cta-wrap {
  width: min(960px, 88vw);
  margin-top: 60px;
}

.p-news-cta-wrap .p-cta-grid__box {
  width: 100%;
}

.p-news-cta-wrap .p-cta-grid__title {
  height: 36px;
}

.p-news-cta-wrap .p-cta-grid__arrow {
  width: 30px;
  height: auto;
}

/* Footer — curve fill color only (override handled by .has-footer-arch) */
.has-footer-arch.p-news + .l-footer .l-footer__curve-path {
  fill: #f2f8f7;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .p-news-cta__buttons {
    margin-top: clamp(40px, 8vw, 80px);
  }

  /* 1200px footer override → .has-footer-arch に統合済み */
}

@media (max-width: 1023px) {
  .p-news-board {
    width: min(1027px, calc(100% - 44px));
  }

  .p-news-board--list {
    width: min(1148px, calc(100% - 44px));
  }

  .p-news-tags__button {
    font-size: 15px;
    min-width: 100px;
    height: 34px;
  }

  .p-news-controls__search {
    font-size: 16px;
  }

  .p-news-controls__search-wrap {
    height: 48px;
  }

  .p-news-pagination__item {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }
}

@media (max-width: 900px) {
  .p-news-hub {
    padding-top: 74px;
  }

  .p-news-hub__arch {
    padding: clamp(50px, 7vw, 70px) 30px clamp(180px, 25vw, 220px);
    border-top-left-radius: 50% clamp(200px, 40vw, 430px);
    border-top-right-radius: 50% clamp(200px, 40vw, 430px);
  }
}

@media (max-width: 767px) {
  .p-news-hub {
    padding-top: 64px;
  }

  .p-news-hub__arch {
    min-height: 300px;
    padding: 100px 20px 220px;
    border-top-left-radius: 50% 280px;
    border-top-right-radius: 50% 280px;
  }

  .p-news-board {
    width: calc(100% - 24px);
  }

  .p-news-controls__search-wrap {
    height: 44px;
  }

  .p-news-controls__search {
    font-size: 14px;
  }

  .p-news-tags__button {
    min-width: 0;
    height: 30px;
    font-size: 13px;
    padding-inline: 14px;
  }

  .p-news-item__link {
    padding: 20px 4px;
  }

  .p-news-item__date {
    font-size: 13px;
  }

  .p-news-item__category {
    font-size: 12px;
    min-height: 22px;
    padding: 0 12px;
  }

  .p-news-item__title {
    font-size: 15px;
  }

  .p-news-pagination {
    margin-top: 32px;
    gap: 8px;
  }

  .p-news-pagination__item {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

}

@media (max-width: 480px) {
  .p-news-hub {
    padding-top: 56px;
  }

  .p-news-hub__arch {
    min-height: 260px;
    padding: 80px 16px 160px;
    border-top-left-radius: 50% 200px;
    border-top-right-radius: 50% 200px;
  }
}
