.scroll-to-top-btn-sp {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8); /* ボタン全体�E背景 */
  border-radius: 50%;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: bold;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 10px;
  transition: background-color 0.3s, color 0.3s;
}

.scroll-to-top-btn-sp::before {
  content: "";
  position: absolute;
  inset: 0; /* 全体を要E�� */
  border-radius: 50%;
  padding: 2px; /* ボ�Eダー幁E*/
  background: linear-gradient(90deg, #5c1816, #a16462);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1; /* 中身に影響しなぁE��ぁE��面へ */
}

.scroll-to-top-btn-sp .label {
  background: linear-gradient(90deg, #5c1816 0%, #a16462 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-section-sp {
  padding: 20px 20px;
}

.scroll-to-top-btn-sp .arrow {
  font-size: 14px;
  margin-top: 2px;
  width: 15px;
}

.scroll-to-top-btn-sp:hover {
  background-color: #e9e9e9;
}
.top-image-sp {
  width: 100%;
}

#about-sp .top-image-sp {
  width: calc(100% - 20px); /* ✁E全体�E幁E��めE0px引く */
  margin-left: 20px; /* ✁E左に20pxの余白 */
  display: block; /* ✁Eimgがinlineなら追加 */
}

.banner-swiper {
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
}

.repair-swiper .swiper-wrapper {
  overflow: visible;
}

.banner-swiper .swiper-slide {
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s;
  width: 250px;
}

.banner-swiper img {
  width: 100%; /* 画像�E横幁E��スライドに合わせる */
  height: auto;
  display: block;
  margin: 0 auto;
}

.banner-section-sp {
  margin-top: 30px;
}

.banner-button-wrap-sp {
  text-align: center;
  margin: 20px 0 0;
  font-weight: 500;
}

.banner-button-wrap-search {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 他要素より前に出ぁE*/
  padding: 10px 0; /* 任意：�Eタン上下に余白 */
  text-align: center;
}
.more-icon-search {
  width: 40px;
  height: 40px;
  background-color: #970708;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-icon-search img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.more-button-search {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(to right, #b32223, #e06364);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  padding: 5px 6px;
  min-width: 340px;
}

.more-button-search-popup {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(to right, #5c1816, #a16462);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  padding: 6px;
  height: 50px;
  width: 280px;
}

.more-button-sp {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  background: linear-gradient(to right, #b32223, #e06364);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  padding: 0 5px;
  width: 300px;
  height: 50px;
  margin-bottom: 50px;
}

.more-icon-sp {
  width: 40px;
  height: 40px;
  background-color: #970708;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-icon-sp img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.more-label-sp {
  padding: 0 24px;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.more-label-search {
  padding: 0 24px;
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}

#service-sp {
  background: url("../images/top/service/BG-sp.png") no-repeat center top;
  background-size: 100%;
  background-color: #f5f5f5;
}

/* SP版サービス一覧スタイル (/serviceページと同じ) */
#service-sp .service-category-title {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #b32223;
  border-bottom: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 6px,
      transparent 6px,
      transparent 12px
    )
    100% 1;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#service-sp .service-category {
  padding-left: 24px;
  padding-right: 24px;
}

#service-sp .service-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px 10px;
}

#service-sp .service-item {
  background: #fff;
  border: 1px solid #b32223;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  display: block;
  text-decoration: none;
}

#service-sp .service-item-thumbnail {
  width: 100%;
  object-fit: cover;
  display: block;
  height: auto;
  aspect-ratio: 1/1;
}

#service-sp .service-item-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #5c1816;
  padding: 0 6px;
  margin: 0;
  min-height: 40px;
}

#service-sp .service-item-title::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url(../images/icons/arrow.png) no-repeat center center;
  background-size: contain;
  margin-left: 6px;
}

#service-sp .full-support-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 6px;
  background-color: #b32223;
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  line-height: 1;
  margin-bottom: 0;
  margin-top: 1px;
  width: 80px;
  height: 14px;
  text-align: center;
}

#service-sp .service-items.partial-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px 10px;
  margin-top: 20px;
  padding: 20px;
  border-top: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 6px,
      transparent 6px,
      transparent 12px
    )
    100% 1;
}

#service-sp .service-items .service-item {
  text-decoration: none;
  margin-bottom: 0;
}

#service-sp .service-items .service-item p {
  text-decoration: none;
}

#service-sp .partial-support .service-item {
  text-decoration: none !important;
  color: inherit !important;
}

#service-sp .partial-support .service-item * {
  text-decoration: none !important;
}

.section-subtitle-sp {
  color: #b32223;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 6px;
  margin-bottom: 0;
  font-family: "Zen Old Mincho", serif;
}

.section-title-sp {
  font-size: 48px;
  color: #b32223;
  font-weight: 700;
  margin: 0 0;
  letter-spacing: 12px;
  font-family: "Zen Old Mincho", serif;
}

.section-description-sp {
  font-size: 16px;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 32px;
  font-weight: 500;
}

.category-label-wrap {
  display: block; /* 👈 チE��スト＋バチE��幁E��合わせる */
  margin: 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #b32223;
}

.category-label-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title {
  color: #b32223;
  font-weight: 500;
  font-size: 20px;
}

.category-badge {
  background-color: #b32223;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.service-swiper {
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
  z-index: 1000;
}

.service-swiper .swiper-slide {
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s;
  width: 250px;
  background-color: #f5f5f5;
}

.service-swiper img {
  width: 100%; /* 画像�E横幁E��スライドに合わせる */
  height: auto;
  display: block;
  margin: 0 auto;
}

#service.service-swiper img {
  width: 100%; /* 画像�E横幁E��スライドに合わせる */
  height: 180px;
  display: block;
  margin: 0 auto;
}

.service-text-sp {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 20px;
}

#repair-sp .section-title-sp {
  font-size: 36px;
  letter-spacing: 7px;
}

#about-sp {
  background: url("../images/top/about/sp/BG-sp.png") no-repeat center top;
  background-size: 100% 100%;
}

#about-sp .section-subtitle-sp {
  font-size: 16px;
  letter-spacing: 5px;
}
#about-sp .section-title-sp {
  font-size: 32px;
  letter-spacing: 5px;
  line-height: 54px;
}
#about-sp .service-text-sp {
  font-size: 16px;
  line-height: 36px;
  letter-spacing: 2px;
}

#info-sp {
  background: url("../images/top/info/sp/BG-sp.png") no-repeat center top;
  background-size: 100% 100%;
}

#info-sp .section-title-sp {
  font-size: 40px;
  letter-spacing: 12px;
  line-height: 54px;
  padding-bottom: 20px;
}

#info-sp .info-item {
  padding: 18px 0;
  gap: 10px;
  font-weight: 500;
}
#info-sp .info-text {
  font-size: 16px;
}
#info-sp .info-list {
  margin: 0 20px;
}

#info-sp .info-date-sp {
  font-size: 16px;
}

#info-sp .info-label {
  font-size: 14px;
  width: 110px;
  text-align: center;
  height: 23px;
  padding: 0;
}

/* ポップアチE�E背景 */
.search-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* ポップアチE�E本佁E*/
.search-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  will-change: transform;
}

.search-popup,
.search-popup * {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.search-popup .popup-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #5c1816;
}

.popup-button.current-location {
  background-color: #7b1919;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-select-wrap {
  position: relative;
  z-index: 1000;
  width: 100%;
  font-weight: 400;
}

.popup-select {
  position: relative;
  z-index: 10;
  background-color: #fff;
  padding: 8px 12px;
  appearance: menulist;
  -webkit-appearance: menulist-button;
  -moz-appearance: menulist;
  transform: none !important; /* ←これでtransformの影響を打ち消す */
}

.popup-select,
.popup-input {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid #5c1816;
  border-radius: 6px;
  font-size: 16px;
  color: #5c1816;
  padding: 0;
}

.popup-search-button {
  background: linear-gradient(to bottom, #b32223, #813030);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.coming-soon-text {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .swiper-wrapper {
    margin: 20px 0 20px;
  }
  .service-footer-notes {
    margin-bottom: 0;
  }
}

.banner-button-wrap-search {
  display: none;
}

@media screen and (max-width: 768px) {
  .banner-button-wrap-search {
    display: block;
  }
  .search-popup .more-icon-search {
    background-color: #410504;
  }
}

/* トップページ修理事例スライドの修理カテゴリー・作業カテゴリーを縦並びに */
.repair-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  gap: 5px;
}