/* ===================================================
   害虫退治ナビ style.css — リニューアル版 2026
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ── Design Tokens ── */
:root {
  --green:        #059669;
  --green-dark:   #047857;
  --green-deeper: #064e3b;
  --green-light:  #ecfdf5;
  --green-mid:    #a7f3d0;
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --orange-light: #fff7ed;
  --red:          #ef4444;
  --red-light:    #fee2e2;
  --yellow:       #f59e0b;
  --yellow-light: #fffbeb;
  --text:         #0f172a;
  --text-sub:     #64748b;
  --text-muted:   #94a3b8;
  --bg:           #f0fdf4;
  --bg-card:      #ffffff;
  --border:       #d1fae5;
  --border-gray:  #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(6,78,59,.07), 0 1px 2px rgba(6,78,59,.04);
  --shadow-md:    0 4px 14px rgba(6,78,59,.10), 0 2px 4px rgba(6,78,59,.05);
  --shadow-lg:    0 12px 32px rgba(6,78,59,.13), 0 4px 8px rgba(6,78,59,.06);
  --shadow-green: 0 8px 24px rgba(5,150,105,.25);
  --shadow-orange:0 8px 24px rgba(249,115,22,.30);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --max-w:        1120px;
  --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.hero-img { width:100%; max-height:420px; object-fit:cover; border-radius:var(--radius-lg); margin:20px 0 28px; box-shadow:var(--shadow-md); }
.section-img { width:100%; max-height:300px; object-fit:cover; border-radius:var(--radius); margin:16px 0 24px; box-shadow:var(--shadow-sm); }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Scroll progress bar ── */
@keyframes scrollProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform-origin: left;
  animation: scrollProgress linear both;
  animation-timeline: scroll(root);
  z-index: 9999;
}

/* ── Top bar ── */
.topbar {
  background: linear-gradient(90deg, var(--green-deeper), var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.topbar strong { color: var(--yellow); }
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(5,150,105,.4);
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #10b981 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='80' cy='0' r='2'/%3E%3Ccircle cx='0' cy='80' r='2'/%3E%3Ccircle cx='80' cy='80' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  position: relative;
}
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: .92;
  max-width: 620px;
  margin: 0 auto 28px;
  position: relative;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 900;
  padding: 15px 36px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-orange);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(249,115,22,.45);
  text-decoration: none;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  opacity: .88;
  position: relative;
}
.hero-trust span::before { content: "✓ "; font-weight: 900; color: var(--yellow); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
main { padding: 48px 0 72px; }
section { margin: 52px 0; }

section h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin: 0 0 8px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
section .sub { color: var(--text-sub); margin: 0 0 20px; font-size: 0.875rem; }

/* ── Pest cards ── */
.pest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.pest-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-green);
  border-color: var(--green);
  text-decoration: none;
}
.pest-icon { font-size: 2.6rem; margin-bottom: 10px; }
.pest-card h3 { margin: 8px 0 6px; font-size: 1rem; font-weight: 900; color: var(--text); }
.pest-card p { margin: 0; font-size: 0.78rem; color: var(--text-sub); line-height: 1.5; }

/* ── Ranking ── */
.ranking { display: grid; gap: 16px; }
.rank-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.rank-card:hover { box-shadow: var(--shadow-md); }
.rank-badge {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #f5c518, #d4a017); box-shadow: 0 4px 12px rgba(245,197,24,.4); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8c5a22); }
.rank-body h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 900; }
.rank-body p  { margin: 0; font-size: 0.82rem; color: var(--text-sub); line-height: 1.55; }
.rank-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--border-gray);
  font-weight: 600;
}
.tag-hot {
  background: var(--orange-light);
  color: var(--orange-dark);
  border-color: #fed7aa;
}
.rank-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249,115,22,.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.rank-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  text-decoration: none;
}

@media (max-width: 560px) {
  .rank-card { grid-template-columns: 52px 1fr; gap: 14px; }
  .rank-cta  { grid-column: 1 / -1; justify-content: center; }
}

/* ── Emergency CTA ── */
.emergency {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}
.emergency::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.emergency h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 900; }
.emergency p  { margin: 0 0 18px; opacity: .95; font-size: 0.9rem; }
.emergency .hero-cta {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  font-weight: 900;
}
.emergency .hero-cta:hover { transform: translateY(-2px); }

/* ── Article ── */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 5vw, 48px);
  box-shadow: var(--shadow-md);
}
.article h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.article .meta { color: var(--text-sub); font-size: 0.8rem; margin-bottom: 22px; }

/* Disclosure */
.disclosure {
  background: var(--yellow-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: #78350f;
  margin: 16px 0 28px;
}

/* TOC */
.toc {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 30px;
  font-size: 0.875rem;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--text); font-weight: 900; }
.toc ol  { padding-left: 20px; margin: 0; }
.toc li  { margin-bottom: 5px; }
.toc a   { color: var(--green-dark); font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* Article headings */
.article h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin: 38px 0 14px;
  padding: 12px 16px 12px 18px;
  background: var(--green-light);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 900;
  color: var(--green-deeper);
  letter-spacing: -0.01em;
}
.article h3 {
  font-size: 1.02rem;
  margin: 26px 0 10px;
  padding: 2px 0 2px 12px;
  border-left: 4px solid var(--orange);
  font-weight: 700;
  color: var(--text);
}
.article p   { margin: 0 0 16px; line-height: 1.8; }
.article ul,
.article ol  { padding-left: 22px; margin: 0 0 16px; }
.article li  { margin-bottom: 6px; }
.article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Callout boxes */
.note {
  background: var(--yellow-light);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 17px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--text-sub);
}
.warn {
  background: var(--orange-light);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 17px;
  margin: 20px 0;
  font-size: 0.875rem;
}
.warn strong { color: var(--orange-dark); }
.ok {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 17px;
  margin: 20px 0;
  font-size: 0.875rem;
}
.ok strong { color: var(--green-dark); }

/* Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--orange-light), #ffe4cc);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 30px 0;
  text-align: center;
}
.inline-cta h3 {
  margin: 0 0 6px;
  border: none;
  padding: 0;
  color: var(--orange-dark);
  font-weight: 900;
}
.inline-cta p { margin: 0 0 14px; font-size: 0.875rem; color: var(--text-sub); }
.inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-orange);
  transition: transform var(--transition);
}
.inline-cta a:hover { transform: translateY(-2px); text-decoration: none; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
}
.cmp-table th, .cmp-table td {
  border: 1px solid var(--border-gray);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.cmp-table th {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.cmp-table tr:nth-child(even) td { background: #f8fdf9; }
.cmp-table tr:hover td { background: var(--green-light); }
.cmp-table td.center { text-align: center; }

/* ── FAQ ── */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq details:hover { border-color: var(--green-mid); }
.faq details[open] { border-color: var(--green); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 15px 20px;
  list-style: none;
  position: relative;
  padding-right: 42px;
  background: #fafffe;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: background var(--transition);
}
.faq summary:hover { background: var(--green-light); }
.faq details[open] summary { background: var(--green-light); color: var(--green-dark); }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 900;
  font-size: 1.15rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 14px 20px 16px;
  color: var(--text-sub);
  font-size: 0.875rem;
  line-height: 1.75;
  margin: 0;
  border-top: 1px solid var(--border-gray);
}

/* ── Author ── */
.author {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 20px;
  margin: 36px 0;
}
.author-ava {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(5,150,105,.3);
}
.author h4 { margin: 0 0 4px; font-size: 0.92rem; font-weight: 700; }
.author p  { margin: 0; font-size: 0.8rem; color: var(--text-sub); }

/* ── Related articles ── */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.related a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.related a:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--shadow-green);
  text-decoration: none;
}
.related strong { display: block; margin-bottom: 5px; font-size: 0.9rem; font-weight: 700; }
.related span   { font-size: 0.78rem; color: var(--text-sub); }

/* ── Trust strip ── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.trust-item { text-align: center; }
.trust-item .ico { font-size: 2rem; margin-bottom: 6px; }
.trust-item strong { display: block; margin-bottom: 3px; font-size: 0.95rem; font-weight: 700; }
.trust-item span { font-size: 0.78rem; color: var(--text-sub); }

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #052e16 0%, #064e3b 100%);
  color: #a7f3d0;
  padding: 48px 24px 24px;
  font-size: 0.82rem;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-inner h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  text-transform: uppercase;
  font-weight: 900;
}
.footer-inner p { color: #6ee7b7; line-height: 1.65; }
.footer-inner a { color: #a7f3d0; transition: color var(--transition); }
.footer-inner a:hover { color: #fff; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 7px; }
.copyright {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #064e3b;
  color: #4ade80;
  font-size: 0.75rem;
  text-align: center;
  opacity: .6;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .header-inner  { flex-direction: column; gap: 10px; }
  .nav           { gap: 4px; justify-content: center; }
  .hero          { padding: 52px 20px 68px; }
  .article       { border-radius: var(--radius); padding: 22px 18px; }
}
