/* ============================================================
   relyon-news-single.css – お知らせ詳細ページ専用スタイル
   ============================================================ */

:root {
  --c-accent: #009DE6;
}

body.single-post {
  --sec-pad: 80px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #222222;
}

.rns-container {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.rns-article {
  padding-top: var(--sec-pad);
  padding-bottom: var(--sec-pad);
}

/* ============================================================
   アイキャッチ画像
   ============================================================ */
.rns-thumbnail {
  margin-bottom: 32px;
}

.rns-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   日付・バッジ（お知らせ一覧と同じデザイン）
   ============================================================ */
.rns-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rns-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-accent);
}

.rns-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #00489D, #009DE6) border-box;
}

.rns-badge-text {
  font-family: 'Baskerville', 'Baskerville Old Face', 'Libre Baskerville', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(to right, #00489D, #009DE6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   見出し・本文
   ============================================================ */
.rns-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #222222;
  line-height: 1.6;
  margin-bottom: 16px;
}

.rns-divider {
  height: 1px;
  background: #DDDDDD;
  margin-bottom: 32px;
}

.rns-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  line-height: 1.9;
}

.rns-body p {
  margin-bottom: 1.6em;
}

.rns-body p:last-child {
  margin-bottom: 0;
}

.rns-body img {
  max-width: 100%;
  height: auto;
}

.rns-body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rns-body a:hover,
.rns-body a:focus-visible {
  text-decoration: none;
}

/* ============================================================
   一覧に戻る（お知らせ一覧の「もっと見る」と同じデザイン／矢印は左向き）
   ============================================================ */
.rns-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 80px;
}

.rns-back {
  position: relative;
  display: flex;
  width: 250px;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #00489D, #009DE6) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1.9;
  text-decoration: none;
}

.rns-back__text {
  font-family: 'Zen Old Mincho', 'Yu Mincho', serif;
  font-size: 14px;
  letter-spacing: .04em;
  /* background-clip: text 非対応環境向けのフォールバック色 */
  color: #00489D;
  background: linear-gradient(90deg, #00489D 0%, #009DE6 100%);
}

.rns-back__arrow {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #00489D, #009DE6) border-box;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 14px;
  color: #009DE6;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .rns-back__text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1180px) {
  .rns-container {
    width: 90%;
    max-width: 90%;
    padding: 0;
  }
}

@media (max-width: 840px) {
  body.single-post {
    --sec-pad: 56px;
  }
}

@media (max-width: 540px) {
  body.single-post {
    --sec-pad: 40px;
  }

  .rns-title {
    font-size: 16px;
  }

  .rns-date,
  .rns-body {
    font-size: 14px;
  }

  .rns-back {
    box-sizing: border-box;
    width: 100%;
  }

  .rns-actions {
    margin-top: 40px;
  }
}
