/* トップページ(害虫駆除メディア)。色、角丸、影は都道府県ページと同じ体系 */
.hm-hero,
.hm-sec,
.cautionBox {
  --hm-accent: #c3213d;
  --hm-accent-hover: #a81b34;
  --hm-accent-deep: #8a152a;
  --hm-tint: rgba(195, 33, 61, .06);
  --hm-tint-2: rgba(195, 33, 61, .12);
  --hm-ink: #171717;
  --hm-ink-2: #262626;
  --hm-sub: #525252;
  --hm-muted: #737373;
  --hm-line: #e5e5e5;
  --hm-bg: #fafafa;
  --hm-sh-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --hm-sh-md: 0 4px 6px -1px rgba(0, 0, 0, .06), 0 2px 4px -2px rgba(0, 0, 0, .05);
  --hm-sh-lg: 0 14px 28px -8px rgba(0, 0, 0, .14), 0 6px 12px -6px rgba(0, 0, 0, .08);
  --hm-sh-accent: 0 6px 18px -4px rgba(195, 33, 61, .45);
  --hm-ease: cubic-bezier(.4, 0, .2, 1);
  font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--hm-sub);
  -webkit-font-smoothing: antialiased;
}

.hm-hero .material-icons,
.hm-sec .material-icons {
  font-size: 1em;
  line-height: 1;
  display: inline-flex;
  vertical-align: middle;
}

.hm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 共通の見出し */
.hm-sec {
  padding: 88px 0;
}

.hm-sec:nth-of-type(even) {
  background: var(--hm-bg);
}

.hm-head {
  margin-bottom: 36px;
}

.hm-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--hm-accent);
}

.hm-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hm-eyebrow--light {
  color: #ff8fa3;
}

.hm-title,
.hm-hero__title,
.hm-lead,
.hm-hero__lead {
  text-wrap: balance;
  word-break: auto-phrase;
}

.hm-title {
  margin: 0;
  padding: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--hm-ink);
  font-feature-settings: "palt";
}

.hm-title--light {
  color: #fff;
}

.hm-lead {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--hm-sub);
}

/* ボタン */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s var(--hm-ease), color .15s var(--hm-ease), border-color .15s var(--hm-ease), box-shadow .3s var(--hm-ease), transform .15s var(--hm-ease);
}

.hm-btn .material-icons {
  font-size: 20px;
}

.hm-btn--primary {
  color: #fff;
  background: var(--hm-accent);
  box-shadow: var(--hm-sh-accent);
}

.hm-btn--ghost {
  color: var(--hm-ink-2);
  background: #fff;
  border-color: var(--hm-line);
}

.hm-btn--light {
  color: var(--hm-ink);
  background: #fff;
}

@media (hover: hover) {
  .hm-btn--primary:hover {
    background: var(--hm-accent-hover);
    transform: translateY(-2px);
  }

  .hm-btn--ghost:hover {
    color: var(--hm-accent);
    border-color: rgba(195, 33, 61, .4);
  }

  .hm-btn--light:hover {
    transform: translateY(-2px);
  }
}

.hm-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--hm-tint-2);
}

/* ヒーロー */
.hm-hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--hm-bg) 100%);
}

.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 92% -10%, rgba(195, 33, 61, .12), transparent 65%),
    radial-gradient(620px 360px at -5% 110%, rgba(163, 168, 173, .18), transparent 70%);
  pointer-events: none;
}

.hm-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hm-hero__title {
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--hm-ink);
  font-feature-settings: "palt";
}

.hm-hero__lead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--hm-sub);
}

.hm-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 28px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-lg);
  scroll-margin-top: 24px;
}

.hm-search__field {
  position: relative;
  display: block;
  margin: 0;
}

.hm-search__field > .material-icons:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--hm-accent);
  pointer-events: none;
}

.hm-search__chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px !important;
  color: var(--hm-muted);
  pointer-events: none;
}

.hm-search select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 46px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-ink);
  background: var(--hm-bg);
  border: 1.5px solid var(--hm-line);
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s var(--hm-ease), box-shadow .15s var(--hm-ease);
}

.hm-search select:focus {
  outline: none;
  background: #fff;
  border-color: var(--hm-accent);
  box-shadow: 0 0 0 4px var(--hm-tint-2);
}

.hm-search__msg {
  min-height: 20px;
  margin: 8px 4px 0;
  font-size: 13px;
  color: var(--hm-accent-deep);
}

.hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-ink-2);
  text-decoration: none;
  background: rgba(255, 255, 255, .8);
  border: 1.5px solid var(--hm-line);
  border-radius: 9999px;
  transition: color .15s var(--hm-ease), border-color .15s var(--hm-ease);
}

.hm-chip .material-icons {
  font-size: 17px;
  color: var(--hm-accent);
}

@media (hover: hover) {
  .hm-chip:hover {
    color: var(--hm-accent);
    border-color: rgba(195, 33, 61, .4);
  }
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hm-stat {
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-md);
  backdrop-filter: blur(8px);
}

.hm-stat dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--hm-muted);
}

.hm-stat dd {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--hm-ink);
  font-variant-numeric: tabular-nums;
}

.hm-stat dd small {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--hm-sub);
}

.hm-stat--main {
  grid-column: 1 / -1;
}

.hm-stat--main dd {
  font-size: 44px;
}

.hm-stat--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 0%, #fdf1f3 100%);
  border-color: rgba(195, 33, 61, .14);
}

.hm-stat--wide dd {
  color: var(--hm-accent);
}

.hm-stat p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--hm-muted);
}

/* 季節 */
.hm-now {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

/* カードの枚数に合わせて列を決める(6枚=3列2段、5枚以下は1段)。最後の1枚だけ下に落ちない */
@media (min-width: 768px) {
  .hm-now[data-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-now[data-count="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hm-now[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-now[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hm-now__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: var(--hm-sub);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-md);
  transition: transform .3s var(--hm-ease), box-shadow .3s var(--hm-ease);
}

.hm-now__card.is-strong {
  background: linear-gradient(145deg, #c3213d 0%, #9c1a31 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, .86);
  box-shadow: var(--hm-sh-accent);
}

@media (hover: hover) {
  .hm-now__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hm-sh-lg);
  }
}

.hm-now__badge {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--hm-accent);
  background: var(--hm-tint);
  border-radius: 9999px;
}

.is-strong .hm-now__badge {
  color: var(--hm-accent);
  background: #fff;
}

.hm-now__icon {
  margin-top: 6px;
  font-size: 32px !important;
  color: var(--hm-accent);
}

.is-strong .hm-now__icon {
  color: #fff;
}

.hm-now__name {
  font-size: 19px;
  font-weight: 800;
  color: var(--hm-ink);
}

.is-strong .hm-now__name {
  color: #fff;
}

.hm-now__note {
  font-size: 13px;
  line-height: 1.7;
}

.hm-cal {
  margin-top: 28px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-sm);
}

.hm-cal:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--hm-tint-2);
}

.hm-cal table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 4px;
  padding: 12px;
}

.hm-cal caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hm-cal th {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-muted);
  text-align: center;
}

.hm-cal thead th.is-now {
  color: #fff;
  background: var(--hm-ink);
  border-radius: 8px;
}

.hm-cal tbody th {
  padding: 8px 12px 8px 4px;
  font-size: 13.5px;
  color: var(--hm-ink);
  text-align: left;
  white-space: nowrap;
}

.hm-cal tbody th a {
  color: inherit;
  text-decoration: none;
}

.hm-cal td {
  height: 30px;
  background: #f4f4f5;
  border-radius: 8px;
}

.hm-cal td.lv1 {
  background: #f6ccd4;
}

.hm-cal td.lv2 {
  background: var(--hm-accent);
}

/* スマホ: 季節カレンダーは横にスクロールさせず、画面幅に収める */
@media (max-width: 767px) {
  .hm-cal {
    max-width: 100%;
    overflow-x: visible;
  }

  .hm-cal table {
    min-width: 0;
    table-layout: fixed;
    border-spacing: 2px;
    padding: 8px 6px;
  }

  .hm-cal th {
    padding: 6px 0;
    font-size: 10px;
  }

  .hm-cal thead th:first-child {
    width: 66px;
  }

  .hm-cal tbody th {
    width: 66px;
    padding: 4px 2px 4px 2px;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-all;
  }

  .hm-cal td {
    height: 26px;
    border-radius: 5px;
  }
}


.hm-cal td.is-now {
  box-shadow: inset 0 0 0 2px var(--hm-ink);
}

.hm-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-muted);
}

.hm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hm-legend i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.hm-legend i.lv1 {
  background: #f6ccd4;
}

.hm-legend i.lv2 {
  background: var(--hm-accent);
}

.hm-legend__note {
  font-weight: 500;
}

/* 害虫ガイド */
/* 横スクロールのカルーセル(動きはpestcontrol/js/carousel.js) */
.hm-head__side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hm-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  margin: -10px -8px -12px;
  padding: 10px 8px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hm-carousel::-webkit-scrollbar {
  display: none;
}

.hm-carousel > * {
  scroll-snap-align: start;
}

.hm-carousel:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--hm-tint-2);
  border-radius: 22px;
}

.hm-carousel__nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.hm-carousel__nav[hidden] {
  display: none;
}

.hm-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--hm-ink-2);
  background: #fff;
  border: 1.5px solid var(--hm-line);
  border-radius: 50%;
  box-shadow: var(--hm-sh-sm);
  cursor: pointer;
  transition: color .15s var(--hm-ease), border-color .15s var(--hm-ease), background-color .15s var(--hm-ease), opacity .15s var(--hm-ease);
}

.hm-carousel__btn .material-icons {
  font-size: 24px;
}

@media (hover: hover) {
  .hm-carousel__btn:hover {
    color: #fff;
    background: var(--hm-accent);
    border-color: var(--hm-accent);
  }
}

.hm-carousel__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--hm-tint-2);
}

.hm-carousel__btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.hm-guide__grid {
  grid-auto-columns: calc((100% - 32px) / 3);
  align-items: stretch;
}

.hm-pest {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 22px;
  box-shadow: var(--hm-sh-md);
  scroll-margin-top: 24px;
  transition: box-shadow .3s var(--hm-ease);
}

.hm-pest:target {
  box-shadow: 0 0 0 3px rgba(195, 33, 61, .35), var(--hm-sh-lg);
}

.hm-pest__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hm-pest__icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  font-size: 26px !important;
  color: var(--hm-accent);
  background: var(--hm-tint);
  border-radius: 16px;
}

.hm-sec .hm-pest__name {
  margin: 0;
  padding: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--hm-ink);
}

.hm-pest__season {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-muted);
}

.hm-pest__season .material-icons {
  font-size: 14px;
}

.hm-pest__summary {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--hm-sub);
}

.hm-pest__legal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #7a4b00;
  background: #fff4dc;
  border-radius: 9999px;
}

.hm-pest__more {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.hm-pest__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-accent);
  cursor: pointer;
  list-style: none;
}

.hm-pest__more summary::-webkit-details-marker {
  display: none;
}

.hm-pest__more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--hm-ease);
}

.hm-pest__more[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.hm-pest__body {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.85;
}

.hm-pest__body p {
  margin: 0 0 12px;
}

.hm-sec .hm-pest__body h4 {
  margin: 14px 0 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--hm-ink);
}

.hm-pest__body ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.hm-pest__body li {
  margin: 2px 0;
  list-style: disc;
}

.hm-pest__links a {
  color: var(--hm-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hm-pest__products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--hm-bg);
  border-radius: 16px;
}

.hm-pest__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--hm-muted);
}

.hm-pest__pro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #fff 0%, #fdf1f3 100%);
  border: 1px solid rgba(195, 33, 61, .14);
  border-radius: 16px;
}

.hm-pest__pro .hm-pest__label {
  color: var(--hm-accent);
}

.hm-pest__pro .hm-pest__label .material-icons {
  font-size: 18px;
}

.hm-pest__pro p:last-child {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--hm-ink-2);
}

.hm-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  color: var(--hm-ink);
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  transition: box-shadow .15s var(--hm-ease);
}

.hm-mini img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.hm-mini strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.hm-mini em {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--hm-accent);
}

@media (hover: hover) {
  .hm-mini:hover {
    box-shadow: var(--hm-sh-md);
  }
}

.hm-pest__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hm-ink-2);
  text-decoration: none;
}

.hm-pest__cta .material-icons {
  font-size: 18px;
  color: var(--hm-accent);
  transition: transform .3s var(--hm-ease);
}

@media (hover: hover) {
  .hm-pest__cta:hover .material-icons {
    transform: translateX(3px);
  }
}

/* ショップ */
.hm-shop__grid {
  grid-auto-columns: calc((100% - 48px) / 4);
}

.hm-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--hm-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-md);
  transition: transform .3s var(--hm-ease), box-shadow .3s var(--hm-ease);
}

@media (hover: hover) {
  .hm-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-sh-lg);
  }
}

.hm-product__img {
  display: block;
  aspect-ratio: 1;
  background: #f4f4f5;
}

.hm-product__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.hm-product__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.hm-product__tag {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hm-accent);
  background: var(--hm-tint);
  border-radius: 9999px;
}

.hm-product__name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}

.hm-product__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--hm-accent);
}

.hm-product__price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--hm-muted);
}

/* 運営会社 */
.hm-about__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 48px;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(195, 33, 61, .45), transparent 70%),
    linear-gradient(145deg, #1f1f22 0%, #111113 100%);
  border-radius: 28px;
  box-shadow: var(--hm-sh-lg);
}

.hm-about__copy p {
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.95;
}

.hm-about__facts {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.hm-about__facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hm-about__facts div:last-child {
  border-bottom: 0;
}

.hm-about__facts dt {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
}

.hm-about__facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
}

/* サインから探す */
.hm-signs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hm-sign {
  display: flex;
  gap: 14px;
  padding: 20px;
  color: var(--hm-sub);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-md);
  transition: transform .3s var(--hm-ease), box-shadow .3s var(--hm-ease), border-color .3s var(--hm-ease);
}

@media (hover: hover) {
  .hm-sign:hover {
    transform: translateY(-3px);
    border-color: rgba(195, 33, 61, .2);
    box-shadow: var(--hm-sh-lg);
  }
}

.hm-sign__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  color: var(--hm-accent);
  background: var(--hm-tint);
  border-radius: 14px;
}

.hm-sign__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hm-sign__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--hm-ink);
}

.hm-sign__pest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hm-accent);
}

.hm-sign__pest .material-icons {
  font-size: 16px;
}

.hm-sign__text {
  font-size: 13px;
  line-height: 1.75;
}

/* 応急対応と相談窓口 */
.hm-aid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.hm-aid__card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 22px;
  box-shadow: var(--hm-sh-md);
}

.hm-sec .hm-aid__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--hm-ink);
}

.hm-aid__title .material-icons {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--hm-accent);
  background: var(--hm-tint);
  border-radius: 12px;
}

.hm-aid__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hmAid;
}

.hm-aid__steps li {
  position: relative;
  padding: 0 0 10px 32px;
  font-size: 14px;
  line-height: 1.75;
  list-style: none;
  counter-increment: hmAid;
}

.hm-aid__steps li::before {
  content: counter(hmAid);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  color: #fff;
  text-align: center;
  background: var(--hm-ink);
  border-radius: 50%;
}

.hm-aid__alert {
  display: flex;
  gap: 8px;
  margin: 6px 0 0;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  color: #8a152a;
  background: #fdecef;
  border-radius: 14px;
}

.hm-aid__alert .material-icons {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 18px;
  color: var(--hm-accent);
}

.hm-head--sub {
  margin: 56px 0 24px;
}

.hm-subtitle {
  margin: 0;
  padding: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--hm-ink);
}

.hm-consult {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hm-consult__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-sm);
}

.hm-consult__icon {
  margin-bottom: 6px;
  font-size: 28px !important;
  color: var(--hm-accent);
}

.hm-consult__topic {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-muted);
}

.hm-consult__where {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--hm-ink);
}

.hm-consult__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

/* 業者に頼むときの流れ(縦のタイムライン) */
.hm-flow__list {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 20px;
  padding-bottom: 16px;
  list-style: none;
}

.hm-flow__step:last-child {
  padding-bottom: 0;
}

.hm-flow__step::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(195, 33, 61, .55) 0%, rgba(195, 33, 61, .12) 100%);
}

.hm-flow__step:last-child::before {
  display: none;
}

.hm-flow__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #c3213d 0%, #9c1a31 100%);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--hm-sh-accent);
}

.hm-flow__card {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 18px;
  box-shadow: var(--hm-sh-md);
}

.hm-flow__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--hm-ink);
}

.hm-flow__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.85;
}

/* よくある質問 */
.hm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}

.hm-faq__item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 16px;
  box-shadow: var(--hm-sh-sm);
}

.hm-faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 52px 18px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--hm-ink);
  cursor: pointer;
  list-style: none;
}

.hm-faq__item summary::-webkit-details-marker {
  display: none;
}

.hm-faq__item summary::before {
  content: "Q";
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--hm-accent);
  border-radius: 50%;
}

.hm-faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--hm-muted);
  border-bottom: 2px solid var(--hm-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--hm-ease);
}

.hm-faq__item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.hm-faq__item p {
  margin: 0;
  padding: 0 20px 20px 60px;
  font-size: 14px;
  line-height: 1.9;
}

/* テーマの注目記事(高さ270px固定だと横長の画面で画像の文字が上下に切れる)。PCは画像の縦横比のまま表示する */
@media (min-width: 768px) {
  .key__item {
    height: auto;
    aspect-ratio: 1280 / 670;
  }
}

/* 既存の「業者選びで注意するポイント」を同じ見た目に */
.cautionBox {
  padding: 88px 0;
  background: var(--hm-bg);
}

.cautionBox .heading.heading-primary {
  margin: 0 0 24px;
  padding: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--hm-ink);
  border: 0;
}

.cautionBox .content {
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.95 !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: var(--hm-sh-md);
}

.cautionBox__link-container {
  margin-top: 24px;
}

.cautionBox .cautionBox__link-container a.kokusen-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  margin: 0;
  padding: 0 26px 0 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--hm-ink);
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--hm-line);
  border-radius: 16px;
  box-shadow: var(--hm-sh-md);
  transition: color .15s var(--hm-ease), border-color .15s var(--hm-ease), box-shadow .3s var(--hm-ease), transform .15s var(--hm-ease);
}

.cautionBox .cautionBox__link-container a.kokusen-link::before,
.cautionBox .cautionBox__link-container a.kokusen-link::after {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.cautionBox .cautionBox__link-container a.kokusen-link::before {
  content: "support_agent";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
  color: #fff;
  background: var(--hm-accent);
  border-radius: 10px;
}

.cautionBox .cautionBox__link-container a.kokusen-link::after {
  content: "open_in_new";
  font-size: 18px;
  color: var(--hm-accent);
}

@media (hover: hover) {
  .cautionBox .cautionBox__link-container a.kokusen-link:hover {
    color: var(--hm-accent);
    border-color: rgba(195, 33, 61, .4);
    box-shadow: var(--hm-sh-lg);
    transform: translateY(-2px);
  }
}

/* レスポンシブ */
@media (max-width: 991px) {
  .hm-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hm-guide__grid {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .hm-shop__grid {
    grid-auto-columns: calc((100% - 32px) / 3);
  }

  .hm-signs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-aid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-consult {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-about__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px;
  }
}

@media (max-width: 767px) {
  .hm-sec,
  .cautionBox {
    padding: 64px 0;
  }

  .hm-hero {
    padding: 44px 0 56px;
  }

  .hm-hero__lead {
    font-size: 15px;
  }

  .hm-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
  }

  .hm-search__field {
    grid-column: 1 / -1;
  }

  .hm-btn {
    height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hm-stat {
    padding: 18px;
  }

  .hm-stat dd {
    font-size: 28px;
  }

  .hm-stat--main dd {
    font-size: 36px;
  }

  .hm-now {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hm-now__card {
    padding: 16px;
    border-radius: 16px;
  }

  .hm-now__icon {
    font-size: 26px !important;
  }

  .hm-now__name {
    font-size: 16px;
  }

  .hm-now__note {
    font-size: 12px;
  }

  .hm-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hm-guide__grid {
    grid-auto-columns: 86%;
  }

  .hm-pest {
    padding: 20px;
  }

  .hm-shop__grid {
    grid-auto-columns: 62%;
    gap: 12px;
  }

  .hm-carousel__nav {
    display: none;
  }

  .hm-head__side {
    width: 100%;
  }

  .hm-signs__grid,
  .hm-consult {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hm-sign,
  .hm-aid__card,
  .hm-consult__item {
    padding: 18px;
  }

  .hm-flow__step {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
  }

  .hm-flow__step::before {
    left: 20px;
    top: 42px;
  }

  .hm-flow__num {
    width: 42px;
    height: 42px;
    font-size: 13px;
    border-width: 3px;
  }

  .hm-flow__card {
    padding: 16px 18px;
  }

  .cautionBox .cautionBox__link-container a.kokusen-link {
    width: 100%;
    justify-content: center;
  }

  .hm-product__body {
    padding: 12px 14px 14px;
  }

  .hm-product__name {
    font-size: 13px;
  }

  .hm-about__panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .hm-about__facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .hm-faq__item summary {
    padding: 16px 44px 16px 16px;
    font-size: 14.5px;
  }

  .hm-faq__item p {
    padding: 0 16px 18px;
  }

  .cautionBox .content {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn,
  .hm-now__card,
  .hm-product,
  .hm-pest {
    transition: none;
  }
}
