/*
Theme Name: wa_herb_2026
Author: Crossroad Co., Ltd.
*/
@charset "utf-8";
:root {
  /* ===== デザイントークン（和ハーブ協会 2026 リニューアル） ===== */
  --main-color:   #C2D725; /* ライトグリーン */
  --sub-color:    #6BA268; /* 深い青緑（フッター背景等） */
  --accent-color: #4FDA1B; /* 蛍光グリーン（目立つボタン等） */
  --bg-white:     #FFFFFF; /* 白背景 */
  --bg-yellow:    #FAF7D3; /* 薄黄色背景 */
  --text-color:   #32373C; /* グレーがかった黒（基本テキスト） */

  /* フォント */
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;

  /* 旧コードとの後方互換 */
  --main-gr: #C2D725;
}
img {
  max-width: 100%;
}
body {
  font-family: var(--font-body);
}
.archive-layout-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}
.archive-main-column {
  width: 100%;
}
@media (min-width: 992px) { 
  .archive-main-column {
    width: calc(100% - 340px);
  }
  .archive-sidebar-column {
    width: 300px;
  }
}
@media(min-width:1200px){
  .container{
    max-width: 1080px;
  }
}
@media(min-width:1400px){
  .container{
    max-width: 1200px;
  }
}
/* ==================
  common-page-header
================== */
.common-page-header {
  position: relative;
  background-color: #fff7e6;
  border-bottom: 1px solid #eef0e5;
  padding: 70px 0;
  overflow: hidden;
}

.common-page-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

/* 植物のイラスト（右側にふんわり配置） */
.header-illustration {
  position: absolute;
}
.header-illustration img {
  max-width: 230px;
  opacity: 0.85;
  height: auto;
  transition: transform 0.5s ease-out;
}
.header-illustration.ill-right{
  right: 5%;
  bottom: -6px;
}
.header-illustration.ill-left {
  left: 2%;
  top: -3px;
}

/* スラッグ（英語表記: NEWS & TOPICS など） */
.page-title-wrapper {
  text-align: center;
}

.page-title-wrapper .page-slug {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f9bb26;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ページタイトル（日本語表記） */
.page-title-wrapper .page-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.08em;
  margin: 0;
}

/* スマホ対応（画面幅767px以下） */
@media screen and (max-width: 767px) {
  .common-page-header {
    padding: 45px 0;
  }
  .header-illustration img {
    max-width: 130px;
    opacity: 0.65;
  }
  .page-title-wrapper .page-title {
    font-size: 24px;
  }
}

/* =========================================================
   パンくずリスト（シンプルで読みやすく、クリックしやすく）
========================================================= */
/* パンくず全体の背景と余白 */
.breadcrumb-nav {
  background-color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #999999;
}

.breadcrumb-item a {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #8c9c21;
  text-decoration: underline;
}
/* 区切り文字（FontAwesomeの矢印アイコンを使用） */
.breadcrumb-item + .breadcrumb-item::before {
  content: "\f054";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  display: inline-block;
  margin: 0 12px;
  color: #dddddd;
  font-size: 10px;
}
/* Common btn */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;          /* WCAG: 最小16px */
  font-weight: 700;
  color: #6BA368;
  border: 1.5px solid #6BA368;
  border-radius: 50px;
  padding: 10px 28px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-more:hover {
  background-color: #6BA368;
  color: #fff;
}
/* ---------- 年別過去記事一覧 ----------- */
#archive-container{
  font-family: "Zen Maru Gothic", sans-serif;
  letter-spacing: 2px;
  text-align: left;
  display: block;
  position: relative;
  width: 650px;
  height: auto;
  margin: 0 auto;
}
@media screen and (max-width: 520px) {
  #archive-container{
    width: 100%;
    padding: 0 5%;
  }
}
#archive-container::before {
  content: "";
  display: block;
  position: absolute;
  width: 410px;
  height: 323px;
  top: -50px;
  right: -400px;
  background: url(./img/herb_natsuhaze_pc.jpg) no-repeat center/contain;
  z-index: -1;
}
@media screen and (max-width: 520px) {
  #archive-container::before {
    content: none;
  }
}
#archive-content > h1{
  font-weight: 30px;
  color: #C2D725;
}
h1.archive-page-title{
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  text-align: left;
  color: #C2D725;
  padding-top: 80px;
  padding-bottom: 50px;
}

.archive__list {
  display: flex;
  justify-content: center;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  right: 0;
  left: 0;
  margin: auto;
  padding-top: 20px;
  border-bottom: solid thin rgba(0, 0, 0, 0.1);
}
.archive__list:nth-of-type(1) {
  border-top: solid thin rgba(0, 0, 0, 0.1);
}
.archive__list .archive__thumbnail {
  flex: 1;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}
@media screen and (max-width: 520px) {
  .archive__list .archive__thumbnail {
    width: 120px;
    height: 120px;
  }
}
.archive__list .archive__contents {
  flex: 3;
  position: relative;
}
@media screen and (max-width: 520px) {
  .archive__list .archive__contents {
    flex: 1.7;
  }
}
.archive__list .archive__contents ul {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
}
.archive__list .archive__contents .archive__date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  text-align: justify;
  letter-spacing: 1px;
  display: block;
  position: relative;
  padding-right: 20px;
}
.archive__list .archive__contents .archive__tag {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  text-align: center;
  letter-spacing: 1px;
  color: white;
  display: inline;
  padding: 3px 10px;
  border-radius: 5px;
}
.archive__list .archive__contents .archive__media {
  background-color: #E4D61D;
}
.archive__list .archive__contents .archive__events {
  background-color: #C2D725;
}
.archive__list .archive__contents .archive__certifications {
  background-color: #4FDB1C;
}
.archive__list .archive__contents .archive__news {
  background-color: #078BF2;
}
.archive__list .archive__contents .archive__unknown {
  background-color: gray;
}
.archive__list .archive__contents .archive__title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: solid thin rgba(0, 0, 0, 0.1);
}
.archive__list .archive__contents .archive__paragraph {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  text-align: justify;
  letter-spacing: 1px;
  line-height: 150%;
  position: relative;
  padding-top: 10px;
  padding-bottom: 30px;
}

/* sidebar-archive */
.old-post-list-heading {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  padding-bottom: 10px;
  color: #C2D725;
  border-bottom: 2px solid #C2D725;
  margin-bottom: 15px;
}
#sidebar-archive ul .old-post-list-heading{
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  padding-bottom: 10px;
}
@media screen and (max-width: 520px) {
  #sidebar-archive ul{
    display: flex;
    flex-wrap: wrap;
  }
  #sidebar-archive ul .old-post-list-heading{
    width: 100%;
  }
  #sidebar-archive ul li a{
    padding: 8px 16px;
  }
}
.archive-layout-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.archive-main-column {
  width: 100%;
}
.archive-sidebar-column {
  width: 100%;
  margin-top: 50px;
}
.archive-sidebar-column ul li {
  margin-bottom: 10px;
}
.archive-sidebar-column ul li a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}
.archive-sidebar-column ul li a:hover {
  color: #C2D725;
  padding-left: 5px;
}
@media screen and (min-width: 992px) {
  .archive-layout-wrapper {
    padding: 0;
  }
  .archive-main-column {
    width: 65%;
  }
  .archive-sidebar-column {
    width: 30%;
    margin-top: 0;
  }
}

/* =========================================================
   検定・資格 カードレイアウト (Bootstrap連携)
========================================================= */
.course-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-img {
    height: 200px;
    overflow: hidden;
    margin: 0;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body .category {
    font-size: 0.75rem;
    color: #8c9c21; /* 和ハーブの緑 */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.course-body h3 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    padding-bottom: 0;
    padding-top: 0;
}

.course-body .date {
    font-size: 0.9rem;
    color: var(--main-gr);
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.course-body .desc {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-outline-dark-custom {
    display: inline-block;
    text-align: center;
    border: 1px solid #333333;
    color: #333333;
    background-color: transparent;
    border-radius: 4px;
    padding: 0.6rem;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-dark-custom:hover {
    background-color: #333333;
    color: #ffffff;
}

.btn-outline-dark-custom i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-outline-dark-custom:hover i {
    transform: translateX(5px);
}
/* 背景植物イラスト */
.bgillWrap{
  position: relative;
}
.bgillWrap::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(max-width:599px){
  .bgillWrap::before{
    width: 150px;
  }
}
.bg-illustration {
  position: absolute;
  opacity: 0.5;
  object-fit: contain;
  pointer-events: none;
}
.sec-header {
  text-align: center;
  margin-bottom: 48px;
}

/* 日本語サブタイトル */
.sec-header__sub {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;          /* 日本語は常に16px */
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #6BA268;           /* --sub-color */
  margin-bottom: 8px;
}

/* 英語メインタイトル（SPベース） */
.sec-header__title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #b6c922;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0;
}

/* PC（768px以上）で40px */
@media screen and (min-width: 768px) {
  .sec-header__title {
    font-size: 40px;
  }
}

/* =========================================================
   事業会員紹介 (archive-membership.php)
========================================================= */
.archive-ceri-layout-wrapper {
  padding: 40px 5vw 80px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* タブレット表示 */
@media screen and (max-width: 992px) {
  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* スマホ表示 */
@media screen and (max-width: 767px) {
  .membership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* カード基本スタイル */
.membership-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white, #FFFFFF);
  border-radius: 15px;
  border: 1px solid #E5E5E5;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default; /* URLなし用 */
}

/* リンクありの場合のホバー効果 */
.membership-card.has-link {
  cursor: pointer;
}
.membership-card.has-link:hover {
  border-color: var(--main-color, #C2D725);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ロゴ表示エリア (アスペクト比固定 4:3 相当) */
.membership-card__logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4/3;
  width: 100%;
  padding: 15px;
  background-color: #FFFFFF;
}

.membership-card__logo {
  object-fit: contain;
  width: 100%;
  max-width: 200px;
  max-height: 88px;
}

/* ロゴなしの場合のデフォルト表示 */
.membership-card__no-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #F7F7F7; /* 控えめな極薄グレー */
  border-radius: 8px; /* 内側の角丸 */
}
.membership-card__no-logo span {
  font-family: var(--font-heading, 'Zen Maru Gothic'), sans-serif;
  font-size: 14px;
  color: #B0B0B0; /* 薄いグレー文字 */
  letter-spacing: 1px;
}

/* 企業名 */
.membership-card__title {
  font-family: var(--font-heading, 'Zen Maru Gothic'), sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color, #32373C);
  text-align: center;
  padding: 0 15px 20px;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1; /* 名前が長い場合もカード高さを揃える */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .membership-card__title {
    font-size: 16px;
  }
}

/* =========================================================
   検定・資格一覧 共通コンポーネント
   (front-page.php #courses / archive-certifications.php)
========================================================= */
.cert-tax-title {
  font-family: var(--font-heading, 'Zen Maru Gothic'), sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color, #32373C);
  position: relative;
  padding-bottom: 15px;
  margin-top: 20px;
}
.cert-tax-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--sub-color, #6BA268);
  border-radius: 2px;
}
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

@media screen and (max-width: 991px) {
  .certifications-grid {
    grid-template-columns: 1fr; /* スマホは1列表示 */
    gap: 20px;
  }
}

.certification-card {
  display: flex;
  flex-direction: column; /* c_copyとinnerを縦に並べる */
  background-color: var(--bg-white, #FFFFFF);
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.certification-card__copy {
  display: block;
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 15px;
  color: var(--text-color, #32373C);
  background-color: #A9D8D5; /* PDFのレイアウトに合わせたライトブルー */
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.certification-card__inner {
  display: flex;
  flex-direction: row;
  padding: 20px;
  gap: 20px;
  flex-grow: 1;
}

@media screen and (max-width: 767px) {
  .certification-card__inner {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
}

.certification-card__thumb {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: 1; /* 正方形に近い形で配置 */
  background-color: #f7f7f7;
  overflow: hidden;
  border-radius: 8px;
}

@media screen and (max-width: 767px) {
  .certification-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9; /* スマホでは横長 */
  }
}

.certification-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certification-card:hover .certification-card__thumb img {
  transform: scale(1.05); /* ホバー時の画像ズーム効果 */
}

.certification-card__body {
  padding: 0; /* paddingはinnerに移動 */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.certification-card__title {
  font-family: var(--font-heading, 'Zen Maru Gothic'), sans-serif;
  font-weight: 700;
  font-size: 18px; /* 横並びなので少しサイズ調整 */
  color: var(--text-color, #32373C);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.certification-card__schedule {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 13px;
  color: #b6c922;
  margin-bottom: 12px;
  font-weight: 500;
}

.certification-card__schedule i {
  font-size: 15px;
}

.certification-card__excerpt {
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1; /* ボタンを最下部に押し下げる */
}

.certification-card__btn-wrapper {
  margin-top: auto;
  text-align: right;
}

.certification-card__btn {
  display: inline-block;
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #f9bb26;
  border: 1px solid #f9bb26;
  border-radius: 50px;
  padding: 8px 24px;
  transition: all 0.3s ease;
}

.certification-card:hover .certification-card__btn {
  background-color: transparent;
  border-color: #f9bb26;
  color: #f9bb26;
}

@media screen and (max-width: 767px) {
  .certification-card__btn-wrapper {
    text-align: center;
  }
  .certification-card__btn {
    width: 100%;
    padding: 12px 24px;
  }
}
@media(min-width:1200px){
  .archive-ceri-layout-wrapper.container{
    max-width: 1140px;
  }
}
/* =========================================================
   検定・資格 タームリスト (archive-certifications.php用)
========================================================= */
.cert-term-nav {
  display: flex;
  justify-content: center;
}
.cert-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.cert-term-link {
  display: inline-block;
  padding: 8px 24px;
  background-color: var(--bg-white, #FFFFFF);
  color: var(--text-color, #32373C);
  border: 1px solid var(--text-color, #32373C);
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body, 'Noto Sans JP'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.cert-term-link:hover {
  background-color: var(--main-color, #C2D725);
  border-color: var(--main-color, #C2D725);
  color: #FFFFFF;
}
.cert-term-link.is-active {
  background-color: var(--main-color, #C2D725);
  border-color: var(--main-color, #C2D725);
  color: #FFFFFF;
  pointer-events: none;
}
/* ブロックエディター用CSS */
.wp-block-list.list-a{
  padding-left: 0;
  list-style: none;
}
.wp-block-list.list-a li{
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
}
.wp-block-list.list-a li::before{
  position: absolute;
  width: 10px;
  height: 10px;
  content: '';
  background: #C2D725;
  border-radius: 50%;
  top: 9px;
  left: 0;
}
.wp-block-table.table-a,.wp-block-table.table-a tr,.wp-block-table.table-a th,.wp-block-table.table-a td{
  border-color: #dfdfdf!important;
}
.wp-block-table.table-a tr td{
  background: #fff;
}
.wp-block-table.table-a tr td:first-child{
  background: #F2F7EB;
  min-width: 160px;
}
@media(max-width:767px){
  .wp-block-table.table-a thead,.wp-block-table.table-a tfoot{
    display: none;
  }
  .wp-block-table.table-a tbody tr{
    display: block;
    margin-bottom: 1rem;
  }
  .wp-block-table.table-a tbody tr td{
    width: 100%;
    display: block;
    padding: 1em;
  }
}
/* ================================================================
   追従サイドバナー
   SP: 画面下部・横並び
   PC: 画面右端中央・縦書き (writing-mode)
================================================================ */
.side-banners {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.side-banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1;
  height: 44px;
  transition: opacity 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.side-banner--media {
  background-color: #FFD1B3;
}

.side-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.side-banner__label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #5C3A21;
  letter-spacing: 0.1em;
}

.side-banner:hover {
  opacity: 0.9;
  filter: brightness(1.05);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .side-banners {
    position: fixed;
    z-index: 900;
    display: flex;
    flex-direction: column;
    width: 44px;
  }
  .side-banner {
    flex: 0 0 auto; /* 縦に伸びないようにflexの伸縮を解除 */
    height: auto;
    padding: 24px 0;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.05);
  }
  .side-banner:hover {
    box-shadow: -3px 3px 14px rgba(0, 0, 0, 0.08);
  }
  .side-banner__inner {
    display: block;
    width: auto;
    height: auto;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    letter-spacing: 0.12em;
  }
}

/* ================================================================
   資格制度の図 (shikaku_image)
================================================================ */
.shikaku_image {
  margin: 0 auto;
  max-width: 1000px; /* 必要に応じて適宜ご調整ください */
}

.shikaku_image img {
  width: 800px;
  height: auto;
  object-fit: contain;
}
.square-accent{
  width: fit-content;
  padding: 7px 15px;
  line-height: 1.6;
  background: #fcffaf;
  color: var(--sub-color);
}
/* 
======================================================================
    Animations
======================================================================
*/
.reveal-up,
.reveal-left,
.reveal-right,
.fade-in-up {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.reveal-up,.fade-in-up{
  transform: translate(0, 30px);
}
.reveal-left {
  transform: translate(-30px,0);
}

.reveal-right {
  transform: translate(30px, 0);
}
.fade-in.is-active,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ===================================================
   検定・資格アーカイブ：追加スタイル
=================================================== */

/* --- YouTubeレスポンシブラッパー --- */
.youtube-section {
  max-width: 720px;     /* PC画面で大きくなりすぎないよう最大幅を制限 */
  margin-left: auto;
  margin-right: auto;
}
.youtube-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 上位資格 セパレーター見出し --- */
.higher-cert-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px 0 40px;
}
.higher-cert-separator__line {
  flex: 1;
  height: 1px;
  background-color: #BFBFBF;
}
.higher-cert-separator__label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

/* --- 上位資格カード：c_copy の背景色変更 --- */
.certification-card.is-higher .certification-card__copy {
  background-color: #FFEAB3; /* うすいオレンジ系 */
  color: var(--text-color);
}
@media(min-width:768px){
  .higher-cert-separator__label{
    font-size: 1.6rem;
  }
}