@import url(common.css);

.c-intro-block {
  padding: 1.5em;
  border-radius: 5px;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* //////////////////////////////////


こんなお悩みありませんか？
（.c-problem-list-section）


////////////////////////////////// */
.c-problem-list-section {
  padding: 2em 1.5em;
}

/* 吹き出しデザイン
------------------------------- */
.speechBubble {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #eeeeee;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.speechBubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 50px 30px 0 30px;
  border-color: #eeeeee transparent transparent;
  translate: -50% 100%;
}

/* -------------------------------
こんなお悩みありませんかブロック
（.c-problem-title）
------------------------------- */
.c-problem-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* もやもやの吹き出しイラスト
------------------------------- */
.c-problem-title img {
  display: block;
  width: min(100%, 80px);
  height: auto;
  transform: rotate(320deg);
}
.c-problem-title h2 {
  font-size: clamp(30px, 1.8vw, 32px);
}

.c-problem-title h2 span {
  position: relative;
  padding: 0 0.2em;
}
.c-problem-title h2 span::before {
  position: absolute;
  content: "・・・";
  top: -65%;
  transform: translate(0%, 0%);
}

/*-------------------------------
横並び悩み事3つ
（.c-problem-block）
-------------------------------*/
.c-problem-block {
  margin: 2em auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1em;
}
.c-problem-box {
  flex: 1;
  background-color: #ffffff;
  padding: 1.5em 1em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 困った顔のアイコン
------------------------------- */
.c-problem-box img {
  display: block;
  width: min(100%, 40px);
  height: auto;
  margin: 0 auto 1em;
}
.c-problem-box p {
  color: #000;
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: bold;
  text-align: center;
  margin: auto;
}

/* //////////////////////////////////////////

解決します！セクション
（.c-solution-lead-section）

////////////////////////////////////////// */
.c-solution-lead-section {
  background: #ffffff;
  border-radius: 20px;
  outline: 1px solid rgba(0, 0, 0, 0.04);
  padding: 3em 2em 4.5em;
  margin: 4em auto;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
  position: relative;
}
.c-section-bord-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* XもYも中央に */
  z-index: 2;
}
.c-section-bord-title p {
  background: #2f6f5e;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5em 2em;
  font-size: clamp(20px, 3.52vw, 25px);
}

/* -------------------------------

太縁文字ブロック
（.large_bold_block）

------------------------------- */
.large_bold_block {
  width: calc(100% - 0px);
  max-width: 820px;
  margin: auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1em;
}
.large_bold_text {
  flex: 2;
}
.large_bold_block .circle,
.large_bold_block img {
  flex: 1;
}

.large_bold_text p {
  font-size: clamp(20px, 1.8vw, 35px);
  font-weight: bold;
}
/* マーカー
------------------------------- */
.large_bold_text p span {
  background: linear-gradient(transparent 60%, #fff6a2 50%);
  font-size: clamp(50px, 1.8vw, 56px);
  padding: 0 0.2em;
  margin: 0 0.2em 0 0;
}
/* 左上のマイクロテキスト
------------------------------- */
.large_bold_text span.chips {
  display: block;
  font-size: clamp(16px, 1.8vw, 17px);
  max-width: 200px;
  text-align: center;
  font-weight: 400;
}

/* ◯◯市はお見積り無料エリアです
------------------------------- */
.city_custom_text {
  text-align: center;
  border-bottom: 2px dotted #ebc784;
  padding-bottom: 1em;
}
.city_custom_text span {
  text-align: center;
  padding: 0.3em 0.6em;
  margin-right: 0.2em;
}

/* 工事士のイラストまたは各工事店の写真
------------------------------- */
.large_bold_block img {
  display: block;
  width: clamp(100px, 35.6vw, 150px);
  height: auto;
}
/* 各工事店の写真にはclassつける
------------------------------- */
.circle {
  background-color: #381b1b;
  max-width: 250px;
  height: 180px;
  margin: 0.5em auto 1em;
  border-radius: 50%; /* 円形にする */
  position: relative; /* 基準値とする */
  overflow: hidden; /* はみ出た部分を非表示 */
}

.circle img {
  position: absolute; /* 相対位置に指定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の表示サイズを調整 ※IE非対応 */
}

/* .circleの微調整
------------------------------- */
/* 福田電子 */
.m001 {
  background-color: #1e50a2;
}
.m001 img {
  top: 0;
  left: -5;
}
/* 増渕電気 */
.m002 img {
  top: 10;
}
/* シスコム */
.m003 img {
  top: 2;
  left: 3;
}
/* 中村電設 */
.m005 img {
  top: 0;
  left: 5;
}
/* アースコム */
.m008 img {
  top: 0;
  left: 1;
}
/* 松下電建 */
.m010 {
  background-color: #adadad;
}
.m010 img {
  top: 10;
  left: 1;
}
/* KOTOBUKI外装 */
.m015 {
  background-color: #3eb4fb;
}
.m015 img {
  top: 15;
  left: 0;
}
/* コトブキ光熱 */
.m016 {
  background-color: #e3e1e1;
}
.m016 img {
  top: 7;
  left: 4;
}

/* -------------------------------

before→afterブロック
（.c-before-after-block）

------------------------------- */
.c-before-after-block figcaption {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 6px;
}

.c-before-after-block .c-before-after-block__images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin: 0 auto 1em;
}
.c-before-after-block .c-before-after-block__images img {
  display: block;
  width: clamp(300px, 35.6vw, 400px);
  height: auto;
}

/* 施工事例をもっとみるCTAボタン
------------------------------- */
.c-weak-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #2f6f5ea2;
  border-radius: 999px;
  color: #2f6f5e;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  text-decoration: none;
}

.c-weak-cta-btn:hover {
  background: #f2f7f5;
  opacity: unset;
}

/* オレンジ背景の注意事項リスト
------------------------------- */
.c-solution-lead-section ul {
  width: calc(100% - 0px);
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: rgb(255, 225, 169);
  padding: 1em;
}

.c-solution-lead-section ul li {
  color: rgb(124, 82, 47);
}
.c-solution-lead-section ul li a {
  text-decoration: underline;
}

/* //////////////////////////////////



レスポンシブ
1024px



////////////////////////////////// */
@media screen and (max-width: 1024px) {
  .c-intro-block {
    width: 100%;
    border: unset;
  }
  .speechBubble {
    margin-bottom: unset;
  }
  .c-solution-lead-section {
    border-radius: unset;
    outline: unset;
    padding: 3em 2em 4.5em;
    margin: 6em auto;
  }

  .large_bold_block {
    width: calc(100% - 0px);
    max-width: 1024px;
  }
}

/* //////////////////////////////////



レスポンシブ
768px



////////////////////////////////// */
@media only screen and (max-width: 768px) {
  /* こんなお悩みありませんか？セクション */
  .c-problem-block {
    flex-direction: column;
  }
  .c-problem-title {
    justify-content: left;
  }

  .c-problem-title h2 {
    font-size: clamp(23px, 1.8vw, 32px);
    line-height: 1.6;
  }
  .large_bold_block {
    display: block;
  }
  .large_bold_text p {
    text-align: center;
  }
  .large_bold_text p span {
    font-size: clamp(42px, 1.8vw, 50px);
  }
  .large_bold_block img {
    margin: auto;
  }

  .c-solution-lead-section {
    padding: 3em 1.5em 4.5em;
    background-color: #fffde4;
  }
  .c-before-after-block .c-before-after-block__images {
    display: block;
  }
  .c-before-after-block__item {
    padding: 0.5em 0;
  }
  .c-before-after-block .c-before-after-block__images img {
    width: 100%;
  }
  /* ◯◯市は */
  .city_custom_text span {
    background-color: #447e6e;
    color: #fff;
    padding: 0.2em 0.6em;
  }
}

/* //////////////////////////////////



レスポンシブ
460px



////////////////////////////////// */
@media only screen and (max-width: 460px) {
  .c-section-bord-title p {
    padding: 0.5em 1em;
  }
  .large_bold_text p {
    font-size: clamp(26px, 1.8vw, 35px);
  }
  .large_bold_text p span {
    font-size: clamp(33px, 1.8vw, 40px);
  }
}
