/* =============================================
   引越し賃貸ナビ - style.css
   hikkoshi-info.com/chintai/ 専用
   WordPressのCSSと完全独立（干渉なし）
   ============================================= */

:root {
  --primary:      #2e7d32;   /* 不動産系フォレストグリーン */
  --primary-dark: #1b5e20;
  --primary-light:#e8f5e9;
  --accent:       #f97316;   /* オレンジアクセント（CTA） */
  --accent-light: #fff7ed;
  --success:      #388e3c;
  --text-main:    #1a2a1a;
  --text-sub:     #4a6050;
  --text-muted:   #6a7a6a;
  --border:       #dde8dd;
  --bg:           #f5f9f5;
  --bg-white:     #ffffff;
  --shadow-sm:    0 1px 4px rgba(46,125,50,0.07);
  --shadow-md:    0 4px 16px rgba(46,125,50,0.10);
  --shadow-lg:    0 8px 32px rgba(46,125,50,0.13);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --font:         'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'MS PGothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 22px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.header-nav {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.header-nav a {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.header-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--primary);
}

/* PR バー（赤文字） */
.pr-bar {
  background: #fff5f5;
  border-top: 1px solid #fecaca;
  font-size: 0.72rem;
  color: #c0392b;
  text-align: center;
  padding: 4px 20px;
  font-weight: 600;
}
.pr-label {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: 700;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.hero-label {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-badges span {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
}

/* =============================================
   クイックリンク
   ============================================= */
.quick-links {
  background: var(--bg-white);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.quick-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.quick-card:hover {
  background: #c8e6c9;
  transform: translateY(-1px);
  text-decoration: none;
}
.quick-icon { font-size: 1.2rem; flex-shrink: 0; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content { padding: 40px 0 60px; }

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-white);
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  transition: all 0.18s;
  text-decoration: none;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

.article-section { margin-bottom: 48px; }
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
  text-decoration: none;
}
.card-cat { font-size: 0.75rem; color: var(--primary); font-weight: 700; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.5; flex: 1; }
.card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-target {
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.card-arrow { font-size: 0.78rem; color: var(--accent); font-weight: 700; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }

/* =============================================
   ARTICLE LAYOUT
   ============================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 60px;
  align-items: start;
}
.article-main { min-width: 0; }
.static-layout { padding: 32px 0 60px; }
.static-main { max-width: 800px; }

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}
.article-meta-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.badge-cat {
  font-size: 0.75rem;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.badge-target {
  font-size: 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid #fde8d0;
}
.article-h1 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
}
.article-lead {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
  background: var(--primary-light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

/* ---------- 目次 ---------- */
.toc {
  background: #f1f8f1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.toc-list { list-style: decimal; padding-left: 20px; }
.toc-list li { margin-bottom: 6px; }
.toc-list a { font-size: 0.85rem; color: var(--primary); }

/* ---------- 記事本文 ---------- */
.article-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-white);
  background: var(--primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin: 36px 0 16px;
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin: 24px 0 12px;
}
.article-body p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 16px; }
.article-body ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.article-body ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.article-body li { font-size: 0.9rem; line-height: 1.8; margin-bottom: 6px; }
.article-body strong { color: var(--primary-dark); font-weight: 700; }
.article-body a { color: var(--primary); text-decoration: underline; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.87rem;
}
.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: #f1f8f1; }

.article-body .info-box {
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
}
.article-body .info-box strong { display: block; margin-bottom: 6px; color: var(--primary-dark); }
.article-body .info-box p { margin-bottom: 0; font-size: 0.87rem; }

.placeholder-text {
  background: #f0f5f0;
  color: var(--text-muted);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- CTAボックス ---------- */
.cta-box {
  background: linear-gradient(135deg, #fff8f0, #fff3e8);
  border: 2px solid #ffd599;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin: 40px 0;
  text-align: center;
}
.cta-label { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.cta-point { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 18px; line-height: 1.7; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249,115,22,0.30);
  transition: background 0.18s, transform 0.15s;
}
.cta-btn:hover {
  background: #ea6305;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- 関連記事 ---------- */
.related-articles { margin-top: 40px; }
.related-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.15s;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.related-cat { font-size: 0.72rem; color: var(--primary); font-weight: 700; }
.related-h1 { font-weight: 600; line-height: 1.5; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--primary-light);
}
.widget-list { display: flex; flex-direction: column; gap: 6px; }
.widget-list li a {
  font-size: 0.82rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg);
}
.widget-list li a:hover { color: var(--primary-dark); text-decoration: none; }
.count { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-tools { display: flex; flex-direction: column; gap: 8px; }
.sidebar-tools li a {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  padding: 7px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.18s;
}
.sidebar-tools li a:hover { background: #c8e6c9; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0d2010;
  color: #b8d4b8;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-about p { font-size: 0.82rem; color: #8ab88a; line-height: 1.7; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 6px; }
.footer-links ul li a { font-size: 0.82rem; color: #8ab88a; transition: color 0.15s; }
.footer-links ul li a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: #5a7a5a;
  border-top: 1px solid #1a3a1a;
  padding-top: 20px;
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  html { font-size: 18px; }
  .hero-title { font-size: 1.5rem; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--primary);
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .article-h1 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
