/*
Skin Name: animeguide.jp
Description: アニメ初心者向けガイドサイト「animeguide.jp」専用スキン。深夜紺×朱色×和紙白のカラーパレット。
Skin URI: https://animeguide.jp/
Author: animeguide.jp
Author URI: https://animeguide.jp/
Version: 1.0.0
Priority: 10
*/

/* =============================================
   カラー変数
   ============================================= */
:root {
  --ag-main:    #E85D2F;   /* 朱色：メインカラー */
  --ag-dark:    #1A1A2E;   /* 深夜紺：ヘッダー背景 */
  --ag-bg:      #F5EBE0;   /* 和紙白：ページ背景 */
  --ag-card:    #F0EBE3;   /* オフホワイト：カード背景 */
  --ag-amber:   #FFB547;   /* 琥珀：ダーク背景でのアクセント */
  --ag-blue:    #3D5A80;   /* 群青：バッジ・サブ情報 */
  --ag-text:    #2C2A26;   /* 本文テキスト */
  --ag-muted:   #6B6460;   /* サブテキスト */
  --ag-border:  #DDD5C8;   /* ボーダー */
}

/* =============================================
   ページ全体
   ============================================= */
body {
  background-color: var(--ag-bg);
  color: var(--ag-text);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   ヘッダー
   ============================================= */
#header {
  background-color: var(--ag-dark);
  border-bottom: 3px solid var(--ag-main);
}

/* サイトタイトル */
.site-name-text,
#site-name a,
.site-name a {
  color: #F5EBE0 !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* サイトディスクリプション */
.site-description,
#site-description {
  color: #aaa;
  font-size: 0.8rem;
}

/* =============================================
   グローバルナビ
   ============================================= */
#navi {
  background-color: var(--ag-dark);
}

.navi-in > ul > li > a,
#navi .menu > li > a {
  color: #E0D8CF;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.9rem 1.1rem;
  transition: color 0.2s ease;
}

.navi-in > ul > li > a:hover,
#navi .menu > li > a:hover,
.navi-in > ul > li.current-menu-item > a {
  color: var(--ag-amber);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ドロップダウン */
.navi-in > ul > li > ul {
  background-color: var(--ag-dark);
  border-top: 2px solid var(--ag-main);
}

.navi-in > ul > li > ul > li > a {
  color: #E0D8CF;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navi-in > ul > li > ul > li > a:hover {
  background-color: rgba(232, 93, 47, 0.15);
  color: var(--ag-amber);
}

/* =============================================
   メインビジュアル・ヒーロー
   ============================================= */
.appeal-in {
  background-color: var(--ag-dark);
  border-bottom: 3px solid var(--ag-main);
}

/* =============================================
   記事タイトル（h1）
   ============================================= */
.entry-title,
.article h1.entry-title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ag-dark);
  border-left: 4px solid var(--ag-main);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

/* =============================================
   見出し（h2・h3・h4）
   ============================================= */
.entry-content h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--ag-dark);
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--ag-main);
  border-radius: 0 4px 4px 0;
  margin: 2.5rem 0 1rem;
  line-height: 1.5;
}

.entry-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ag-dark);
  border-bottom: 2px solid var(--ag-main);
  padding-bottom: 0.3rem;
  margin: 2rem 0 0.75rem;
}

.entry-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ag-main);
  padding-left: 0.6rem;
  border-left: 3px solid var(--ag-main);
  margin: 1.5rem 0 0.5rem;
}

/* =============================================
   本文
   ============================================= */
.entry-content p {
  font-size: 0.9375rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  color: var(--ag-text);
}

/* リンク */
.entry-content a {
  color: var(--ag-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 93, 47, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.entry-content a:hover {
  color: #c04820;
  border-bottom-color: #c04820;
}

/* =============================================
   リスト（ul / ol）
   ============================================= */
.entry-content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.2rem;
}

.entry-content ul > li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.entry-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ag-main);
}

.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  counter-reset: ag-ol;
  list-style: none;
}

.entry-content ol > li {
  counter-increment: ag-ol;
  padding: 0.3rem 0 0.3rem 0.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.entry-content ol > li::before {
  content: counter(ag-ol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--ag-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =============================================
   ボタン
   ============================================= */
.btn,
.cocoon-block-button__link,
.wp-block-button__link {
  background-color: var(--ag-main);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
  text-decoration: none !important;
  border-bottom: none !important;
}

.btn:hover,
.cocoon-block-button__link:hover,
.wp-block-button__link:hover {
  background-color: #c04820;
  color: #fff !important;
}

/* =============================================
   カード・エントリーカード（記事一覧）
   ============================================= */
.entry-card,
.a-card {
  background-color: #fff;
  border: 1px solid var(--ag-border);
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-card:hover,
.a-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.1);
}

.entry-card-title,
.a-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ag-dark);
  line-height: 1.5;
}

/* カテゴリラベル */
.cat-label,
.category-label {
  background-color: var(--ag-blue);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
}

/* =============================================
   サイドバー
   ============================================= */
#sidebar .widget {
  background-color: #fff;
  border: 1px solid var(--ag-border);
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.widget-title,
.sidebar .widget-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--ag-dark);
  margin: -1.2rem -1.2rem 1rem;
  padding: 0.6rem 1rem;
  border-radius: 6px 6px 0 0;
  border-left: 4px solid var(--ag-main);
}

/* =============================================
   パンくず
   ============================================= */
#breadcrumb {
  font-size: 0.78rem;
  color: var(--ag-muted);
  padding: 0.6rem 0;
}

#breadcrumb a {
  color: var(--ag-muted);
  text-decoration: none;
  border-bottom: none;
}

#breadcrumb a:hover {
  color: var(--ag-main);
}

/* =============================================
   タグ・カテゴリ
   ============================================= */
.post-tags a,
.tag-cloud-link {
  display: inline-block;
  background-color: var(--ag-card);
  color: var(--ag-text);
  border: 1px solid var(--ag-border);
  border-radius: 3px;
  padding: 2px 10px;
  font-size: 0.78rem;
  margin: 2px;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.post-tags a:hover,
.tag-cloud-link:hover {
  background-color: var(--ag-main);
  color: #fff;
  border-color: var(--ag-main);
}

/* =============================================
   著者ボックス
   ============================================= */
.author-box {
  background-color: var(--ag-card);
  border: 1px solid var(--ag-border);
  border-left: 4px solid var(--ag-main);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem;
}

/* =============================================
   関連記事
   ============================================= */
#related-entries .related-entry-card {
  background-color: #fff;
  border: 1px solid var(--ag-border);
  border-radius: 6px;
}

#related-entries .related-entry-card:hover {
  border-color: var(--ag-main);
}

/* =============================================
   フッター
   ============================================= */
#footer {
  background-color: var(--ag-dark);
  color: #aaa;
  border-top: 3px solid var(--ag-main);
  font-size: 0.8rem;
}

#footer a {
  color: #ccc;
  text-decoration: none;
}

#footer a:hover {
  color: var(--ag-amber);
}

#copyright {
  color: #777;
  font-size: 0.75rem;
}

/* =============================================
   ページネーション
   ============================================= */
.pagination .current,
.page-numbers.current {
  background-color: var(--ag-main);
  color: #fff;
  border-color: var(--ag-main);
  border-radius: 3px;
}

.pagination a,
.page-numbers a {
  color: var(--ag-dark);
  border: 1px solid var(--ag-border);
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.pagination a:hover,
.page-numbers a:hover {
  background-color: var(--ag-main);
  color: #fff;
  border-color: var(--ag-main);
}

/* =============================================
   検索フォーム
   ============================================= */
.search-form input[type="search"],
.search-input {
  border: 1px solid var(--ag-border);
  border-radius: 4px 0 0 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: #fff;
  color: var(--ag-text);
}

.search-form input[type="submit"],
.search-submit {
  background-color: var(--ag-main);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-form input[type="submit"]:hover,
.search-submit:hover {
  background-color: #c04820;
}

/* =============================================
   テーブル
   ============================================= */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.entry-content table th {
  background-color: var(--ag-dark);
  color: #fff;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 500;
  border: 1px solid #333;
}

.entry-content table td {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ag-border);
  line-height: 1.7;
}

.entry-content table tr:nth-child(even) td {
  background-color: #faf6f2;
}

/* =============================================
   引用（blockquote）
   ============================================= */
.entry-content blockquote {
  border-left: 4px solid var(--ag-main);
  background-color: var(--ag-card);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  color: var(--ag-muted);
  font-style: normal;
}

/* =============================================
   コードブロック
   ============================================= */
.entry-content pre,
.entry-content code {
  background-color: var(--ag-dark);
  color: #E0D8CF;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85rem;
}

.entry-content pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

.entry-content code {
  padding: 0.1em 0.4em;
}

/* =============================================
   TOC（目次）
   ============================================= */
#toc_container,
.toc_widget_list {
  background-color: #fff;
  border: 1px solid var(--ag-border);
  border-top: 3px solid var(--ag-main);
  border-radius: 0 0 6px 6px;
  padding: 1.2rem;
}

.toc_title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ag-dark);
}

/* =============================================
   スクロールトップボタン
   ============================================= */
#go-to-top {
  background-color: var(--ag-main);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

#go-to-top:hover {
  opacity: 1;
  background-color: #c04820;
}

/* =============================================
   モバイル対応
   ============================================= */
@media screen and (max-width: 767px) {
  #header {
    padding: 0.75rem 1rem;
  }

  .entry-title,
  .article h1.entry-title {
    font-size: 1.25rem;
  }

  .entry-content h2 {
    font-size: 1.05rem;
  }
}
