/* 特殊清掃安心ナビ: 正式デザイン（main.css）への追加分。main.css は正式版をそのまま使い、ここだけを編集する */
/* アニメーションの保険: JavaScriptが動かない・動きを減らす設定のときは最初から表示する */
html:not(.js) .reveal, html:not(.js) .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; } html { scroll-behavior: auto; } }
body { overflow-wrap: anywhere; }

/* トップの見出し（正式版の画像の写真を使い、見出しと案内は文字で表示する） */
.hero-v2 { background: linear-gradient(180deg, #f3f8fb 0%, #ffffff 100%); padding: 56px 0 40px; overflow: hidden; }
.hero-v2-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero-v2-kicker { font-size: 15px; color: var(--text-sub); letter-spacing: .12em; margin-bottom: 14px; }
.hero-v2 h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; color: var(--navy); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 20px; }
.hero-v2 h1 .site { display: block; font-size: 14px; font-weight: 800; color: var(--green-dark); letter-spacing: .1em; margin-bottom: 12px; }
.hero-v2 h1 em { font-style: normal; color: var(--green); background: linear-gradient(transparent 72%, #ffe58a 72%); }
.hero-v2-lead { font-size: 15.5px; color: var(--text-sub); line-height: 2; margin-bottom: 28px; max-width: 520px; }
.hero-v2-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-v2-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); line-height: 0; }
.hero-v2-photo img { width: 100%; height: auto; }
.hero-v2-photo a { position: absolute; left: 41%; top: 4%; width: 56%; height: 18%; }
@media (max-width: 860px) { .hero-v2 { padding: 36px 0 28px; } .hero-v2-inner { grid-template-columns: 1fr; gap: 26px; } }

/* 記事・案内ページ（本文は既存のまま、正式デザインの記事スタイルで表示） */
.article-wrap { padding: 0; }
.article-body > p:first-child { margin-top: 0; }
.article-body ol { margin: 0 0 20px 22px; }
.article-body ol li { font-size: 14.5px; color: var(--text); line-height: 1.95; padding: 6px 0; }
.article-body dl { margin: 0 0 20px; }
.article-body dt { font-weight: 800; color: var(--navy); margin-top: 16px; }
.article-body dd { font-size: 14.5px; color: var(--text-sub); line-height: 1.95; }
.article-body .note { font-size: 12.5px; color: var(--text-light); }
.table-scroll { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.table-scroll .article-table { margin-bottom: 0; min-width: 480px; }
.article-cta-box h2 { border: 0; margin: 0 0 10px; padding: 0; font-size: 17px; color: var(--green-dark); }
.article-cta-box p { font-size: 14px; margin-bottom: 0; }
.page-hero .crumb { text-align: center; }

/* 問い合わせフォーム（既存のフォームと送信処理をそのまま使う） */
#contactForm { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin: 28px 0; }
#contactForm > div { margin-bottom: 22px; }
#contactForm label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
#contactForm label span { color: #e05353; font-size: 11.5px; margin-left: 4px; }
#contactForm input[type=text], #contactForm input[type=email], #contactForm input[type=tel], #contactForm select, #contactForm textarea { width: 100%; margin-top: 8px; padding: 13px 15px; border: 1.5px solid var(--gray-mid); border-radius: 10px; font-size: 16px; font-family: inherit; background: var(--white); color: var(--text); }
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,76,.12); }
#contactForm textarea { height: 160px; resize: vertical; }
#contactForm input[type=checkbox] { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
/* 相談フォームの改善（D-050・2026-10-14）: 必須/任意の表示・補足・項目ごとのエラー */
#contactForm label span.req, #contactForm label span.opt { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
#contactForm label span.req { color: #fff; background: #d14343; }
#contactForm label span.opt { color: var(--text-light); background: var(--gray-light, #f1f3f2); border: 1px solid var(--gray-mid); }
#contactForm .form-hint { font-size: 12.5px; color: var(--text-light); line-height: 1.7; margin-top: 6px; }
#contactForm .field-error, #formMsg { font-size: 13px; font-weight: 700; color: #c53030; margin-top: 6px; }
#contactForm [aria-invalid="true"] { border-color: #d14343 !important; box-shadow: 0 0 0 3px rgba(209,67,67,.12); }
#contactForm .consent-label { font-weight: 600; line-height: 1.8; }
#contactForm .submit-btn { min-height: 52px; margin-top: 4px; }
#contactForm .submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-link-btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--green-dark); background: none; border: none; padding: 6px 0; text-decoration: underline; cursor: pointer; min-height: 40px; }
#formDone { background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); padding: 26px 24px; margin: 28px 0; outline: none; }
#formDone h2 { margin-top: 0; }
#formMsg { padding: 18px; border-radius: 12px; text-align: center; font-weight: 700; background: var(--green-light); }

/* 事業者ページ・地域ページの補足 */
.company-lead { font-size: 14.5px; line-height: 2; color: var(--text-sub); margin-bottom: 8px; }
.guide-section-title { font-size: 20px; font-weight: 800; color: var(--navy); margin: 44px 0 16px; }
.company-dl dd a { overflow-wrap: anywhere; }

/* 記事の途中の相談の入口（2026-10-15） */
.consult-cta { background: rgba(26,122,76,.06); border: 1px solid rgba(26,122,76,.25); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0 30px; }
.consult-cta p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; }
.consult-cta .consult-cta-title { font-weight: 800; color: var(--navy); font-size: 15px; }
.consult-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.consult-cta-actions .btn { min-height: 44px; }
@media (max-width: 640px) { .consult-cta-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* 一覧カードの比較用の目印（2026-10-14） */
.company-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px 15px; }
.company-tags span { font-size: 11.5px; font-weight: 700; color: var(--green-dark); background: rgba(26,122,76,.08); border: 1px solid rgba(26,122,76,.2); border-radius: 50px; padding: 2px 10px; }

/* 地域ページの絞り込み（D-050）。正式デザインの pill-tabs と同じ色・角丸に合わせる */
.filter-bar { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.filter-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.filter-bar button { font: inherit; font-size: 13px; font-weight: 800; color: var(--navy); background: var(--white); border: 2px solid var(--gray-mid); border-radius: 50px; padding: 8px 16px; margin: 0 6px 8px 0; cursor: pointer; min-height: 40px; transition: all .2s; }
.filter-bar button[aria-pressed="true"], .filter-bar button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.filter-status { font-size: 13px; font-weight: 700; color: var(--green-dark); margin-top: 4px; }
.filter-note { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* スマホだけ画面下に相談ボタン（D-050）。本文を覆わないよう body の下に同じ高さの余白を取る。相談フォームのページでは出さない */
.mobile-cta-bar { display: none; }
@media (max-width: 640px) {
  .mobile-cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--navy); padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .mobile-cta-bar span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); }
  .mobile-cta-bar a { flex-shrink: 0; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; border-radius: 50px; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; }
  body.has-cta-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* スマホでの崩れ防止 */
@media (max-width: 960px) { .sidebar-sticky { flex-direction: column; overflow-x: visible; } .sidebar-widget { min-width: 0; } }
@media (max-width: 640px) {
  .section { padding: 56px 0; } .section-head { margin-bottom: 36px; } .container { padding: 0 18px; }
  .guide-grid { grid-template-columns: 1fr !important; } .blog-grid { grid-template-columns: 1fr !important; }
  .company-card { padding: 20px 18px; } .company-actions .btn { flex: 1 1 100%; justify-content: center; }
  .btn-lg { padding: 15px 26px; font-size: 14.5px; } .page-hero { padding: 44px 18px; } .cta-section { padding: 60px 18px; }
  .region-card { padding: 30px 24px; } #contactForm { padding: 22px 18px; }
  .pill-tabs a { padding: 9px 16px; font-size: 13px; } .toc-box { padding: 22px 20px; }
}
