/* ヘッダー画像*/

.header_title_yellow {
  background: no-repeat center url(../img/qa/bg_qattl.jpg);
  height: 346px;
  padding-top: 150px;
}
@media (max-width: 768px) {
  .header_title_yellow {
    height: initial !important;
    padding: 50px 0 !important;
    margin: 0;
    background: none !important;
  }
}

.about {
  margin: 50px auto 150px;
}
/* リードテキスト */
.readtxt {
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  margin: 80px auto 50px;
}
/* カテゴリタイトル */
.ttl_qa_cate {
  color: white;
  font-size: 3rem;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 0 black, -1px 1px 0 black, 1px -1px 0 black,
    -1px -1px 0 black;
}
/* カテゴリ */
.category {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  flex-wrap:wrap;
}
.category a {
  border: 3px solid #000;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 10px 20px;
}
.category a.active {
  border: 3px solid #ffcc00;
  background-color: #ffcc00;
}
.category a:hover {
  text-decoration: none;
  border: 3px solid #ffcc00;
  background-color: #ffcc00;
}

@media (max-width: 767px) {
  .ttl_qa_cate {
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  
}
/* カテゴリ */
.category {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}
.category a {
  border: 2px solid #000;
  font-size: 1.4rem;
  padding:5px 10px;
}

}

/*カテゴリタイトル*/
.category_ttl {
  position: relative;
  display: inline-block;
  padding-left: 30px;
  font-size: 24px;
  font-weight: bold;
  margin: 50px 0;
}

.category_ttl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: #ffcc00;
  border-radius: 50%;
  z-index: -1;
}

/* qa部分*/
.qa-section {
  margin: 50px auto;
}

.qa-item {
  margin-bottom: 10px;
}

.qa-question {
  background: #f9f9f9;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  padding: 0 30px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.qa-question:hover {
  background: #fff4cc;
}
.ttl_q,
.ttl_a {
  margin: 0;
  font-size: 3.6rem;
  font-weight: bold;
  padding-right: 20px;
}

.toggle-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
  font-weight:100;
}

.q,
.a {
  display: flex;
  align-items: flex-start; 
}
.q-text{
  padding:30px;
}
.a-text{
  padding:0 30px;
}

/* スライドアニメ対応 */
.qa-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  background: #fff;
  font-size: 20px;
  font-size:18px;
  margin-bottom: 30px;
}
.ttl_a {
  font-size: 3.6rem;
  font-weight: bold;
  flex-shrink: 0; /* 縮まないようにする */
  line-height: 1;
}
.a {
  flex-basis: 100%;
}

.qa-answer p {
  margin: 0;
  flex: 1; /* 残り幅いっぱいに広がる */
}

.qa-answer.open {
  opacity: 1;
  padding: 30px;
  margin:20px auto;
}

.answer_link {
  width: 100%;
  text-align: right;
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}
.link_txt{
  font-size:14px;
  margin-bottom: 10px;
}
.answer_link a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px auto;
  padding: 8px 20px;
  background-color: #ffcc00;
  text-align: center;
  border: 2px solid #ffcc00;
  transition: all 0.3s;
  font-size: 1.4rem;
  font-weight: bold;
  width: fit-content;
}
.answer_link a:hover {
  text-decoration: none;
  border: 2px solid #000;
  background-color: #fff;
}
.answer_link a span {
  display: flex;
  align-items: center;
}
.answer_link a span:after {
  content: "";
  width: 30px;
  height: 5px;
  border-bottom: solid 1px;
  border-right: solid 1px;
  transform: skew(45deg);
  padding-left:10px;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .qa-question,
  .qa-answer {
    font-size: 1.4rem;
  }
  
}
