/* ========================================
   エリアニュース記事詳細ページ固有CSS
   area-detail.css / area-news-list.css のスタイルをベースに利用
   ======================================== */

/* ----------------------------------------
   SP版
   ---------------------------------------- */
.area-news-detail-sp__card {
  background: var(--color-base-white);
  border-radius: 24px;
  box-shadow: 0 0 16px rgba(140, 7, 8, 0.12);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px;
}

.area-news-detail-sp__card_body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.area-news-detail-sp__meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.area-news-detail-sp__date {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base, 16px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
}

.area-news-detail-sp__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px;
  font-family: var(--font-family-body);
  font-size: var(--font-size-xs, 12px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-base-white);
  background-color: var(--color-base-safety-red);
  white-space: nowrap;
}

.area-news-detail-sp__label--black {
  background-color: var(--color-base-caption);
}

.area-news-detail-sp__title {
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
}

.area-news-detail-sp__img {
  width: 100%;
  aspect-ratio: 608 / 456;
  overflow: hidden;
  background-color: var(--color-base-line);
}

.area-news-detail-sp__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文の途中の画像（本文に「[画像]」の行がある記事。newsBodyHtml filter が出力）。切り抜かずに表示する（本文の幅より小さい画像は拡大せず中央に） */
.area-news-detail-sp__img--inline {
  aspect-ratio: auto;
  background-color: transparent;
  margin: 24px 0;
}

.area-news-detail-sp__img--inline img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.area-news-detail-sp__body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base, 16px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
}

/* 本文の改行（記事JSONの \n）をそのまま表示する。HTMLは使えない（エスケープされる） */
.area-news-detail-sp__body p {
  margin: 0;
  white-space: pre-line;
  /* 長いURLなど区切りのない文字列も枠内で折り返す */
  overflow-wrap: anywhere;
}

/* 本文中の URL（linkify filter でリンクにしたもの）。料金表の注記のリンクと同じ青・下線 */
.area-news-detail-sp__body a {
  color: var(--color-key-blue);
  text-decoration: underline;
}

.area-news-detail-sp__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----------------------------------------
   PC版
   ---------------------------------------- */
.area-news-detail-pc__card {
  background: var(--color-base-white);
  border-radius: 24px;
  box-shadow: 0 0 24px rgba(140, 7, 8, 0.12);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.area-news-detail-pc__meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.area-news-detail-pc__date {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base, 16px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
}

.area-news-detail-pc__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px;
  font-family: var(--font-family-body);
  font-size: var(--font-size-xs, 12px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-base-white);
  background-color: var(--color-base-safety-red);
  white-space: nowrap;
}

.area-news-detail-pc__label--black {
  background-color: var(--color-base-caption);
}

.area-news-detail-pc__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.area-news-detail-pc__title {
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
  width: 100%;
}

.area-news-detail-pc__img {
  width: 100%;
  aspect-ratio: 608 / 456;
  overflow: hidden;
  background-color: var(--color-base-line);
}

.area-news-detail-pc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文の途中の画像（本文に「[画像]」の行がある記事。newsBodyHtml filter が出力）。切り抜かずに表示する（本文の幅より小さい画像は拡大せず中央に） */
.area-news-detail-pc__img--inline {
  aspect-ratio: auto;
  background-color: transparent;
  margin: 24px 0;
}

.area-news-detail-pc__img--inline img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.area-news-detail-pc__body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base, 16px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  width: 100%;
}

/* 本文の改行（記事JSONの \n）をそのまま表示する。HTMLは使えない（エスケープされる） */
.area-news-detail-pc__body p {
  margin: 0;
  white-space: pre-line;
  /* 長いURLなど区切りのない文字列も枠内で折り返す */
  overflow-wrap: anywhere;
}

/* 本文中の URL（linkify filter でリンクにしたもの）。料金表の注記のリンクと同じ青・下線 */
.area-news-detail-pc__body a {
  color: var(--color-key-blue);
  text-decoration: underline;
}

.area-news-detail-pc__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  width: 100%;
}
