/* ============================================================
   guide-hub.css — 与論島ガイド一覧（/guide/）専用の追加スタイル
   community.css の上に乗る薄い層。個別記事は従来どおり
   style.css + guide.css を使うので、このファイルは一覧のみが読む。
   ※ guide/index.html は scripts/generate-post.mjs の renderIndex()
     が自動生成する。ここを直す時は生成側のテンプレートも見ること。
   ============================================================ */

.guide-hero { padding: 8.5rem 1.4rem 2.6rem; text-align: center; }
.guide-hero .eyebrow { color: var(--ember); font-size: .72rem; font-weight: 800; letter-spacing: .3em; margin-bottom: .9rem; }
.guide-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; line-height: 1.45; }
.guide-hero .guide-lead { margin: 1.2rem auto 0; max-width: 40em; font-size: .95rem; color: var(--ink-soft); }

.guide-list { max-width: 1140px; margin: 0 auto; padding: 2rem 1.4rem 4rem; position: relative; z-index: 2; }

/* ---- 特集バナー ---- */
.guide-feature {
  display: block; text-decoration: none; background: var(--charcoal); color: #f3ead9;
  border-radius: var(--radius); padding: 1.6rem 1.9rem; margin-bottom: 2.4rem;
  transition: transform .3s, box-shadow .3s;
}
.guide-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(45,37,28,.22); }
.guide-feature .gf-kick { font-size: .68rem; font-weight: 800; letter-spacing: .24em; color: var(--amber); margin-bottom: .5rem; }
.guide-feature p { font-size: 1.05rem; font-weight: 900; line-height: 1.7; }

/* ---- 検索・カテゴリ絞り込み ---- */
.guide-finder { margin-bottom: 2.6rem; }
.guide-search { position: relative; max-width: 520px; margin: 0 auto 1.3rem; }
.guide-search svg { position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--smoke); pointer-events: none; }
.guide-search input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 100px; background: #fff;
  padding: .8rem 1.1rem .8rem 2.7rem; font-family: inherit; font-size: .92rem; color: var(--ink);
}
.guide-search input::placeholder { color: #c8b99f; }
.guide-search input:focus { outline: none; border-color: var(--ember); }

.guide-cats { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.guide-cat {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 100px; padding: .42rem 1rem; font-family: inherit; font-size: .82rem;
  font-weight: 800; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.guide-cat:hover { border-color: var(--ember); color: var(--ember-deep); transform: translateY(-2px); }
.guide-cat.is-active { background: var(--ember); border-color: var(--ember); color: #fff; }
.guide-cat .cat-n {
  display: inline-block; margin-left: .45em; background: rgba(45,37,28,.08);
  border-radius: 100px; padding: 0 .5em; font-size: .72em;
}
.guide-cat.is-active .cat-n { background: rgba(255,255,255,.24); color: #fff; }
.guide-count { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--smoke); min-height: 1.2em; }

/* ---- 記事カード ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  display: block; text-decoration: none; background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 24px rgba(45,37,28,.07);
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(217,95,59,.15); }
.post-thumb { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.post-pin {
  position: absolute; left: .7rem; top: .7rem; background: var(--ember); color: #fff;
  border-radius: 100px; padding: .22rem .8rem; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
}
.post-body { padding: 1.2rem 1.4rem 1.5rem; }
.post-cat { display: inline-block; background: rgba(217,95,59,.1); color: var(--ember-deep); font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: .2rem .7rem; border-radius: 100px; }
.post-card h3 { font-size: 1rem; font-weight: 900; line-height: 1.6; margin: .6rem 0 .45rem; color: var(--ink); }
.post-card p { font-size: .84rem; color: var(--ink-soft); }

.guide-empty { text-align: center; padding: 2.5rem 1rem 1rem; color: var(--ink-soft); }
.guide-empty p { margin-bottom: 1.2rem; }

/* ---- 末尾CTA ---- */
.guide-cta {
  max-width: 1040px; margin: 0 auto; background: var(--card); border-radius: var(--radius);
  padding: 2.6rem 2.4rem; text-align: center; box-shadow: 0 4px 24px rgba(45,37,28,.07);
  position: relative; z-index: 2;
}
.guide-cta h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: .7rem; }
.guide-cta p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.4rem; }

@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .guide-hero { padding: 7rem 1.2rem 2rem; }
  .guide-cta { padding: 2rem 1.4rem; }
}
