/*
Theme Name: Cocoon Child (消防設備点検比較｜岡山)
Theme URI:
Template: cocoon-master
Author: りひとさん
Description: Cocoon子テーマ。業者一覧・業者詳細・エリア別ページのみ独自追加し、それ以外（コラム記事・トップページ等）はCocoon標準機能をそのまま使用。太陽光O&M比較サイト（sunment.com）の構成を移植。
Version: 0.1.0
Text Domain: cocoon-child-shobo
*/

:root {
  --shobo-primary: #b91c1c;
  --shobo-primary-dark: #7f1414;
  --shobo-accent: #f5a623;
  --shobo-accent-dark: #d98a0e;
  --shobo-bg: #f7f8fa;
  --shobo-card: #ffffff;
  --shobo-line: #e2e5ea;
  --shobo-text: #24303d;
  --shobo-muted: #6b7684;
  --shobo-badge-green: #1f8a52;
  --shobo-badge-green-bg: #e7f6ee;
}

.shobo-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.shobo-page-head h1 { font-size: 24px; color: var(--shobo-primary); margin: 0 0 8px; }
.shobo-page-head p { font-size: 13px; color: var(--shobo-muted); }
.shobo-section-title { font-size: 18px; color: var(--shobo-primary); margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--shobo-accent); display: inline-block; }

.shobo-layout { display: flex; gap: 24px; align-items: flex-start; }
.shobo-filter { width: 260px; flex-shrink: 0; background: #fff; border: 1px solid var(--shobo-line); border-radius: 10px; padding: 18px; }
.shobo-filter h3 { font-size: 14px; color: var(--shobo-primary); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--shobo-line); }
.shobo-filter-group { margin-bottom: 18px; }
.shobo-filter-group .label { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.shobo-filter-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--shobo-muted); margin-bottom: 4px; }
.shobo-filter-apply { width: 100%; background: var(--shobo-primary); color: #fff; border: none; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 13px; margin-top: 8px; cursor: pointer; }
.shobo-results { flex: 1; min-width: 0; }
.shobo-results-count { font-size: 14px; font-weight: 700; color: var(--shobo-primary); margin-bottom: 14px; }

.shobo-company-card { display: flex; gap: 16px; background: var(--shobo-card); border: 1px solid var(--shobo-line); border-radius: 10px; padding: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.shobo-company-card .logo-box { width: 90px; height: 90px; flex-shrink: 0; background: #eef1f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--shobo-muted); text-align: center; }
.shobo-company-card .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.shobo-company-card .info { flex: 1; min-width: 200px; }
.shobo-company-card .name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.shobo-company-card .name { font-size: 16px; font-weight: 800; color: var(--shobo-primary); }
.shobo-badge { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.shobo-badge.pr { background: #fdeee0; color: var(--shobo-accent-dark); }
.shobo-badge.cert { background: var(--shobo-badge-green-bg); color: var(--shobo-badge-green); }
.shobo-company-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.shobo-company-card .tags span { font-size: 11px; background: #eef1f5; color: var(--shobo-muted); padding: 3px 10px; border-radius: 12px; }
.shobo-company-card .desc { font-size: 13px; color: var(--shobo-muted); margin-bottom: 8px; }
.shobo-company-card .price-row { font-size: 13px; }
.shobo-company-card .price-row .val { font-size: 18px; font-weight: 800; color: var(--shobo-accent-dark); }
.shobo-company-card .actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 120px; }
.shobo-btn-detail { background: var(--shobo-primary); color: #fff; text-align: center; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.shobo-btn-inquiry { background: #fff; color: var(--shobo-primary); border: 1px solid var(--shobo-primary); text-align: center; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; }

.shobo-compare { margin-top: 40px; background: #fff; border: 1px solid var(--shobo-line); border-radius: 10px; padding: 20px; overflow-x: auto; }
.shobo-compare table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.shobo-compare th, .shobo-compare td { border: 1px solid var(--shobo-line); padding: 10px; text-align: left; vertical-align: top; }
.shobo-compare th { background: var(--shobo-primary); color: #fff; font-size: 12px; }

.shobo-company-header { background: var(--shobo-card); border: 1px solid var(--shobo-line); border-radius: 10px; padding: 24px; display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.shobo-company-header .logo-box { width: 120px; height: 120px; flex-shrink: 0; background: #eef1f5; border-radius: 8px; overflow: hidden; }
.shobo-company-header h1 { font-size: 22px; color: var(--shobo-primary); margin: 6px 0; }
.shobo-company-header .catch { font-size: 13px; color: var(--shobo-muted); margin-bottom: 10px; }
.shobo-block { background: var(--shobo-card); border: 1px solid var(--shobo-line); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.shobo-block h2 { font-size: 16px; color: var(--shobo-primary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--shobo-accent); display: inline-block; }
.shobo-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shobo-info-table th, .shobo-info-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--shobo-line); vertical-align: top; }
.shobo-info-table th { width: 140px; color: var(--shobo-muted); font-weight: 700; background: #fafbfc; }
.shobo-plan-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.shobo-plan-card { flex: 1; min-width: 180px; border: 1px solid var(--shobo-line); border-radius: 8px; padding: 16px; }
.shobo-plan-card.featured { border: 2px solid var(--shobo-accent); }
.shobo-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shobo-service-item { background: #f4f7fb; border-radius: 8px; padding: 12px; font-size: 13px; }
.shobo-caution-box { background: #fdf1e4; border: 1px solid #f0d3a8; border-radius: 8px; padding: 16px; font-size: 13.5px; color: #6b4e00; margin: 20px 0; }
.shobo-inquiry-card { background: var(--shobo-primary); color: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.shobo-inquiry-card .btn { display: block; text-align: center; background: var(--shobo-accent); color: #fff; padding: 12px; border-radius: 6px; font-weight: 700; font-size: 14px; margin-top: 10px; }

.shobo-area-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.shobo-area-chips a { background: #fff; border: 1px solid var(--shobo-line); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--shobo-primary); }
.shobo-area-chips a.current { background: var(--shobo-primary); color: #fff; border-color: var(--shobo-primary); font-weight: 700; }

/* --- トップページ ヒーローセクション --- */
.shobo-hero { max-width: 1100px; margin: 0 auto 30px; padding: 44px 36px; border-radius: 18px; background: linear-gradient(135deg, #fbeeee 0%, #f7f8fa 65%); position: relative; overflow: hidden; }
.shobo-hero::before { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--shobo-accent); opacity: 0.14; filter: blur(10px); }
.shobo-hero::after { content: ""; position: absolute; bottom: -80px; left: 30%; width: 180px; height: 180px; border-radius: 50%; background: var(--shobo-primary); opacity: 0.07; filter: blur(10px); }
.shobo-hero-inner { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.shobo-hero-text { flex: 1.25; min-width: 260px; }
.shobo-hero-badge { display: inline-block; background: #fbe3e3; color: var(--shobo-primary); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; }
.shobo-hero-text h1 { font-size: 30px; line-height: 1.55; color: var(--shobo-primary); font-weight: 800; margin: 0 0 18px; }
.shobo-hero-text h1 .hl { background: linear-gradient(transparent 62%, var(--shobo-accent) 62%); padding: 0 2px; }
.shobo-hero-text p.lead { font-size: 14px; color: var(--shobo-muted); margin: 0 0 26px; line-height: 1.85; }
.shobo-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.shobo-hero-cta .btn-primary { background: var(--shobo-primary); color: #fff !important; padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px rgba(185,28,28,0.22); }
.shobo-hero-cta .btn-secondary { background: #fff; color: var(--shobo-primary) !important; border: 1px solid var(--shobo-line); padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.shobo-hero-trust { display: flex; gap: 18px; flex-wrap: wrap; }
.shobo-hero-trust span { font-size: 12px; color: var(--shobo-muted); font-weight: 700; }
.shobo-hero-trust span::before { content: "✓"; color: var(--shobo-accent-dark); margin-right: 4px; font-weight: 800; }
.shobo-hero-visual { flex: 1; display: flex; justify-content: center; min-width: 200px; }
.shobo-hero-visual svg { width: 100%; max-width: 300px; height: auto; }
@media (max-width: 780px) {
  .shobo-hero { padding: 30px 22px; }
  .shobo-hero-inner { flex-direction: column; gap: 20px; }
  .shobo-hero-visual { order: -1; max-width: 180px; }
  .shobo-hero-text h1 { font-size: 23px; }
}

@media (max-width: 780px) {
  .shobo-layout { flex-direction: column; }
  .shobo-filter { width: 100%; }
  .shobo-company-card { flex-direction: column; }
  .shobo-company-card .actions { flex-direction: row; }
}
