/* =========================================
   News Page
========================================= */
.news-index-section {
  padding-top: 56px;
}

.news-index-head {
  margin-bottom: 28px;
  text-align: center;
}

.news-page-text {
  line-height: 2;
}

.news-index-label,
.news-group-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef8f7;
  color: #7f876d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-index-intro {
  max-width: 760px;
  margin: 18px auto 0;
  line-height: 2;
}

.news-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfdccf;
  border-radius: 999px;
  background: #ffffff;
  color: #254b47;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #f2f7f4;
  color: #1f5550;
  border-color: #afc8b5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(54, 84, 71, 0.08);
}

.news-list-wrap {
  border-top: 1px solid #dfe7df;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list-featured {
  margin-bottom: 48px;
}

.news-item {
  margin-bottom: 22px;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-link {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 28px 30px;
  border: 1px solid #dfe7df;
  border-radius: 24px;
  background: #ffffff;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.news-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(39, 67, 56, 0.08);
  border-color: #d2ddd3;
  background: #fcfdfc;
}

.news-link:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(39, 67, 56, 0.05);
}

/* 最新記事だけ少し強調 */
.news-list-featured .news-item:first-child > .news-link {
  background: linear-gradient(180deg, #f9fcfa 0%, #ffffff 100%);
  border-color: #d6e4d8;
  box-shadow: 0 10px 24px rgba(49, 77, 63, 0.05);
}

/* 左カラム */
.news-link > .news-date-wrap,
.news-link > .news-meta-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  align-items: flex-start;
}

.news-date {
  display: block;
  margin: 0 0 14px;
  color: #3a6f6c;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

.news-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  min-height: 40px;
}

/* 記事ページ上部メタ */
.news-meta-row,
.news-article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.news-meta-row {
  margin-bottom: 16px;
}

.news-article-hero-meta {
  justify-content: center;
  margin-bottom: 14px;
}

/* カテゴリ */
.news-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.news-category-info {
  background: #eef5ec;
  color: #3a6450;
  border-color: #d7e4d7;
}

.news-category-availability {
  background: #eef6fb;
  color: #2f6985;
  border-color: #d7e7f2;
}

.news-category-recruit {
  background: #f8f2e8;
  color: #81572c;
  border-color: #ead9c3;
}

.news-category-update {
  background: #eef2f7;
  color: #4a5d73;
  border-color: #d7e0ea;
}

.news-category-caremanager {
  background: #eef6fb;
  color: #2f5e7d;
  border-color: #d7e6f3;
}

/* バッジ */
.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  color: #ffffff;
  background: #ef7a73;
}

.news-badge.is-important {
  background: #de7d61;
}

.news-badge.is-update {
  background: #8d84d8;
}

.news-badge.is-new {
  background: #ef7a73;
}

/* 右カラム本文 */
.news-content {
  display: block;
  min-width: 0;
}

.news-title {
  display: block;
  margin: 0 0 14px;
  color: #183532;
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.45;
}

.news-excerpt {
  display: block;
  margin: 0;
  color: #516261;
  font-size: 1rem;
  line-height: 2;
}

/* 1件目の本文を少し強調 */
.news-list-featured .news-item:first-child .news-title {
  font-size: clamp(1.8rem, 2.4vw, 2.25rem);
}

.news-group {
  margin-top: 64px;
  scroll-margin-top: 120px;
}

.news-group-head {
  margin-bottom: 18px;
  text-align: left;
}

.news-group-title {
  margin: 0;
  color: #1c3130;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.45;
}

.news-group-text {
  max-width: 760px;
  margin: 12px 0 28px;
  color: #5a6a6a;
  line-height: 1.9;
}

/* =========================================
   News Article
========================================= */
.news-article-section {
  padding-top: 32px;
}

.page-hero .page-title {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
}

.page-hero + .news-article-section {
  padding-top: 20px;
}

.page-hero .page-text {
  margin-top: 0;
  line-height: 1.9;
}

.news-article-card {
  padding: 48px 42px;
  border: 1px solid #dfe7df;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  box-shadow: 0 18px 42px rgba(44, 122, 123, 0.08);
}

.news-article-body {
  color: #4a5a5a;
}

.page-paragraph {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 2;
  color: #4a5a5a;
}

.page-paragraph:last-child {
  margin-bottom: 0;
}

.news-article-heading {
  margin: 36px 0 14px;
  color: #2c7a7b;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.6;
}

.news-article-list {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.news-article-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.9;
  color: #4a5a5a;
}

.news-article-list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fc8c2;
  transform: translateY(-50%);
}

.news-notice-box {
  margin: 32px 0;
  padding: 28px;
  border-radius: 20px;
  background: #f0faf8;
  border: 1px solid rgba(44, 122, 123, 0.1);
  border-left: 4px solid #2e8b7f;
}

.news-notice-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #2e8b7f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-notice-link a {
  font-weight: 700;
  color: #2c7a7b;
}

.news-article-actions {
  margin-top: 28px;
  text-align: center;
}

.news-back-button {
  display: inline-block;
  min-width: 220px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid #2e8b7f;
  color: #2e8b7f;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.news-back-button:hover {
  background: #2e8b7f;
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================================
   Responsive
========================================= */
@media screen and (max-width: 1100px) {
  .news-link {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 26px;
    padding: 26px 24px;
  }

  .news-title {
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  }

  .news-list-featured .news-item:first-child .news-title {
    font-size: clamp(1.6rem, 2.2vw, 1.95rem);
  }

  .news-date {
    font-size: clamp(1.45rem, 2vw, 1.7rem);
  }
}

@media screen and (max-width: 767px) {
  .news-index-section,
  .news-article-section {
    padding-top: 48px;
  }

  .news-filter {
    gap: 10px;
    margin-bottom: 26px;
  }

  .filter-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .news-item {
    margin-bottom: 14px;
  }

  .news-link {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .news-date {
    margin-bottom: 10px;
    font-size: 1.12rem;
  }

  .news-meta-badges {
    gap: 8px;
  }

  .news-category,
  .news-badge {
    min-width: 72px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .news-title {
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .news-excerpt {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .news-group {
    margin-top: 48px;
  }

  .news-group-title {
    font-size: 1.3rem;
  }

  .page-hero .page-title {
    margin: 10px 0;
  }

  .page-hero + .news-article-section {
    padding-top: 18px;
  }

  .news-article-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .news-article-heading {
    margin-top: 34px;
    font-size: 1.2rem;
  }

  .news-notice-box {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .news-back-button {
    width: 100%;
    min-width: 0;
  }

  .news-link:hover,
  .news-link:active {
    transform: none;
    box-shadow: none;
  }
}

/* =========================================
   FIX: お知らせカードの縦ラインを揃える
   news-link 直下の3要素を明示配置
========================================= */

.news-link {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 28px !important;
  row-gap: 10px !important;
  align-items: start !important;
  padding: 28px 34px !important;
}

.news-link > .news-date {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: start !important;
}

.news-link > .news-meta-badges {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  min-height: 0 !important;
  align-self: start !important;
}

.news-link > .news-content {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  min-width: 0 !important;
  align-self: center !important;
}

.news-link > .news-content > .news-title {
  margin-top: 0 !important;
}

@media screen and (max-width: 767px) {
  .news-link {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    row-gap: 12px !important;
  }

  .news-link > .news-date {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .news-link > .news-meta-badges {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .news-link > .news-content {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-self: start !important;
  }
}

.news-index-head h2,
.news-index-head .page-title {
  margin-bottom: 20px;
}

.news-index-intro {
  margin: 0 auto 24px;
}

.news-filter {
  margin: 0 0 40px;
}

.news-index-head {
  margin-bottom: 36px;
}
