/* ─── お知らせ（TOPカード／詳細ページ）共通スタイル ───
   index.html と news/<id>.html の両方から読み込む。
   色・角丸・影は index.html と ../lp/shared.css にある共通トークン（--blue-* / --gray-* / --shadow-*）を使う。
   画像なしで成立するレイアウト。 */

/* ── 日本語の改行最適化（../lp/shared.css と同じ方針） ── */
.news-card__title,
.news-card__excerpt,
.news-article__title,
.news-article__body p,
.news-article__closing,
.news-article__guide,
.news-booth__text,
.news-overview dd,
.news-error p {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

/* ── ラベル・開催日（TOPカードと詳細ページで共通） ── */
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.news-card__label {
  display: inline-flex;
  align-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-800);
}

/* ── TOP：お知らせカード ── */
.news-top {
  padding: 56px 24px 8px;
  background: #fff;
}
.news-top__inner {
  max-width: 1000px;
  margin: 0 auto;
}
/* セクション見出し（既存TOPセクションと同じ中央寄せ＋.section-label） */
.news-top__head {
  text-align: center;
  margin-bottom: 28px;
}
.news-top__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--blue-950);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.news-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  /* transform は .reveal が使うため、hover では変えない */
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.2s, border-color 0.2s;
}
.news-card:hover {
  border-color: var(--blue-300);
  border-left-color: var(--blue-700);
  box-shadow: var(--shadow-md);
}
/* タイトルのリンクをカード全体へ広げる（stretched link） */
.news-card__link {
  color: inherit;
  text-decoration: none;
}
.news-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.news-card__link:focus-visible { outline: none; }
.news-card__link:focus-visible::after {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}
.news-card:hover .news-card__link,
.news-card__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.news-card__title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.6;
  color: var(--blue-950);
  margin-bottom: 10px;
}
.news-card__excerpt {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.news-card:hover .news-card__more,
.news-card:focus-within .news-card__more {
  color: var(--blue-800);
  gap: 10px;
}

/* ── 詳細ページ ── */
/* 上余白はヘッダー高さ（デスクトップ92px／1180px以下70px）に合わせる（doctors.css の .doc-hero と同じ） */
.news-page {
  padding: 124px 24px 72px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 360px);
}
.news-page__inner {
  max-width: 860px;
  margin: 0 auto;
}
.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.news-breadcrumb a {
  color: var(--blue-600);
  text-decoration: none;
}
.news-breadcrumb a:hover { text-decoration: underline; }

.news-article {
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.news-article__head {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--blue-100);
}
.news-article__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  line-height: 1.6;
  color: var(--blue-950);
  letter-spacing: -0.01em;
}
.news-article__body p,
.news-article__closing {
  font-size: 15.5px;
  line-height: 2;
  color: var(--gray-700);
}
.news-article__body p + p { margin-top: 1.2em; }
.news-article__closing { margin-top: 32px; }
.news-article__guide {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--gray-700);
}
.news-article__inlink {
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.news-article__inlink:hover { color: var(--blue-800); }

.news-article__block { margin-top: 36px; }
.news-article__h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-950);
  margin-bottom: 16px;
}
.news-article__h2::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--blue-600);
  flex-shrink: 0;
}

.news-booth {
  list-style: none;
  display: grid;
  gap: 12px;
}
.news-booth__item {
  background: var(--blue-50);
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  gap: 4px;
}
.news-booth__label {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-700);
}
.news-booth__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--gray-700);
}

.news-overview {
  border-top: 1px solid var(--blue-100);
}
.news-overview__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--blue-100);
}
.news-overview dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-800);
}
.news-overview dd {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--gray-700);
}
.news-overview__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--blue-600);
}
.news-overview__link:hover { color: var(--blue-800); }
.news-overview__note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-500);
}

.news-error {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 28px 32px;
  color: #991b1b;
  font-size: 15px;
  line-height: 1.9;
}

.news-back {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
}

/* ── レスポンシブ ── */
@media (max-width: 1180px) {
  .news-page { padding-top: 102px; }
}
@media (max-width: 640px) {
  .news-top { padding: 40px 16px 4px; }
  .news-top__head { margin-bottom: 20px; }
  .news-top__head .section-label { margin-bottom: 12px; }
  .news-card { padding: 22px 20px; border-radius: 14px; }
  .news-card__link::after { border-radius: 14px; }
  .news-page { padding: 94px 16px 56px; }
  .news-article { padding: 28px 20px; border-radius: 18px; }
  .news-article__body p,
  .news-article__closing,
  .news-article__guide { font-size: 15px; }
  .news-overview__row { grid-template-columns: 1fr; gap: 2px; padding: 12px 2px; }
}
