/* FAQ ページ（見出し .list-hero とトーンを揃える） */
body.page-faq {
  background-color: #e6ecf2;
}

.faq-container {
  padding-bottom: 56px;
  padding-top: 40px;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* カード：白＋ソフトシャドウ（トップのカード系に近い質感） */
.faq-item {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(1, 53, 114, 0.1);
  box-shadow: 0 4px 18px rgba(15, 37, 64, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 28px rgba(15, 37, 64, 0.1);
  border-color: rgba(1, 53, 114, 0.16);
}

.faq-item:has(.faq-question.is-open) {
  border-color: rgba(1, 53, 114, 0.2);
  box-shadow: 0 8px 28px rgba(15, 37, 64, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: #0f2540;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  line-height: 1.55;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background: #f0f5fa;
  color: #013572;
}

.faq-question.is-open {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.faq-question:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

/* 丸アイコン＋シェブロン */
.faq-q-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2, 72, 152, 0.1);
  border: 1px solid rgba(2, 72, 152, 0.2);
  position: relative;
  box-sizing: border-box;
}

.faq-q-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  margin-left: -1px;
  border-right: 2px solid #1565c0;
  border-bottom: 2px solid #1565c0;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.is-open .faq-q-icon {
  background: rgba(21, 101, 192, 0.12);
}

.faq-question.is-open .faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(-135deg);
  top: 52%;
}

.faq-answer {
  padding: 0;
  background: #f4f7fb;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0;
  padding: 20px 22px 22px 26px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #334155;
  border-left: 4px solid #00428e;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65) 0%, rgba(244, 247, 251, 0.98) 12%, #f4f7fb 100%);
}

.faq-answer a {
  color: #1565c0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: #0d47a1;
}

.faq-loading,
.faq-empty {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
  color: #475569;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(1, 53, 114, 0.08);
  box-shadow: 0 4px 16px rgba(15, 37, 64, 0.06);
}
