/*
Theme Name: PCコレクトドットコム
Theme URI: https://pc-collect.com/
Description: 静的サイト（pc-collect.com）とデザインを完全統一したカスタムテーマ。ヘッダー・フッター・配色・タイポグラフィを静的側から継承し、ブログ（回収実績）専用のテンプレートを追加。
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: pc-collect
Tags: custom-theme, blog, responsive
*/

/* ==========================================================
   ブログ専用スタイル
   ※ 共通トークン・ヘッダー・フッター・ボタン等は
      静的サイトの /style.css を functions.php で読み込み、
      このファイルはその「差分」だけを持つ。
      → 静的側のCSSを直せばブログにも自動で反映される。
   ========================================================== */

/* ---------- 店舗フィルター ---------- */
/* 静的サイトの .chip（ピル型）を土台に、現在地ハイライトと件数を足す */
.store-filter{ max-width: var(--maxw); margin: 0 auto 44px; text-align: center; }
/* 見出しは h2 だが、静的側の「.section h2」(34px/900w) の方が詳細度が高く勝ってしまう。
   ここはページの主題ではなく操作系のラベルなので、同じ詳細度で明示的に打ち消す。 */
.section .store-filter__title,
.store-filter__title{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink-mute);
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.store-filter__list{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
/* 店舗チップと「お知らせ」チップの間の区切り。
   種類が違うものが同じ列に並ぶため、視覚的に間を空ける。 */
.store-filter__sep{
  width: 1px;
  height: 22px;
  background: var(--color-orange-chip);
  margin: 0 4px;
}
.chip--filter{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--color-orange-chip);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 22px;
  color: var(--color-ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.chip--filter:hover{
  border-color: var(--color-orange);
  color: var(--color-orange-dark);
}
.chip--filter.is-current{
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  font-weight: 900;
}
.chip__count{
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-orange-bg);
  color: var(--color-orange-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.chip--filter.is-current .chip__count{
  background: rgba(255,255,255,.28);
  color: #fff;
}
/* 記事0件の店舗は、選べるが控えめに見せる */
.chip--filter.is-empty{ opacity: .5; }

/* ---------- 記事の種別カラー ---------- */
/*
  色で分けるのは「店舗」ではなく「お知らせ / 回収実績」の2種類。
  店舗ごとの色分けは、店舗が増えると人が色で識別できなくなるため採用しない。

  設計：
    ・回収実績（＝記事の大多数）… 色を付けない（既定のグリーン）
    ・お知らせ（＝例外）        … 赤系で目立たせる
  両方に色を付けると、どちらも目立たなくなる。
  「例外だけ色を付ける」ことで、赤が「お知らせ」の信号として機能する。

  赤はブランド外の純色ではなく、オレンジと同族のテラコッタを使い、
  サイトから浮かないようにする。
*/
:root{
  --color-news:      #b5573f; /* テラコッタ：オレンジの隣。赤に見えるがブランド内 */
  --color-news-bg:   #fbe8e2;
  --color-news-line: #b5573f;
}

/* お知らせのバッジ（カード上・記事ページ） */
.result-card__cat.is-news,
.entry__cat.is-news{
  background: var(--color-news-bg);
  color: var(--color-news);
}
.entry__cat.is-news:hover{ background: #f7dbd2; }

/* フィルターチップ：お知らせ選択中 */
.chip--filter.is-news.is-current{
  background: var(--color-news);
  border-color: var(--color-news);
}
.chip--filter.is-news:not(.is-current):hover{
  border-color: var(--color-news);
  color: var(--color-news);
}
.chip--filter.is-news:not(.is-current) .chip__count{
  background: var(--color-news-bg);
  color: var(--color-news);
}

/* ---------- 記事一覧（3カラム・カード型） ---------- */
/* .results__grid / .result-card は静的側の定義を流用。
   ここではアイキャッチ画像とリンク挙動だけ追加する。 */
.result-card{
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.result-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(42,33,24,.12);
}
.result-card__link{ display: flex; flex-direction: column; height: 100%; }
.result-card__thumb{
  aspect-ratio: 3/2;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
/* アイキャッチ未設定時のプレースホルダー（静的側の斜線パターンを踏襲） */
.result-card__image--ph{
  aspect-ratio: 3/2;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.result-card__body{ flex: 1; display: flex; flex-direction: column; }
.result-card__meta{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
/* バッジは複数並ぶことがある（例：お知らせ＋熊谷店）ので、
   縦に折り返しても詰まらないよう行間を確保する */
.result-card__meta > *{ flex: none; }
.result-card__date{ margin-bottom: 0; }
.result-card__cat{
  display: inline-block;
  background: var(--color-green-bg);
  color: var(--color-green-dark);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 900;
}
.result-card__excerpt{ margin-top: auto; }

/* ---------- 記事本文（single） ---------- */
.entry{ max-width: 860px; margin: 0 auto; }
.entry__thumb{
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: 0 6px 18px rgba(42,33,24,.06);
}
.entry__thumb img{ width: 100%; height: auto; }

.entry__body{ font-size: 15px; line-height: 2; color: var(--color-ink-soft); }
.entry__body > * + *{ margin-top: 1.5em; }
.entry__body h2{
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1.6;
  margin-top: 2.2em;
  padding: 0 0 12px;
  border-bottom: 3px solid var(--color-orange-chip);
}
.entry__body h3{
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1.6;
  margin-top: 2em;
  padding-left: 14px;
  border-left: 5px solid var(--color-orange);
}
.entry__body h4{
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--color-ink);
  margin-top: 1.8em;
}
.entry__body a{
  color: var(--color-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry__body a:hover{ color: var(--color-orange-dark); }
.entry__body ul,
.entry__body ol{ padding-left: 1.4em; }
.entry__body li{ margin-bottom: .6em; }
.entry__body ul li::marker{ color: var(--color-orange); }
.entry__body ol li::marker{ color: var(--color-orange); font-weight: 900; }
.entry__body img{
  border-radius: var(--radius-md);
  height: auto;
}
.entry__body figure{ margin: 0; }
.entry__body figcaption{
  font-size: 12.5px;
  color: var(--color-ink-mute);
  margin-top: 8px;
  text-align: center;
}
.entry__body blockquote{
  background: var(--color-cream);
  border-left: 5px solid var(--color-orange-chip);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px;
  margin-left: 0;
  margin-right: 0;
}
.entry__body blockquote p{ font-size: 14.5px; }
.entry__body table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.entry__body th,
.entry__body td{
  border: 1px solid #f0e6d8;
  padding: 13px 16px;
  text-align: left;
}
.entry__body th{ background: var(--color-cream); font-weight: 700; }
.entry__body code{
  background: var(--color-cream);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: .9em;
}
.entry__body pre{
  background: var(--color-ink);
  color: #e6ddd0;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
}
.entry__body pre code{ background: none; color: inherit; padding: 0; }
.entry__body hr{
  border: none;
  border-top: 1px solid #f0e6d8;
  margin: 2.5em 0;
}

/* WordPress 標準の配置クラス */
.alignleft{ float: left; margin: 0 1.5em 1em 0; }
.alignright{ float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ margin-left: auto; margin-right: auto; }
.alignwide,
.alignfull{ margin-left: 0; margin-right: 0; }
.wp-caption{ max-width: 100%; }
.screen-reader-text{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---------- 記事メタ（single ヘッダー） ---------- */
.entry__head{ text-align: center; margin-bottom: 30px; }
.entry__head h1{
  font-size: 32px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 16px;
}
.entry__meta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-ink-mute);
  font-weight: 700;
}
.entry__cat{
  background: var(--color-green-bg);
  color: var(--color-green-dark);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 900;
}
.entry__cat:hover{ background: var(--color-green-chip); }

/* ---------- 前後記事ナビ ---------- */
.post-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 54px auto 0;
}
.post-nav__link{
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 6px 18px rgba(42,33,24,.06);
  transition: border-color .2s, transform .2s;
}
.post-nav__link:hover{ border-color: var(--color-orange-chip); transform: translateY(-2px); }
.post-nav__label{
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--color-orange);
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.post-nav__title{
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--color-ink);
}
.post-nav__link--next{ text-align: right; }
.post-nav__link--next .post-nav__label{ color: var(--color-green); }

/* ---------- ページネーション ---------- */
.pagination{
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 54px;
}
.pagination .page-numbers{
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid #f0e6d8;
  font-weight: 900;
  font-size: 14px;
  color: var(--color-ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover{
  border-color: var(--color-orange-chip);
  color: var(--color-orange-dark);
}
.pagination .page-numbers.current{
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}
.pagination .page-numbers.dots{ border: none; background: none; }

/* ---------- サイドバー無し・記事なし表示 ---------- */
.no-posts{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: var(--radius-md);
  padding: 54px 30px;
  box-shadow: 0 6px 18px rgba(42,33,24,.06);
}
.no-posts h2{ font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.no-posts p{ font-size: 14.5px; line-height: 1.9; color: var(--color-ink-mute); margin-bottom: 24px; }

/* ---------- 404 ---------- */
.error404__code{
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 900;
  color: var(--color-orange-chip);
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- 固定ページ ---------- */
.page-content{ max-width: 860px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .entry__head h1{ font-size: 25px; }
  .entry__body h2{ font-size: 22px; }
  .entry__body h3{ font-size: 18px; }
  .post-nav{ grid-template-columns: 1fr; }
  .error404__code{ font-size: 72px; }
}
