@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.4
*/

/************************************
** zh-HK フォント優先順位（フェーズ5・企画書4.2）
************************************/
:root, html[lang="zh-HK"], body {
  font-family: "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
}
/* 全ページの背景を白に統一（記事ページのライトデザインとトップを整合・2026-08-09） */
body {
  background-color: #ffffff;
}
h1, h2, h3, h4, .entry-title, .article-title, .widget-title {
  font-family: "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/************************************
** hk-food デザイントークン（ライトテーマ・記事ページ（Cocoon標準）と統一）
** 2026-08-09: デザイン統一感検査でトップのみダーク（旧サイト踏襲）だったため、
** 記事一覧/店舗ページのライトデザインに合わせてトークンをライト化した。
** アクセント色（ピンク/紫）はブランドカラーとして維持。
************************************/
:root {
  --hk-bg: #ffffff;
  --hk-bg-card: #ffffff;
  --hk-bg-elevated: #f4f6f9;
  --hk-border: #e5e9f0;
  --hk-text: #2b2f3a;
  --hk-text-muted: #6b7280;
  --hk-primary: #e8487a;
  --hk-primary-dark: #cf3a69;
  --hk-secondary: #5b4fe0;
  --hk-accent: #0f9d8e;
  --hk-hero-grad: linear-gradient(135deg, #2d1b69 0%, #7c2d5c 50%, #a8325a 100%);
  --hk-radius: 12px;
  --hk-shadow: 0 1px 4px rgba(31, 41, 55, .08);
  --hk-shadow-hover: 0 10px 28px rgba(31, 41, 55, .14);
}

/************************************
** 店舗一覧カード バッジ（続き344: 店舗改善計画 P3-2）
************************************/
.hk-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.hk-card-badge {
  display: inline-block;
  padding: .14rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid var(--hk-border);
  background: var(--hk-bg-elevated);
  color: var(--hk-text);
}
.hk-card-badge-price { color: var(--hk-accent); border-color: var(--hk-accent); }
.hk-card-badge-area { color: var(--hk-primary); border-color: var(--hk-primary); }
.hk-card-badge-rating { color: #b8860b; border-color: #d4a017; }

/************************************
** 店舗一覧 絞り込みチップ（続き343: 店舗改善計画 P3-1）
************************************/
.hk-rest-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.4rem;
}
.hk-rest-chip {
  display: inline-block;
  padding: .34rem .9rem;
  border: 1px solid var(--hk-border);
  border-radius: 999px;
  background: var(--hk-bg-elevated);
  color: var(--hk-text);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hk-rest-chip:hover {
  border-color: var(--hk-primary);
  color: var(--hk-primary);
}
.hk-rest-chip.is-active {
  background: var(--hk-primary);
  border-color: var(--hk-primary);
  color: #fff;
}
@media (max-width: 480px) {
  .hk-rest-chip { font-size: .78rem; padding: .28rem .7rem; }
}

/************************************
** 店舗詳細 基本情報カード（続き333: 店舗改善計画 P1-1）
************************************/
.hk-restaurant-info {
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius);
  background: var(--hk-bg-elevated);
  padding: 1rem 1.2rem;
}
.hk-restaurant-info-row {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .42rem 0;
  border-bottom: 1px dashed var(--hk-border);
  font-size: .95rem;
  line-height: 1.6;
}
.hk-restaurant-info-row:last-child {
  border-bottom: none;
}
.hk-restaurant-info-label {
  flex: 0 0 7.2em;
  color: var(--hk-text-muted);
  font-weight: 600;
}
.hk-restaurant-info-value {
  flex: 1;
  color: var(--hk-text);
  word-break: break-word;
}
/************************************
** 店舗詳細 地図（続き337: 店舗改善計画 P1-2・OpenStreetMap）
************************************/
.hk-restaurant-map {
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius);
  overflow: hidden;
  background: var(--hk-bg-elevated);
}
.hk-restaurant-map iframe {
  display: block;
  max-width: 100%;
}
.hk-restaurant-map-link {
  margin: 0;
  padding: .55rem .9rem;
  font-size: .88rem;
  text-align: center;
}
.hk-restaurant-map-link a {
  color: var(--hk-accent);
  font-weight: 600;
}
@media (max-width: 480px) {
  .hk-restaurant-info-row {
    flex-direction: column;
    gap: .1rem;
    padding: .55rem 0;
  }
  .hk-restaurant-info-label {
    flex: none;
  }
}

/************************************
** トップページ ヒーロー
************************************/
.hk-hero {
  position: relative;
  min-height: clamp(260px, 38vh, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--hk-hero-grad);
  border-radius: 0 0 24px 24px;
  padding: 2.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hk-hero-content { max-width: 720px; margin: 0 auto; }
.hk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 157, .22) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(125, 211, 192, .16) 0%, transparent 50%);
  pointer-events: none;
}
.hk-hero-content { position: relative; z-index: 1; }
.hk-hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.hk-hero-subtitle {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .2);
  margin-bottom: 1.4rem;
}
.hk-hero-updated {
  display: inline-block;
  color: rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .82rem;
  font-weight: 600;
  padding: .28rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hk-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hk-stat-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.hk-stat-number { color: #fff; font-size: 1.7rem; font-weight: 800; }
.hk-stat-label { color: rgba(255, 255, 255, .82); font-size: .85rem; }
.hk-hero-lead {
  color: rgba(255, 255, 255, .95);
  font-size: .92rem;
  font-weight: 600;
  margin: 0 0 1.4rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .2);
}
.hk-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hk-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.6rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s ease;
}
.hk-hero-cta-primary { background: var(--hk-primary); color: #fff; box-shadow: 0 4px 18px rgba(255, 107, 157, .4); }
.hk-hero-cta-primary:hover { background: var(--hk-primary-dark); transform: translateY(-2px); }
.hk-hero-cta-secondary { background: rgba(255, 255, 255, .18); color: #fff; border: 2px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.hk-hero-cta-secondary:hover { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }

/************************************
** ヒーロー カテゴリチップ（続き334: トップ改善計画 P1-2）
************************************/
.hk-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.3rem;
}
.hk-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all .3s ease;
}
.hk-hero-chip:hover {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .55);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .hk-hero-chips { gap: .4rem; }
  .hk-hero-chip { padding: .4rem .75rem; font-size: .8rem; }
}

/************************************
** トップページ セクション・カード
************************************/
.hk-section { margin-bottom: 2.5rem; }
.hk-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hk-text);
  margin-bottom: 1.1rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--hk-primary);
}
.hk-section-lead { color: var(--hk-text-muted); font-size: .92rem; margin-bottom: 1rem; }

/************************************
** 価値提案セクション（続き342: トップ改善計画 P3-1）
************************************/
.hk-vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hk-vp-card {
  background: var(--hk-bg-elevated);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hk-vp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.hk-vp-icon {
  display: inline-block;
  font-size: 1.7rem;
  margin-bottom: .5rem;
}
.hk-vp-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hk-text);
  margin-bottom: .4rem;
}
.hk-vp-card-text {
  font-size: .88rem;
  color: var(--hk-text-muted);
  line-height: 1.65;
}

.hk-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.hk-card {
  display: flex;
  flex-direction: column;
  background: var(--hk-bg-card);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hk-shadow);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s ease, border-color .3s ease;
}
.hk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hk-shadow-hover);
  border-color: var(--hk-primary);
}
.hk-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hk-bg-elevated); }
.hk-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hk-card:hover .hk-card-image img { transform: scale(1.06); }
.hk-card-category {
  position: absolute;
  bottom: .6rem;
  left: .6rem;
  z-index: 2;
  display: inline-block;
  padding: .25rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  background: rgba(109, 94, 240, .88);
  backdrop-filter: blur(4px);
}
.hk-card-category--gourmet { background: rgba(255, 107, 157, .88); }
.hk-card-category--guide { background: rgba(59, 130, 246, .88); }
.hk-card-category--course { background: rgba(109, 94, 240, .88); }
.hk-card-category--area { background: rgba(245, 158, 11, .88); }
.hk-card-category--seasonal { background: rgba(168, 85, 247, .88); }
.hk-card-category--ranking { background: rgba(239, 68, 68, .88); }
.hk-card-content { padding: .85rem 1rem .95rem; display: flex; flex-direction: column; flex: 1; }
.hk-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--hk-text);
  line-height: 1.45;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hk-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: .76rem; color: var(--hk-text-muted); margin-bottom: .4rem; }
.hk-card-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--hk-primary);
  background: rgba(232, 72, 122, .08);
  border: 1px solid rgba(232, 72, 122, .28);
  border-radius: 8px;
  opacity: .9;
  transition: all .3s cubic-bezier(.34, 1.2, .64, 1);
}
.hk-card:hover .hk-card-cta { opacity: 1; transform: translateY(-1px) scale(1.04); box-shadow: 0 4px 14px rgba(109, 94, 240, .35); }
.hk-more-link { text-align: center; margin-top: 1.2rem; }
.hk-more-btn {
  display: inline-block;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  background: var(--hk-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  border: 1px solid var(--hk-primary-dark);
}
.hk-more-btn:hover { background: var(--hk-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 107, 157, .35); }

/************************************
** トップページ カテゴリ
************************************/
.hk-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.hk-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.2rem 1rem;
  background: var(--hk-bg-card);
  border: 1px solid var(--hk-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.hk-category-card:hover { transform: translateY(-3px); box-shadow: var(--hk-shadow-hover); border-color: var(--hk-primary); }
.hk-category-icon { font-size: 1.7rem; }
.hk-category-name { font-size: .92rem; font-weight: 700; color: var(--hk-text); }
.hk-category-count { font-size: .76rem; color: var(--hk-text-muted); }

/************************************
** サイドバー ウィジェット（人氣文章・推薦店鋪）
************************************/
.hk-sidebar-list { list-style: none; padding: 0; margin: 0; }
.hk-sidebar-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--hk-border);
}
.hk-sidebar-item:last-child { border-bottom: 0; }
.hk-sidebar-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.hk-sidebar-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--hk-text);
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.hk-sidebar-link:hover { color: var(--hk-primary); }
.hk-sidebar-meta { font-size: .72rem; color: var(--hk-text-muted); white-space: nowrap; }

/************************************
** 店舗詳細 関連記事（紹介記事の逆リンク・2026-08-10）
************************************/
.hk-rest-related-articles {
  margin-top: 2.2rem;
  padding: 1.2rem 1.3rem;
  background: var(--hk-bg-elevated);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius);
}
.hk-rest-related-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hk-text);
  margin: 0 0 .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--hk-primary);
}
.hk-rest-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hk-rest-related-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--hk-border);
}
.hk-rest-related-item:last-child { border-bottom: 0; }
.hk-rest-related-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.hk-rest-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hk-rest-related-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--hk-text);
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}
.hk-rest-related-link:hover { color: var(--hk-primary); }

/************************************
** レスポンシブ（モバイル）
************************************/
@media screen and (max-width: 1023px){
  .hk-article-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media screen and (max-width: 834px){
  .hk-hero { min-height: 300px; }
  .hk-vp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 480px){
  .hk-article-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hk-category-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .hk-hero-ctas { flex-direction: column; align-items: center; }
  .hk-hero-cta { width: 100%; max-width: 260px; justify-content: center; }
  .hk-section-title { font-size: 1.15rem; }
  .hk-vp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * 7. Cocoon CSSの日本語ラベルを繁体字に上書き（2026-09-03）
 *    - ブログカードラベルの日本語（参考記事・人気記事等）を繁体字に変換
 * ============================================================ */
.bct-related .blogcard-label::after { content: 相關文章 !important; }
.bct-reference .blogcard-label::after { content: 參考文章 !important; }
.bct-reference-link .blogcard-label::after { content: 參考連結 !important; }
.bct-popular .blogcard-label::after { content: 人氣文章 !important; }
.bct-pickup .blogcard-label::after { content: 精選推薦 !important; }
.bct-check .blogcard-label::after { content: 檢查 !important; }
.bct-together .blogcard-label::after { content: 一起閱讀 !important; }
.bct-detail .blogcard-label::after { content: 詳細資訊 !important; }
.bct-official .blogcard-label::after { content: 官方網站 !important; }
.bct-dl .blogcard-label::after { content: 下載 !important; }
.bct-prev .blogcard-label::after { content: 上一篇 !important; }
.bct-next .blogcard-label::after { content: 下一篇 !important; }

/* ============================================================
 * 8. h1タグ複数問題の修正（2026-09-04 千本ノック検査対応）
 *    - schema.org用のh1（itemprop="headline"）を非表示
 *    - 表示用のh1はそのまま表示
 *    - スクリーンリーダー用にaria-labelを追加
 * ============================================================ */
/* schema.org用のh1を非表示（SEOには影響しない） */
h1[itemprop="headline"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 表示用のh1にはaria-labelを追加（アクセシビリティ対応） */
h1.entry-title:not([itemprop="headline"]) {
  aria-label: true;
}


/* schema.org用のh1を非表示（SEOには影響しない） */
h1[itemprop="headline"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
 * hk-food ダークモード対応
 * 2026-08-30: ダークモード切り替え機能の実装
 * ============================================================ */

/* --- ライトモード（デフォルト） --- */
:root {
  --hk-bg: #ffffff;
  --hk-bg-card: #ffffff;
  --hk-bg-elevated: #f4f6f9;
  --hk-border: #e5e9f0;
  --hk-text: #2b2f3a;
  --hk-text-muted: #6b7280;
  --hk-primary: #e8487a;
  --hk-primary-dark: #cf3a69;
  --hk-secondary: #5b4fe0;
  --hk-accent: #0f9d8e;
  --hk-hero-grad: linear-gradient(135deg, #2d1b69 0%, #7c2d5c 50%, #a8325a 100%);
  --hk-radius: 12px;
  --hk-shadow: 0 1px 4px rgba(31, 41, 55, .08);
  --hk-shadow-hover: 0 10px 28px rgba(31, 41, 55, .14);
}

/* --- システム設定に基づくダークモード --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hk-bg: #0f0f14;
    --hk-bg-card: #1a1a24;
    --hk-bg-elevated: #222230;
    --hk-border: #2a2a3a;
    --hk-text: #e8e8f0;
    --hk-text-muted: #9ca3af;
    --hk-primary: #f472b6;
    --hk-primary-dark: #ec4899;
    --hk-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    --hk-shadow-hover: 0 10px 28px rgba(0, 0, 0, .5);
  }
}

/* --- 手動ダークモード（data-theme="dark"） --- */
[data-theme="dark"] {
  --hk-bg: #0f0f14;
  --hk-bg-card: #1a1a24;
  --hk-bg-elevated: #222230;
  --hk-border: #2a2a3a;
  --hk-text: #e8e8f0;
  --hk-text-muted: #9ca3af;
  --hk-primary: #f472b6;
  --hk-primary-dark: #ec4899;
  --hk-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  --hk-shadow-hover: 0 10px 28px rgba(0, 0, 0, .5);
}

/* --- ダークモード時の要素スタイル --- */
[data-theme="dark"] body,
[data-theme="dark"] .body,
[data-theme="dark"] .body.article {
  background-color: var(--hk-bg);
  color: var(--hk-text);
}

[data-theme="dark"] .wrap,
[data-theme="dark"] .container {
  background-color: var(--hk-bg);
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .widget {
  background-color: var(--hk-bg-card);
  border-color: var(--hk-border);
}

[data-theme="dark"] .entry-card {
  background-color: var(--hk-bg-card);
  border-color: var(--hk-border);
}

[data-theme="dark"] .article a,
[data-theme="dark"] .entry-title a {
  color: var(--hk-primary);
}

[data-theme="dark"] .article p,
[data-theme="dark"] .article li {
  color: var(--hk-text);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: var(--hk-text);
}

[data-theme="dark"] .breadrin,
[data-theme="dark"] .breadcrumb {
  color: var(--hk-text-muted);
}

[data-theme="dark"] .pager-post-navi a {
  background-color: var(--hk-bg-card);
  border-color: var(--hk-border);
  color: var(--hk-text);
}

[data-theme="dark"] .author-box {
  background-color: var(--hk-bg-card);
  border-color: var(--hk-border);
}

[data-theme="dark"] .related-entries {
  background-color: var(--hk-bg-card);
  border-color: var(--hk-border);
}

[data-theme="dark"] .comment-area {
  background-color: var(--hk-bg-card);
}

[data-theme="dark"] pre, [data-theme="dark"] code {
  background-color: var(--hk-bg-elevated);
  color: var(--hk-text);
}

[data-theme="dark"] blockquote {
  border-color: var(--hk-border);
  background-color: var(--hk-bg-elevated);
}

[data-theme="dark"] table {
  border-color: var(--hk-border);
}

[data-theme="dark"] th {
  background-color: var(--hk-bg-elevated);
  color: var(--hk-text);
}

[data-theme="dark"] td {
  border-color: var(--hk-border);
  color: var(--hk-text);
}

[data-theme="dark"] .information-box,
[data-theme="dark"] .question-box,
[data-theme="dark"] .alert-box,
[data-theme="dark"] .blank-box {
  background-color: var(--hk-bg-elevated);
  border-color: var(--hk-border);
  color: var(--hk-text);
}

[data-theme="dark"] .ad-area {
  background-color: var(--hk-bg-card);
}

/* --- ダークモード切り替えボタン --- */
.hk-darkmode-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--hk-bg-card);
  box-shadow: var(--hk-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  border: 1px solid var(--hk-border);
}

.hk-darkmode-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--hk-shadow-hover);
}

.hk-darkmode-toggle .icon-sun,
.hk-darkmode-toggle .icon-moon {
  transition: opacity 0.3s ease;
}

/* ライトモード時：太陽アイコンを表示 */
[data-theme="light"] .hk-darkmode-toggle .icon-sun,
:root:not([data-theme]) .hk-darkmode-toggle .icon-sun {
  display: inline;
}

[data-theme="light"] .hk-darkmode-toggle .icon-moon,
:root:not([data-theme]) .hk-darkmode-toggle .icon-moon {
  display: none;
}

/* ダークモード時：月アイコンを表示 */
[data-theme="dark"] .hk-darkmode-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .hk-darkmode-toggle .icon-moon {
  display: inline;
}

/* --- システム設定に基づく表示 --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hk-darkmode-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .hk-darkmode-toggle .icon-moon {
    display: inline;
  }
}

/* --- トランジション --- */
body.hk-darkmode-transition,
body.hk-darkmode-transition *,
body.hk-darkmode-transition *::before,
body.hk-darkmode-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* --- モバイル対応 --- */
@media screen and (max-width: 782px) {
  .hk-darkmode-toggle {
    bottom: 70px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* === 日本語UIの繁體中文翻訳上書き === */
/* 人気記事 → 人氣文章 */
.bct-popular .blogcard-label::after{content:"人氣文章"}
/* ピックアップ → 精選推薦 */
.bct-pickup .blogcard-label::after{content:"精選推薦"}
/* チェック → 推薦 */
.bct-check .blogcard-label::after{content:"推薦"}
/* 参考記事 → 參考文章 */
.bct-reference .blogcard-label::after{content:"參照文章"}
/* 参考リンク → 參考連結 */
.bct-reference-link .blogcard-label::after{content:"參照連結"}
/* 前回の記事 → 上一篇文章 */
.bct-previous .blogcard-label::after{content:"上一篇文章"}
/* 続きの記事 → 下一篇文章 */
.bct-following .blogcard-label::after{content:"下一篇文章"}
