/*
Theme Name: zerokarada
Author: Your Name
Description: Bootstrap 5を使用したオリジナルWordPressテーマ。レスポンシブタイポグラフィとキーカラー(#4072B3)を採用。
Version: 1.0.0
Text Domain: zerokarada
*/

:root {
  /* キーカラー */
  --zc-primary: #4072B3;
  --zc-primary-hover: #30588c;

  /* clamp関数によるレスポンシブフォントの定義 */
  /* 最小16px、ウィンドウ幅に合わせて可変、最大20px */
  --zc-font-size-base: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  /* 見出し用 */
  --zc-font-size-h1: clamp(1.5rem, 3vw + 1rem, 2.25rem);
  --zc-font-size-h2: clamp(1.25rem, 2.5vw + 0.75rem, 1.875rem);
  --zc-font-size-h3: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
}

body {
  font-size: var(--zc-font-size-base);
  color: #333;
  line-height: 1.6;
}

h1, .h1 { font-size: var(--zc-font-size-h1); }
h2, .h2 { font-size: var(--zc-font-size-h2); }
h3, .h3 { font-size: var(--zc-font-size-h3); }

/* Bootstrapのプライマリカラーを上書きするユーティリティクラス（必要に応じて使用） */
.text-primary {
  color: var(--zc-primary) !important;
}
.bg-primary {
  background-color: var(--zc-primary) !important;
}
.btn-primary {
  background-color: var(--zc-primary);
  border-color: var(--zc-primary);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--zc-primary-hover) !important;
  border-color: var(--zc-primary-hover) !important;
}

/* リンクカラーの設定 */
a {
  color: var(--zc-primary);
  text-decoration: none;
}
a:hover {
  color: var(--zc-primary-hover);
  text-decoration: underline;
}

/* リスト全体の余白を消し、点をなくす */
ul {
  list-style: none;
  padding-left: 0;
}



/*SVGの幅の強制*/
.dia-wrap {
  max-width:460px;margin:1rem auto;
}
.dia-v3 {
  display:block;width:100%;height:auto;
}
#toc-nav .toc-link, .d-lg-none ol a {
  font-weight:400!important;
}


/* ------------------------------------- */
/* グローバルナビゲーション・カテゴリーメニュー */
/* ------------------------------------- */
.zk-category-nav .cat-link {
  color: #333;
  transition: color 0.3s;
}
.zk-category-nav .cat-link:hover {
  color: var(--zc-primary);
}
.zk-sub-toggle {
  background: transparent;
  border: none;
  color: #666;
  padding: 0.2rem 0.5rem;
  transition: transform 0.3s ease;
  line-height: 1;
}
.zk-sub-toggle:focus {
  outline: none;
}
.zk-sub-toggle .dropdown-toggle::after {
  display: none; /* override bootstrap default if needed */
}

/* ------------------------------------- */
/* ヘッダー・フッター用のベースカラー */
/* ------------------------------------- */
.bg-custom-base {
  background-color: #1768AC !important;
  color: #fff;
}

/* ------------------------------------- */
/* ナビゲーション (モックアップ準拠)      */
/* ------------------------------------- */
.site-header { border-bottom: none !important; }

.zk-navbar {
  background: #1768AC;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Brand */
.zk-navbar-brand {
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff !important;
  line-height: 1.25;
  letter-spacing: 0.3px;
  text-decoration: none !important;
}
.zk-navbar-brand:hover { opacity: 0.9; }
.zk-navbar-brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

/* Toggler */
.zk-navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
}
.zk-navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav Pills */
.zk-nav-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.zk-nav-pills .nav-item { margin: 0; }

.zk-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none !important;
}
.zk-nav-link:hover,
.zk-nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
  text-decoration: none !important;
}
.zk-nav-link i { font-size: 0.8rem; }

/* Auth Buttons */
.zk-nav-auth { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zk-nav-auth .nav-item { margin: 0; }

.zk-btn-nav {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.zk-btn-nav-gold {
  background: #d4a745;
  color: #0f4a7a !important;
}
.zk-btn-nav-gold:hover {
  background: #e8bc52;
  transform: translateY(-1px);
  color: #0f4a7a !important;
}
.zk-btn-nav-outline {
  background: transparent;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.35);
}
.zk-btn-nav-outline:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* Navbar Logos */
.zk-navbar-logos { display: flex; gap: 2px; flex-shrink: 0; }
.zk-navbar-logo  { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }

/* モバイル時の余白調整 */
@media (max-width: 991.98px) {
  .zk-nav-pills  { gap: 4px; }
  .zk-nav-auth   { margin-top: 8px; padding-bottom: 12px; }
  .zk-nav-link   { padding: 7px 12px; }
  .zk-navbar-logo { width: 30px; height: 30px; }
}

/* iPad mini横向き付近でフォントを縮小 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .zk-nav-link   { font-size: 0.72rem; padding: 7px 10px; }
  .zk-btn-nav    { font-size: 0.72rem; padding: 6px 12px; }
  .zk-navbar-brand { font-size: 0.95rem; }
}

/*

/* ------------------------------------- */
/* h2,h3のデザイン */
/* ------------------------------------- */
h2 {
    /*position: relative;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    padding-left: 12px;
    border-left: 10px double #0d6efd;*/
}

h3 {
  border-left: 3px solid #6ea8fe;
  padding-left: 10px;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}



/* ------------------------------------- */
/* テーブルを画面幅に合わせて縮小するためのカスタムCSS */
/* ------------------------------------- */
.table-container {
  border: 4px sorid #000;
  width: 100%;
  container-type: inline-size;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th, td {
  border: 1px solid #ccc;
  text-align: left;
  white-space: nowrap; 
  
  padding: 1.2cqw;
}

/* ------------------------------------- */
/* Gutenberg Block Support Styles        */
/* ------------------------------------- */
.alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-block-group { box-sizing: border-box; }

/* ------------------------------------- */
/* カテゴリータブ共通（スマホ対応）        */
/* ------------------------------------- */
#questionCategoryTabs .nav-item,
#textCategoryTabs .nav-item,
#anaumeCategoryTabs .nav-item,
#ichimonCategoryTabs .nav-item {
  flex-shrink: 0;
}
#questionCategoryTabs .nav-link,
#textCategoryTabs .nav-link,
#anaumeCategoryTabs .nav-link,
#ichimonCategoryTabs .nav-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  #questionCategoryTabs,
  #textCategoryTabs,
  #anaumeCategoryTabs,
  #ichimonCategoryTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #questionCategoryTabs .nav-link,
  #textCategoryTabs .nav-link,
  #anaumeCategoryTabs .nav-link,
  #ichimonCategoryTabs .nav-link {
    padding: 0.25rem 0.4rem;
    font-size: 0.78rem;
  }
}

/* iPad mini横向き付近（lg展開〜xl未満）でヘッダーメニューが改行しないよう調整 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    white-space: nowrap;
  }
  .site-header .zk-category-nav > .nav-item {
    margin-right: 0.5rem !important;
  }
  .site-header .navbar-brand {
    font-size: 0.9rem;
  }
  .site-header .btn-sm {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem !important;
  }
}


  /* =========================================
     single用カスタムクラス
     ========================================= */

  /* ヒーローヘッダー */
  .hero-section {
    background: linear-gradient(135deg, var(--zk-fp-primary-dark) 0%, var(--zk-fp-primary) 60%, var(--zk-fp-primary-light) 100%);
    padding: 1rem 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212,167,69,.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,.04) 0%, transparent 50%);
    pointer-events: none;
  }
  .hero-section h1 { font-size: 1.4rem; font-weight: 900; border-left: none; padding-left: 0; }
  .hero-section h2 { font-size: 1.15rem; border-left: none; padding-left: 0; }
  .hero-section h3 { font-size: 1rem; border-left: none; padding-left: 0; }
  .hero-section p,
  .hero-section li  { font-size: 1rem; }
  .hero-section span { font-size: inherit; }
  .hero-section .lead { font-size: 0.9rem; }
  @media (max-width: 767.98px) {
    .hero-section h1  { font-size: 1.1rem; }
    .hero-section h2  { font-size: 1rem; }
    .hero-section h3  { font-size: 0.9rem; }
    .hero-section p,
    .hero-section li  { font-size: 0.9rem; }
    .hero-section .lead { font-size: 0.82rem; }
  }

  /* 目次リンク */
  .toc-link {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.88rem;
    display: block;
    padding: 0.28rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
  }
  .toc-link:hover,
  .toc-link.active {
    color: var(--zk-fp-primary);
    font-weight: 700;
    border-left-color: var(--zk-fp-primary);
    text-decoration: none;
  }

  /* セクション見出し h2 */
  .article-heading {
    font-weight: 900;
    font-size: 1.3rem;
    margin-top: 1.0rem;
    margin-bottom: 1.2rem;
    padding: 0.6rem 1rem;
    border-left: 5px solid var(--zk-fp-primary);
    border-bottom: none;
    background: linear-gradient(90deg, rgba(23,104,172,.07) 0%, transparent 100%);
    border-radius: 0 var(--zk-fp-radius-sm) var(--zk-fp-radius-sm) 0;
    color: var(--zk-fp-primary-dark);
  }

  /* サブ見出し h3 */
  .article-subheading {
    font-weight: 700;
    font-size: 1.05rem;
    border-left: 4px solid var(--zk-fp-primary-light);
    padding-left: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--zk-fp-primary-dark);
  }

  /* マーカー */
  .marker-yellow { background: linear-gradient(transparent 60%, #ffe58f 60%); padding: 0 4px; }

  /* ホバーカード */
  .transition-hover { transition: transform 0.2s, box-shadow 0.2s; }
  .transition-hover:hover { transform: translateY(-4px); box-shadow: var(--zk-fp-shadow-hover) !important; cursor: pointer; }

  /* SVG・テーブルコンテナ */
  .svg-container { width: 100%; text-align: center; margin: 1.5rem 0; background: #fff; overflow-x: auto; }

  /* イラストボックス */
  .illustration-box {
    background: #fff;
    border: 2px solid var(--zk-fp-border);
    border-radius: var(--zk-fp-radius);
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--zk-fp-shadow-soft);
  }

  /* セクションブロック */
  .section-block { margin-bottom: 2rem; }

  /* グリッドレイアウト */
  .grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  @media (max-width: 767.98px) {
    .grid-2col,
    .grid-3col { grid-template-columns: 1fr; gap: 1rem; }
  }


/* =========================================
   フロントページ専用スタイル (zk-fp-)
   ========================================= */

:root {
  --zk-fp-primary:      #1768AC;
  --zk-fp-primary-dark: #0f4a7a;
  --zk-fp-primary-light:#2a7bc4;
  --zk-fp-gold:         #d4a745;
  --zk-fp-gold-light:   #f5e6c8;
  --zk-fp-cream:        #faf8f5;
  --zk-fp-warm:         #f7f3ee;
  --zk-fp-text-sub:     #6b6b6b;
  --zk-fp-text-light:   #999;
  --zk-fp-border:       #e8e2d9;
  --zk-fp-accent:       #e74c3c;
  --zk-fp-green:        #27ae60;
  --zk-fp-orange:       #f39c12;
  --zk-fp-radius:       12px;
  --zk-fp-radius-sm:    8px;
  --zk-fp-shadow-soft:  0 2px 8px rgba(0,0,0,0.06);
  --zk-fp-shadow-hover: 0 6px 16px rgba(0,0,0,0.12);
}

/* --- Hero --- */
.zk-fp-hero {
  background: var(--zk-fp-primary-light);
  color: #fff;
  padding: 48px 0 40px;
}
.zk-fp-hero-title {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}
.zk-fp-hero-highlight { color: var(--zk-fp-gold); }
.zk-fp-hero-sub {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 300;
  margin-bottom: 22px;
}
.zk-fp-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.zk-fp-hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.zk-fp-hero-badge i { margin-right: 5px; color: var(--zk-fp-gold); }

/* Exam Box */
.zk-fp-exam-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 24px;
}
.zk-fp-exam-label { font-size: 0.7rem; opacity: 0.6; margin-bottom: 6px; }
.zk-fp-exam-date  { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.zk-fp-exam-time  { font-size: 0.8rem; opacity: 0.7; }
.zk-fp-exam-countdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  opacity: 0.7;
}
.zk-fp-exam-countdown strong {
  color: var(--zk-fp-gold);
  font-size: 1.1rem;
  margin: 0 3px;
}

/* --- Section Common --- */
.zk-fp-section     { padding: 48px 0; background: var(--zk-fp-cream); }
.zk-fp-section-alt { background: #fff; }
.zk-fp-section-header { margin-bottom: 28px; }
.zk-fp-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--zk-fp-primary-light);
  margin-bottom: 4px;
}
.zk-fp-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--zk-fp-primary-dark);
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  position: relative;
  display: inline-block;
}
.zk-fp-section-sub {
  font-size: 0.78rem;
  color: var(--zk-fp-text-sub);
  margin-top: 4px;
  margin-bottom: 0;
}
.zk-fp-section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--zk-fp-gold);
  margin-top: 7px;
  border-radius: 2px;
}

/* --- Category Tabs --- */
.zk-fp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.zk-fp-tab {
  padding: 10px 18px;
  border-radius: var(--zk-fp-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
  border: 2px solid var(--zk-fp-border);
  background: #fff;
  color: var(--zk-fp-text-sub);
  font-family: inherit;
}
.zk-fp-tab:hover  { border-color: var(--zk-fp-primary-light); color: var(--zk-fp-primary); }
.zk-fp-tab.active { background: var(--zk-fp-primary); color: #fff; border-color: var(--zk-fp-primary); }
.zk-fp-tab-count {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.22);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
}
.zk-fp-tab:not(.active) .zk-fp-tab-count {
  background: rgba(0,0,0,0.07);
}

/* --- Panels --- */
.zk-fp-panel { display: none; }
.zk-fp-panel.active { display: block; }

/* --- Topic Card --- */
.zk-fp-topic-card {
  background: #fff;
  border-radius: var(--zk-fp-radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--zk-fp-border);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.zk-fp-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zk-fp-shadow-hover);
  border-color: var(--zk-fp-primary-light);
  text-decoration: none;
  color: inherit;
}
.zk-fp-topic-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: transparent;
  transition: background 0.25s;
}
.zk-fp-topic-card:hover::before { background: var(--zk-fp-primary-light); }

.zk-fp-topic-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--zk-fp-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem;
  flex-shrink: 0;
}
.zk-fp-topic-info { flex: 1; min-width: 0; }
.zk-fp-topic-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2c2c2c;
  line-height: 1.4;
}
.zk-fp-topic-meta {
  font-size: 0.7rem;
  color: var(--zk-fp-text-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zk-fp-topic-arrow {
  color: var(--zk-fp-text-light);
  font-size: 0.72rem;
  transition: all 0.25s;
}
.zk-fp-topic-card:hover .zk-fp-topic-arrow {
  color: var(--zk-fp-primary-light);
  transform: translateX(3px);
}

/* Badges */
.zk-fp-badge {
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.zk-fp-badge-free { background: #e8f8f0; color: var(--zk-fp-green); }
.zk-fp-badge-paid { background: #fef5e7; color: var(--zk-fp-orange); }

/* More link */
.zk-fp-more-link {
  font-size: 0.82rem;
  color: var(--zk-fp-primary-light);
  font-weight: 600;
  text-decoration: none;
}
.zk-fp-more-link:hover { color: var(--zk-fp-primary-dark); text-decoration: underline; }

/* --- Practice Cards --- */
.zk-fp-practice-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--zk-fp-border);
  text-align: center;
  transition: all 0.25s;
  height: 100%;
}
.zk-fp-practice-card:hover { transform: translateY(-4px); box-shadow: var(--zk-fp-shadow-hover); }
.zk-fp-practice-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: #fff;
}
.zk-fp-icon-blue   { background: var(--zk-fp-primary); }
.zk-fp-icon-orange { background: var(--zk-fp-orange); }
.zk-fp-practice-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  border-left: none;
  padding-left: 0;
}
.zk-fp-practice-desc {
  font-size: 0.8rem;
  color: var(--zk-fp-text-sub);
  margin-bottom: 18px;
  line-height: 1.7;
}

/* --- Buttons --- */
.zk-fp-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--zk-fp-radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: all 0.22s;
  border: none;
  cursor: pointer;
  background: var(--zk-fp-primary);
  color: #fff;
  font-family: inherit;
}
.zk-fp-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; text-decoration: none; }
.zk-fp-btn-gold {
  background: var(--zk-fp-gold);
  color: var(--zk-fp-primary-dark);
}
.zk-fp-btn-gold:hover { color: var(--zk-fp-primary-dark); }

/* --- MyPage Card --- */
.zk-fp-mypage-card {
  background: var(--zk-fp-primary);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
}
.zk-fp-mypage-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 4px;
}
.zk-fp-mypage-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}
.zk-fp-mypage-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.zk-fp-mypage-stat {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: var(--zk-fp-radius-sm);
  padding: 14px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.6;
  min-width: 80px;
}
.zk-fp-mypage-stat i {
  font-size: 1.1rem;
  color: var(--zk-fp-gold);
  display: block;
  margin-bottom: 6px;
}
.zk-fp-mypage-stat strong { font-size: 1.1rem; display: block; }

/* --- Feature List --- */
.zk-fp-desc-text { font-size: 0.88rem; color: var(--zk-fp-text-sub); line-height: 1.8; margin-bottom: 18px; }
.zk-fp-feature-list { display: flex; flex-direction: column; gap: 10px; }
.zk-fp-feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; }
.zk-fp-feature-item i { width: 20px; text-align: center; }

/* --- CTA Banner --- */
.zk-fp-cta-banner {
  background: var(--zk-fp-warm);
  border: 2px solid var(--zk-fp-gold-light);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.zk-fp-cta-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--zk-fp-primary-dark);
}
.zk-fp-cta-sub {
  font-size: 0.88rem;
  color: var(--zk-fp-text-sub);
  margin-bottom: 22px;
}

/* --- PDF ボックス（投稿タイトル＋グループ一覧） --- */
.zk-fp-pdf-box {
  background: #fff;
  border: 1px solid var(--zk-fp-border);
  border-radius: var(--zk-fp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.zk-fp-pdf-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--zk-fp-primary);
  color: #fff;
  padding: 12px 16px;
}
.zk-fp-pdf-box-icon { font-size: 0.9rem; opacity: 0.85; }
.zk-fp-pdf-box-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

.zk-fp-pdf-box-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 各グループ行 */
.zk-fp-pdf-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--zk-fp-border);
  transition: background 0.18s;
}
.zk-fp-pdf-entry:last-child { border-bottom: none; }
.zk-fp-pdf-entry:hover {
  background: var(--zk-fp-cream);
  text-decoration: none;
  color: inherit;
}

.zk-fp-pdf-entry-info { flex: 1; min-width: 0; }
.zk-fp-pdf-entry-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #2c2c2c;
  line-height: 1.4;
  margin-bottom: 3px;
}
.zk-fp-pdf-entry-arrow {
  color: var(--zk-fp-text-light);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.18s, color 0.18s;
}
.zk-fp-pdf-entry:hover .zk-fp-pdf-entry-arrow {
  color: var(--zk-fp-primary-light);
  transform: translateX(2px);
}

/* 金額フッター */
.zk-fp-pdf-box-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--zk-fp-border);
  background: #fafafa;
}
.zk-fp-pdf-price {
  font-weight: 800;
  color: var(--zk-fp-accent);
  font-size: 1.15rem;
  line-height: 1;
}
.zk-fp-price-yen {
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 1px;
}
.zk-fp-price-tax {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--zk-fp-text-light);
  margin-left: 4px;
}

/* --- PDF Material Cards（トピックカードと同デザイン） --- */
.zk-fp-pdf-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.zk-fp-pdf-icon-red   { background: #e74c3c; }
.zk-fp-pdf-icon-blue  { background: var(--zk-fp-primary); }
.zk-fp-pdf-icon-green { background: #27ae60; }
.zk-fp-pdf-icon-gray  { background: #999; }

.zk-fp-badge-type {
  background: rgba(0,0,0,0.06);
  color: var(--zk-fp-text-sub);
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- PDF Product Cards --- */
.zk-fp-product-card {
  background: #fff;
  border-radius: var(--zk-fp-radius);
  overflow: hidden;
  border: 1px solid var(--zk-fp-border);
  transition: all 0.25s;
  height: 100%;
}
.zk-fp-product-card:hover { transform: translateY(-4px); box-shadow: var(--zk-fp-shadow-hover); }
.zk-fp-product-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.zk-fp-thumb-red   { background: #e74c3c; }
.zk-fp-thumb-blue  { background: var(--zk-fp-primary); }
.zk-fp-thumb-green { background: #27ae60; }
.zk-fp-product-icon { font-size: 2.2rem; color: rgba(255,255,255,0.9); }
.zk-fp-product-format {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.28);
  color: #fff; font-size: 0.58rem; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
}
.zk-fp-product-body { padding: 14px; }
.zk-fp-product-category {
  font-size: 0.62rem; color: var(--zk-fp-primary-light);
  font-weight: 700; letter-spacing: 1px; margin-bottom: 4px;
}
.zk-fp-product-title {
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 8px; line-height: 1.5;
  color: #2c2c2c;
}
.zk-fp-product-price { font-size: 1.05rem; font-weight: 800; color: var(--zk-fp-accent); }
.zk-fp-yen  { font-size: 0.72rem; font-weight: 600; }
.zk-fp-tax  { font-size: 0.58rem; color: var(--zk-fp-text-light); font-weight: 400; margin-left: 3px; }

/* --- Back to Top --- */
#zk-back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 1000;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--zk-fp-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-decoration: none;
}
#zk-back-to-top:hover { opacity: 0.85 !important; }

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .zk-fp-hero       { padding: 32px 0 28px; }
  .zk-fp-section    { padding: 36px 0; }
  .zk-fp-exam-box   { margin-top: 16px; }
  .zk-fp-cta-banner { padding: 28px 20px; }
  .zk-fp-practice-card { padding: 22px 16px; }
  .zk-fp-mypage-card { padding: 22px 18px; }
  .zk-fp-tab { padding: 6px 10px; font-size: 0.72rem; }
}

/*--- SVGの横サイズ ---*/
@media (min-width: 992px) {
  .svg-container svg {
    width: 72% !important;
    max-width: 720px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .svg-container svg {
    width: 84% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .svg-container svg {
    width: 100% !important;
    max-width: 100% !important;
  }
}


mark { font-weight: 700; }
.term-pop {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}


.term-pop:hover {
  background: rgba(13, 110, 253, 0.08);
}
.svg-container svg text {
  font-family:'Noto Sans JP','Hiragino Sans',system-ui,sans-serif;
}
