/*
Theme Name: 湘南オフィス清掃ナビ
Theme URI: https://shonan-cleaning-navi.com/
Author: 湘南オフィス清掃ナビ運営
Description: 藤沢市のオフィス清掃・ビルメンテナンス業者比較サイト用オリジナルテーマ
Version: 1.0
Text Domain: shonan-cleaning-navi
*/

:root {
  --navy: #0f2f4c;
  --navy-light: #1c4a70;
  --teal: #1f8a83;
  --teal-light: #e6f4f2;
  --bg: #f7f9fa;
  --ink: #1a2530;
  --ink-soft: #5b6a75;
  --border: #e1e6e9;
  --white: #ffffff;
  --gold: #d9a441;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.main-nav a:hover { color: var(--teal); }
.header-cta {
  background: var(--teal);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #245a78 100%);
  color: white;
  padding: 64px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.45; margin-bottom: 20px; }
.hero h1 span { color: #7fd9cf; }
.hero p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 480px; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.hero-stats div { text-align: left; }
.hero-stats strong { display: block; font-size: 26px; color: #7fd9cf; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,0.7); }

.hero-card { background: white; color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.hero-card h3 { font-size: 16px; margin-bottom: 16px; color: var(--navy); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.form-row select, .form-row input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; color: var(--ink); background: var(--bg);
}
.form-submit {
  width: 100%; background: var(--gold); color: white; border: none; padding: 13px;
  border-radius: 6px; font-size: 15px; font-weight: 700; margin-top: 4px; cursor: pointer;
}
.form-note { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* Section shared */
section.block { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-tag { font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.section-head p { font-size: 14px; color: var(--ink-soft); }
.bg-alt { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 26px 20px; text-align: center; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,47,76,0.08); }
.cat-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 14px;
}
.cat-card h4 { font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.cat-card span { font-size: 12px; color: var(--ink-soft); }

/* Ranking */
.ranking-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; }
.rank-item.top1 { border-color: var(--gold); background: #fffaf0; }
.rank-num { font-size: 26px; font-weight: 800; color: #c7d0d5; text-align: center; }
.rank-item.top1 .rank-num { color: var(--gold); }
.rank-item.top2 .rank-num { color: #9aa7b0; }
.rank-item.top3 .rank-num { color: #c08a52; }
.rank-body h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.rank-tags { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--teal-light); color: var(--teal); }
.rank-body p { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.rank-score { text-align: right; }
.rank-score strong { display: block; font-size: 20px; color: var(--navy); }
.rank-score span { font-size: 11px; color: var(--ink-soft); }
.stars { color: var(--gold); font-size: 13px; margin-bottom: 4px; }
.rank-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.rank-meta div { font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.rank-meta .meta-icon {
  width: 20px; height: 20px; border-radius: 5px; background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.rank-meta strong { color: var(--navy); font-weight: 700; }

/* Compare table */
.compare-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; background: white; font-size: 13px; min-width: 760px; }
.compare-table th, .compare-table td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--navy); color: white; font-size: 12px; font-weight: 700; white-space: nowrap; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr.is-top { background: #fffaf0; }
.compare-table td.name { font-weight: 700; color: var(--navy); white-space: nowrap; }
.compare-table td.price { color: var(--navy); font-weight: 700; white-space: nowrap; }
.compare-table .mini-stars { color: var(--gold); font-size: 12px; }
.compare-table td.actual, .compare-table td.range { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.compare-table .rank-pill {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal); font-weight: 800; font-size: 12px;
}
.compare-table tr.is-top .rank-pill { background: var(--gold); color: white; }
.compare-table .mini-btn { display: inline-block; background: var(--teal); color: white; font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: 5px; white-space: nowrap; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 8px; }
.why-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 16px; font-size: 15px; }
.why-card h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: white; text-align: center; padding: 56px 24px; border-radius: 16px; margin: 0 24px; }
.cta-band h2 { font-size: 24px; margin-bottom: 12px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: white; padding: 13px 28px; border-radius: 6px; font-weight: 700; font-size: 14px; display: inline-block; }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; padding: 13px 28px; border-radius: 6px; font-weight: 700; font-size: 14px; display: inline-block; }
.btn-outline { border: 1px solid var(--border); color: var(--navy); padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 13px; text-align: center; display: inline-block; }

/* Footer */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h5 { color: white; font-size: 13px; margin-bottom: 14px; }
.footer-grid ul { font-size: 12px; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 11px; text-align: center; color: rgba(255,255,255,0.5); }

/* Single business detail page */
.breadcrumb { font-size: 12px; color: var(--ink-soft); padding: 16px 0; }
.breadcrumb a { color: var(--teal); }
.detail-hero { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; margin-bottom: 28px; }
.logo-box { width: 96px; height: 96px; background: var(--teal-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--teal); }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; background: #fffaf0; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.detail-hero h1 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.stars-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.stars-row span.count { font-size: 12px; color: var(--ink-soft); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-col { display: flex; flex-direction: column; gap: 10px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding-bottom: 60px; }
.card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 24px; }
.card h2 { font-size: 16px; color: var(--navy); margin-bottom: 16px; border-left: 4px solid var(--teal); padding-left: 10px; }
.card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }

.info-table { width: 100%; font-size: 13px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th { text-align: left; color: var(--ink-soft); font-weight: 600; padding: 12px 0; width: 130px; vertical-align: top; }
.info-table td { padding: 12px 0; color: var(--ink); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.price-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; }
.price-card.featured { border-color: var(--teal); background: var(--teal-light); }
.price-card h4 { font-size: 13px; color: var(--navy); margin-bottom: 8px; }
.price-card strong { display: block; font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.price-card span { font-size: 11px; color: var(--ink-soft); }

.achieve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.achieve-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px 14px; text-align: center; }
.achieve-card .achieve-icon { width: 34px; height: 34px; border-radius: 8px; margin: 0 auto 10px; background: var(--teal-light); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.achieve-card strong { display: block; font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.achieve-card span { font-size: 11px; color: var(--ink-soft); }
.cert-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cert-pill { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--ink-soft); }

.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; gap: 4px; }
.review-item p { font-size: 13px; color: var(--ink); margin-bottom: 0; }

.side-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.side-card h3 { font-size: 14px; color: var(--navy); margin-bottom: 14px; }
.mini-form-row { margin-bottom: 12px; }
.mini-form-row label { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 5px; font-weight: 600; }
.mini-form-row input, .mini-form-row select, .mini-form-row textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--bg); }
.mini-submit { width: 100%; background: var(--teal); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 700; font-size: 13px; margin-top: 4px; cursor: pointer; }

.related-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--navy); font-weight: 600; }
.related-list span { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* Category archive */
.archive-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.archive-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.archive-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.archive-card p { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; text-align: center; }
  .cta-col { flex-direction: row; justify-content: center; }
  .price-grid { grid-template-columns: 1fr; }
  .archive-list { grid-template-columns: 1fr; }
}
