/*
Theme Name: すまい安心（害獣・害虫駆除）
Theme URI: https://example.com/
Author: 株式会社オーケー管理
Description: 害獣・害虫駆除サイト専用のオリジナルテーマ。電話番号・所在地は「外観 → カスタマイズ → サイトの基本情報（すまい安心）」で変更できます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sumai-anshin
*/

:root {
  --surface: #FFFFFF;
  --sun: #FFCB2E;
  --sun-soft: #FFF4CC;
  --ink: #18213A;
  --ink-muted: #4B556B;
  --line: #E3E0D3;
  --call: #157A43;
  --call-deep: #0F5C32;
  --alert: #D63B1F;
  --radius-sm: 4px;
  --radius-lg: 20px;
  --font-display: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--call-deep); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--call); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 1100px; }
.wrap--faq { max-width: 900px; }

/* ---- 共通部品 ---- */
.display { font-family: var(--font-display); font-weight: 400; }
.btn-call {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--call); color: #FFFFFF; text-decoration: none;
  border-radius: var(--radius-sm); padding: 18px 32px;
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1;
}
.btn-call:hover { background: var(--call-deep); color: #FFFFFF; }
.btn-call svg { width: 28px; height: 28px; flex-shrink: 0; }
.tag { display: inline-block; border-radius: var(--radius-sm); padding: 4px 12px; font-size: 14px; line-height: 22px; font-weight: 900; color: #FFFFFF; }
.tag--alert { background: var(--alert); }
.tag--ink { background: var(--ink); }
.ribbon {
  margin: 0; background: var(--sun); padding: 12px 40px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; text-align: center;
}
.note { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* ---- 上部の帯・ヘッダー ---- */
.topbar { margin: 0; background: var(--ink); color: #FFFFFF; font-size: 14px; line-height: 20px; font-weight: 700; padding: 10px 16px; text-align: center; }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; }
.site-logo a { text-decoration: none; }
.site-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.header-call { display: flex; flex-direction: column; align-items: center; background: var(--call); color: #FFFFFF; text-decoration: none; border-radius: var(--radius-sm); padding: 8px 22px; }
.header-call:hover { background: var(--call-deep); color: #FFFFFF; }
.header-call__num { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.header-call__sub { font-size: 12px; line-height: 16px; font-weight: 700; }

/* ---- メイン画面 ---- */
.hero { background: var(--sun); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.hero__text { flex: 999 1 560px; min-width: 0; padding: 64px 0; display: flex; flex-direction: column; gap: 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1.18; }
.hero__lead { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; font-weight: 900; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__cta p { margin: 0; font-size: 15px; line-height: 24px; font-weight: 700; }
.hero__photo { flex: 1 1 320px; max-width: 420px; margin: 0 auto; position: relative; }
.hero__photo img { display: block; width: 100%; height: auto; }
.hero__photo .photo-note { position: absolute; right: 0; bottom: 8px; margin: 0; background: #FFFFFF; font-size: 12px; line-height: 18px; padding: 2px 8px; border-radius: var(--radius-sm); }

.promise { margin: 0; background: var(--ink); color: #FFFFFF; padding: 22px 24px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; font-weight: 900; text-align: center; }

/* ---- 症状チェック ---- */
.check .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.check__list { margin: 0; width: 100%; padding: 36px clamp(20px, 4vw, 48px); list-style: none; background: var(--sun-soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 48px; row-gap: 18px; font-size: 18px; line-height: 30px; font-weight: 700; }
.check__list li { display: flex; gap: 12px; }
.check__list svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.check__after { margin: 0; font-size: 18px; line-height: 30px; font-weight: 700; text-align: center; }

/* ---- 対応できる被害 ---- */
.target { background: var(--sun); }
.target .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.3; }
.target__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.target__list li { background: #FFFFFF; border-radius: var(--radius-sm); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.target__list img { width: 120px; height: 120px; }
.target__name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 900; }
.target__where { margin: 0; font-size: 14px; line-height: 22px; }
.target__out { margin: 0; font-size: 15px; line-height: 24px; font-weight: 700; }

/* ---- 点検の様子 ---- */
.inspect .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.inspect__intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.inspect__intro h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.35; }
.inspect__intro p { margin: 0; font-size: 17px; line-height: 30px; }
.inspect__photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.inspect__photos figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.inspect__photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.inspect__photos figcaption { font-size: 15px; line-height: 24px; font-weight: 700; }

/* ---- ご依頼の流れ ---- */
.flow { background: var(--sun-soft); }
.flow .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.flow__list { margin: 0; padding: 0; list-style: none; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.flow__list li { display: flex; flex-direction: column; gap: 10px; }
.flow__img { position: relative; background: #FFFFFF; border-radius: var(--radius-sm); }
.flow__img img { display: block; width: 100%; aspect-ratio: 1 / 1; }
.flow__num { position: absolute; left: 0; top: 0; background: var(--ink); color: #FFFFFF; font-family: var(--font-display); font-size: 22px; line-height: 1; padding: 12px 16px; border-radius: var(--radius-sm) 0 var(--radius-sm) 0; }
.flow__list h3 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 900; }
.flow__list p { margin: 0; font-size: 15px; line-height: 26px; }

/* ---- 料金の決まり方 ---- */
.price .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; }
.price h2 { margin: 0; flex: 1 1 280px; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.35; }
.price__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 30px; }
.price__body p { margin: 0; }
.price__body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price__body li { border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 700; }

/* ---- よくある質問 ---- */
.faq { background: var(--sun-soft); }
.faq .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.faq__list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #FFFFFF; border-radius: var(--radius-sm); padding: 18px 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 17px; line-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; }

/* ---- 電話の帯 ---- */
.callband { background: var(--sun); }
.callband .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.callband p { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }

/* ---- フッター ---- */
.site-footer { background: var(--ink); color: #FFFFFF; }
.site-footer a { color: #FFFFFF; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__name { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 30px; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; row-gap: 6px; font-size: 15px; line-height: 26px; }
.site-footer dt { font-weight: 700; }
.site-footer dd { margin: 0; }
.site-footer__copy { margin: 8px 0 0; font-size: 13px; }

/* ---- スマホ：画面下の電話ボタン ---- */
.sp-callbar { display: none; }
@media (max-width: 767px) {
  .site-nav { display: none; }
  .sp-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink);
  }
  .sp-callbar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--call); color: #FFFFFF; text-decoration: none; border-radius: var(--radius-sm);
    min-height: 56px; font-family: var(--font-display); font-size: 22px;
  }
  .sp-callbar small { font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
  body { padding-bottom: 76px; }
  .hero__text { padding: 40px 0 8px; }
  .hero__photo { max-width: 260px; }
  .check .wrap, .target .wrap, .inspect .wrap, .flow .wrap, .price .wrap, .faq .wrap { padding-top: 48px; padding-bottom: 48px; }
  .ribbon { padding: 10px 20px; }
  .inspect__photos, .check__list { grid-template-columns: 1fr; }
}

/* ---- 固定ページ（会社概要・プライバシーポリシーなど） ---- */
.page-main .wrap { max-width: 860px; padding-top: 56px; padding-bottom: 72px; }
.page-title { margin: 0 0 32px; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.35; }
.entry-content h2 { font-size: 24px; line-height: 1.5; border-left: 0; background: var(--sun); padding: 8px 16px; border-radius: var(--radius-sm); margin: 48px 0 16px; }
.entry-content h3 { font-size: 20px; line-height: 1.5; margin: 32px 0 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.entry-content th { width: 30%; background: var(--sun-soft); }
