/* =============================================
   薬局DXらぼ カスタムCSS
   WordPress 管理画面 > 外観 > カスタマイズ > 追加CSS
   にそのまま貼り付けてください
   ============================================= */

/* --- カラー変数（全体で使い回す） --- */
:root {
  --brand: #1ABEAB;
  --brand-dark: #0D8A7C;
  --brand-light: #E6FAF7;
  --bg: #F7F9FB;
  --text: #1A1A2E;
  --muted: #7A8A9A;
  --white: #ffffff;
  --border: #E2EEF2;
  --radius: 16px;
}

/* =============================================
   1. 全体・ベース
   ============================================= */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif !important;
}

a {
  color: var(--brand-dark) !important;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.75; }

/* =============================================
   2. ヘッダー
   ============================================= */
#header {
  background: var(--white) !important;
  border-bottom: 2px solid var(--border) !important;
  box-shadow: none !important;
}

/* サイトタイトル */
#site-title a,
.site-name a {
  color: var(--text) !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
}

/* ロゴ横のキャッチフレーズ */
#site-description,
.site-description {
  color: var(--muted) !important;
  font-size: 12px !important;
}

/* ヘッダー背景（バナー画像を非表示にしてすっきりさせる） */
#header-image,
.header-image {
  display: none !important;
}

/* =============================================
   3. ナビゲーション
   ============================================= */
#navi,
.navi {
  background: var(--white) !important;
  border-bottom: 1.5px solid var(--border) !important;
}

/* ナビメニューアイテム */
#navi .navi-in > ul > li > a,
.navi .menu-item a {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
  border-radius: 20px !important;
  transition: background 0.15s, color 0.15s !important;
}

#navi .navi-in > ul > li > a:hover,
.navi .menu-item a:hover {
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
}

/* 現在地メニュー */
#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current_page_item > a {
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
}

/* =============================================
   4. メインコンテンツエリア
   ============================================= */
#content {
  background: var(--bg) !important;
  padding-top: 24px !important;
}

#main {
  background: transparent !important;
}

/* =============================================
   5. 記事カード（一覧ページ）
   ============================================= */
.article-card,
.a-wrap,
.post-card {
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  transition: border-color 0.2s, transform 0.2s !important;
  box-shadow: none !important;
}

.article-card:hover,
.a-wrap:hover {
  border-color: var(--brand) !important;
  transform: translateY(-2px) !important;
}

/* カードのサムネイル */
.article-card .eyecatch img,
.a-wrap .eyecatch img {
  border-radius: 12px 12px 0 0 !important;
  transition: transform 0.3s !important;
}
.article-card:hover .eyecatch img,
.a-wrap:hover .eyecatch img {
  transform: scale(1.03) !important;
}

/* カードのタイトル */
.article-card .entry-title,
.a-wrap .entry-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.55 !important;
}

/* カードの日付 */
.article-card .date,
.a-wrap .date,
.article-card time,
.a-wrap time {
  color: var(--muted) !important;
  font-size: 11px !important;
}

/* カテゴリバッジ */
.article-card .cat-label,
.a-wrap .cat-label,
.cat-label {
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  border: none !important;
}

/* =============================================
   6. 記事本文ページ
   ============================================= */
.entry-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.5 !important;
  border-left: 5px solid var(--brand) !important;
  padding-left: 16px !important;
  border-bottom: none !important;
}

/* 本文 */
.entry-content {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--text) !important;
}

/* 本文の見出し h2 */
.entry-content h2 {
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
  border-left: 5px solid var(--brand) !important;
  border-bottom: none !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 12px 16px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin: 2rem 0 1rem !important;
}

/* 本文の見出し h3 */
.entry-content h3 {
  border-left: 4px solid var(--brand) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 6px 0 6px 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  background: none !important;
  margin: 1.5rem 0 0.8rem !important;
}

/* =============================================
   7. ボタン
   ============================================= */
.btn,
.button,
input[type="submit"],
.wp-block-button__link {
  background: var(--brand) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background 0.15s, transform 0.15s !important;
  box-shadow: none !important;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px) !important;
  color: var(--white) !important;
}

/* =============================================
   8. サイドバー
   ============================================= */
#sidebar {
  background: transparent !important;
}

/* サイドバーのウィジェット */
.widget {
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 1.2rem !important;
  margin-bottom: 1.2rem !important;
  box-shadow: none !important;
}

/* ウィジェットタイトル */
.widget-title,
.widgettitle {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  border-bottom: 2px solid var(--brand) !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
  background: none !important;
}

/* サイドバーのリンク */
.widget a {
  color: var(--text) !important;
  font-size: 13px !important;
}
.widget a:hover { color: var(--brand-dark) !important; }

/* サイドバーの「無料ツールまとめ」ボタンっぽいリンク */
.widget .btn-wrap a {
  display: block !important;
  background: var(--brand) !important;
  color: var(--white) !important;
  text-align: center !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* =============================================
   9. フッター
   ============================================= */
#footer {
  background: var(--text) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 2rem !important;
  margin-top: 3rem !important;
}

#footer a {
  color: var(--brand) !important;
}

.footer-copy {
  color: rgba(255,255,255,0.4) !important;
  font-size: 12px !important;
}

/* =============================================
   10. パンくずリスト
   ============================================= */
.breadcrumb {
  font-size: 12px !important;
  color: var(--muted) !important;
  background: transparent !important;
  padding: 8px 0 !important;
}

/* =============================================
   11. ページネーション
   ============================================= */
.pagination .page-numbers {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--white) !important;
}

/* =============================================
   12. スマホ対応（768px以下）
   ============================================= */
@media (max-width: 768px) {
  .entry-title {
    font-size: 18px !important;
  }
  .entry-content h2 {
    font-size: 16px !important;
  }
  .widget {
    border-radius: 12px !important;
  }
}