* {
  box-sizing: border-box
}



body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  width: 100%;
  /* overflow-x: hidden は sticky ヘッダーを無効化するため削除 */
}

html {
  /* overflow-x: hidden は sticky ヘッダーを無効化するため削除 */
}

/* ユーティリティ */
.container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px
}

.section {
  padding: 28px 0
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.section__title {
  font-size: 20px;
  margin: 0
}

.link-more {
  color: var(--accent);
  font-weight: 600
}

/* ヘッダー */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  overflow: visible !important;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

@media (max-width: 767px) {
  .header__inner {
    gap: 8px;
    /* スマホなら隙間を狭く */
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow)
}

.brand__title {
  font-weight: 800;
}

@media (max-width: 480px) {
  .brand__title {
    font-size: 16px;
  }
}

.brand__subtitle {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  .brand__subtitle {
    display: none;
  }

  /* スマホ幅では横揺れ防止のためタグライン非表示 */
}

@media (prefers-color-scheme: light) {
  .nav__list a {
    color: var(--ink-dim);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav__list a:hover {
    color: var(--ink);
    background: var(--bg-soft);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* brand, nav, toggle を適切に配置 */
  width: 100%;
}

.nav__list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  display: block;
}

.nav__list a:hover {
  background: var(--bg-soft);
}

/* -----------------------------------
   ハンバーガーメニュー（スマホ／タブレット用）
   ----------------------------------- */
.menu-toggle {
  display: none;
  /* PCでは非表示 */
}

.menu-overlay {
  display: none;
  /* PCでは非表示 */
}

@media (max-width: 900px) {

  /* スマホ時はヘッダー右側に配置するため、brand と nav-containerの間にトグルボタンを置く */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    /* ドロワーより上に */
    position: relative;
    padding: 0;
    margin-left: auto;
  }

  /* ハンバーガーの3本線 */
  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  }

  .menu-toggle__icon::before {
    content: '';
    top: -8px;
  }

  .menu-toggle__icon::after {
    content: '';
    bottom: -8px;
  }

  /* 開いた状態の×印アニメーション */
  .menu-toggle.is-active .menu-toggle__icon {
    background-color: transparent;
  }

  .menu-toggle.is-active .menu-toggle__icon::before {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-active .menu-toggle__icon::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ドロワーメニュー本体 */
  .nav-container {
    position: fixed;
    top: 0;
    left: -280px;
    /* 画面外へ隠す */
    width: 280px;
    height: 100vh;
    background: var(--panel);
    z-index: 90;
    padding: 80px 20px 20px;
    border-right: 1px solid var(--line);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
  }

  /* メニューが開いた時 */
  .nav-container.is-open {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    /* 縦並びに */
    gap: 0;
  }

  .nav__list>li {
    border-bottom: 1px solid var(--line);
  }

  .nav__list a {
    padding: 16px 10px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
  }

  /* ドロワー内のサブメニュー調整（階層インデントなど） */
  .nav__list .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--line);
    padding-left: 16px;
    background: transparent;
  }

  /* スマホでサブメニューを開く用 */
  .nav__list li.is-active-sub>.sub-menu {
    display: block;
  }

  /* オーバーレイ（背景クリックで閉じるための黒幕） */
  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* ダークモードトグルボタンの位置調整（ヘッダー右端に固定） */
  .theme-toggle {
    z-index: 100;
  }
}

.nav__list a:hover {
  background: var(--bg-soft);
}

/* ▼ グローバルナビ：ドロップダウン対応 */
.nav__list>li {
  position: relative;
}

/* 親LIを基準に */
.nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* 子の中は縦並び（デフォルトブロック） */
.nav__list .sub-menu li {
  display: block;
}

/* 子のリンク見た目 */
.nav__list .sub-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}

.nav__list .sub-menu a:hover {
  background: var(--bg-soft);
}

/* ホバー／キーボード（:focus-within）で表示 */
.nav__list li:hover>.sub-menu,
.nav__list li:focus-within>.sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 親メニューに子ありマーク（小さな▼） */
.nav__list .menu-item-has-children>a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.8em;
  opacity: .7;
}

/* サブメニューのさらに子（第2階層以降）は右に出す（必要なら） */
.nav__list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 6px;
}

/* レイアウト */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--gap-w);
  margin-top: 16px;
  width: 100%;
  /* 横揺れ防止のため100%確保 */
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ヒーロー */
.hero {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft) 60%, var(--bg));
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__body {
  padding: 20px
}

.hero__title {
  margin: 0 0 6px;
  font-size: 24px
}

.hero__lead {
  margin: 0 0 12px;
  color: var(--muted)
}

form.search {
  display: flex;
  gap: 10px;
  margin-top: 10px
}

form.search .search__input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.btn {
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer
}

.btn:hover {
  filter: brightness(0.95)
}

.btn--accent {
  background: var(--accent-2);
  border-color: var(--accent-2)
}

.btn--sm {
  padding: 8px 12px;
  font-size: 13px
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 0;
  list-style: none
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px
}

/* Featured */
.featured__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px
}

@media (max-width: 900px) {
  .featured__grid {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.card a {
  display: block;
  color: inherit;
  text-decoration: none
}

.card__thumb {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.card__thumb img,
.p-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 14px
}

.card__title {
  margin: 0 0 6px;
  font-size: 18px
}

.card__desc {
  margin: 0;
  color: var(--muted)
}

.card--feature .card__thumb {
  background: #c7d2fe
}

/* 新着 / 記事一覧グリッド */
.posts--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px
}

@media (max-width: 900px) {
  .posts--grid {
    grid-template-columns: 1fr
  }
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.post-card__thumb {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__title {
  margin: 12px 12px 4px;
  font-size: 16px
}

.post-card__meta {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 12px
}

/* 人気スライダー（横スクロール、スナップ） */
.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 2px;
  scroll-snap-type: x mandatory
}

.slider::-webkit-scrollbar {
  height: 8px
}

.slider::-webkit-scrollbar-thumb {
  background: #c6cbd6;
  border-radius: 8px
}

.slide {
  scroll-snap-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center
}

.slide h3 {
  margin: 0
}

/* キャラショートカット帯 */
.charshot {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0
}

@media (max-width: 900px) {
  .charshot {
    grid-template-columns: repeat(3, 1fr)
  }
}

.charshot a {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.charshot a:hover {
  background: var(--bg-soft)
}

/* キャラクターホバーエフェクト（画像用） */
.char-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.char-hover:hover {
  filter: grayscale(0%);
}

/* テーマ切り替えトグル */
.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Beginner Hub */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

@media (max-width: 900px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

.mini-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit
}

/* CTA */
.cta {
  margin: 28px 0 8px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel)
}

.cta__form {
  display: flex;
  gap: 10px
}

@media (max-width: 640px) {
  .cta__form {
    flex-direction: column
  }
}

.cta__input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

/* サイドバー */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow)
}

.widget__title {
  margin: 0 0 8px;
  font-size: 16px
}

.list {
  list-style: none;
  margin: 0;
  padding: 0
}

.list li {
  margin: 8px 0
}

.list a {
  text-decoration: none;
  color: inherit
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tags a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tags a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.muted {
  color: var(--muted)
}

/* フッター */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* スマホではみ出さないようラップ */
  gap: 16px;
  padding: 16px 0;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  /* リンク数増えた時の改行用 */
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: inherit
}

/* アクセシビリティ */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap
}

/* 固定ページ：ヘッダー帯の微調整 */
.page-header {
  padding: 18px 20px;
}

.page-title {
  margin: 0;
  font-size: 24px;
}

/* アイキャッチ */
/* ラッパーを1100pxに制限して中央寄せ */
.page-eyecatch {
  max-width: var(--wrap);
  /* 1100px をトークンで */
  margin: 12px auto 0;
  /* 中央寄せ */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
  overflow: hidden;
}

/* 画像はラッパーにフィット（拡大はラッパーまで） */
.page-eyecatch__img {
  display: block;
  width: 100%;
  /* ラッパー1100pxに合わせてピッタリ */
  height: auto;
  /* 縦は自然に → 610pxになるはず（1100x610を出力していれば） */
  object-fit: cover;
  /* トリミングしたくないなら外す/初期化 */
}

/* 本文領域 */
.content-body {
  padding-top: 16px;
}

.content-body img {
  max-width: 100%;
  height: auto;
}

.content-body h2 {
  font-size: 22px;
  margin: 24px 0 10px;
}

.content-body h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}

.content-body p {
  margin: 0 0 1em;
}

/* ページ分割ナビ（<!--nextpage--> 対応） */
.page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-link-item {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

/* 編集リンク */
.edit-link a {
  color: var(--muted);
  text-decoration: none;
}

.edit-link a:hover {
  color: var(--ink);
}

/* セクションとして扱いたい要素（自動ラップ/手動グループ両対応） */
.entry-content section.section,
.entry-content .wp-block-group.section {
  margin-block: 32px;
}

/* セクション先頭の見出しマージンなど（お好みで） */
.entry-content>h2 {
  margin-top: 0;
}

.entry-content {
  /*font-size: 18px;*/
  line-height: 1.75;
  color: var(--ink);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 1.2em 0 .6em;
  /*margin: 2em 0 1em;*/
  border-left: 4px solid var(--accent);
  padding-left: 0.5em;
}

.entry-content h3 {
  font-size: clamp(17px, 2.1vw, 22px);
  margin: 1em 0 .5em;
  /*font-size: 1.3em;*/
  /*margin: 1.5em 0 0.75em;*/
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0 1em 1.5em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 0.6em;
}

.entry-content th {
  background: var(--bg-soft);
}

/* ---------------------------------
   画像表示の縦伸び・トリミング防止
   --------------------------------- */
.post-card__thumb img,
.card__thumb img,
.page-eyecatch__img {
  width: 100%;
  height: 100%;
  /* ←元の縦伸びの原因になりうる部分 */
  max-height: 100%;
  /* 親のaspect-ratioに追従させる */
  object-fit: cover;
  /* サムネイルは枠を埋めるようcoverに（元のデザイン意図を優先） */
  aspect-ratio: 16/9;
  /* 無理に画像が縦伸びしないように比率を強制 */
}

/* 画像がないときのプレースホルダ自体も縦伸び防止 */
.post-card__thumb {
  display: block;
  width: 100%;
  height: auto;
  /* autoにしてaspect-ratioを効かせる */
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  overflow: hidden;
}

/* card__thumb (新着記事以外の汎用カード) も同様にアスペクト比を固定 */
.card__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  overflow: hidden;
}

/* 記事本文中の画像が無理に引き伸ばされないよう適正化 */
.entry-content img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

/* ---------------------------------
   「動画はこちら」ボタンのデザイン
   --------------------------------- */
.btn-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e62117, #b31217);
  color: #ffffff !important;
  font-weight: bold;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(230, 33, 23, 0.4);
  transition: all 0.3s ease;
  margin: 16px 0;
  border: 2px solid transparent;
}

.theme-light .btn-video {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.theme-dark .btn-video {
  /* ダークテーマでは青系(サイバーブルー)に変更 */
  background: linear-gradient(135deg, #0f52ba, #002244);
  box-shadow: 0 4px 14px rgba(15, 82, 186, 0.5);
  border-color: rgba(64, 169, 255, 0.2);
}

.btn-video:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

/* 展開される動画コンテナのデザイン */
.wp-block-custom-expandable-video {
  max-width: 100%;
}

.wp-block-custom-expandable-video span[id^="open"] {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-top: 10px !important;
  box-shadow: var(--shadow) !important;
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  /* spanをブロック要素として扱う場合 */
}

/* 動画（iframe）の下のテキストとの余白調整とレスポンシブ化 */
.wp-block-custom-expandable-video span[id^="open"] iframe {
  border-radius: 8px;
  /* 動画自体にも少し角丸を */
  margin-bottom: 12px;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.wp-block-custom-expandable-video span[id^="open"] p {
  margin: 0 0 16px 0 !important;
  font-size: 0.95em;
  color: var(--ink);
  word-wrap: break-word;
  /* 念のため長いテキストも折り返す */
}

.wp-block-custom-expandable-video span[id^="open"] p:last-child {
  margin-bottom: 0 !important;
}

/* ---------------------------------
   展開UI（details/summary）のデザイン
   --------------------------------- */
.entry-content details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.entry-content summary {
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  background: var(--bg-soft);
  list-style: none;
  /* デフォルトの矢印を消す準備 */
  position: relative;
  outline: none;
}

/* カスタム矢印 */
.entry-content summary::-webkit-details-marker {
  display: none;
}

.entry-content summary::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.entry-content details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.entry-content details>div,
.entry-content details>p {
  padding: 20px;
  margin: 0;
  border-top: 1px solid var(--line);
}

/* ---------------------------------
   ページネーション（一覧のページ送り）
   --------------------------------- */
.pagination {
  margin: 40px 0;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
  background: var(--bg-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  pointer-events: none;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ---------------------------------
   トップへ戻るボタン
   --------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  background: var(--bg-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ---------------------------------
   TOC (Easy Table of Contents)
   --------------------------------- */
#ez-toc-container {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 20px !important;
  margin-bottom: 30px !important;
  width: 100% !important;
  box-shadow: var(--shadow) !important;
}

#ez-toc-container p.ez-toc-title {
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
}

#ez-toc-container ul.ez-toc-list a {
  color: var(--ink-dim) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#ez-toc-container ul.ez-toc-list a:hover {
  color: var(--accent) !important;
}

#ez-toc-container .ez-toc-toggle {
  float: right;
  margin-top: 5px;
}

#ez-toc-container .ez-toc-toggle label {
  color: var(--ink-dim) !important;
}

/* ---------------------------------
   コメント欄 (Comments)
   --------------------------------- */
#respond {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

#reply-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--ink);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-dim);
  font-size: 14px;
}

/* 入力フィールド */
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  /* コンテナからはみ出さないように */
}

/* 要素間の余白調整 */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 16px;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  margin-bottom: 0;
  margin-top: 20px;
}

.form-submit #submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit #submit:hover {
  background: #3b82f6;
  /* Tailwindのblue-500程度 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.comment-notes,
.logged-in-as {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* ---------------------------------
   トップへ戻るボタン
   --------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-soft);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}