@charset "UTF-8";
/* =========================================================
   1. ベースリセットと全体設定
========================================================= */
:root{
  --main-gr:#a8bb1a;
}
html.wf-active {
  visibility: visible;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.6; /* 1.5から少し広げて可読性UP */
}
/* =========================================================
   2カラムレイアウト (archive.php と同一構造)
========================================================= */
.archive-layout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 5vw 80px;
  max-width: 1080px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .archive-layout-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .archive-main-column {
    width: 65%;
  }
  .archive-sidebar-column {
    width: 30%;
    margin-top: 20px;
  }
}

/* =========================================================
   2. 記事コンテンツエリア
========================================================= */
.single-siteContent {
  position: relative;
}
.single-siteContent::before {
  content: "";
  display: block;
  position: absolute;
  width: 250px;
  height: 260px;
  top: -40px;
  right: 0;
  background: url(../img/herb_natsuhaze_pc.jpg) no-repeat center/contain;
  z-index: -1;
  opacity: 0.3;
}
@media screen and (max-width: 520px) {
  .single-siteContent::before {
    width: 160px;
    height: 130px;
    top: 0;
  }
}

.single-certifications main {
  background: url(../img/herb_illust_bg.jpg) repeat top left/300px;
}
@media(min-width:580px){
  .single-certifications main {
    background-size: 500px;
  }
}

/* =========================================================
   3. カテゴリータグ
========================================================= */
main .section-news__detail__contents .section-news__detail__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

main .section-news__detail__contents .section-news__detail__tag a {
  color: #333333;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
}

main .section-news__detail__contents .section-news__detail__tag.section-news__detail__course a { background-color: #4FDB1C; }
main .section-news__detail__contents .section-news__detail__tag.section-news__detail__certifications a { background-color: #6BA368; color: white; }
main .section-news__detail__contents .section-news__detail__tag.section-news__events a { background-color: #C2D725; }
main .section-news__detail__contents .section-news__detail__tag.section-news__detail__projects a { background-color: #E4D61D; }

/* =========================================================
   4. 記事ヘッダー（日付とタイトル）
========================================================= */
main .section-news__detail__contents .section-news__detail__heading-list {
  display: block;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 40px;
  padding: 10px 0 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

main .section-news__detail__contents .section-news__detail__heading-list .section-news__detail__date {
  font-size: 14px;
  color: #666;
}

main .section-news__detail__contents .section-news__detail__heading-list .section-news__detail__title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #C2D725;
  margin-top: 10px;
}

@media screen and (max-width: 520px) {
  main .section-news__detail__contents .section-news__detail__heading-list .section-news__detail__title {
    font-size: 22px;
  }
}

/* =========================================================
   5. 記事本文エリア
========================================================= */
.entry-body {
  padding-top: 40px;
  border-top: 1px solid #eef0e5;
}

main .section-news__detail__paragraph p {
  text-align: justify;
  margin-bottom: 2em;
  line-height: 200%;
}

h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #C2D725;
  padding-bottom: 30px;
}

/* =========================================================
   6. ボタンが重なる現象の修正（WPブロックボタン対応）
========================================================= */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 2em;
}

.wp-block-button {
  margin: 0 !important;
}

main .section-news__detail__contents .wp-block-button a,
.wp-block-button__link {
  display: inline-block;
  background-color: #C2D725;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

main .section-news__detail__contents .wp-block-button a:hover,
.wp-block-button__link:hover {
  background-color: #a8bc1d;
  transform: translateY(-2px);
}

/* =========================================================
   記事ヘッダーのメタ情報（日付とカテゴリータグ）
========================================================= */
.entry-meta-header {
  display: flex;
  flex-direction: column; /* スマホデフォルトは縦積み */
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

@media screen and (min-width: 600px) {
  .entry-meta-header {
    flex-direction: row; /* 600px以上で横並び */
    align-items: center;
  }
}

.entry-date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #666666;
  letter-spacing: 1px;
}

.entry-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-category-badge {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  background-color: #C2D725; /* 黄緑背景 */
  padding: 6px 16px;
  border-radius: 50px; /* 角丸ボタン */
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.entry-category-badge:hover {
  opacity: 0.8;
}

/* =========================================================
   記事タイトル
========================================================= */
.entry-main-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 30px; /* PC */
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color, #32373C);
  margin: 0 0 40px 0;
}

h2.wp-block-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 25px;
  letter-spacing: 2px;
  text-align: left;
  color: var(--main-gr);
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 30px;
}
.single-ceri-main-column h2.wp-block-heading{
  color: #32373C;
  margin-bottom: 30px;
  padding: 0 0 0 16px;
  border-left: 4px solid #7CB342;
}
h3.wp-block-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 23px;
  letter-spacing: 2px;
  text-align: left;
  color: var(--main-gr);
  display: block;
  position: relative;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 20px;
}
@media screen and (max-width: 767px) {
  .entry-main-title {
    font-size: 22px;
    margin-bottom: 30px;
  }
  h2.wp-block-heading{
    font-size: 24px;
  }
  h3.wp-block-heading{
    font-size: 20px;
  }
}

/* =========================================================
   記事前後のナビゲーション（ページ送り）
========================================================= */
.post-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eef0e5;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-previous {
  margin-right: auto;
}
.nav-next {
  margin-left: auto;
}

/* ボタンのデザイン */
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  background-color: #F8F8E4;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid #CDD6A7;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #e5e5c8;
  transform: translateY(-2px);
}

.nav-links i {
  font-size: 12px;
}

@media screen and (max-width: 520px) {
  .nav-links a {
    font-size: 13px;
    padding: 10px 18px;
    gap: 6px;
  }
}
/* =========================================================
   一覧へ戻るボタン（セカンダリーアクション）
========================================================= */
.back-to-archive-wrapper {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eef0e5;
}

.btn-back-archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #4a443d;
  background-color: transparent;
  padding: 16px 50px;
  border: 1px solid #4a443d;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-back-archive:hover {
  background-color: #4a443d;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(74, 68, 61, 0.15);
  transform: translateY(-2px);
}
.btn-back-archive i {
  transition: transform 0.3s ease;
}

.btn-back-archive:hover i {
  transform: translateX(-5px);
}
@media screen and (max-width: 767px) {
  .back-to-archive-wrapper {
    margin-top: 40px;
    padding-top: 30px;
  }
  .btn-back-archive {
    width: 100%;
    padding: 14px 20px;
  }
}

/* --------------------------------------------------
   サイドバー
-------------------------------------------------- */
.sidebar-widget-area {
  margin-bottom: 40px;
}

.sidebar-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 24px;
  color: #C2D725;
  margin-bottom: 16px;
  border-bottom: 1px solid #C2D725;
  padding-bottom: 10px;
  font-weight: 600;
}

.sidebar-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget-area ul li {
  margin-bottom: 0;
}

.sidebar-widget-area ul li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #32373C;
  text-decoration: none;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s ease;
  transition: all .3s;
  font-weight: 500;
}

.sidebar-widget-area ul li a:hover,.sidebar-widget-area ul li a:focus {
  color: #C2D725;
}
@media(min-width:992px){
  .sidebar-widget-area{
    background: rgba(255,255,255,0.5);
  }
}
/* =========================================================
   検定・資格 (single-certifications.php) 専用スタイル
========================================================= */
.single-ceri-main-column .entry-body{
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
}
.entry-eye-catch{
  margin-bottom: 40px;
}
.entry-eye-catch img{
  width: 700px;
  height: fit-content;
  object-fit: contain;
}
/* タイトル */
.single-ceri-main-column .entry-main-title {
  font-family: var(--font-heading, 'Zen Maru Gothic'), sans-serif;
  font-size: 32px; /* PC指定 */
  font-weight: 600; /* 指定: 600 */
  line-height: 1.4;
  color: var(--text-color, #32373C);
  margin: 0 0 15px 0;
  border: none;
  padding: 0;
}

@media screen and (max-width: 767px) {
  .single-ceri-main-column .entry-main-title {
    font-size: 24px; /* スマホ・タブレットでバランスの良いサイズ */
  }
}

/* カレンダーアイコンと期間など */
.single-ceri-meta-sche {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 16px;
  color: var(--sub-color, #6BA268);
  margin-bottom: 40px;
  font-weight: 600;
}

.single-ceri-meta-sche i {
  font-size: 18px;
}
@media(min-width:580px){
  .single-ceri-main-column .entry-body{
    padding: 30px;
  }
}
@media(min-width:992px){
  .single-ceri-main-column .entry-body{
    padding: 40px;
    background: #fff;
  }
  .single-ceri-main-column{
    margin:0 auto;
    max-width: 800px;
  }
}