/* ===========================
   よくある質問 タイトルセクション
   =========================== */
.title {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  /* 背景画像 + 読みやすさのための淡いグラデーションオーバーレイ */
  background:
    linear-gradient(180deg, rgba(231, 237, 245, 0.78) 0%, rgba(245, 248, 251, 0.78) 100%),
    url('../images/faq1.png') center/cover no-repeat;
  padding: 80px 20px 60px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.title-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* ===== 日本語タイトル ===== */
.title h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
}
/* ===== よくあるご質問 タイトル背景（全体を紺色の図形に） ===== */
.title-inner {
  position: relative;
  display: inline-block;
  background: #003366; /* 紺色 */
  color: #fff;
  padding: 40px 40px 60px;
  border-radius: 12px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ▼ 下の中央にとがった三角形 */
.title-inner::after {
  content: "";
  position: absolute;
  bottom: -30px; /* 図形の外に出す */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 30px solid #003366; /* 紺色と同じ色 */
}

/* タイトル文字 */
.title-inner h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: 0.05em;
}

/* 説明文 */
.title-inner .explain p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #fff; /* 白文字 */
  margin: 0 auto;
  max-width: 750px;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .title-inner {
    padding: 28px 20px 50px;
  }
  .title-inner::after {
    bottom: -22px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 22px solid #003366;
  }
  .title-inner h3 {
    font-size: 1.6rem;
  }
  .title-inner .explain p {
    font-size: 0.95rem;
  }
}

/* ===== 説明文 ===== */
.title .explain {
  margin-top: 32px;
}

.title .explain p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin: 0 auto;
  max-width: 750px;
}

/* ===========================
   レスポンシブ対応
   =========================== */

/* ▼ タブレット (～1024px) */
@media screen and (max-width: 1024px) {
  .title {
    padding: 60px 16px 50px;
  }
  .title h3 {
    font-size: 1.75rem;
  }
  .title h3 .en {
    font-size: 0.8rem;
  }
  .title .explain p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 90%;
  }
}

/* ▼ スマホ (～767px) */
@media screen and (max-width: 767px) {
  .title {
    padding: 50px 14px 40px;
  }
  .title h3 {
    flex-direction: column;
    gap: 4px;
    font-size: 1.5rem;
  }
  .title h3 .en {
    font-size: 0.9rem;
    color: #8e8e8e;
    margin-bottom: 0;
  }
  .title .explain p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .title h3::after {
    width: 40px;
    height: 2px;
  }
}

/* ▼ 超小型スマホ (～480px) */
@media screen and (max-width: 480px) {
  .title {
    padding: 40px 12px 32px;
  }
  .title h3 {
    font-size: 1.3rem;
  }
  .title h3 .en {
    font-size: 0.8rem;
  }
  .title .explain p {
    font-size: 0.9rem;
  }
}

/* ===========================
   Accordion Type-01 Style
   =========================== */
.accordion.type-01 {
  max-width: 900px;
  margin: 60px auto;
  background: linear-gradient(145deg, #ffffff, #f7f8fb);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
}

/* タイトル */
.accordion-type {
  background: linear-gradient(90deg, #003366, #c5e4fc);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 各項目 */
.accordion-item {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.3s ease;
}
.accordion-item:hover {
  background: linear-gradient(180deg, #e7edf5 0%, #f5f8fb 100%);
}

/* 質問ボタン */
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-btn .btn-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-btn .mark {
  width: 32px;
  height: 32px;
  background: #034ebe;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
.accordion-btn:hover .mark {
  background: #003366;
}

.accordion-btn h3 {
  font-size: 1.05rem;
  color: #222;
  font-weight: 600;
  margin: 0;
  transition: color 0.3s;
}
.accordion-item.is-active .accordion-btn h3 {
  color: #034ebe;
}

/* ▼ 矢印アイコン追加 ▼ */
.accordion-arrow {
  font-size: 1rem;
  color: #888;
  margin-left: 8px;
  transition: transform 0.35s ease, color 0.35s ease;
}

.accordion-item.is-active .accordion-arrow {
  transform: rotate(180deg);
  color: #6c5ce7;
}

/* 回答部分 */
.accordion-content {
  height: 0;
  overflow: hidden;
  background: #fafbff;
  transition: height 0.35s ease;
}

.accordion-content .content-inner {
  display: flex;
  padding: 20px 24px;
  align-items: flex-start;
  gap: 16px;
}

.accordion-content .mark {
  width: 32px;
  height: 32px;
  background: #b9d4f7;
  color: #020c99;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-content p {
  margin: 0;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #333;
}

/* 開いたときの背景変化 */
.accordion-item.is-active .accordion-btn {
  background: #f4f4ff;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .accordion.type-01 {
    margin: 40px 16px;
    border-radius: 12px;
  }

  .accordion-btn {
    padding: 16px;
  }

  .accordion-btn h3 {
    font-size: 1rem;
  }

  .accordion-content .content-inner {
    flex-direction: column;
    padding: 16px;
  }

  .accordion-content .mark {
    margin-bottom: 8px;
  }

  .accordion-type {
    font-size: 1rem;
    padding: 12px;
  }
}
