/*
 * single.css
 * Re-start株式会社 お知らせ詳細ページ専用スタイル
 * 読み込み順：reset.css → style.css → header.css → footer.css → single.css
 */

/* ─────────────────────────────────────
   PAGE HERO
───────────────────────────────────── */
.page_hero {
  position: relative;
  height: auto;
  min-height: 36rem;
  display: flex;
  align-items: flex-end;
  padding: 0 8rem 6rem;
  overflow: hidden;
  background: var(--color_navy);
}

.page_hero_bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 111, 181, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 111, 181, 0.06) 1px, transparent 1px);
  background-size: 6rem 6rem;
}

.page_hero_glow {
  position: absolute;
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 111, 181, 0.15) 0%, transparent 70%);
  top: -20rem;
  right: -10rem;
  pointer-events: none;
}

.page_hero_inner {
  position: relative;
  z-index: 2;
  max-width: 88rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page_hero_title {
  font-family: var(--Outfit);
  font-size: clamp(2.8rem, 4vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.breadcrumb {
  position: absolute;
  top: 2.4rem;
  left: 8rem;
  right: 8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 7.2rem;
  flex-wrap: wrap;
}

.breadcrumb_item {
  font-family: var(--Outfit);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb_item:hover { color: rgba(255, 255, 255, 0.8); }
.breadcrumb_sep { font-size: 1rem; color: rgba(255, 255, 255, 0.25); }
.breadcrumb_current {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 32rem;
}

/* ヒーロー内のメタ情報 */
.single_news_hero_meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.single_news_date {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}

.single_news_cats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.single_news_cat {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--color_blue);
  padding: 0.3rem 1rem;
  border-radius: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}

.single_news_cat:hover { background: var(--color_blue_bright); }

/* ─────────────────────────────────────
   ARTICLE BODY
───────────────────────────────────── */
.single_news_body {
  background: var(--color_white);
  padding: 8rem 8rem 12rem;
}

.single_news_inner {
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5.6rem;
}

/* アイキャッチ */
.single_news_thumb {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--color_gray_light);
}

.single_news_thumb_img {
  width: 100%;
  height: auto;
  max-height: 56rem;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────
   本文 Gutenbergエディタースタイル
───────────────────────────────────── */
.single_news_content {
  font-size: 1.6rem;
  line-height: 2;
  color: var(--color_text_sub);
}

/* 見出し */
.single_news_content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color_navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 5.6rem 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--color_navy);
}

.single_news_content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color_navy);
  line-height: 1.4;
  margin: 4rem 0 1.6rem;
  padding-left: 1.4rem;
  border-left: 0.4rem solid var(--color_blue);
}

.single_news_content h4 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color_navy);
  margin: 3.2rem 0 1.2rem;
}

/* 段落 */
.single_news_content p {
  margin-bottom: 2rem;
}

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

/* リンク */
.single_news_content a {
  color: var(--color_blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: opacity 0.2s;
}

.single_news_content a:hover { opacity: 0.7; }

/* リスト */
.single_news_content ul,
.single_news_content ol {
  padding-left: 2.4rem;
  margin-bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.single_news_content ul li { list-style: disc; }
.single_news_content ol li { list-style: decimal; }

.single_news_content li {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color_text_sub);
}

/* 引用 */
.single_news_content blockquote {
  background: var(--color_off_white);
  border-left: 0.4rem solid var(--color_blue);
  margin: 3.2rem 0;
  padding: 2.4rem 3.2rem;
  border-radius: 0 0.8rem 0.8rem 0;
}

.single_news_content blockquote p {
  font-size: 1.5rem;
  color: var(--color_text_sub);
  font-style: italic;
  margin-bottom: 0;
}

/* 画像 */
.single_news_content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  display: block;
}

.single_news_content figure {
  margin: 3.2rem 0;
}

.single_news_content figcaption {
  font-size: 1.3rem;
  color: var(--color_gray_text);
  text-align: center;
  margin-top: 1rem;
}

/* テーブル */
.single_news_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 3.2rem 0;
  font-size: 1.5rem;
}

.single_news_content th,
.single_news_content td {
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--color_gray_light);
  text-align: left;
  vertical-align: top;
}

.single_news_content th {
  background: var(--color_off_white);
  font-weight: 700;
  color: var(--color_navy);
}

/* コード */
.single_news_content code {
  font-size: 1.3rem;
  background: var(--color_off_white);
  border: 1px solid var(--color_gray_light);
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  font-family: monospace;
}

.single_news_content pre {
  background: var(--color_navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.4rem;
  border-radius: 0.8rem;
  overflow-x: auto;
  margin: 3.2rem 0;
  font-size: 1.4rem;
  line-height: 1.7;
}

.single_news_content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* hr */
.single_news_content hr {
  border: none;
  border-top: 1px solid var(--color_gray_light);
  margin: 4rem 0;
}

/* ─────────────────────────────────────
   カテゴリタグ
───────────────────────────────────── */
.single_news_tag_list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 3.2rem;
  border-top: 1px solid var(--color_gray_light);
}

.single_news_tag {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color_text_sub);
  background: var(--color_off_white);
  border: 1px solid var(--color_gray_light);
  padding: 0.5rem 1.4rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.single_news_tag:hover {
  border-color: var(--color_blue);
  color: var(--color_blue);
}

/* ─────────────────────────────────────
   前後ナビゲーション
───────────────────────────────────── */
.single_news_nav {
  background: var(--color_off_white);
  border-top: 1px solid var(--color_gray_light);
  padding: 4rem 8rem;
}

.single_news_nav_inner {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3.2rem;
}

.news_nav_item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: opacity 0.2s;
}

.news_nav_item:hover { opacity: 0.65; }
.news_nav_empty { pointer-events: none; }
.news_nav_prev { align-items: flex-start; }
.news_nav_next { align-items: flex-end; }

.news_nav_dir {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color_blue);
  text-transform: uppercase;
}

.news_nav_title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color_navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_nav_archive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color_text_sub);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.news_nav_archive:hover { color: var(--color_navy); }

.news_nav_archive_icon {
  font-size: 2rem;
  color: var(--color_navy);
  line-height: 1;
}

/* ─────────────────────────────────────
   RESPONSIVE（スマホ：699.98px以下）
───────────────────────────────────── */
@media screen and (max-width: 699.98px) {

  .page_hero {
    min-height: auto;
    padding: 14rem 2.4rem 5.6rem;
  }

  .breadcrumb { left: 2.4rem; right: 2.4rem; }
  .breadcrumb_current { max-width: 18rem; }

  .page_hero_title { font-size: 2.8rem; }

  /* BODY */
  .single_news_body {
    padding: 6.4rem 2.4rem 8rem;
  }

  .single_news_inner { gap: 4rem; }

  /* 本文 */
  .single_news_content { font-size: 1.5rem; }
  .single_news_content h2 { font-size: 2.2rem; }
  .single_news_content h3 { font-size: 1.8rem; }

  /* NAV */
  .single_news_nav {
    padding: 3.2rem 2.4rem;
  }

  .single_news_nav_inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .news_nav_archive {
    grid-column: 1 / -1;
    order: -1;
    flex-direction: row;
    justify-content: center;
    border-bottom: 1px solid var(--color_gray_light);
    padding-bottom: 2.4rem;
    margin-bottom: 0.4rem;
  }
}
