/*
Theme Name: 害虫・害獣駆除ガイド Child (AFFINGER Child)
Template: affinger
Description: gaichuu-taiji-guide.jp リニューアル用子テーマ。デザイン案(デザイン案_トップページ/)で承認済みのCSSをベースに、記事・カテゴリ・業者比較ハブ用のスタイルを追加。
Version: 1.0.0
Author: 凪工房
*/

:root{
  --green: #2d5c47;
  --green-deep: #1f4433;
  --green-soft: #e6efe9;
  --base: #f6f8f6;
  --amber: #d97b3f;
  --amber-soft: #fbe9dc;
  --white: #ffffff;
  --text: #22262b;
  --text-sub: #6b7280;
}
*{ margin:0; padding:0; box-sizing:border-box; }
body{
  font-family:"Noto Sans JP", sans-serif;
  color:var(--text);
  background:var(--base);
  line-height:1.8;
}
h1,h2,h3,.logo{ font-family:"Zen Maru Gothic", sans-serif; }
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
.section-inner{ max-width:1120px; margin:0 auto; padding:0 24px; }
.section-title{ font-size:26px; font-weight:900; color:var(--green-deep); margin-bottom:8px; }
.section-sub{ font-size:14px; color:var(--text-sub); margin-bottom:32px; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(246,248,246,.94); backdrop-filter:blur(6px);
  border-bottom:1px solid #dbe6df;
}
.header-inner{
  max-width:1120px; margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{ font-weight:900; font-size:20px; color:var(--green-deep); display:flex; align-items:center; gap:8px; }
.logo .logo-badge{ font-size:22px; }
.nav{ display:flex; gap:26px; font-size:14px; font-weight:700; }
.nav a{ color:var(--text); }
.nav a:hover, .nav a.nav-current{ color:var(--green); }

/* Hero(トップページ) */
.hero{
  padding:56px 0 48px; position:relative; overflow:hidden;
  background-image:url("https://t4.ftcdn.net/jpg/03/15/12/49/240_F_315124943_hqCMSHar4kS9pVMNGbT9XQHzDPmFf9eD.jpg");
  background-size:cover; background-position:center;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(90deg,
    rgba(246,248,246,.97) 0%, rgba(246,248,246,.94) 30%,
    rgba(246,248,246,.55) 45%, rgba(246,248,246,.10) 60%, rgba(246,248,246,0) 75%);
}
.hero-inner{ position:relative; z-index:1; display:flex; align-items:center; gap:48px; }
.hero-text{ flex:1.15; }
.eyebrow{
  display:inline-block; font-size:13px; font-weight:700; color:var(--green-deep);
  background:var(--white); padding:6px 14px; border-radius:999px; margin-bottom:18px;
  border:1px solid #cfe0d7;
}
.hero-text h1{ font-size:34px; font-weight:900; line-height:1.5; color:var(--text); margin-bottom:16px; }
.hero-text h1 span{ color:var(--green); }
.hero-sub{ font-size:15px; color:var(--text-sub); max-width:480px; margin-bottom:28px; }
.hero-photo{ flex:.85; display:flex; justify-content:center; }
.hero-photo img{
  width:280px; height:280px; border-radius:50%; object-fit:cover;
  border:6px solid var(--white); box-shadow:0 20px 46px rgba(45,92,71,.18); background:var(--white);
}

/* お悩み別導線(3択) */
.worry-nav{ display:flex; gap:14px; flex-wrap:wrap; }
.worry-btn{
  flex:1; min-width:160px; background:var(--white); border:2px solid var(--green-soft);
  border-radius:14px; padding:16px 18px; font-weight:700; font-size:14px; color:var(--green-deep);
  display:flex; flex-direction:column; gap:4px; transition:.15s;
}
.worry-btn span{ font-weight:400; font-size:12px; color:var(--text-sub); }
.worry-btn:hover{ border-color:var(--green); background:var(--green-soft); }

/* 種類別リンク */
.type-nav{ padding:48px 0; }
.type-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.type-card{
  background:var(--white); border-radius:14px; padding:20px 12px; text-align:center;
  border:1px solid #e2ece5; font-weight:700; font-size:14px; color:var(--text);
}
.type-card .emoji{ font-size:28px; display:block; margin-bottom:8px; }
.type-card:hover{ border-color:var(--green); color:var(--green-deep); }

/* 費用相場(金額+比較記事リンク、2列グリッド)= price-listブロック */
.price-section{ padding:48px 0; background:var(--white); }
.price-list{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.price-row{
  display:flex; flex-direction:column; align-items:flex-start; gap:6px;
  padding:20px 22px; background:var(--base); border-radius:14px;
}
.price-label{ font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px; color:var(--text); }
.price-range{ font-size:24px; font-weight:900; color:var(--green-deep); }
.price-link{ font-size:13px; font-weight:700; color:var(--amber); }
.price-link:hover{ text-decoration:underline; }
.price-note{ font-size:12px; color:var(--text-sub); margin-top:16px; }

/* 業者比較ハブへの導線(最重要CTA)= hub-ctaブロック */
.hub-cta{ padding:56px 0; }
.hub-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hub-card{
  background:var(--green-deep); color:var(--white); border-radius:18px; padding:32px 28px;
  display:flex; flex-direction:column; gap:12px;
}
.hub-card h3{ font-size:20px; font-weight:900; }
.hub-card p{ font-size:13px; color:#cfe0d7; line-height:1.7; }
.hub-btn{
  margin-top:8px; align-self:flex-start; background:var(--amber); color:var(--white);
  font-weight:700; font-size:14px; padding:12px 24px; border-radius:999px;
}
.hub-btn:hover{ background:#c26a30; }
/* 記事本文中に挿入する軽量版(1件のみ・インライン) */
.hub-cta-inline{
  background:var(--green-soft); border:1px solid #cfe0d7; border-radius:14px;
  padding:16px 20px; margin:28px 0; display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
}
.hub-cta-inline p{ font-size:14px; font-weight:700; color:var(--green-deep); margin:0; }
.hub-cta-inline .hub-btn{ margin-top:0; }

/* カイトプロフィール・監修コメント */
.profile-section{ padding:48px 0; }
.profile-card{
  background:var(--white); border-radius:18px; padding:28px; display:flex; gap:24px; align-items:center;
  border:1px solid #e2ece5;
}
.profile-card img{ width:100px; height:100px; border-radius:50%; object-fit:cover; border:4px solid var(--green-soft); }
.profile-card h3{ font-size:16px; font-weight:900; color:var(--green-deep); margin-bottom:6px; }
.profile-card p{ font-size:13px; color:var(--text-sub); }

.kaito-comment{
  display:flex; gap:16px; background:var(--green-soft); border-radius:16px; padding:22px;
  margin:32px 0; border:1px solid #cfe0d7;
}
.kaito-comment img{ width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.kaito-comment .role{ font-size:12px; font-weight:700; color:var(--green-deep); margin-bottom:4px; display:block; }
.kaito-comment p{ font-size:14px; color:var(--text); line-height:1.8; }

/* 最新記事 */
.articles-section{ padding:48px 0 64px; }
.article-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.article-card{ background:var(--white); border-radius:14px; overflow:hidden; border:1px solid #e2ece5; }
.article-card .thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--green-soft); }
.article-card .body{ padding:16px; }
.article-card .tag{ font-size:11px; font-weight:700; color:var(--green); margin-bottom:6px; display:block; }
.article-card h4{ font-size:14px; font-weight:700; line-height:1.6; }
.article-card .date{ font-size:11px; color:var(--text-sub); margin-top:8px; display:block; }

/* フッター付近CTA */
.footer-cta{ background:var(--green-deep); padding:40px 24px; text-align:center; color:var(--white); }
.footer-cta h3{ font-size:20px; font-weight:900; margin-bottom:8px; }
.footer-cta p{ font-size:13px; color:#cfe0d7; margin-bottom:20px; }
.footer-cta .hub-btn{ display:inline-block; }

/* Footer */
.site-footer{ background:#1a3529; color:#cfe0d7; padding:32px 24px; font-size:13px; }
.footer-links{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.footer-links a{ color:#cfe0d7; }
.copyright{ text-align:center; color:#8fa89b; font-size:12px; }

/* Sticky mobile CTA */
.sticky-cta{
  position:fixed; bottom:0; left:0; right:0; z-index:30;
  background:var(--amber); color:var(--white); text-align:center;
  padding:14px; font-weight:700; font-size:14px; display:none;
}

/* ===== 記事詳細ページ ===== */
.breadcrumb{ font-size:12px; color:var(--text-sub); padding:16px 0; }
.breadcrumb a{ color:var(--text-sub); }
.article-header{ padding:0 0 24px; }
.article-header .cat-tag{ font-size:12px; font-weight:700; color:var(--green); background:var(--green-soft); padding:4px 12px; border-radius:999px; }
.article-header h1{ font-size:26px; font-weight:900; line-height:1.6; margin:14px 0 10px; }
.article-header .meta{ font-size:12px; color:var(--text-sub); }
.article-thumb{ width:100%; height:auto; border-radius:14px; margin-bottom:28px; } /* 2026-07-27: aspect-ratio:16/9だと縦長画像が強制クロップされるため height:auto に変更 */
.article-body{ font-size:16px; line-height:1.9; }
.article-body h2{ font-size:20px; font-weight:900; color:var(--green-deep); margin:36px 0 14px; padding-left:16px; border-left:5px solid var(--amber); }
.article-body h3{ font-size:17px; font-weight:700; margin:24px 0 10px; }
.article-body p{ margin-bottom:18px; }
.article-body ul, .article-body ol{ padding-left:1.6em; } /* 2026-07-27: *{padding:0}リセットでul/olの左余白が消えていたため追加。.article-body配下に限定(グローバルなol指定は他要素に影響するため避ける) */

/* 次に読む記事 */
.related-section{ padding:40px 0; }
.related-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

/* ===== カテゴリ一覧ページ ===== */
.category-header{ padding:40px 0 24px; background:var(--white); }
.category-header h1{ font-size:24px; font-weight:900; color:var(--green-deep); margin-bottom:10px; }
.category-header p{ font-size:14px; color:var(--text-sub); }
.worry-filter{ display:flex; gap:10px; flex-wrap:wrap; padding:20px 0; }
.worry-filter a{
  font-size:13px; font-weight:700; color:var(--green-deep); background:var(--green-soft);
  padding:8px 16px; border-radius:999px; border:1px solid #cfe0d7;
}
.worry-filter a:hover{ background:var(--green); color:var(--white); }
.category-articles{ padding:24px 0 48px; }
.pagination{ display:flex; gap:10px; justify-content:center; padding:24px 0; font-size:13px; }

/* ===== 業者比較ハブページ用ブロック ===== */
.comparison-table-wrap{ overflow-x:auto; margin:24px 0; }
.comparison-table{ width:100%; border-collapse:collapse; font-size:13px; }
.comparison-table th, .comparison-table td{ padding:12px 14px; border-bottom:1px solid #e2ece5; text-align:left; }
.comparison-table th{ background:var(--green-soft); color:var(--green-deep); font-weight:700; }
.comparison-table .cta-cell a{ color:var(--amber); font-weight:700; }

.top3-list{ display:flex; flex-direction:column; gap:20px; margin:24px 0; }
.top3-card{
  background:var(--white); border:1px solid #e2ece5; border-radius:16px; padding:24px;
  display:flex; flex-direction:column; gap:10px;
}
.top3-rank{
  display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px;
  background:var(--amber); color:var(--white); font-weight:900; border-radius:50%; font-size:14px;
}
.top3-card h4{ font-size:18px; font-weight:900; color:var(--green-deep); }
.top3-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.top3-tags span{ font-size:11px; font-weight:700; color:var(--green); background:var(--green-soft); padding:3px 10px; border-radius:999px; }
.top3-scores{ display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--text-sub); }
.top3-scores b{ color:var(--green-deep); }
.top3-card p{ font-size:13px; color:var(--text); line-height:1.8; }
.top3-review{ font-size:12px; color:var(--text-sub); font-style:normal; background:var(--base); padding:10px 14px; border-radius:10px; }

/* Responsive */
@media (max-width: 860px){
  .hero-inner{ flex-direction:column-reverse; }
  .type-grid{ grid-template-columns:repeat(3,1fr); }
  .price-list{ grid-template-columns:1fr; }
  .hub-grid{ grid-template-columns:1fr; }
  .article-grid, .related-grid{ grid-template-columns:1fr; }
  .sticky-cta{ display:block; }
  body{ padding-bottom:58px; }
}
