@charset "UTF-8";
/* ヘッダー画像======================================== */
@media screen and (min-width: 960px) {
  #sub_top.service {
    background-image: url(../images/sub_top.jpg);
  }
}
@media screen and (max-width: 960px) {
  #sub_top.service {
    background-image: url(../images/sub_top_sp.jpg);
  }
}
/* obi======================================== */
.obi_001 {
  background-image: url(../images/house_top.jpg);
}
/* フローチャート======================================== */
.flow-chart {
  margin: 0 auto;
  margin-top: 2em;
  width: 90%;
}

.step {
  display: flex;
  align-items: center;
  background: #f5f0e1;
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-label {
  flex-shrink: 0;
  font-weight: bold;
  color: #111;
  margin-right: 20px;
  white-space: nowrap;
}

.step-content {
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.step-content::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -31px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 25px 25px 0 0;
  border-color: #f5f0e1 transparent transparent transparent;
}

.content h3 {
  width: 13em;
  display: inline-block;
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 0;
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-right: 10px;
  padding-bottom: 0;
  padding-left: 0;
  font-weight: 700;
  color: #a68a56;
  clear: both;
  letter-spacing: 0.05em;
}
.content h3::after {
  display: none;
}

.content .iedukuri p {
  display: inline-block;
  text-align: justify;
  padding: 0px;
  margin-bottom: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-left: 0px;
}

.bg_c9b781 {
  background-color: #c9b781;
}
.bg_e8dba2 {
  background-color: #e8dba2;
}
.bg_c9b781 .step-content::after {
  border-color: #c9b781 transparent transparent transparent;
}
.bg_e8dba2 .step-content::after {
  border-color: #e8dba2 transparent transparent transparent;
}
.bg_c9b781 .step-content.last::after {
  display: none;
}

p {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* アフターフォロー======================================== */
.guarantee {
  background-color: #f2eae1;
}
.guarantee-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 2em 1em;
}

.guarantee-box {
  flex: 1 1 280px;
  max-width: 320px;
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #e0d2a2;
  box-shadow: 0 0 20px rgb(121 92 22 / 60%), 0 0 30px rgba(255, 224, 150, 0.3);
  transition: transform 0.3s ease;
}

.guarantee-box:hover {
  transform: translateY(-4px);
}

.guarantee-number {
  background-color: #b28c4a;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  width: 2.2em;
  height: 2.2em;
  line-height: 2.2em;
  border-radius: 50%;
  margin: 0 auto 0.8em;
}

.guarantee-box h3 {
  font-size: 1.1em;
  color: #99753f;
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}

.guarantee-box p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* スマホ向け微調整 */
@media screen and (max-width: 600px) {
  .guarantee-section {
    flex-direction: column;
    align-items: center;
  }

  .guarantee-box {
    flex: none; /* ← これが最重要！ */
    width: 100%; /* ← 幅を固定 */
    max-width: 100%; /* ← 上書き */
  }
}

@media screen and (max-width: 768px) {
  .step-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-content h3 {
    width: 100%;
  }

  .step-content p {
    width: 100%;
  }
}
