:root {
  --paper: #fffaf0;
  --cream: #fff5dd;
  --line: #edc881;
  --brown: #5a3518;
  --dark: #211811;
  --red: #c82717;
  --orange: #f05a16;
  --orange-dark: #d94209;
  --green: #4b9a43;
  --muted: #6d5b4b;
  --shadow: 0 3px 10px rgba(78, 42, 13, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--dark);
  font-family: "Arial", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  background: #eadfcb;
}

a { color: inherit; text-decoration: none; }

.page-shell {
  width: min(100%, 1060px);
  margin: 0 auto;
  background: linear-gradient(90deg, #fff 0, var(--paper) 2.5%, #fffdf7 50%, var(--paper) 97.5%, #fff 100%);
  border-left: 1px solid #e9c887;
  border-right: 1px solid #e9c887;
  box-shadow: 0 0 30px rgba(55, 34, 14, 0.16);
}

.panel {
  position: relative;
  margin: 0 10px 9px;
  padding: 16px 12px 14px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.88);
  border: 2px solid var(--line);
  border-radius: 10px;
}

h1, h2, h3, p, ul, figure { margin-top: 0; }

h2 {
  margin-bottom: 12px;
  padding-left: 50px;
  font-size: clamp(1.35rem, 5vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: .02em;
  text-align: left;
}

.body-copy {
  margin-bottom: 10px;
  color: #4f3827;
  font-size: clamp(.86rem, 2.4vw, 1rem);
}

.hero {
  min-height: 620px;
  margin: 0 0 9px;
  padding: 15px 12px 11px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(255,255,255,.84) 0 11%, transparent 28%),
    linear-gradient(105deg, rgba(255,255,255,.98) 0 42%, rgba(255,255,255,.64) 55%, transparent 66%),
    linear-gradient(#cfe7f8 0 32%, #eef5f4 48%, #fff6df 100%);
}

.hero-copy { position: relative; z-index: 2; max-width: 650px; padding: 8px 0 0 58px; }

.hero h1 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 7.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  text-shadow: 2px 2px 0 rgba(255,255,255,.82);
}

.hero h1 span { color: var(--red); }

.lead-box {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 13px;
  color: #4a2d12;
  font-size: clamp(.88rem, 2.5vw, 1.12rem);
  background: #fff7dc;
  border: 2px solid #ff9d25;
  border-radius: 5px;
}

.hero-checks,
.orange-checks {
  display: grid;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
}

.hero-checks { grid-template-columns: repeat(2, minmax(150px, 1fr)); max-width: 600px; }

.hero-checks li,
.orange-checks li {
  position: relative;
  padding-left: 27px;
  font-size: clamp(.92rem, 2.35vw, 1.04rem);
}

.hero-checks li::before,
.orange-checks li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  content: "✓";
  background: var(--green);
  border-radius: 50%;
}

.orange-checks li::before { background: #f08b23; }

.hero-visual { position: absolute; inset: 0; pointer-events: none; }


.termite-photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 55%, rgba(0,0,0,.18) 0 7%, transparent 8%),
    repeating-linear-gradient(22deg, #8a572f 0 16px, #6c421f 17px 26px, #b57a42 27px 38px);
  border: 5px solid #fff4e0;
  box-shadow: var(--shadow);
}

.termite-photo.large {
  position: absolute;
  right: 248px;
  top: 250px;
  width: 260px;
  height: 230px;
  border-radius: 50%;
}


.merits {
  position: absolute;
  z-index: 4;
  left: 20px;
  right: 430px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.merits article,
.icon-grid article,
.voice-grid article {
  background: rgba(255,255,255,.92);
  border: 1px solid #ebd1a5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(97,58,18,.08);
}

.merits article { min-height: 114px; padding: 9px 4px; text-align: center; }
.merits b { display: block; color: #9a6129; font-size: 2rem; line-height: 1.1; }
.merits span { font-size: .88rem; }
.merits em { color: var(--red); font-style: normal; }

.hero-cta {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 25px;
  width: 415px;
  text-align: center;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  width: min(100%, 500px);
  padding: 12px 60px 12px 24px;
  color: #fff;
  font-size: clamp(1.1rem, 3.6vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -.02em;
  text-align: center;
  background: linear-gradient(#ff7b22, #ef4e0d 62%, #d83a05);
  border: 3px solid #fff1dc;
  border-radius: 8px;
  box-shadow: 0 5px 0 #a8320e, 0 7px 12px rgba(87,32,5,.25);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.cta-button::after {
  position: absolute;
  right: 17px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--orange);
  content: "›";
  background: #fff;
  border-radius: 50%;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(3px);
  filter: saturate(1.18) brightness(1.05);
  box-shadow: 0 2px 0 #a8320e, 0 4px 9px rgba(87,32,5,.22);
}

.hero-cta small { display: block; margin-top: 12px; color: #5c4030; font-size: .95rem; }

.worries h2,
.facts h2,
.stats h2,
.voices h2,
.faq h2 { text-align: center; }

.check-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.check-columns ul {
  margin: 0;
  padding: 8px 14px;
  list-style: none;
  background: rgba(255,255,255,.72);
  border: 1px solid #ecd6ae;
  border-radius: 8px;
}

.check-columns li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid #eadcc2;
  font-size: .95rem;
}

.check-columns li:last-child { border-bottom: 0; }
.check-columns li::before { position: absolute; left: 0; color: var(--red); content: "☑"; font-size: 1.35rem; line-height: 1; }

.alert,
.hint {
  margin: 13px 0 0;
  padding: 11px 14px 11px 54px;
  color: #352113;
  font-size: clamp(1rem, 3vw, 1.45rem);
  background: #fff2c0;
  border-radius: 7px;
}
.alert::before,
.hint::before { margin-left: -40px; margin-right: 12px; content: "⚠️"; }
.hint { color: var(--red); font-size: .98rem; background: transparent; }
.hint::before { content: "💡"; }
.alert.small { font-size: .98rem; }

.split-grid,
.points-layout,
.closing { display: grid; gap: 14px; }

.damage-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wood-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid #e0cba6;
  border-radius: 7px;
  text-align: center;
}

.wood-card figcaption { padding: 7px 3px; color: #6b3c1d; font-size: .83rem; }

.red-message { color: var(--red); font-size: clamp(1.05rem, 3.1vw, 1.5rem); line-height: 1.28; }
.narrow { display: flex; margin: 10px auto 0; }

.icon-grid { display: grid; gap: 8px; }
.icon-grid article { padding: 13px 8px; text-align: center; }
.icon-grid b { display: block; color: #6e9f48; font-size: 3rem; line-height: 1; }
.icon-grid article:nth-child(2) b { color: #8db7d2; }
.icon-grid article:nth-child(4) b { color: #dc762c; }
.icon-grid article:nth-child(5) b { color: #ca7773; }
.icon-grid h3 { margin: 8px 0 7px; font-size: 1rem; line-height: 1.2; }
.icon-grid p { margin: 0; color: #4b3628; font-size: .82rem; font-weight: 700; }

.compare-layout { display: grid; gap: 13px; align-items: stretch; }
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: clamp(.78rem, 2.2vw, 1.05rem); text-align: center; background: #fff; border: 1px solid #dfbc80; border-radius: 7px; }
th, td { padding: 6px 4px; border-right: 1px solid #dfbc80; border-bottom: 1px solid #dfbc80; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { color: #fff; background: #c95118; }
thead th:first-child { background: #896b43; }
thead th:last-child { background: #5d3a1d; }
tbody th { background: #fbf0d7; }


.compact { grid-template-columns: 1fr; }
.stats-grid strong { display: block; color: var(--red); font-size: 1.9rem; }
.note { margin: 9px 0 0; color: #76583e; font-size: .78rem; text-align: center; }

.voice-grid { display: grid; gap: 10px; }
.voice-grid article { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; min-height: 130px; padding: 10px; }
.voice-grid p { margin: 0; color: #4b3729; font-size: .91rem; }
.voice-grid b { display: block; color: #2c1d14; margin-bottom: 4px; }
.avatar {
  display: block;
  width: 78px;
  height: 88px;
  border-radius: 50% 50% 18px 18px;
  background:
    radial-gradient(circle at 50% 28%, #f0c199 0 22%, transparent 22.5%),
    radial-gradient(circle at 50% 16%, #2a2521 0 19%, transparent 19.5%),
    linear-gradient(#fff 42%, #76996d 42%);
}
.avatar.female { background: radial-gradient(circle at 50% 28%, #efc49d 0 22%, transparent 22.5%), radial-gradient(circle at 50% 18%, #876143 0 25%, transparent 25.5%), linear-gradient(#fff 43%, #c98268 43%); }
.avatar.couple-icon { background: radial-gradient(circle at 33% 29%, #efc49d 0 15%, transparent 15.5%), radial-gradient(circle at 67% 28%, #f0c199 0 15%, transparent 15.5%), linear-gradient(90deg, #d97f5d 0 50%, #81a864 50%); }

.faq details { background: #fff; border: 1px solid #ead2a8; border-radius: 5px; margin-bottom: 5px; }
.faq summary { position: relative; cursor: pointer; padding: 8px 44px 8px 14px; font-size: .95rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { color: #7c5230; content: "Q. "; }
.faq summary::after { position: absolute; right: 16px; content: "⌄"; color: #7d5832; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 14px 9px 38px; color: #66442b; font-size: .82rem; font-weight: 700; }
.faq p::before { color: var(--red); content: "A. "; font-weight: 900; }

.closing { margin-bottom: 0; background: linear-gradient(90deg, #fffdf7 0 60%, #efe1cd 100%); }
.closing h2 { padding-left: 50px; color: var(--red); font-size: clamp(1.7rem, 5.8vw, 2.55rem); }
.closing-photo {
  min-height: 200px;
  background:
    radial-gradient(circle at 30% 32%, #edc399 0 9%, transparent 9.5%),
    radial-gradient(circle at 31% 23%, #8b5638 0 10%, transparent 10.5%),
    radial-gradient(circle at 64% 30%, #edc399 0 8%, transparent 8.5%),
    radial-gradient(circle at 64% 21%, #252525 0 9%, transparent 9.5%),
    linear-gradient(90deg, #efe2d0 0 46%, #f4f8f5 46% 100%);
}

@media (min-width: 560px) {
  .panel { margin-left: 14px; margin-right: 14px; padding: 18px 18px 16px; }
  .check-columns { grid-template-columns: 1fr 1fr; }
  .damage-gallery { grid-template-columns: repeat(4, 1fr); }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .voice-grid { grid-template-columns: repeat(3, 1fr); }
  .voice-grid article { grid-template-columns: 84px 1fr; }
}

@media (min-width: 760px) {
  .hero { min-height: 610px; }
  .split-grid { grid-template-columns: .9fr 1.35fr; align-items: start; }
  .compare-layout { grid-template-columns: 1fr 270px; }
  .points-layout { grid-template-columns: 1fr 320px; align-items: center; }
  .closing { grid-template-columns: 1fr 330px; align-items: center; }
  .five { grid-template-columns: repeat(5, 1fr); }
  .stats-grid { grid-template-columns: repeat(6, 1fr); }
  .compact { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
}

@media (max-width: 900px) {
  .hero { padding-bottom: 350px; }
  .hero-copy { max-width: 100%; padding-left: 50px; }
  .merits { left: 10px; right: 10px; bottom: 165px; grid-template-columns: repeat(5, 1fr); }
  .hero-cta { left: 10px; right: 10px; bottom: 20px; width: auto; }
}

@media (max-width: 559px) {
  .page-shell { border: 0; }
  .panel { margin-left: 7px; margin-right: 7px; }
  h2 { padding-left: 42px; }
  .hero { min-height: 770px; padding-bottom: 330px; }
  .hero-copy { padding-left: 44px; }
  .hero h1 { font-size: clamp(1.92rem, 9vw, 2.65rem); }
  .hero-checks { grid-template-columns: 1fr; gap: 5px; }
  .merits { bottom: 150px; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .merits article { min-height: 82px; padding: 5px 2px; }
  .merits b { font-size: 1.35rem; }
  .merits span { font-size: .62rem; line-height: 1.15; }
  .cta-button { min-height: 58px; padding-left: 14px; padding-right: 46px; }
  .cta-button::after { right: 10px; width: 26px; height: 26px; }
  .hero-cta small { font-size: .75rem; }
  .icon-grid { grid-template-columns: 1fr; }
  .voice-grid article { grid-template-columns: 74px 1fr; }
  .avatar { width: 68px; height: 78px; }
}

/* Real photo integration. */
img {
  display: block;
  max-width: 100%;
}

.hero-visual img,
.photo-card img,
.wood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-house,
.hero-couple {
  position: absolute;
  display: block;
  border: 4px solid rgba(255, 250, 235, 0.95);
  box-shadow: 0 12px 24px rgba(63, 34, 12, 0.28);
}

.hero-house {
  top: 0;
  right: 205px;
  width: 470px;
  height: 262px;
  object-position: center;
  clip-path: polygon(5% 0, 100% 0, 100% 86%, 0 100%, 0 18%);
  filter: saturate(1.04) contrast(1.03);
}

.hero-couple {
  top: 45px;
  right: 12px;
  width: 340px;
  height: 435px;
  object-position: 50% 45%;
  border-radius: 22px 22px 0 0;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.22));
}

.termite-photo.large {
  display: block;
  right: 255px;
  top: 255px;
  width: 280px;
  height: 225px;
  margin: 0;
  border: 6px solid #fff4e0;
  background: #6c421f;
}

.termite-photo.large img {
  object-position: center;
}

.wood-card img {
  min-height: 132px;
  aspect-ratio: 1 / 1.18;
  object-position: center;
}

.wood-card.pillar img { object-position: 45% 50%; }
.wood-card.chips img { object-position: 50% 58%; }
.wood-card.termites img { object-position: center; }


.photo-card {
  min-height: 225px;
  margin: 0;
  overflow: hidden;
  border: 4px solid #fff3d7;
  border-radius: 9px;
  box-shadow: var(--shadow);
  background: #e9dcc7;
}

.inspector,
.consult,
.closing-photo {
  background: #e9dcc7;
  box-shadow: var(--shadow);
}

.inspector img { object-position: 25% 55%; }
.consult img { object-position: 52% 40%; }
.closing-photo img { object-position: 42% 45%; }

.photo-credit {
  margin: 0;
  padding: 2px 14px 8px;
  color: #8d7159;
  font-size: 0.68rem;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-house {
    right: auto;
    left: 38%;
    width: 350px;
    height: 210px;
    opacity: .55;
  }

  .hero-couple {
    top: 206px;
    right: 6px;
    width: 255px;
    height: 285px;
  }

  .termite-photo.large {
    left: 12px;
    right: auto;
    top: 350px;
    width: 220px;
    height: 185px;
  }
}

@media (max-width: 559px) {
  .hero-house {
    left: 28%;
    top: 88px;
    width: 300px;
    height: 185px;
  }

  .hero-couple {
    top: 292px;
    right: -16px;
    width: 225px;
    height: 260px;
  }

  .termite-photo.large {
    top: 440px;
    width: 180px;
    height: 155px;
  }

  .wood-card img {
    min-height: 120px;
  }
}

/* Requested cleanup and affiliate/photo refinements. */
h2,
.closing h2 {
  padding-left: 0;
}

.hero-copy {
  max-width: min(680px, calc(100% - 26px));
  padding: 20px clamp(16px, 3vw, 26px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 74%, rgba(255, 255, 255, 0.78) 100%);
  border: 2px solid rgba(237, 200, 129, 0.95);
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(76, 42, 15, 0.18);
  backdrop-filter: blur(2px);
}

.hero h1 {
  color: #17110d;
  text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(255, 255, 255, 0.7);
}

.hero h1 span {
  color: #b91d12;
}

.hero-copy .body-copy {
  color: #2d2119;
}

.hero-house {
  opacity: 0.86;
}

.hero-couple {
  opacity: 0.94;
}

.tracking-pixel {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.affiliate-offers {
  text-align: center;
}

.affiliate-offers h2 {
  text-align: center;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
  margin-top: 10px;
}

.affiliate-grid a {
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6c48c;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.affiliate-grid a:hover,
.affiliate-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 48, 14, 0.18);
}

.affiliate-grid img:not(.tracking-pixel) {
  width: min(300px, 100%);
  height: auto;
  border-radius: 6px;
}

.avatar,
.avatar.female,
.avatar.couple-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(#fff9ef, #f5ead8);
  border: 3px solid #e8c99a;
  box-shadow: inset 0 -4px 0 rgba(125, 79, 35, 0.09), 0 3px 8px rgba(78, 42, 13, 0.14);
}

.avatar::before,
.avatar.female::before,
.avatar.couple-icon::before {
  width: 42px;
  height: 42px;
  content: "";
  background:
    radial-gradient(circle at 50% 25%, #8a6248 0 11px, transparent 11.5px),
    radial-gradient(ellipse at 50% 88%, #8a6248 0 20px, transparent 20.5px);
}

@media (min-width: 560px) {
  .affiliate-grid {
    grid-template-columns: repeat(2, minmax(240px, 300px));
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: min(100%, 620px);
    padding-left: 18px;
  }
}

@media (max-width: 559px) {
  h2,
  .closing h2 {
    padding-left: 0;
  }

  .hero-copy {
    padding: 16px 14px;
  }

  .hero-house,
  .hero-couple {
    opacity: 0.44;
  }
}

/* Affiliate ranking, comparison guidance, and final visual fixes. */
.pr-label {
  margin: 0;
  padding: 8px 14px;
  color: #6a4a2e;
  font-size: 0.78rem;
  text-align: center;
  background: #fff2d0;
  border-bottom: 1px solid #e8c27f;
}

.hero {
  min-height: 680px;
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.98) 0 48%, rgba(255, 250, 238, 0.72) 58%, rgba(255, 250, 238, 0.2) 100%),
    linear-gradient(#cfe7f8 0 32%, #eef5f4 48%, #fff6df 100%);
}

.hero-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 12px;
  color: #fff;
  font-size: clamp(0.8rem, 2vw, 0.98rem);
  letter-spacing: 0.04em;
  background: #6d3e1b;
  border-radius: 999px;
}

.hero-copy {
  z-index: 6;
  background: rgba(255, 255, 255, 0.98);
  border: 3px solid #e7bd66;
}

.hero-visual {
  z-index: 1;
}

.hero-house {
  top: 8px;
  right: 0;
  width: 560px;
  height: 395px;
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.8);
  clip-path: none;
}

.hero-couple {
  top: 80px;
  right: 30px;
  width: 365px;
  height: 420px;
  opacity: 0.88;
  border: 6px solid rgba(255, 255, 255, 0.92);
}

.termite-photo.large {
  z-index: 2;
  right: 360px;
  top: 285px;
  width: 230px;
  height: 205px;
  opacity: 0.9;
}

.merits {
  z-index: 6;
  right: 500px;
  bottom: 24px;
}

.hero-cta {
  z-index: 7;
  right: 18px;
  bottom: 26px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #e7bd66;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(63, 34, 12, 0.18);
}

.hero-cta small {
  display: block;
  margin: 10px 0 0;
  padding: 7px 10px;
  color: #3b2a1c;
  background: #fff3d7;
  border-radius: 7px;
  text-shadow: none;
}

.quote-compare {
  background: linear-gradient(135deg, #fffdf6, #fff1d3);
}

.quote-steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quote-steps article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5c286;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(78, 42, 13, 0.08);
}

.quote-steps b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #d64b12;
  border-radius: 50%;
}

.work-gallery {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.work-gallery .photo-card {
  min-height: 210px;
}

.work-gallery figcaption {
  padding: 8px;
  color: #5b381c;
  font-size: .9rem;
  text-align: center;
  background: #fff9eb;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.ranking-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 2px solid #e8c27f;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.rank-1 {
  border-color: #f0a12c;
  background: linear-gradient(180deg, #fff9e8, #fff);
}

.rank-label {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 5px 11px;
  color: #fff;
  font-size: .85rem;
  background: #d64b12;
  border-radius: 999px;
}

.ranking-card h3 {
  margin: 0;
  color: #29170e;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.mini-points {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-points li {
  position: relative;
  padding-left: 22px;
  color: #4a3423;
  font-size: .92rem;
}

.mini-points li::before {
  position: absolute;
  left: 0;
  color: #4b9a43;
  content: "✓";
}

.ranking-text-link {
  display: inline-flex;
  justify-content: center;
  padding: 11px 14px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(#ff7b22, #e84b0b);
  border-radius: 8px;
  box-shadow: 0 4px 0 #a8320e;
  transition: transform .18s ease, filter .18s ease;
}

.ranking-text-link:hover,
.ranking-text-link:focus-visible {
  transform: translateY(2px);
  filter: brightness(1.05);
}

.banner-link {
  justify-self: center;
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6c48c;
  border-radius: 10px;
}

.banner-link img {
  width: min(300px, 100%);
  height: auto;
  border-radius: 6px;
}

.disclosure {
  color: #4d392b;
  background: #fffdf8;
}

.disclosure h2 {
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
}

.disclosure p {
  margin-bottom: 8px;
  font-size: .86rem;
  font-weight: 700;
}

@media (min-width: 560px) {
  .quote-steps,
  .work-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 920px) {
  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .ranking-card {
    grid-template-rows: auto auto 1fr auto auto;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
  }

  .hero-house {
    left: 0;
    right: auto;
    width: 100%;
    height: 275px;
    opacity: 0.22;
  }

  .hero-couple {
    top: 260px;
    right: 8px;
    width: 235px;
    height: 260px;
    opacity: 0.28;
  }

  .termite-photo.large {
    top: 430px;
    left: 12px;
    right: auto;
    width: 155px;
    height: 140px;
    opacity: 0.45;
  }

  .merits {
    left: 10px;
    right: 10px;
    bottom: 176px;
  }

  .hero-cta {
    left: 10px;
    right: 10px;
    bottom: 20px;
    width: auto;
  }
}

@media (max-width: 559px) {
  .hero {
    min-height: 850px;
  }

  .hero-couple {
    top: 360px;
    right: -20px;
    opacity: 0.18;
  }

  .termite-photo.large {
    top: 520px;
    opacity: 0.32;
  }

  .merits {
    bottom: 174px;
  }
}

.work-gallery .photo-card img {
  height: 180px;
}

/* Requested final adjustments. */
.hero-house,
.hero .termite-photo.large {
  display: none;
}

.hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, #fffaf0 0 62%, rgba(255, 250, 240, 0.74) 72%, rgba(255, 250, 240, 0.18) 100%),
    linear-gradient(#d9edf9, #fff6df);
}

.hero-copy {
  max-width: min(650px, 64%);
  margin-top: 20px;
}

.hero-couple {
  top: 48px;
  right: 28px;
  width: 390px;
  height: 430px;
  opacity: 0.72;
}

.cta-button,
.narrow {
  width: min(100%, 520px);
  min-height: 66px;
}

.hero-cta .cta-button,
.closing .cta-button {
  width: 100%;
}

.damage-gallery-two {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin-inline: auto;
}

.damage-gallery-two .wood-card img {
  min-height: 210px;
  aspect-ratio: 1.35 / 1;
}

.treatment-compare {
  background: linear-gradient(135deg, #fffdf8, #fff1d2);
}

.treatment-grid {
  display: grid;
  gap: 12px;
}

.treatment-grid article {
  padding: 14px;
  background: #fff;
  border: 1px solid #e5c286;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(78, 42, 13, 0.08);
}

.treatment-grid h3 {
  margin-bottom: 8px;
  color: #4a2b15;
  font-size: 1.12rem;
}

.treatment-grid p {
  margin: 0;
  color: #4d392b;
  font-size: .92rem;
}

.treatment-grid .recommended {
  border: 2px solid #f08b23;
  background: #fffaf0;
}

.treatment-grid .recommended h3::after {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  color: #fff;
  font-size: .78rem;
  content: "推奨";
  background: #d64b12;
  border-radius: 999px;
}

.avatar,
.avatar.female,
.avatar.couple-icon {
  overflow: hidden;
  background: #fff8ec;
}

.avatar::before,
.avatar.female::before,
.avatar.couple-icon::before {
  display: block;
  width: 34px;
  height: 34px;
  margin-top: 5px;
  background: #8a6248;
  border-radius: 50%;
}

.avatar::after,
.avatar.female::after,
.avatar.couple-icon::after {
  position: absolute;
  bottom: 8px;
  width: 48px;
  height: 28px;
  content: "";
  background: #8a6248;
  border-radius: 50% 50% 12px 12px;
}

@media (min-width: 560px) {
  .damage-gallery-two,
  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 675px;
  }

  .hero-copy {
    max-width: min(100%, 640px);
  }

  .hero-couple {
    top: 285px;
    right: 0;
    width: 250px;
    height: 260px;
    opacity: .16;
  }
}

@media (max-width: 559px) {
  .hero {
    min-height: 740px;
  }

  .damage-gallery-two .wood-card img {
    min-height: 170px;
  }
}

/* Disclosure subpage and policy link styles. */
.pr-label a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: #b73312;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-shell {
  min-height: 100vh;
  padding-bottom: 20px;
}

.disclosure-link {
  text-align: center;
}

.disclosure-link p {
  margin-bottom: 12px;
  color: #4d392b;
}

.disclosure-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.08;
}

.disclosure-page h2 {
  color: #4a2b15;
}

.disclosure-page p,
.policy-list li {
  color: #4d392b;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 700;
}

.policy-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 28px;
}

.policy-list li::before {
  position: absolute;
  left: 0;
  color: #4b9a43;
  content: "✓";
}

/* Final hero overlap and voice pictogram refinements. */
@media (min-width: 901px) {
  .hero {
    min-height: 760px;
  }
}

  .hero-copy {
    max-width: 600px;
    margin-top: 24px;
    padding: 22px 26px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 5.3vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
  }

  .hero-copy .body-copy {
    max-width: 560px;
    line-height: 1.55;
  }

  .hero-checks {
    max-width: 520px;
    gap: 7px 16px;
  }

  .merits {
    left: 26px;
    right: auto;
    bottom: 30px;
    width: 580px;
    gap: 8px;
  }
}

  .merits article {
    min-height: 96px;
    padding: 8px 4px;
  }

  .hero-cta {
    right: 20px;
    bottom: 32px;
    width: 410px;
  }
}

.voice-grid .avatar,
.voice-grid .avatar.female,
.voice-grid .avatar.couple-icon {
  position: relative;
  isolation: isolate;
  width: 78px;
  height: 78px;
  overflow: hidden;
  color: #6b4428;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 45%, rgba(247, 229, 198, 0.95) 46% 100%);
  border: 2px solid #d7aa62;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55), 0 5px 12px rgba(78, 42, 13, 0.14);
}

.voice-grid .avatar::before,
.voice-grid .avatar.female::before,
.voice-grid .avatar.couple-icon::before {
  position: absolute;
  top: 15px;
  left: 50%;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  content: "";
  background: currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.voice-grid .avatar::after,
.voice-grid .avatar.female::after,
.voice-grid .avatar.couple-icon::after {
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 48px;
  height: 28px;
  content: "";
  background: currentColor;
  border-radius: 999px 999px 18px 18px;
  transform: translateX(-50%);
}

.voice-grid .avatar.female {
  color: #9b5f44;
}

.voice-grid .avatar.couple-icon::before {
  box-shadow: -15px 5px 0 -3px currentColor, 15px 5px 0 -3px currentColor;
}

.voice-grid .avatar.couple-icon::after {
  width: 58px;
  clip-path: polygon(8% 100%, 18% 35%, 50% 12%, 82% 35%, 92% 100%);
}

@media (max-width: 559px) {
  .voice-grid .avatar,
  .voice-grid .avatar.female,
  .voice-grid .avatar.couple-icon {
    width: 68px;
    height: 68px;
  }
}

.wood-card.termite-real img {
  object-position: center;
}

/* 施工ステップ */
.work-steps {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.work-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5c286;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(78, 42, 13, 0.08);
}

.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  background: #d64b12;
  border-radius: 50%;
}

.work-steps strong {
  display: block;
  margin-bottom: 5px;
  color: #29170e;
  font-size: 1rem;
}

.work-steps p {
  margin: 0;
  color: #4d392b;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .work-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 星取表 */
.star-table { border-radius: 10px; }
.star-table thead th:first-child { background: #5a3518; }
.star-table thead th:nth-child(2) { background: #c95118; }
.star-table thead th:last-child { background: #6b6b6b; }
.star-table td { background: #fff; }
.star-table td:nth-child(2) { background: rgba(255, 238, 210, 0.55); }
.s3 { color: #e07a00; font-size: 1.15rem; letter-spacing: 2px; }
.s2 { color: #b09840; font-size: 1.15rem; letter-spacing: 2px; }
.s1 { color: #bbb; font-size: 1.15rem; letter-spacing: 2px; }

/* 施工ギャラリー 4列対応 */
@media (min-width: 560px) {
  .work-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .work-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ヒーロー写真 — モバイルで写真を先頭表示・デスクトップ写真列を拡張 */
@media (max-width: 759px) {
  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-photo {
    order: -1 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .hero-photo img {
    aspect-ratio: 4 / 3 !important;
    object-position: 55% 30% !important;
  }
  .hero-copy {
    background: rgba(255, 250, 238, 0.97) !important;
    border-top: 2px solid rgba(237, 200, 129, 0.7) !important;
  }
}
@media (min-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr 420px !important;
  }
}

/* お客様の声 SVGピクトグラム */
.avatar-svg {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  align-self: center;
  justify-self: center;
  padding: 10px;
  background: linear-gradient(160deg, #fff9ef, #f5ead8);
  border: 3px solid #e8c99a;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(78, 42, 13, 0.13);
}

@media (max-width: 559px) {
  .avatar-svg {
    width: 58px;
    height: 58px;
    padding: 8px;
  }
}

/* =========================================
   HERO SECTION — REDESIGN
   グリッドベースで絶対配置を廃止し、
   デスクトップ2カラム／モバイル1カラム構成に刷新
========================================= */

/* 旧絶対配置要素を無効化 */
.hero-visual,
.hero-house,
.hero-couple,
.termite-photo.large {
  display: none !important;
}

.hero {
  min-height: auto !important;
  padding: 0 !important;
  background: linear-gradient(150deg, #d2e9f7 0%, #e8f3f1 40%, #fef6de 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-copy {
  position: static !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 28px 22px 20px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-photo {
  display: block;
  overflow: hidden;
  margin: 0 16px 16px;
  border-radius: 14px;
  border: 4px solid rgba(255, 250, 235, 0.95);
  box-shadow: 0 10px 22px rgba(63, 34, 12, 0.22);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

/* CTAをフロー配置に */
.hero-cta {
  position: static !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 18px;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 2px solid #e7bd66 !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 14px rgba(63, 34, 12, 0.12) !important;
}

/* meritsをフロー配置に */
.merits {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  padding: 12px 16px 16px !important;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid #edc881;
}

/* デスクトップ: 2カラム */
@media (min-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr 360px;
    align-items: stretch;
    min-height: 460px;
  }

  .hero-copy {
    padding: 32px 28px 24px !important;
  }

  .hero-photo {
    margin: 0;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(237, 200, 129, 0.6);
    box-shadow: none;
    height: 100%;
  }

  .hero-photo img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 460px;
    object-position: 50% 18%;
  }
}

/* タブレット帯 */
@media (max-width: 759px) and (min-width: 560px) {
  .hero-photo {
    margin: 0 20px 16px;
  }

  .hero-photo img {
    aspect-ratio: 3 / 2;
  }
}

/* モバイル */
@media (max-width: 559px) {
  .hero-copy {
    padding: 20px 16px 16px !important;
  }

  .hero-photo {
    margin: 0 12px 12px;
    border-radius: 10px;
  }

  .hero-photo img {
    aspect-ratio: 3 / 4;
  }

  .merits {
    gap: 5px !important;
    padding: 10px 10px 12px !important;
  }

  .merits article {
    min-height: 80px !important;
    padding: 6px 2px !important;
  }

  .merits b {
    font-size: 1.25rem !important;
  }

  .merits span {
    font-size: 0.6rem !important;
  }
}
