@charset "UTF-8";
/* CSS Document */

/* =========================== */
/* FAQヘッダー */
/* =========================== */
.faq-header {
  width: 100%;
  margin-top: 120px; /* ヘッダーの高さ分を確保 */
}

.faq-header-img {
  width: 100%;
  height: auto; /* アスペクト比を保持 */
  display: block;
}

.faq-header-sp {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================== */
/* FAQ セクション */
/* =========================== */
.faq {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* コンテナ */
.faq-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 質問アイテム */
.faq-item {
  margin-bottom: 40px;
}

/* 質問のデザイン */
.faq-question {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.faq-q-icon {
  width: 44px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
}

/* 回答エリア */
.faq-answer {
  display: flex;
  align-items: center; /* 上下中央揃えに変更 */
  margin-bottom: 15px;
  gap: 25px; /* FlexboxのGapプロパティを使ってアバターと吹き出しの間隔を設定 */
}

.faq-answer.left {
  justify-content: flex-start;
}

.faq-answer.right {
  justify-content: flex-end;
}

/* 吹き出し共通 */
.faq-bubble {
  max-width: 75%;
  padding: 20px 25px;
  font-size: 16px;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  line-height: 1.6;
}

/* 左側の吹き出し */
.left .faq-bubble {
  text-align: left;
}

/* 右側の吹き出し */
.right .faq-bubble {
  text-align: left;
}

/* 吹き出しの三角（左） */
.left .faq-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
}

/* 吹き出しの三角（右） */
.right .faq-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #fff;
}

/* アバター */
.faq-avatar {
  width: 111px;
  height: 153px;
  object-fit: cover;
  flex-shrink: 0; /* アバターが縮小されないようにする */
}

/* =========================== */
/* スマホ対応 */
/* =========================== */
@media (max-width: 768px) {
  /* FAQヘッダー調整 */
  .faq-header {
    margin-top: 60px;
  }
  
  /* FAQ全体のレイアウト調整 */
  .faq {
    padding: 40px 10px;
  }
  
  /* コンテナ幅の調整 */
  .faq-container {
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
  }
  
  /* 質問アイテムのマージン調整 */
  .faq-item {
    margin-bottom: 30px;
  }
  
  /* 質問部分のレイアウト調整 */
  .faq-question {
    position: relative;
    padding-left: 40px;
    min-height: 30px;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  
  /* Q画像のサイズと位置調整 */
  .faq-q-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
  }
  
  /* 質問テキストのサイズ調整 */
  .faq-question h3 {
    font-size: 16px;
    padding-top: 3px;
    line-height: 1.5;
  }
  
  /* 回答エリアのレイアウト変更 */
  .faq-answer {
    position: relative;
    gap: 15px; /* スマホでは間隔を少し狭くする */
    align-items: center; /* スマホでも上下中央揃えを維持 */
  }
  
  /* 左側の回答レイアウト */
  .faq-answer.left {
    padding-left: 82px;
    justify-content: flex-start;
  }
  
  /* 右側の回答レイアウト */
  .faq-answer.right {
    padding-right: 82px;
    justify-content: flex-end;
  }
  
  /* 左側の人物画像位置 */
  .left .faq-avatar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: auto;
  }
  
  /* 右側の人物画像位置 */
  .right .faq-avatar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: auto;
  }
  
  /* 吹き出しサイズ調整 */
  .faq-bubble {
    max-width: 100%;
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    margin: 0;
  }
  
  /* 吹き出しの三角形位置調整 - 左 */
  .left .faq-bubble::after {
    left: -10px;
    top: 50%; /* 中央に配置 */
    transform: translateY(-50%); /* 中央揃え */
  }
  
  /* 吹き出しの三角形位置調整 - 右 */
  .right .faq-bubble::after {
    right: -10px;
    top: 50%; /* 中央に配置 */
    transform: translateY(-50%); /* 中央揃え */
  }
}

/* より小さいスマホ向け調整 */
@media (max-width: 375px) {
  .faq-container {
    max-width: 100%;
    padding: 0 5px;
  }
  
  .faq-question {
    padding-left: 35px;
  }
  
  .faq-q-icon {
    width: 25px;
    height: 25px;
  }
  
  .faq-answer.left {
    padding-left: 65px;
  }
  
  .faq-answer.right {
    padding-right: 65px;
  }
  
  .left .faq-avatar,
  .right .faq-avatar {
    width: 55px;
  }
  
  .faq-bubble {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}