@import url(common.css);

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

〇〇工事のよくあるご質問

工事ページ共通
#k_faq

////////////////////////////////////////
*/
#k_faq {
  padding-bottom: unset;
  margin-block: var(--section-gap-y-loose);
  background-color: #fff;
}
.item_faq {
  padding: 2em 0 0;
}

.faq_container {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2em 2em 3em;
  margin-top: 2em;
}

/* テキスト+クリックするところ
---------------------------- */
#k_faq .faq_accordion {
  max-width: 850px;
  margin: 0 auto;
  margin-bottom: 10px;
  box-shadow: 0 4px 4px rgb(0 0 0 / 2%), 0 2px 3px -2px rgba(0 0 0 / 5%);
  background-color: #fff;
}

#k_faq .faq_accordion summary {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 3.5em;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
}

/* Q
---------------------------- */
#k_faq .faq_accordion summary::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
  color: #fc7777;
  content: "Q";
  font-weight: bolder;
  font-size: 22px;
}

/* 下向き矢印
---------------------------- */
#k_faq .faq_accordion summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #333333b3;
  border-right: 3px solid #333333b3;
  content: "";
  transition: transform 0.5s;
}

#k_faq .faq_accordion[open] summary::after {
  transform: rotate(225deg);
}

/*---------------------------
アコーディオンの中身
（.faq_item）
---------------------------*/
#k_faq .faq_accordion .faq_item {
  padding: 2em 1.5em 2.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: left;
  gap: 2.5em;
}
#k_faq .faq_accordion .faq_item p {
  line-height: 1.7;
  font-size: clamp(16px, 3.52vw, 17px);
  letter-spacing: 1px;
  padding-left: 2em;
}

/* アンサーのA
----------------------------*/
#k_faq .faq_accordion .faq_item .faq_a {
  position: relative;
  flex: 0.2;
}
#k_faq .faq_accordion .faq_item .faq_a::before {
  position: absolute;
  content: "A";
  font-weight: bold;
  font-size: 22px;
  color: var(--main_bleu);
}

/* 回答ブロック
--------------------------- */
.faq_a_right {
  flex: 5.8;
}
.faq_a_right p {
  line-height: 1.9;
  font-size: 17px;
  letter-spacing: 1px;
}
#k_faq .faq_accordion[open] aside {
  font-size: 15px;
}
.faq_a_right figcaption {
  padding: 2em 0 0;
}
.faq_a_right figcaption img {
  display: block;
  width: min(100%, 400px);
  height: auto;
}
.faq_a_right figure {
  font-size: 14px;
  color: var(--aside_gray);
  padding-top: 0.5em;
}

@media only screen and (max-width: 768px) {
  #k_faq {
    width: calc(100% - 40px);
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 5em;
  }

  #k_faq .faq_accordion summary {
    padding: 1em 1em 1em 2.5em;
  }
  #k_faq .faq_accordion summary::before {
    left: 0.5em;
  }
  #k_faq .faq_accordion .faq_item {
    padding: 2em 0.8em;
  }
}
