/* =========================================================
   page-news-single.css : お知らせ詳細
   page-pill / topics(タグ・日付・タイトル・本文) / 一覧へ戻るボタン
   施設子サイト（りじょう認定こども園）
   ※ .tag は components.css を流用。背景はPC共通背景(body.bg-en)。
   ========================================================= */

/* ===== ページタイトル pill（共通仕様） ===== */
.page-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  max-width: calc(100% - 40px);
  height: 70px;
  margin: 40px auto 0;
  background: var(--color-white);
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-accent);
}

/* ===== 記事本体 ===== */
.topics {
  width: 100%;
  max-width: 776px;
  margin: 32px auto 0;
  padding-inline: var(--gutter);
}

/* タグ＋日付（PC：タグ上／日付下、左寄せ） */
.topics__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.topics__date {
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}

/* タイトル（中央寄せ） */
.topics__title {
  margin-top: 17px;
  text-align: center;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
}

/* 本文（幅776・左寄せ・Kiwi Maru 16px） */
.topics__body {
  margin-top: 24px;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-sub);
}
.topics__body p + p { margin-top: 1.6em; }

/* ===== 一覧へ戻るボタン（白・緑枠・緑文字＋矢印） ===== */
.back-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 45px;
  margin: 60px auto 0;
  background: var(--color-white);
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-accent);
  transition: opacity 0.2s;
}
.back-btn:hover { opacity: 0.7; }
/* 矢印「→」：線＋三角（PC）。SPは線を0にしてシェブロンのみ */
.back-btn__arrow {
  position: absolute;
  right: 16px;
  width: 30px;
  height: 1.5px;
  background: var(--color-accent);
}
.back-btn__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--color-accent);
  border-right: 1.5px solid var(--color-accent);
  transform: translateY(-50%) rotate(45deg);
}

/* =========================================================
   レスポンシブ（SP : max-width 750px）
   ========================================================= */
@media (max-width: 750px) {
  .page-pill { width: 300px; max-width: calc(100% - 40px); height: 40px; font-size: 22px; margin-top: 24px; }

  .topics { max-width: none; margin-top: 24px; }
  /* SP：日付上／タグ下 に入れ替え */
  .topics__meta { gap: 6px; }
  .topics__meta .topics__date { order: 1; }
  .topics__meta .tag { order: 2; }
  .topics__title { font-size: 16px; margin-top: 16px; }
  .topics__body { margin-top: 20px; }

  .back-btn { width: 100%; max-width: 360px; height: 52px; margin-top: 32px; }
  .back-btn__arrow { width: 0; right: 18px; } /* SPはシェブロンのみ */
}
