/* ---------------------------------FV---------------------------------
------------------------------------------------------------------ */

.fv-container {
  /* 重ね合わせるための基準 */
  position: relative;
  /* 親のmax-width: 85%を無視して画面いっぱいに */
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  overflow-x: hidden;
  /* 横スライドを防ぐ */
}

.fv-image {
  /* 親要素いっぱいに広げる */
  width: 100%;
  height: auto;
  /* 画像の比率を保つ */
  display: block;
}

/* 上側: h1 */
.fv-text-top {
  position: absolute;
  top: 25%;
  left: 10%;
}

.fv-text_Time {
  font-size: 32px;
}

/* 中側: 電話番号・受付時間 */
.fv-text-bottom {
  position: absolute;
  bottom: 30%;
  left: 10%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 下側: お問い合わせボタン */
.fv-text-contact {
  position: absolute;
  bottom: 15%;
  left: 10%;
}

/* 電話番号 */
.fv-text_Tel {
  color: #4ba6a7;
  font-size: 48px;
  font-weight: bold;
}

/* お問い合わせ */
.fv-text_Time {
  color: #213e3c;
  font-size: 32px;
}

/* ---------------------------------FV終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------サービス---------------------------------
------------------------------------------------------------------ */

/* サービスセクション全体 */
.top-service-section {
  margin-bottom: 60px;
  position: relative;
  /* 絶対配置の基準 */
}

/* グリッド: 3列 */
.top-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  /* サービスページと統一 */
  max-width: 80%;
  margin: 0 auto;
}

/* カード本体 */
.top-service-card {
  position: relative;
  display: flex;
  min-height: 240px;
  /* サービスページと統一（縦長に） */
  border: 2px solid #cdebea;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  margin-bottom: 45px;
  /* サービスページと統一 */
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

/* カードリンク */
.top-service-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* ホバー時の効果 */
.top-service-card-link:hover~.top-service-card,
.top-service-card:has(.top-service-card-link:hover) {
  box-shadow: 0 4px 12px rgba(95, 196, 197, 0.3);
  background: linear-gradient(135deg, #f0fffe 0%, #e8fffd 100%);
  transform: translateY(-2px);
}

/* 左側のテキストエリア */
.top-service-text-area {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 12px 14px;
  padding-right: 32%;
}

.top-service-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #213e3c;
}

.top-service-card-text {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

/* 右側画像エリア(斜めカット) */
.top-service-image-area {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-color: #d9d9d9;
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
}

/* 斜切マスク */
.top-service-image-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #d9d9d9;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

/* サービスの写真 */
.top-service-image-house::before {
  background-image: url("../img/cockroach1.png");
  background-size: cover;
  background-position: center;
}

.top-service-image-office::before {
  background-image: url("../img/Grease-filter2.png");
  background-size: cover;
  background-position: 70%;
}

.top-service-image-mansion::before {
  background-image: url("../img/image-gomi.png");
  background-size: cover;
  background-position: center;
}

.top-service-image-store::before {
  background-image: url("../img/image-office.png");
  background-size: cover;
  background-position: 70%;
}

/* SVGリンクを右寄せ（お問い合わせセクションと同じ方式） */
.top-service-section a {
  position: absolute;
  right: 7%;
  /* 右からの距離（調整可能） */
  bottom: -15%;
  /* 下からの距離（調整可能） */
}

/* ---------------------------------サービス終わり---------------------------------
------------------------------------------------------------------ */
/* ---------------------------------選ばれる理由---------------------------------
------------------------------------------------------------------ */

#reasons {
  padding-top: 1px;
  /* サービスボタンとの間隔 */
}

.Top_service_flow {
  display: flex;
  gap: 40px;
  /* Add spacing between items */

  max-width: 95%;
  /* Increased from 90% to give more overall width */
  margin: 0 auto;
  margin-bottom: 20px;
}

.Top_service_flow_item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* アイコンは中央揃え */
}

.Top_service_flow_p {
  font-size: 16px;
  width: 100%;
  /* 親要素の幅いっぱいに広げる */
  text-align: center;
  /* テキストは中央揃え */
  padding-top: 20px;
}

.Top_service_flow_tit {
  font-size: 18px;
  font-weight: 700;
  padding-top: 10px;
}

/* ---------------------------------選ばれる理由終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------サービスの流れ---------------------------------
------------------------------------------------------------------ */

.Top_service-flow-title {
  color: #4ba6a7;
}

/*--------------------------------- バックグラウンド背景---------------------------------
------------------------------------------------------------------*/
.step-bg1 {
  position: absolute;
  width: 230px;
  height: 230px;
  background-image: url("../img/Step_BG1.svg");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  /* 文字の後ろに配置 */
  top: -75%;
  /* 上に移動（この値を調整可能） */
  left: -30%;
  /* 左に移動（この値を調整可能） */
}

.step-bg2 {
  position: absolute;
  width: 230px;
  height: 230px;
  background-image: url("../img/Step_BG2.svg");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  /* 文字の後ろに配置 */
  top: 15%;
  /* 上からの距離（調整可能） */
  right: -7%;
  /* 右からの距離（調整可能） */
}

.step-bg3 {
  position: absolute;
  width: 1200px;
  /* 大画面では大きく表示（調整可能） */
  height: 600px;
  /* 比率を保つ（調整可能） */
  max-width: 100vw;
  /* 画面幅を超えないようにする */
  background-image: url("../img/Step_BG3.svg");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  /* 文字の後ろに配置 */
  top: 10%;
  /* 上からの距離（調整可能） */
  left: 70%;
  /* 左から50%の位置 */
  transform: translate(-50%, -50%);
  /* 要素自体の中心を基準に中央配置 */
}

@media screen and (max-width: 1675px) {
  .step-bg1 {
    width: 190px;
    height: 190px;
    top: -50%;
    left: -20%;
  }

  .step-bg2 {
    width: 190px;
    height: 190px;
    top: 10%;
    right: -5%;
  }

  .step-bg3 {
    width: 1000px;
    height: 500px;
    top: 5%;
    left: 60%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 1425px) {
  .step-bg1 {
    top: -50%;
    left: -5%;
  }

  .step-bg2 {
    top: 10%;
    right: -7%;
  }

  .step-bg3 {
    top: 5%;
    left: 60%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 1191px) {
  .step-bg1 {
    width: 160px;
    height: 160px;
    top: -50%;
    left: -5%;
  }

  .step-bg2 {
    width: 160px;
    height: 160px;
    top: 10%;
    right: -7%;
  }

  .step-bg3 {
    width: 800px;
    height: 400px;
    top: 5%;
    left: 65%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 1051px) {
  .step-bg1 {
    width: 125px;
    height: 125px;
    top: -50%;
    left: -5%;
  }

  .step-bg2 {
    width: 125px;
    height: 125px;
    top: 10%;
    right: -7%;
  }

  .step-bg3 {
    width: 550px;
    height: 250px;
    top: 5%;
    left: 65%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 768px) {
  .step-bg1 {
    display: none;
  }

  .step-bg2 {
    display: none;
  }

  .step-bg3 {
    display: none;
  }
}

/*--------------------------------- バックグラウンド背景終わり---------------------------------
------------------------------------------------------------------*/
.step {
  position: relative;
  /* 子要素の絶対配置の基準 */
  display: flex;
  justify-content: space-between;
  margin-top: 123px;
}

.service-flow-section {
  width: 90%;
  margin: 0 auto;
  /* max-width controlled by children possibly, or add container class */
}

.step-bold {
  font-weight: bold;
}

.service-flow-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.step-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Assign Grid Areas */
.area-step1-text {
  grid-area: step1-text;
}

.area-step1-img {
  grid-area: step1-img;
}

.area-step2-img {
  grid-area: step2-img;
}

.area-step2-text {
  grid-area: step2-text;
}

.area-step3-text {
  grid-area: step3-text;
}

.area-step3-img {
  grid-area: step3-img;
}

.area-step4-img {
  grid-area: step4-img;
}

.area-step4-text {
  grid-area: step4-text;
}

/* Image Styles */
.step-image img {
  width: 75%;
  height: auto;
  display: block;
}

/* Right align images for Step 1 and Step 3 */
.area-step1-img img,
.area-step3-img img {
  margin-left: auto;
}

/* Text Styles */
.step-text {
  position: relative;
  /* 子要素の絶対配置の基準 */
}

.step-text h3 {
  color: #4ba6a7;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.step-text p {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
}

/* Specific styling for Step 1 Contact Info */
/* Specific styling for Step 1 Contact Info */
.step-contact-info {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  /* Align top of label and number */
  gap: 15px;
  /* Reduced gap to fit in column */
  flex-wrap: nowrap;
  /* Force side-by-side */
}

.contact-label {
  font-weight: bold;
  font-size: 15px;
  /* Slightly smaller to help fit */
  line-height: 1.4;
  margin-bottom: 0;
  white-space: nowrap;
  /* Prevent label from breaking awkwardly if possible */
}

.contact-label span {
  font-weight: normal;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.contact-number-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tel-number {
  font-size: 32px;
  /* Adjusted from 38px to fit in the layout */
  font-weight: bold;
  color: #213e3c;
  line-height: 1.2;
  white-space: nowrap;
}

.area-list {
  font-size: 12px;

  line-height: 1.5;
}

/* Step 3 Highlight Box */

.text-highlight-box {
  position: relative;
}

.text-highlight-box p {
  margin-bottom: 0;
}

/* .area-step3-text .text-highlight-box::before {
  Optional: T icon or similar if strictly needed...
} */

/* Step 4 Bold Highlight color matches title? */
.step-text strong {
  font-weight: bold;
  /* color: #213E3C; */
  /* Inherit black or set specific? keeping standard */
}

.step4 {
  margin-bottom: 60px;
}

/* PC表示の時はスマホ用の改行を非表示 */
.mobile-br {
  display: none;
}

/* ---------------------------------サービスの流れ終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------要注意---------------------------------
------------------------------------------------------------------ */

.warning-section {
  padding: 60px 0;
  width: 100%;
  /* Occupy full parent width */
}

.warning-container {
  /* Frame style */
  border: 2px solid #afe3e0;
  border-radius: 30px;
  padding: 40px 5%;
  width: 100%;
  margin: 0 auto;
}

.h2-top-warning {
  text-align: center;
  color: #eda383;

  grid-column: 1 / -1;
  /* Ensure title spans full width if in grid */
}

.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 equal columns */
  gap: 30px;
}

/* Card Styling */
.warning-card {
  background: #fff;
  border: 3px solid #afe3e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.warning-card-img img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

.warning-card-content {
  padding: 20px;
}

.warning-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.warning-tag {
  background-color: #afe3e0;
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
}

.warning-date {
  font-size: 13px;
  color: #888;
}

.warning-title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: bold;
  color: #213e3c;
  margin: 0;
}

.warning-button {
  display: flex;
  justify-content: flex-end;
  padding-top: 5%;
  padding-right: 3%;
}

/* ---------------------------------要注意終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------Top-1300px---------------------------------
------------------------------------------------------------------ */
@media screen and (max-width: 1300px) {

  /* fv */
  .fv-text_Tel {
    font-size: 34px;
  }

  .fv-text_Time {
    font-size: 26px;
  }

  /* サービスの流れ */
  .step-text h3 {
    font-size: 20px;
  }

  .step-image img {
    width: 65%;
  }

  .step-text p {
    font-size: 16px;
  }

  /* 要注意 */

  .warning-container {
    width: 85%;
  }

  .warning-container {
    padding: 20px 5%;
  }

  /* フッター */
  .warning-card {
    font-size: 16px;
  }
}

/* ---------------------------------Top-1300px終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------Top-1024px---------------------------------
------------------------------------------------------------------ */

@media screen and (max-width: 1024px) {
  /* 選ばれる理由 */

  .Top_service_flow_p {
    font-size: 14px;
  }

  .step-image img {
    width: 55%;
  }

  /* サービスの流れ */
}

/* ---------------------------------TOP-768px以下---------------------------------
------------------------------------------------------------------ */

@media screen and (max-width: 768px) {

  /* サービスカードを縦並びに */
  .top-service-grid {
    grid-template-columns: 1fr;
    /* 1列に */
    gap: 5px;
    /* カード間の隙間を小さく */
    max-width: 77%;
    /* サービスページと同じ幅に */
  }

  .top-service-card {
    min-height: 200px;
    margin-bottom: 15px;
    /* 下マージンを小さく */
  }

  /* fv */
  .fv-image {
    content: url("../img/SP_FV.jpg");
    /* スマホ用画像に切り替え */
  }

  .fv-text_Tel {
    font-size: 20px;
  }

  .fv-text_Time {
    font-size: 18px;
  }

  /* 電話番号と受付時間の位置を修正 */
  .fv-text-bottom {
    bottom: auto;
    top: 37%;
  }

  /* 選ばれる理由 - スマホ対応 */
  .Top_service_flow {
    flex-direction: column;
    /* 縦並びに変更 */
    align-items: center;
    /* 中央揃え */
    gap: 40px;
    /* アイテム間の余白 */
  }

  .Top_service_flow_item {
    width: 100%;
    /* 幅を100%に */
    max-width: 400px;
    /* 最大幅を設定（見やすさのため） */
  }

  .Top_service_flow_p {
    font-size: 16px;
    /* スマホ用にフォントサイズ調整 */
  }

  /* サービスの流れ */
  .step {
    flex-direction: column;
    /* 縦並びに変更 */
  }

  /* 画像を中央揃え */
  .step-image {
    order: -1;
    /* 画像を常に上に表示 */
    width: 100%;
    align-items: center;
  }

  .step-image img {
    width: 25%;
    /* スマホ用に画像サイズ調整 */
    margin: 0 auto;
    /* 中央揃え */
  }

  /* 画像の左右揃えを解除 */
  .area-step1-img img,
  .area-step3-img img {
    margin-left: auto;
    margin-right: auto;
  }

  /* テキストエリア */
  .step-text {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 要素を中央に配置 */
  }

  .step-text h3 {
    font-size: 20px;
    text-align: center;
  }

  .step-text p {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    /* テキストは左揃え */
    max-width: 90%;
    /* 幅を制限して中央に配置 */
  }

  /* STEP 1 お問い合わせ情報 */
  .step-contact-info {
    flex-direction: column;
    align-items: flex-start;
    /* 左揃えに変更 */
    text-align: left;
    /* 左揃えに変更 */
    gap: 10px;
    width: 100%;
    /* 幅を100%に変更 */
    padding-left: 21%;
    /* 左側に余白を追加 */
  }

  .contact-label {
    text-align: left;
    /* 左揃えに変更 */
  }

  .contact-number-area {
    align-items: flex-start;
    /* 左揃えに変更 */
  }

  .tel-number {
    font-size: 24px;
  }

  .area-list {
    font-size: 11px;
    text-align: left;
    /* 左揃えに変更 */
  }

  /* PC用の改行をスマホで無効化 */
  .pc-br {
    display: none;
  }

  /* スマホ用の改行を表示 */
  .mobile-br {
    display: inline;
  }

  /* 要注意セクション - スマホ対応 */
  .warning-grid {
    grid-template-columns: 1fr;
    /* 1列に変更 */
    gap: 20px;
    /* カード間の余白を調整 */
  }

  .warning-card {
    border: 3px solid #afe3e0 !important;
    /* 枠線を強制表示 */
  }

  .warning-card-img img {
    height: 200px;
  }



  .warning-container {
    width: 100%;
    /* 85% -> 80% (外枠をさらに縮める) */
    padding: 30px 4%;
  }

  .warning-button {
    display: flex;
    padding-top: 20px;
  }

  .warning-button svg {
    margin-left: auto;
    /* 右寄せ */
    margin-right: 10px;
    /* 右からの距離（調整可能） */
  }

  /* SVGリンクを右寄せ（お問い合わせセクションと同じ方式） */
  .top-service-section a {
    bottom: -7%;
    /* 下からの距離（調整可能） */
  }
}

/* /---------------------------------TOP-768px終わり--------------------------------- */

@media screen and (max-width: 650px) {
  .step-contact-info {
    width: 100%;
    padding-left: 16%;
  }

  .warning-container {
    width: 90%;
  }
}

@media screen and (max-width: 500px) {
  .step-contact-info {
    width: 100%;
    padding-left: 7%;
  }

  .warning-container {
    width: 90%;
  }
}

/* ---------------------------------TOP-460px以下---------------------------------
------------------------------------------------------------------ */

@media screen and (max-width: 460px) {
  /* 要注意 */

  .warning-container {
    padding: 20px 5%;
  }

  .warning-container {
    width: 90%;
  }

  .step-contact-info {
    width: 100%;
    padding-left: 5%;
  }
}

/* ---------------------------------TOP-430px以下終わり---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------TOP-375px以下---------------------------------
------------------------------------------------------------------ */

/* ---------------------------------TOP-375px以下終わり---------------------------------
------------------------------------------------------------------ */