/* =========================================================
   ハープ有限会社 — 広島のゴキブリ駆除専門
   Art direction: 「静かに、確実に。」
   墨緑 × 生成り × シャンパンゴールドの細線。余白と明朝で品位を。
   ========================================================= */
:root {
  --ink: #10201a;          /* 墨に近い深緑 */
  --ink-2: #172c24;
  --ivory: #f5f2ea;        /* 生成り */
  --ivory-2: #efe9dd;
  --text: #232a26;
  --text-soft: #6b7069;
  --gold: #b39a63;         /* シャンパンゴールド: 細線・ラベルのみ */
  --gold-soft: #cbb98c;
  --hair: #ddd6c6;         /* 細罫 */
  --maxw: 1080px;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--ivory);
  line-height: 2;
  font-size: 15.5px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: rgba(245,242,234,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px;
}
.brand { text-decoration: none; color: var(--ink); }
.brand .brand-area {
  display: block; font-size: 10.5px; letter-spacing: .34em; color: var(--gold);
  margin-bottom: 2px;
}
.brand .brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: .14em;
}
.header-tel { text-align: right; }
.header-tel .tel-note { font-size: 10.5px; letter-spacing: .12em; color: var(--text-soft); display: block; }
.header-tel a {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .08em;
}
@media (max-width: 640px) { .header-tel { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(179,154,99,.35);   /* 内側の金細線＝額装 */
}
.hero .wrap { padding: 108px 24px 96px; position: relative; }
.hero-eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: .42em; color: var(--gold-soft);
  margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.8; letter-spacing: .12em;
}
.hero h1 .accent { color: var(--gold-soft); }
.hero-sub {
  margin-top: 28px; font-size: clamp(14px, 1.8vw, 15.5px); color: #c9cec4;
  max-width: 580px; line-height: 2.2; letter-spacing: .04em;
}
.hero-cta { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.btn-tel {
  background: var(--ivory); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  padding: 18px 36px; letter-spacing: .08em;
  display: inline-flex; flex-direction: column; line-height: 1.4; text-align: center;
  transition: background .2s;
}
.btn-tel:hover { background: #fff; }
.btn-tel small { font-size: 11px; font-family: var(--font-body); font-weight: 400; letter-spacing: .16em; color: var(--text-soft); }
.btn-ghost {
  color: var(--ivory); text-decoration: none; font-size: 13.5px; letter-spacing: .14em;
  border-bottom: 1px solid var(--gold); padding: 6px 2px;
}
.btn-ghost:hover { color: var(--gold-soft); }

/* 縦書きの添え書き (signature element) */
.hanko {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: .5em; color: var(--gold-soft);
  border-right: 1px solid rgba(179,154,99,.5); padding-right: 18px;
  height: 15em;
}
@media (max-width: 860px) { .hanko { display: none; } }

/* ---------- trust bar ---------- */
.trustbar { background: var(--ink); color: var(--ivory); border-top: 1px solid rgba(179,154,99,.3); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 34px; padding-bottom: 34px; gap: 0;
}
@media (max-width: 640px) { .trustbar-inner { grid-template-columns: 1fr; gap: 24px; } }
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  border-left: 1px solid rgba(179,154,99,.3); padding: 4px 12px;
}
.trust-item:first-child { border-left: none; }
@media (max-width: 640px) { .trust-item { border-left: none; } }
.trust-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--ivory);
  letter-spacing: .06em; white-space: nowrap;
}
.trust-num small { font-size: 13px; color: var(--gold-soft); }
.trust-label { font-size: 11.5px; color: #a9afa6; line-height: 1.9; letter-spacing: .08em; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
section.alt { background: #fbf9f4; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sec-head { margin-bottom: 56px; }
.sec-label {
  font-size: 10.5px; letter-spacing: .46em; color: var(--gold); font-weight: 400;
  display: block; margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 33px); letter-spacing: .14em; line-height: 1.8;
}
.sec-lead { margin-top: 18px; color: var(--text-soft); max-width: 640px; font-size: 14.5px; }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  padding: 40px 32px 44px; border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
}
.reason:first-child { border-left: 1px solid var(--hair); }
@media (max-width: 820px) {
  .reason { border-left: 1px solid var(--hair); }
}
.reason h3 {
  font-family: var(--font-display); font-size: 18.5px; font-weight: 600;
  letter-spacing: .1em; margin-bottom: 16px; line-height: 1.9;
}
.reason h3::before {
  content: ""; display: block; width: 28px; border-top: 1px solid var(--gold);
  margin-bottom: 18px;
}
.reason p { font-size: 13.5px; color: var(--text-soft); line-height: 2.1; }

/* ---------- price ---------- */
.price-cat {
  font-family: var(--font-display); font-size: 18.5px; font-weight: 600;
  letter-spacing: .12em; margin: 48px 0 22px;
}
.price-cat:first-of-type { margin-top: 0; }
.price-cat::after {
  content: ""; display: block; width: 40px; border-top: 1px solid var(--gold); margin-top: 10px;
}
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; gap: 0; } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  border-bottom: 1px solid var(--hair); padding: 15px 6px; text-align: left; font-size: 14.5px;
}
.price-table thead th {
  font-weight: 400; letter-spacing: .2em; font-size: 11px; color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.price-table td.price {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  text-align: right; white-space: nowrap; letter-spacing: .04em;
}
.price-note { margin-top: 18px; font-size: 12.5px; color: var(--text-soft); letter-spacing: .04em; }

/* ---------- flow ---------- */
.flow { list-style: none; counter-reset: step; max-width: 720px; }
.flow li {
  counter-increment: step; position: relative;
  padding: 30px 8px 30px 92px; border-bottom: 1px solid var(--hair);
}
.flow li:first-child { border-top: 1px solid var(--hair); }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 6px; top: 28px;
  font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--gold);
  letter-spacing: .06em;
}
.flow h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin-bottom: 6px; letter-spacing: .1em;
}
.flow p { font-size: 13.5px; color: var(--text-soft); }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }
.case-card { background: transparent; }
.case-photo {
  aspect-ratio: 4 / 3; background: var(--ivory-2);
  border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 12px; letter-spacing: .3em;
}
.case-body { padding: 20px 2px 0; }
.case-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .24em;
  color: var(--gold); border: 1px solid var(--gold-soft);
  padding: 3px 12px; margin-bottom: 14px;
}
.case-body h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  margin-bottom: 8px; line-height: 1.9; letter-spacing: .08em;
}
.case-body p { font-size: 13px; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; padding: 24px 48px 24px 4px; font-weight: 700; font-size: 15px;
  letter-spacing: .06em; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 8px; top: 22px; color: var(--gold);
  font-size: 17px; font-weight: 400;
}
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 4px 26px; font-size: 13.5px; color: var(--text-soft); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--ivory); position: relative; }
.contact::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(179,154,99,.3);
}
.contact .sec-head h2 { color: var(--ivory); }
.contact .sec-label { color: var(--gold-soft); }
.contact .sec-lead { color: #a9afa6; }
.contact-box { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.contact .sec-head { text-align: center; }
.contact .sec-lead { margin-left: auto; margin-right: auto; }
.contact-box .hours { font-size: 12.5px; color: #a9afa6; margin-top: 18px; letter-spacing: .1em; }
.contact-mail { margin-top: 20px; }
.contact-mail a { color: var(--ivory); font-size: 14px; letter-spacing: .06em; }

/* ---------- footer ---------- */
.site-footer { background: #0b1712; color: #8f978d; font-size: 13px; }
.site-footer .wrap { padding: 56px 24px 110px; }
.footer-name {
  font-family: var(--font-display); font-size: 18px; color: var(--ivory);
  letter-spacing: .16em; margin-bottom: 16px;
}
.footer-nap p { margin-bottom: 5px; letter-spacing: .04em; }
.footer-links { margin-top: 22px; }
.footer-links a { color: #8f978d; margin-right: 20px; letter-spacing: .08em; }
.copyright { margin-top: 26px; font-size: 11.5px; color: #5c655b; letter-spacing: .1em; }

/* ---------- mobile fixed call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  border-top: 1px solid var(--gold);
}
.callbar a {
  flex: 1; text-align: center; padding: 16px 8px; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .12em;
}
.callbar .cb-tel { background: var(--ivory); color: var(--ink); }
.callbar .cb-form { background: var(--ink); color: var(--ivory); }
@media (max-width: 640px) { .callbar { display: flex; } }

/* ---------- company page ---------- */
.company-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.company-table th, .company-table td {
  border-bottom: 1px solid var(--hair); padding: 18px 10px; font-size: 14.5px; text-align: left;
}
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--hair); }
.company-table th { width: 30%; font-weight: 700; letter-spacing: .12em; color: var(--ink); }

.page-title { border-bottom: 1px solid var(--hair); }
.page-title .wrap { padding: 64px 24px; }
.page-title h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4vw, 36px); letter-spacing: .16em;
}

/* ---------- v4: 視覚改善 ---------- */
.hero-chips { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 12px; letter-spacing: .1em; color: var(--gold-soft);
  border: 1px solid rgba(179,154,99,.55); padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.hero h1 { line-height: 1.6; }
.hero .wrap { padding-top: 88px; padding-bottom: 80px; }

.reason-icon {
  width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px;
  stroke-linecap: round; stroke-linejoin: round;
}
.reason h3::before { display: none; }

/* ふわっと出現（reduced-motion時は無効） */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.on { opacity: 1; transform: none; }
}

/* ---------- v6: イラストと動き ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 8px; } }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; height: auto; opacity: .95; will-change: transform;
}
@media (max-width: 860px) {
  .hero-art { margin-top: 28px; }
  .hero-art img { max-height: 220px; object-fit: contain; }
}

/* 墨入れのようなワイプ出現 + テキストの静かな段差出現 */
@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    clip-path: inset(0 100% 0 0);
    animation: inkwipe 1.8s cubic-bezier(.25,.46,.45,.94) .45s forwards;
  }
  @keyframes inkwipe {
    to { clip-path: inset(0 0 0 0); }
  }
  .hero-text > * { opacity: 0; transform: translateY(18px); animation: riseIn 1.1s cubic-bezier(.22,.61,.36,1) forwards; }
  .hero-text .hero-eyebrow { animation-delay: .1s; }
  .hero-text h1 { animation-delay: .25s; }
  .hero-text .hero-sub { animation-delay: .45s; }
  .hero-text .hero-chips { animation-delay: .6s; }
  .hero-text .hero-cta { animation-delay: .75s; }
  @keyframes riseIn { to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
  .reveal.on { opacity: 1; transform: none; }
}

/* 瓦屋根の帯 */
.roofband { overflow: hidden; padding: 56px 0 8px; background: var(--ivory); }
.roofband img {
  display: block; margin: 0 auto; width: min(920px, 86%); height: auto;
  opacity: 1; will-change: transform;
}

/* 下層ページのイラスト帯 */
.artband { margin-bottom: 48px; }
.artband img { display: block; margin: 0 auto; width: min(760px, 100%); height: auto; opacity: 1; }
.artband-sm img { width: min(560px, 90%); }
