@charset "utf-8";

/* お知らせ詳細 FV（見出しは他ページ同様 英語(page_title_en)+日本語(page_title_ja) を常時併記。背景画像はFigma実データに合わせて上書き、コード柄の上部が見えるようbackground-positionもtopに変更） */
.news_fv {
  background-image: url(../img/news_fv.jpg);
  background-position: center top 25%;
  margin-bottom: 4rem;
}

/* 本文ブロック */
.news_single {
  margin-bottom: 7.5rem;
}

/* 2カラムレイアウト（本文＋サイドバー） */
.news_single_layout {
  display: flex;
  align-items: flex-start;
  gap: 5.6rem; /* Figma実寸56px */
  max-width: 112rem; /* Figma実寸1120px（本文764px+gap56px+サイドバー300px） */
  margin: 0 auto;
  padding: 0 2rem;
}

.news_single_main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 76.4rem; /* Figma実寸764px */
}

.news_single_inner {
  max-width: 76.4rem;
  margin: 0 auto;
}

/* サイドバー（カテゴリー一覧） */
.news_single_side {
  width: 30rem; /* Figma実寸300px */
  flex-shrink: 0;
}

.news_side_sticky {
  position: sticky;
  top: 9rem; /* header の sticky（高さ7rem）に被らない余白 */
}

.news_side_title {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.5;
  padding-bottom: 0.9rem;
  border-bottom: 0.2rem solid #2B2B2B;
}

.news_side_title_en {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #6E6E6E;
}

.news_side_category_list {
  margin-top: 1.5rem;
  border-right: 0.1rem solid #D8D8D8;
  border-bottom: 0.1rem solid #D8D8D8;
}

.news_side_category_item a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  border-bottom: 0.1rem solid #D8D8D8;
  font-size: 1.35rem;
  font-weight: 400;
  color: #3A3A3A;
}

.news_side_category_item:last-child a {
  border-bottom: none;
}

.news_side_category_item a:hover {
  background-color: #F5F5F5;
}

.news_side_category_item.is_current a {
  background-color: #F0F0F0;
  color: #1A1A1A;
  font-weight: 700;
}

/* お知らせ一覧へ戻る */
.news_back_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.8rem;
  border-radius: 0.4rem;
  background-color: #26A64D;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.5;
  transition: .3s;
}

.news_back_btn:hover {
  color: #03A64D;
  background-color: #ffffff;
  border: #03A64D solid 1px;
  transition: .5s;
}

/* 記事ヘッダー（メタ行＋タイトル） */
.news_single_header {
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid #D8D8D8;
}

/* メタ行（バッジ＋公開日｜更新日） */
.news_single_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.news_single_dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  color: #6E6E6E;
  font-size: 1.25rem;
}

.news_single_title {
  margin-top: 1.2rem;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.6;
  color: #1A1A1A;
}

/* 本文（ACF wysiwyg 整形済みHTML） */
.news_body {
  padding-top: 2.6rem;
  font-size: 1.5rem;
  line-height: 2;
  color: #3A3A3A;
}

.news_body h2 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2.2rem 0 1.4rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1A1A1A;
}

.news_body h2::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 2.6rem;
  background-color: #2B2B2B;
}

.news_body h3 {
  padding: 1rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: #1A1A1A;
}

.news_body p {
  padding-bottom: 1.8rem;
}

.news_body ul,
.news_body ol {
  padding: 0 0 2rem 2.2rem;
}

.news_body ul {
  list-style: disc;
}

.news_body ol {
  list-style: decimal;
}

.news_body li {
  font-size: 1.45rem;
  line-height: 1.9;
  color: #3A3A3A;
  margin-bottom: 0.4rem;
}

.news_body a {
  color: #00A64D;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.news_body img {
  width: auto; /* 実寸より広い画像だけmax-widthで縮小。実寸のまま100%指定すると小さい画像が引き伸ばされてぼやけるため */
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

/* 画像キャプション（classic editor の [caption] / block editor の figcaption 両対応） */
.news_body .wp-caption {
  width: auto !important; /* classic editorが付与する固定px幅（画像実寸+10px）のinline styleを無効化 */
  max-width: 100%;
  margin: 2rem 0;
}

.news_body .wp-caption img {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.news_body .wp-caption-text,
.news_body figcaption {
  margin-top: 0.8rem;
  padding-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #6E6E6E;
  text-align: left;
}

/* 前後記事ナビ＋一覧へ戻る（横並び） */
.news_single_footer_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 76.4rem;
  margin: 3.6rem auto 0;
  padding-top: 2.6rem;
  border-top: 0.1rem solid #D8D8D8;
}

.news_nav_prev,
.news_nav_next {
  flex: 1 1 0;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.5;
}

.news_nav_prev a,
.news_nav_next a {
  color: #3A3A3A;
}

.news_nav_next {
  text-align: right;
}

.news_nav_back {
  flex-shrink: 0;
  margin: 0 2rem;
}

/* SP */
@media screen and (max-width: 699.98px) {
  .news_single_layout {
    flex-direction: column; /* DOM順=本文→サイドバーがそのまま「本文の下に回す」を満たす */
    padding: 0 1rem;
    gap: 4rem;
  }

  .news_single_main {
    max-width: 100%;
  }

  .news_single_inner {
    max-width: 35.5rem;
    margin: 0 auto;
    padding: 0;
  }

  .news_single_side {
    width: 100%;
  }

  .news_side_sticky {
    position: static;
  }

  .news_side_category_list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: none;
  }

  .news_side_category_item {
    flex-shrink: 0;
  }

  .news_side_category_item a {
    border-bottom: none;
    background-color: #F0F0F0;
    border-radius: 0.4rem;
    white-space: nowrap;
  }

  .news_side_category_item.is_current a {
    background-color: #2B2B2B;
    color: #FFFFFF;
  }

  .news_single_footer_nav {
    max-width: 35.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 3rem auto 0;
    padding-top: 2rem;
  }

  .news_nav_back {
    order: 3;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .news_back_btn {
    width: 100%;
  }
}
