/* 大人の学び.com 共通スタイル（和みの資格ガイドブック設計 / Warm Craft & Friendly Guidebook）
   編集はこのファイルで行い plugin_deployer で配備する */
:root {
  --ed-bg: #faf7f2;
  --ed-bg-warm: #f4efe6;
  --ed-surface: #ffffff;
  --ed-surface-cream: #fdf9f2;
  --ed-surface-mint: #f2f9f7;
  --ed-ink-main: #2c2623;
  --ed-ink-sub: #4a423d;
  --ed-ink-muted: #786e65;
  --ed-navy: #164e47;
  --ed-accent: #1b7f73;
  --ed-accent-dark: #136056;
  --ed-coral: #df5643;
  --ed-coral-dark: #c03d2b;
  --ed-amber: #d98218;
  --ed-border: #e5ddd0;
  --ed-border-strong: #d5c9b8;
  --ed-border-light: #efe9df;
  --ed-serif: "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --ed-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", Meiryo, sans-serif;
}

/* ==========================================================================
   1. サイトヘッダー（温かみのあるアイボリー＆ティール・コーラルアクセント）
   ========================================================================== */
.ed-site-header {
  background: #fffdf9;
  border-top: 4px solid #1b7f73;
  background-image: linear-gradient(90deg, #1b7f73 0%, #1b7f73 35%, #df5643 35%, #df5643 68%, #e59a28 68%, #e59a28 100%);
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: top left;
  border-top: none;
  padding-top: 4px;
  border-bottom: 1px solid #e5ddd0;
  font-family: var(--ed-sans);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 3px 12px rgba(68, 52, 34, 0.06);
}

.ed-header-topbar {
  background: #f5efe4;
  border-bottom: 1px solid #e8dfd1;
  padding: 6px 20px;
  font-size: 12px;
  color: #6b5e53;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.ed-header-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ed-header-brand {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-header-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #d5c9b8;
  border: 1.5px solid #e5ddd0;
  flex-shrink: 0;
  display: block;
}

.ed-header-brand-text {
  display: flex;
  flex-direction: column;
}

.ed-header-logo-text {
  font-family: var(--ed-serif);
  font-size: 21px;
  font-weight: 800;
  color: #2c2623 !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ed-header-tagline {
  font-size: 12px;
  color: #786e65;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.ed-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ed-header-nav-item a {
  text-decoration: none !important;
  color: #3d352e !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 13px;
  border-radius: 999px;
  background: #faf6ee;
  border: 1px solid #e6dccb;
  position: relative;
  transition: all 0.16s ease;
}

.ed-header-nav-item a:hover {
  color: #164e47 !important;
  background: #e6f4f1;
  border-color: #99cfc7;
  transform: translateY(-1px);
}

.ed-header-nav-badge {
  background: #df5643;
  color: #ffffff !important;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 5px;
  font-weight: 800;
}

.ed-mobile-cat-scroll {
  display: none;
}

@media (max-width: 900px) {
  .ed-header-topbar {
    display: none;
  }
  .ed-header-main {
    padding: 10px 16px;
  }
  .ed-header-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .ed-header-logo-text {
    font-size: 18px;
  }
  .ed-header-nav {
    display: none;
  }
  .ed-mobile-cat-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
    background: #f7f2e8;
    border-top: 1px solid #e8dfd1;
    gap: 8px;
  }
  .ed-mobile-cat-scroll::-webkit-scrollbar {
    display: none;
  }
  .ed-mobile-cat-chip {
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    color: #3d352e !important;
    background: #ffffff;
    border: 1.5px solid #dfd5c5;
    box-shadow: 0 2px 0 #e5ddd0;
    padding: 4px 12px;
    border-radius: 999px;
    flex-shrink: 0;
  }
  .ed-mobile-cat-chip.featured {
    background: #1b7f73;
    color: #ffffff !important;
    border-color: #136056;
    box-shadow: 0 2px 0 #0f4c44;
  }
}

/* ==========================================================================
   2. ベースレイアウト＆タイポグラフィ（1100px ワイド・アイボリーキャンバス）
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  font-family: var(--ed-sans) !important;
  -webkit-font-smoothing: antialiased !important;
  background-color: #faf7f2 !important;
  color: #2c2623 !important;
}

:root {
  --wp--preset--spacing--50: 0px !important;
  --wp--preset--spacing--60: 32px !important;
  --wp--style--root--padding-left: 0px !important;
  --wp--style--root--padding-right: 0px !important;
}

.has-global-padding {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

main,
main.wp-block-group,
.wp-block-post-title,
.wp-block-query-title,
.entry-content,
.wp-block-post-content,
.wp-block-query,
.wp-block-post-template {
  box-sizing: border-box !important;
}

main.wp-block-group {
  width: 100% !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-top: 24px !important;
  margin-bottom: 56px !important;
}

@media (max-width: 1024px) {
  main.wp-block-group {
    max-width: 920px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 768px) {
  main.wp-block-group {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 18px !important;
  }
}

.entry-content > p,
.wp-block-post-content > p,
.entry-content > ul,
.wp-block-post-content > ul,
.entry-content > ol,
.wp-block-post-content > ol,
.entry-content > blockquote,
.wp-block-post-content > blockquote {
  max-width: 100% !important;
}

.entry-content > *,
.wp-block-post-content > * {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

h1.wp-block-query-title,
h1.wp-block-heading,
.wp-block-post-title {
  font-family: var(--ed-serif) !important;
  font-size: 24px !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #2c2623 !important;
  margin-top: 12px !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  border: none !important;
  border-left: none !important;
  font-feature-settings: "palt" 1 !important;
  text-align: left !important;
  word-break: break-word !important;
}

h1, h2, h3, h4, h5, h6 {
  border-left: none !important;
}

.wp-block-post-content h2,
.entry-content h2,
main h2 {
  font-family: var(--ed-serif) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #164e47 !important;
  line-height: 1.45 !important;
  margin-top: 44px !important;
  margin-bottom: 18px !important;
  padding: 11px 16px !important;
  border-top: 1px solid #cfe6e1 !important;
  border-bottom: 3px solid #1b7f73 !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 10px 10px 4px 4px !important;
  background: linear-gradient(90deg, #e8f5f2 0%, #fbf7ef 100%) !important;
  letter-spacing: -0.01em !important;
}

.wp-block-post-content h3,
.entry-content h3,
main h3 {
  font-family: var(--ed-serif) !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  color: #2c2623 !important;
  line-height: 1.45 !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px dashed #dfd4c3 !important;
  letter-spacing: -0.01em !important;
}

p {
  font-size: 15.5px !important;
  line-height: 1.72 !important;
  letter-spacing: 0.015em !important;
  color: #3d352e !important;
  margin-top: 0 !important;
  margin-bottom: 1.2em !important;
  font-feature-settings: "palt" 1 !important;
}

a {
  color: #1b7f73;
}

blockquote {
  margin: 18px 0 !important;
  padding: 14px 18px !important;
  background: #fdf9f2 !important;
  border: 1.5px solid #e6dccb !important;
  border-left: none !important;
  border-radius: 12px !important;
}

blockquote p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #6b5e53 !important;
  line-height: 1.6 !important;
}

details.toc-box {
  margin: 20px 0 !important;
  padding: 16px 18px !important;
  background: #f4faf8 !important;
  border: 2px solid #cbe4de !important;
  border-radius: 14px !important;
}

.qualification-spec-card {
  box-sizing: border-box !important;
  margin: 20px 0 !important;
  padding: 18px 20px !important;
}

.qualification-spec-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.qualification-spec-grid-full {
  grid-column: 1 / -1 !important;
}

@media (max-width: 640px) {
  .qualification-spec-card {
    padding: 16px 14px !important;
  }
  .qualification-spec-grid {
    grid-template-columns: 1fr !important;
  }
}

.contrast-insights-container {
  display: grid !important;
  gap: 14px !important;
  margin: 20px 0 !important;
}

.contrast-insights-container ul {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 0 0 18px !important;
  box-shadow: none !important;
}

.contrast-insights-container li {
  margin-bottom: 8px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

section.ed-youtube-review-embed {
  margin: 24px 0 !important;
}

@media (max-width: 768px) {
  main.wp-block-group {
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-top: 18px !important;
  }
  h1.wp-block-query-title,
  h1.wp-block-heading,
  .wp-block-post-title {
    font-size: 20px !important;
  }
  .wp-block-post-content h2,
  .entry-content h2,
  main h2 {
    font-size: 18.5px !important;
    padding: 10px 14px !important;
  }
  .wp-block-post-content h3,
  .entry-content h3,
  main h3 {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   3. フッター（温かみのあるディープエスプレッソ＆アイボリー）
   ========================================================================== */
#ed-site-footer {
  background: #2b241f !important;
  color: #efe9df !important;
  font-family: var(--ed-sans);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 60px 20px 76px 20px;
  margin-top: 80px;
  border-top: 4px solid #1b7f73;
}

#ed-site-footer .ed-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

#ed-site-footer .ed-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #453a32;
}

#ed-site-footer .ed-footer-brand-title {
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 800;
  color: #fffdf9 !important;
  display: block;
  margin-bottom: 6px;
  text-decoration: none !important;
}

#ed-site-footer .ed-footer-brand-sub {
  font-size: 12px !important;
  color: #c2b6a7 !important;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

#ed-site-footer .ed-footer-brand-desc {
  font-size: 13px !important;
  color: #e6ddd0 !important;
  line-height: 1.72 !important;
  margin: 0 !important;
}

#ed-site-footer .ed-footer-col h4 {
  color: #ffe299 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #4f4339 !important;
}

#ed-site-footer .ed-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ed-site-footer .ed-footer-links li {
  margin-bottom: 8px;
}

#ed-site-footer .ed-footer-links li a {
  color: #efe9df !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: color 0.15s ease;
  display: inline-block;
}

#ed-site-footer .ed-footer-links li a:hover {
  color: #7ee0d2 !important;
}

#ed-site-footer .ed-footer-disclaimer-box {
  background: #362e28 !important;
  border: 1px solid #4f4339 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 24px 0 20px 0 !important;
}

#ed-site-footer .ed-footer-disclaimer-box h5 {
  color: #ffe299 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: 0.04em !important;
}

#ed-site-footer .ed-disclaimer-text {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #d8cebf !important;
  margin: 0 0 6px 0 !important;
  display: block !important;
}

#ed-site-footer .ed-disclaimer-text:last-child {
  margin-bottom: 0 !important;
}

#ed-site-footer .ed-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px !important;
  color: #c2b6a7 !important;
  padding-top: 14px;
}

#ed-site-footer .ed-footer-bottom a {
  color: #c2b6a7 !important;
  text-decoration: none !important;
}

#ed-site-footer .ed-footer-bottom a:hover {
  color: #ffffff !important;
}

#ed-site-footer .ed-footer-ai-note {
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #c2b6a7 !important;
  margin: 10px 0 0 0 !important;
}

@media (max-width: 900px) {
  #ed-site-footer .ed-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #ed-site-footer {
    padding: 44px 16px 44px 16px;
    margin-top: 48px;
  }
  #ed-site-footer .ed-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ==========================================================================
   4. カテゴリ・アーカイブページ（ガイドブック型カード一覧）
   ========================================================================== */
main.ed-category-page-main,
.ed-archive-page-main {
  font-family: var(--ed-sans) !important;
  color: #2c2623 !important;
  line-height: 1.72 !important;
  max-width: 1120px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px 80px 24px !important;
  box-sizing: border-box !important;
}

main.ed-category-page-main > *,
main.ed-category-page-main .wp-block-query,
main.ed-category-page-main .ed-category-hero,
main.ed-category-page-main .ed-category-query-block {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ed-category-hero,
.ed-category-hero-section {
  background: linear-gradient(135deg, #fffdf9 0%, #eef8f6 60%, #fdf3e7 100%) !important;
  border: 2px solid #dfd5c5 !important;
  border-top: 5px solid #1b7f73 !important;
  border-radius: 18px !important;
  padding: 28px 28px 24px !important;
  margin-top: 12px !important;
  margin-bottom: 36px !important;
  box-shadow: 0 5px 0 #e6ddd0 !important;
  width: 100% !important;
}

.ed-category-topline {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1.5px dashed #dfd5c5 !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
  font-size: 12px !important;
  letter-spacing: 0.03em !important;
  color: #6b5e53 !important;
  font-weight: 700 !important;
}

.ed-category-topline a {
  color: #1b7f73 !important;
  text-decoration: none !important;
}

.ed-category-topline a:hover {
  text-decoration: underline !important;
}

.ed-category-heading,
main.ed-category-page-main h1.wp-block-query-title {
  font-family: var(--ed-serif) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #2c2623 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  border: none !important;
  padding: 0 !important;
}

main.ed-category-page-main h1.wp-block-query-title span {
  color: #1b7f73 !important;
}

.ed-category-subcopy {
  font-size: 15px !important;
  color: #4a423d !important;
  max-width: 840px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
  text-align: left !important;
}

ul.ed-category-cards-wrapper,
main.ed-category-page-main ul.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 48px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

ul.ed-category-cards-wrapper li.wp-block-post,
main.ed-category-page-main ul.wp-block-post-template li.wp-block-post {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ed-archive-card-box,
.ed-editorial-card {
  background: #ffffff !important;
  border: 2px solid #e4dbce !important;
  border-top: 4px solid #1b7f73 !important;
  border-radius: 16px !important;
  padding: 22px 22px 18px 22px !important;
  box-shadow: 0 4px 0 #e6ddd0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.ed-archive-card-box:hover,
.ed-editorial-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 7px 0 #d5c9b8 !important;
  border-color: #8cc9bf !important;
  border-top-color: #df5643 !important;
}

.ed-card-meta-row,
.ed-card-meta-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 10px !important;
  gap: 8px !important;
}

.ed-card-taxonomies,
.ed-archive-card-cats,
.ed-archive-card-box .taxonomy-category {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}

.ed-archive-card-box .wp-block-post-terms__separator {
  display: none !important;
}

.ed-card-taxonomies .wp-block-post-terms a,
.ed-card-term-links a {
  background: #e8f5f2 !important;
  border: 1px solid #b8dfd8 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #145950 !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-right: 4px !important;
}

.ed-card-term-links a:hover {
  background: #d2ede8 !important;
  color: #0e403a !important;
}

.ed-card-badge-proof {
  background: #fef3dc !important;
  color: #965607 !important;
  border: 1px solid #f3d292 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

h2.ed-card-title,
.ed-archive-card-box h2.wp-block-post-title {
  font-family: var(--ed-serif) !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  color: #2c2623 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.01em !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  text-align: left !important;
}

h2.ed-card-title a,
.ed-archive-card-box h2.wp-block-post-title a,
.ed-card-title a {
  color: #2c2623 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

h2.ed-card-title a:hover,
.ed-archive-card-box h2.wp-block-post-title a:hover,
.ed-card-title a:hover {
  color: #1b7f73 !important;
}

.ed-card-excerpt,
.ed-archive-card-box .wp-block-post-excerpt {
  font-size: 13.5px !important;
  color: #574e47 !important;
  line-height: 1.65 !important;
  margin: 0 0 14px 0 !important;
  text-align: left !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.ed-archive-card-box .wp-block-read-more,
.ed-archive-card-box .ed-archive-read-more {
  margin-top: auto !important;
  align-self: flex-end !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 5px 15px !important;
  border-radius: 999px !important;
  background: #fdf6ec !important;
  border: 1.5px solid #e5cfa8 !important;
  box-shadow: 0 2px 0 #e5cfa8 !important;
  color: #9e5808 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.ed-archive-card-box .wp-block-read-more:hover,
.ed-archive-card-box .ed-archive-read-more:hover {
  background: #df5643 !important;
  border-color: #c03d2b !important;
  box-shadow: 0 2px 0 #9e2f20 !important;
  color: #ffffff !important;
}

.ed-category-pager,
main.ed-category-page-main .wp-block-query-pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 48px !important;
  padding-top: 24px !important;
  border-top: 1.5px dashed #dfd5c5 !important;
}

.ed-category-pager a,
.ed-category-pager span,
main.ed-category-page-main .wp-block-query-pagination a,
main.ed-category-page-main .wp-block-query-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1.5px solid #dfd5c5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 0 #e5ddd0 !important;
  color: #4a423d !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ed-category-pager .current,
main.ed-category-page-main .wp-block-query-pagination .current {
  background: #1b7f73 !important;
  border-color: #136056 !important;
  box-shadow: 0 2px 0 #0f4c44 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  main.ed-category-page-main {
    padding: 0 16px 60px 16px !important;
  }
  .ed-category-hero {
    padding: 20px 18px !important;
    margin-bottom: 24px !important;
  }
  .ed-category-topline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
  }
  .ed-category-heading,
  main.ed-category-page-main h1.wp-block-query-title {
    font-size: 22px !important;
    margin-bottom: 10px !important;
  }
  .ed-category-subcopy {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  ul.ed-category-cards-wrapper,
  main.ed-category-page-main ul.wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ed-archive-card-box {
    padding: 18px 16px !important;
  }
}

/* ==========================================================================
   5. WCAG 2.2 ターゲットサイズ＆最小フォントサイズ保証
   ========================================================================== */
.entry-content [style*="font-size: 9px"], .entry-content [style*="font-size: 10px"], .entry-content [style*="font-size: 10.5px"],
.entry-content [style*="font-size: 11px"], .entry-content [style*="font-size: 11.5px"],
.ed-container [style*="font-size: 11px"], .ed-container [style*="font-size: 11.5px"] { font-size: 12px !important; }
#ed-site-footer .ed-footer-links a { display: inline-flex !important; align-items: center !important; min-height: 32px !important; }
#ed-site-footer .ed-footer-bottom a, #ed-site-footer .ed-footer-brand-title { display: inline-flex !important; align-items: center !important; min-height: 32px !important; }
.ed-header-nav a, .ed-mobile-cat-chip { display: inline-flex !important; align-items: center !important; min-height: 36px !important; }
.ed-btn-outline, .ed-btn-solid, .ed-provider-btn, .ed-hero-nav a { min-height: 40px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.ed-partner-bridge a { display: inline-flex !important; align-items: center !important; min-height: 36px !important; }
.ed-catalog-item a, .ed-rank-title-cell h3 a, .ed-rank-title-cell h4 a { display: inline-flex !important; align-items: center !important; min-height: 28px !important; }
.ed-card-post-title a, .wp-block-post-title a, .ed-card-term-links a, .wp-block-post-excerpt__more-link { display: inline-block !important; min-height: 24px !important; padding: 2px 0 !important; }
.ed-related-card { min-height: 48px; }
.ed-container .ed-rank-tag, .ed-container .ed-catalog-num { font-size: 12px !important; }
.portal-backnav-container a, .ed-compare-link a { display: inline-flex !important; align-items: center !important; min-height: 32px !important; }
.entry-content li > a:only-child { display: inline-block; padding: 3px 0; }
.entry-content .ed-summary-box ul, .entry-content .ed-partner-bridge ul { background: none !important; border: none !important; box-shadow: none !important; margin: 0 0 10px !important; }
.entry-content .ed-summary-box ul { padding: 0 0 0 1.2em !important; }
.entry-content .ed-partner-bridge ul { padding: 0 !important; }
.entry-content .ed-summary-box p { font-size: 13px !important; line-height: 1.6 !important; margin: 0 0 4px !important; }
.entry-content .ed-summary-box p:first-child { font-size: 15px !important; margin-bottom: 10px !important; }
.entry-content .ed-summary-box li { font-size: 14px !important; line-height: 1.6 !important; margin: 0 0 4px !important; }
.entry-content div[style*="display: flex"] > a, .entry-content p[style*="display: flex"] > a,
.ed-passrate-panel p > a:only-child, .ed-matrix-table td a, .ed-compact-table td a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
}
.entry-content a[href*="px.a8.net"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 28px !important; }

/* ==========================================================================
   6. トップページ専用（和みの資格ガイドブック UI・ユーキャン/日本の資格・検定 研究反映）
   ========================================================================== */
html body, html body.home {
  background: #faf7f2 !important;
}

/* 6-1. ヒーロー：2カラム（左：温かいコピー＆蛍光ペンマーカー、右：オリジナル机イラスト） */
body .ed-container .ed-hero {
  background: linear-gradient(135deg, #fffdf9 0%, #f1faf7 52%, #fef4e6 100%) !important;
  border: 2px solid #dfd5c5 !important;
  border-top: 5px solid #1b7f73 !important;
  border-radius: 20px !important;
  padding: 28px 30px 26px !important;
  margin-top: 10px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 6px 0 #e6ddd0 !important;
}

.ed-hero-split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.ed-hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #145950;
  background: #ffffff;
  border: 1.5px solid #a7d9d1;
  box-shadow: 0 2px 0 #d5ebe7;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

body .ed-container .ed-hero-headline {
  font-family: var(--ed-serif) !important;
  font-size: clamp(22px, 2.8vw, 29px) !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  color: #2c2623 !important;
  margin: 0 0 14px 0 !important;
}

.ed-marker-warm {
  background: linear-gradient(transparent 58%, #ffe299 58%);
  padding: 0 4px;
  border-radius: 3px;
  color: #2c2623;
}

body .ed-container .ed-hero-subcopy {
  font-size: 15px !important;
  line-height: 1.72 !important;
  color: #4a423d !important;
  margin: 0 0 18px 0 !important;
}

.ed-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #dfd5c5;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3d352e;
}

.ed-hero-illust {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ed-hero-illust svg {
  width: 100%;
  max-width: 290px;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .ed-hero-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ed-hero-illust {
    display: none;
  }
}

/* 6-2. フォルダタブ型「資格・講座かんたん検索ボックス」(.ed-finder-box) */
.ed-finder-box {
  margin: 0 0 34px 0;
}

.ed-finder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 10px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.ed-finder-tab {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px 12px 0 0;
  background: #efe8dc;
  border: 2px solid #dfd5c5;
  border-bottom: none;
  font-family: var(--ed-sans);
  font-size: 13.5px;
  font-weight: 800;
  color: #5c5147 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-finder-tab:hover {
  background: #fffdf9;
  color: #1b7f73 !important;
}

.ed-finder-tab.is-active {
  background: #fffdf9;
  color: #164e47 !important;
  border-color: #1b7f73;
  border-top-width: 3px;
}

.ed-finder-body {
  background: #fffdf9;
  border: 2px solid #1b7f73;
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 5px 0 #e5ddd0;
  position: relative;
  z-index: 1;
}

/* 8ジャンル・イラストタイルグリッド */
.ed-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ed-genre-tile {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1.5px solid #e4dbce;
  border-radius: 12px;
  box-shadow: 0 3px 0 #ebe3d6;
  text-decoration: none !important;
  transition: all 0.16s ease;
  min-height: 54px;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.ed-genre-tile:hover {
  transform: translateY(-2px);
  border-color: #1b7f73;
  box-shadow: 0 5px 0 #cfe6e1;
  background: #f5fbf9;
}

.ed-genre-tile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-genre-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ed-genre-tile-name {
  font-family: var(--ed-serif);
  font-size: 14px;
  font-weight: 800;
  color: #2c2623;
  line-height: 1.25;
}

.ed-genre-tile-sub {
  font-size: 12px;
  color: #786e65;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* キーワード検索バー */
.ed-finder-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  background: #f6f1e7;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5dbc9;
}

.ed-finder-search-label {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #3d352e;
  white-space: nowrap;
  flex-shrink: 0;
}

.ed-finder-search-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #d8ccb8;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  color: #2c2623;
  font-family: var(--ed-sans);
}

.ed-finder-search-input:focus {
  outline: none;
  border-color: #1b7f73;
  box-shadow: 0 0 0 3px rgba(27, 127, 115, 0.15);
}

.ed-finder-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #df5643;
  color: #ffffff;
  border: 1px solid #c03d2b;
  box-shadow: 0 3px 0 #9e2f20;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ed-finder-search-btn:hover {
  background: #c94532;
  transform: translateY(1px);
  box-shadow: 0 2px 0 #9e2f20;
}

.ed-finder-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ed-finder-chips-row nav.ed-hero-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  width: auto !important;
}

.ed-finder-chips-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #6b5e53;
  background: #f2ebe0;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ed-finder-chips-row a {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  padding: 3px 12px;
  background: #ffffff;
  border: 1.5px solid #dfd5c5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #2c2623 !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ed-finder-chips-row a:hover {
  background: #e8f5f2;
  border-color: #1b7f73;
  color: #145950 !important;
}

@media (max-width: 900px) {
  .ed-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ed-finder-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-left: 0;
    margin-bottom: 8px;
  }
  .ed-finder-tab {
    font-size: 12.5px;
    padding: 7px 10px;
    border: 1.5px solid #dfd5c5;
    border-radius: 10px;
    justify-content: center;
  }
  .ed-finder-tab.is-active {
    border: 2px solid #1b7f73;
  }
  .ed-finder-body {
    padding: 16px 14px;
  }
  .ed-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ed-genre-tile {
    padding: 8px 10px;
  }
  .ed-genre-tile-icon {
    width: 32px;
    height: 32px;
  }
  .ed-genre-tile-name {
    font-size: 13px;
  }
  .ed-finder-search {
    flex-direction: column;
    align-items: stretch;
  }
  .ed-finder-search-input {
    flex: none;
    width: 100%;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
  }
  .ed-finder-search-btn {
    width: 100%;
  }
}

/* 6-3. はじめての方へ 3ステップ案内（イラスト付き） */
.ed-onboarding {
  background: linear-gradient(180deg, #fffcf6 0%, #f8f2e7 100%);
  border: 2px solid #e2d6c3;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 42px;
  box-shadow: 0 4px 0 #e6ddd0;
}

.ed-onboarding-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ed-onboarding-kicker {
  background: #df5643;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

body .ed-container h2.ed-onboarding-title,
.ed-onboarding-title {
  font-family: var(--ed-serif) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2c2623 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ed-onboarding-sub {
  font-size: 13px;
  color: #6b5e53;
  margin: 0 0 0 auto;
}

.ed-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ed-step-card {
  background: #ffffff;
  border: 1.5px solid #e4dbce;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 0 #ebe3d6;
}

.ed-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ed-step-badge {
  font-size: 12px;
  font-weight: 800;
  color: #145950;
  background: #e6f4f1;
  border: 1px solid #b4ded7;
  border-radius: 999px;
  padding: 3px 11px;
}

.ed-step-heading {
  font-family: var(--ed-serif);
  font-size: 15.5px;
  font-weight: 800;
  color: #2c2623;
  line-height: 1.42;
}

.ed-step-text {
  font-size: 13.5px;
  color: #574e47;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .ed-onboarding-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ed-onboarding-sub {
    margin-left: 0;
    width: 100%;
  }
}

/* 6-4. セクション見出し（ガイドブック章扉デザイン） */
body .ed-container .ed-section-head {
  margin: 46px 0 18px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

body .ed-container h2.ed-section-title {
  font-family: var(--ed-serif) !important;
  font-size: 21.5px !important;
  font-weight: 800 !important;
  color: #164e47 !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  background: linear-gradient(90deg, #e7f4f1 0%, #faf6ee 100%) !important;
  border-top: 1px solid #cde4df !important;
  border-bottom: 3px solid #1b7f73 !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 12px 12px 4px 4px !important;
}

.ed-section-lead {
  font-size: 14.5px !important;
  color: #574e47 !important;
  margin: -6px 0 20px 4px !important;
  line-height: 1.72 !important;
}

/* 6-5. カードグリッド＆4種類の差別化カード */
.ed-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 48px;
}

.ed-card-grid.is-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-card-grid.is-4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ed-card {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  background: #ffffff;
  border: 2px solid #e4dbce;
  border-top: 4px solid #1b7f73;
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 4px 0 #e6ddd0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ed-card:hover {
  border-color: #93c9c0;
  box-shadow: 0 6px 0 #d5c9b8;
  transform: translateY(-3px);
}

/* ジャンル別カラーアクセント（data-genre） */
.ed-card[data-genre="law"] { border-top-color: #2b5b84; }
.ed-card[data-genre="law"] .ed-card-tag { background: #ebf3fa; color: #20496b; border-color: #bfd6ec; }
.ed-card[data-genre="teal"] { border-top-color: #1b7f73; }
.ed-card[data-genre="teal"] .ed-card-tag { background: #e8f5f2; color: #145950; border-color: #b8dfd8; }
.ed-card[data-genre="biz"] { border-top-color: #d98218; }
.ed-card[data-genre="biz"] .ed-card-tag { background: #fef4e2; color: #965607; border-color: #f3d292; }
.ed-card[data-genre="it"] { border-top-color: #19718a; }
.ed-card[data-genre="it"] .ed-card-tag { background: #e8f4f8; color: #13586b; border-color: #b6dce8; }
.ed-card[data-genre="med"] { border-top-color: #c94a53; }
.ed-card[data-genre="med"] .ed-card-tag { background: #fdegee; color: #9c3038; border-color: #f2bfc3; background-color: #fdf0f1; }
.ed-card[data-genre="life"] { border-top-color: #457f2c; }
.ed-card[data-genre="life"] .ed-card-tag { background: #eef7ea; color: #315e1d; border-color: #c2e0b4; }

.ed-card-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-card-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-card-meta-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.ed-card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: #145950;
  background: #e8f5f2;
  border: 1px solid #b8dfd8;
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.02em;
}

.ed-card-sub-badge {
  font-size: 12px;
  font-weight: 700;
  color: #786e65;
}

.ed-card-title {
  font-family: var(--ed-serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #2c2623;
}

.ed-card:hover .ed-card-title {
  color: #1b7f73;
}

.ed-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #574e47;
}

.ed-card-more {
  margin-top: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: #faf5ec;
  border: 1px solid #e4d6be;
  font-size: 12.5px;
  font-weight: 800;
  color: #8c5308;
  align-self: flex-end;
  transition: all 0.15s ease;
}

.ed-card:hover .ed-card-more {
  background: #df5643;
  border-color: #c03d2b;
  color: #ffffff;
}

/* 分野別カード (.ed-field-card) */
.ed-field-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ed-field-chip {
  font-size: 12px;
  font-weight: 700;
  color: #4a423d;
  background: #f5efe4;
  border: 1px solid #e2d6c3;
  border-radius: 999px;
  padding: 2px 9px;
}

/* 悩み・目的別 Q&A 吹き出しカード (.ed-purpose-card) */
.ed-purpose-card {
  background: #fffdf9;
  border-top-color: #df5643;
}

.ed-purpose-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-purpose-q-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #df5643;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ed-purpose-bubble {
  background: #fdf5e8;
  border: 1.5px solid #edd8b8;
  border-radius: 12px;
  padding: 10px 14px;
  position: relative;
}

/* スクール図鑑カード (.ed-brand-card) */
.ed-brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--ed-serif);
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .ed-card-grid, .ed-card-grid.is-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body .ed-container .ed-hero {
    padding: 22px 18px !important;
  }
  body .ed-container .ed-hero-headline {
    font-size: 21px !important;
    line-height: 1.44 !important;
  }
  .ed-onboarding {
    padding: 18px 16px;
  }
  .ed-card-grid, .ed-card-grid.is-2col, .ed-card-grid.is-4col {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .ed-card {
    padding: 18px 16px;
    gap: 8px;
  }
  .ed-card-title {
    font-size: 16.5px;
  }
  .ed-card-desc {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   7. 比較記事・講座詳細カード (.ed-course-detail-card) & 試験概要 (.ed-facts-grid)
   ========================================================================== */
.ed-course-detail-card {
  background: #ffffff;
  border: 2px solid #e4dbce;
  border-top: 4px solid #1b7f73;
  border-radius: 16px;
  padding: 24px 26px;
  margin: 0 0 26px;
  box-shadow: 0 4px 0 #e6ddd0;
}

.ed-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 24px;
  background: #fdf9f2;
  border: 1.5px solid #e4d9c5;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 20px;
}

.ed-facts-item,
.ed-facts-grid-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed #e4d9c5 !important;
}

.ed-facts-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #786e65 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.4 !important;
}

.ed-facts-value {
  display: block !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #2c2623 !important;
  line-height: 1.55 !important;
}

@media (max-width: 600px) {
  .ed-course-detail-card {
    padding: 18px 16px;
  }
  .ed-facts-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
}

/* 記事: 本文前の箱（PR 表記・要点・早見表・将来性・目次）を本文と同じ 100% 幅にそろえる */
.entry-content > blockquote, .entry-content > .ed-summary-box, .entry-content > section.qualification-spec-card,
.entry-content > .ed-future-note, .entry-content > .ed-toc, .entry-content > .ed-course-evaluation-box {
  max-width: 100% !important;
  width: 100% !important;
}
body .entry-content nav.ed-toc {
  display: block !important;
}
.entry-content .ed-future-note {
  margin: 16px 0 24px !important;
  padding: 14px 18px !important;
  background: #fdf9f2 !important;
  border: 1.5px solid #e5dbc9 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #4a423d !important;
}
.entry-content .ed-future-note strong {
  color: #2c2623 !important;
}
.ed-column-article .ed-table-wrap tbody tr:first-child td,
.ed-column-article .ed-table-wrap tbody tr:first-child td strong {
  background: inherit !important;
  color: inherit !important;
}
.ed-column-article .ed-table-wrap table tbody tr:first-child {
  background: #ffffff !important;
}
.ed-column-article .ed-table-wrap table tbody tr:first-child td {
  border-bottom: 1px solid #e5ddd0 !important;
}
.ed-column-article .ed-table-wrap table tbody tr:first-child td:first-child {
  color: #2c2623 !important;
  background: transparent !important;
}
.entry-content > table, .entry-content > .wp-block-table > table {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   9. 資格試験日程・合格率推移・学習時間シミュレーター＆分野ガイドナビ（UX整理）
   ========================================================================== */
[hidden] {
  display: none !important;
}

.ed-exam-filter,
.ed-exam-filter-panel {
  background: #fffdf9;
  border: 2px solid #cfe3de;
  border-top: 4px solid #1b7f73;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 20px 0 28px;
  box-shadow: 0 4px 0 #dfece8;
}

.ed-course-detail-card {
  background: #ffffff;
  border: 2px solid #e6dccb;
  border-left: 5px solid #1b7f73;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 3px 0 #e6ddd0;
}

.ed-hub-table-pick:hover {
  background: #1b7f73 !important;
  border-color: #1b7f73 !important;
  color: #ffffff !important;
}

.ed-exam-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #d5e6e2;
}

.ed-exam-filter-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #164e47;
  margin: 0 !important;
}

.ed-exam-filter-sub {
  font-size: 12.5px;
  color: #5c5346;
  margin: 0 !important;
}

.ed-exam-filter-group {
  margin: 0 0 10px;
}

.ed-exam-filter-group:last-of-type {
  margin-bottom: 0;
}

.ed-exam-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6b6154;
  margin: 0 0 6px;
}

.ed-exam-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.ed-exam-filter-btn,
.ed-exam-view-btn,
.ed-field-tab-btn,
.ed-passrate-tab,
.ed-calc-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid #d5cbb8;
  background: #ffffff;
  color: #2c2623;
  font-family: var(--ed-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-exam-filter-btn:hover,
.ed-exam-view-btn:hover,
.ed-field-tab-btn:hover,
.ed-passrate-tab:hover,
.ed-calc-preset-btn:hover {
  border-color: #1b7f73;
  background: #f0f9f7;
  color: #145950;
}

.ed-exam-filter-btn.is-active,
.ed-exam-filter-btn[aria-pressed="true"],
.ed-exam-view-btn.is-active,
.ed-exam-view-btn[aria-pressed="true"],
.ed-field-tab-btn.is-active,
.ed-field-tab-btn[aria-pressed="true"],
.ed-passrate-tab.is-active,
.ed-passrate-tab[aria-selected="true"],
.ed-calc-preset-btn.is-active {
  background: #1b7f73 !important;
  border-color: #125950 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 0 #0d423b;
}

.ed-exam-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 14px;
  background: #ebf7f5;
  border: 1.5px solid #b5ddd6;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #145950;
}

.ed-exam-filter-reset,
.ed-exam-reset-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #1b7f73;
  background: #ffffff;
  color: #145950;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* 試験日程カード（スマホで横スクロールや文字切れが起きない2×2グリッド＋カード内完結ドロワー） */
.ed-exam-group-box {
  margin: 0 0 28px;
}

.ed-exam-group-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 22px 0 12px;
  padding: 10px 14px;
  background: #f5efe4;
  border-left: 5px solid #1b7f73;
  border-radius: 10px;
}

.ed-exam-group-header--annual {
  border-left-color: #d98218;
  background: #fdf5e8;
}

.ed-exam-group-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #2c2623 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.ed-exam-group-desc {
  font-size: 13px;
  color: #5c5346;
  margin: 0 !important;
}

.ed-exam-card {
  background: #ffffff;
  border: 2px solid #e6dccb;
  border-left: 5px solid #1b7f73;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 16px;
  box-shadow: 0 3px 0 #e6ddd0;
}

.ed-exam-card--annual {
  border-left-color: #d98218;
}

.ed-exam-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px dashed #e6dccb;
}

.ed-exam-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ed-exam-card-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #164e47 !important;
  text-decoration: none !important;
  line-height: 1.4;
}

.ed-exam-card-title:hover {
  color: #df5643 !important;
  text-decoration: underline !important;
}

.ed-exam-card-org {
  font-size: 12.5px;
  color: #6b6154;
}

.ed-exam-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ed-exam-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

.ed-exam-badge--cbt {
  background: #e6f4f1;
  color: #145950;
  border: 1px solid #b5ddd6;
}

.ed-exam-badge--annual {
  background: #fef3e2;
  color: #965607;
  border: 1px solid #f0d2a8;
}

.ed-exam-badge--cycle {
  background: #f5efe6;
  color: #4a423d;
  border: 1px solid #dfd5c5;
}

.ed-exam-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.ed-exam-cell {
  background: #faf6ee;
  border: 1px solid #e8dfd1;
  border-radius: 10px;
  padding: 10px 12px;
}

.ed-exam-cell--rate {
  background: #f2faf8;
  border-color: #c2e2dc;
}

.ed-exam-cell-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6b6154;
  margin-bottom: 3px;
}

.ed-exam-cell-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2c2623;
  line-height: 1.55;
}

.ed-exam-courses-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  padding: 9px 12px;
  background: #fbf8f1;
  border: 1px solid #e8dfd1;
  border-radius: 10px;
}

.ed-exam-courses-label {
  font-size: 12px;
  font-weight: 800;
  color: #5c5346;
}

.ed-exam-courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ed-exam-course-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c2ded8;
  color: #145950 !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.14s ease;
}

.ed-exam-course-pill:hover {
  background: #1b7f73;
  border-color: #1b7f73;
  color: #ffffff !important;
}

details.ed-exam-inline-drawer {
  margin: 10px 0 0 !important;
  padding: 10px 14px !important;
  background: #f8fbf9 !important;
  border: 1.5px solid #cde4df !important;
  border-radius: 12px !important;
}

details.ed-exam-inline-drawer > summary.ed-exam-inline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #145950 !important;
  cursor: pointer;
  list-style: none;
}

details.ed-exam-inline-drawer[open] > summary.ed-exam-inline-summary {
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed #c2ded8 !important;
}

.ed-exam-inline-toggle-hint {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #145950;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ed-exam-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0e8da;
  font-size: 13px;
}

.ed-exam-calc-btn,
.ed-exam-jump-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2faf8;
  border: 1px solid #b5ddd6;
  color: #145950 !important;
  font-family: var(--ed-sans);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-exam-calc-btn:hover,
.ed-exam-jump-btn:hover {
  background: #1b7f73;
  color: #ffffff !important;
}

.ed-exam-hub-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #c03d2b !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.ed-exam-hub-link:hover {
  text-decoration: underline !important;
}

/* 学習時間シミュレーター */
.ed-calc-box {
  background: #ffffff;
  border: 2px solid #cfe3de;
  border-top: 4px solid #1b7f73;
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 20px;
  box-shadow: 0 4px 0 #dfece8;
}

.ed-calc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px 20px;
  margin-bottom: 16px;
}

.ed-calc-field {
  background: #faf6ee;
  border: 1px solid #e6dccb;
  border-radius: 12px;
  padding: 12px 14px;
}

.ed-calc-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #2c2623;
  margin: 0 0 8px;
}

.ed-calc-select,
.ed-calc-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: #2c2623;
  background: #ffffff;
  border: 1.5px solid #cfc3b0;
  border-radius: 10px;
  box-sizing: border-box;
}

.ed-calc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.ed-calc-kpi {
  background: #f2faf8;
  border: 1.5px solid #bce0d9;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.ed-calc-kpi--primary {
  background: #fff6f2;
  border-color: #f2c5bc;
}

.ed-calc-kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #5c5346;
  margin-bottom: 4px;
}

.ed-calc-kpi-val {
  display: block;
  font-size: 21px;
  font-weight: 900;
  color: #145950;
  line-height: 1.25;
}

.ed-calc-kpi--primary .ed-calc-kpi-val {
  color: #c03d2b;
}

.ed-calc-kpi-sub {
  display: block;
  font-size: 12px;
  color: #6b6154;
  margin-top: 2px;
}

/* 合格率の推移・方式別データ */
.ed-passrate-tabs {
  background: #f6f0e4;
  border: 1.5px solid #dfd3bf;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
}

.ed-passrate-tabs-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #4a423d;
  margin: 0 0 8px;
}

.ed-passrate-panel {
  background: #ffffff;
  border: 2px solid #e6dccb;
  border-top: 4px solid #1b7f73;
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 22px;
  box-shadow: 0 4px 0 #e6ddd0;
}

.ed-passrate-panel--annual {
  border-top-color: #d98218;
}

.ed-passrate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #e6dccb;
}

.ed-passrate-panel-head h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2c2623 !important;
}

.ed-matrix-table th,
.ed-matrix-table th:last-child {
  min-width: 0 !important;
  padding: 10px 6px !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.ed-matrix-table th:first-child {
  text-align: left !important;
  padding-left: 14px !important;
}

.ed-matrix-table td,
.ed-matrix-table td:last-child {
  padding: 9px 6px !important;
  text-align: center !important;
}

.ed-matrix-table td:first-child {
  text-align: left !important;
  padding-left: 14px !important;
}

.ed-compact-table th:last-child {
  min-width: 0 !important;
}

.ed-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.ed-bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 78px;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.ed-bar-label {
  font-weight: 700;
  color: #2c2623;
  line-height: 1.35;
}

.ed-bar-track {
  height: 14px;
  background: #efe8dc;
  border-radius: 999px;
  overflow: hidden;
}

.ed-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1b7f73, #2ba394);
  border-radius: 999px;
}

.ed-bar-fill--warm {
  background: linear-gradient(90deg, #d98218, #eb9b38);
}

.ed-bar-fill--coral {
  background: linear-gradient(90deg, #df5643, #ee7462);
}

.ed-bar-val {
  font-weight: 800;
  color: #145950;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 分野ガイド等のその場タブ切り替え・早見表ボタン */
.ed-field-table-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2faf8;
  border: 1px solid #b5ddd6;
  color: #145950;
  font-family: var(--ed-sans);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ed-field-table-btn:hover {
  background: #1b7f73;
  border-color: #1b7f73;
  color: #ffffff;
}

tr.is-selected-row td {
  background: #f0f9f7 !important;
}

@media (max-width: 720px) {
  .ed-exam-card-grid,
  .ed-calc-grid,
  .ed-calc-kpis {
    grid-template-columns: 1fr;
  }
  .ed-bar-row {
    grid-template-columns: 1fr 68px;
    gap: 4px 8px;
  }
  .ed-bar-track {
    grid-column: 1 / -1;
  }
  .ed-exam-card,
  .ed-passrate-panel,
  .ed-calc-box,
  .ed-exam-filter {
    padding: 15px 14px;
  }
}

