/* =============================================
 * 認定証申し込みページ専用スタイル
 * ============================================= */

/* カテゴリセクション */
.is-cert-page .category-section {
  width: 96%;
  margin: 0 auto 16px auto !important;
}

@media screen and (max-width: 480px) {

  .is-cert-page .category-section {
    width: 100%;
  }
}

/* カテゴリヘッダー - シンプルな緑色のバー */
.is-cert-page .category-title {
  color: white;
  /* padding: 12px 0 0 0; */
  margin: 12px 0 0 0 !important;
  font-size: 16px;
  font-weight: bold;
  border-radius: 0 !;
}


/* トグルボタンのスタイルを無効化 */
.is-cert-page .category-toggle {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: default;
  pointer-events: none;
  padding: 0;
  display: block;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

@media screen and (max-width: 480px) {

  .is-cert-page .category-toggle {
    padding: 8px 1em !important;
    font-size: 0.9rem !important;
  }
}

/* トグルボタンのアイコンを非表示 */
.is-cert-page .category-toggle::after {
  display: none;
}

/* 資格リスト - 常時表示、2カラムグリッド */
.is-cert-page .exam-list {
  /* display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; */
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px !important;
  background: #f5f5f5;
  max-height: none !important;
  overflow: visible !important;
}

@media screen and (max-width: 480px) {

  .is-cert-page .exam-list {
    padding: 8px !important;
    gap: 8px !important;
  }
}

/* 資格アイテム */
.is-cert-page .exam-item {
  margin: 0;
  width: 49% !important;
}

@media screen and (max-width: 480px) {

  .is-cert-page .exam-item {
    margin: 0;
    width: 100% !important;
  }
}

/* 資格ラベル */
.is-cert-page .exam-label {
  display: flex;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.is-cert-page .exam-label:hover {
  background: #f9f9f9;
}

/* チェックボックス */
.is-cert-page .exam-item input[type="checkbox"] {
  margin-right: 10px;
}

/* 資格名 */
.is-cert-page .exam-name {
  flex: 1;
  font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .is-cert-page .exam-list {
    grid-template-columns: 1fr;
  }
}
/* =============================================

/* =============================================
 * ヘッダー固定の解除
 * ============================================= */

/* PCヘッダーの固定を解除 - :has セレクタを使用 */
body:has(#order_exam.is-cert-page) .order_pc_header {
  position: static !important;
  width: 100% !important;
}

/* SPヘッダーの固定を解除 */
@media screen and (max-width: 768px) {
  body:has(#order_exam.is-cert-page) .order_sp_header {
    position: static !important;
    width: 100% !important;
  }
}

/* コンテナのマージン調整（ヘッダー固定解除に伴う） */
body:has(#order_exam.is-cert-page) .order-container {
  margin-top: 0 !important;
}

@media screen and (max-width: 480px) {
  body:has(#order_exam.is-cert-page) .order-container {
    margin-top: 0 !important;
  }
}
