/* ===== FAQ Accordion (CSS only) ===== */
.qa {
  width: 100%;
  padding: 48px 0;
}

.qa__inner {
  /* width: min(100%, 960px); */
  margin: 0 auto;
  padding: 0 16px;
}

.qa__title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.qa__lead {
  margin: 0 0 20px;
  opacity: 0.85;
}

.qa__list {
  display: grid;
  gap: 12px;
}

/* item card */
.qa__item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  /* border-radius: 14px; */
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* .qa__item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
} */

/* summary = question row */
.qa__q {
  list-style: none;           /* for Firefox */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  font-weight: 600;
  line-height: 1.4;
  user-select: none;
}

.qa__q::-webkit-details-marker {
  display: none;              /* hide default marker */
}

.qa__q-label {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  font-size: 14px;
}

.qa__q-text {
  flex: 1 1 auto;
}

/* custom chevron */
.qa__q::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,0,0,0.55);
  border-bottom: 2px solid rgba(0,0,0,0.55);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 8px;
}

/* open state */
.qa__item[open] .qa__q::after {
  transform: rotate(-135deg);
}

/* answer wrapper (animated) */
.qa__a {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 10px 16px;
  overflow: clip;
  display: flex;
  gap: 12px;
  background: #f0f7e9;
}

.qa__a-head {
  padding-top: 12px;
}

.qa__a-label {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #82C039;
  font-size: 14px;
  background: #fff;
  color: #82C039;
  font-weight: bold;
}

.qa__a-body {
  padding: 16px 0;
  opacity: 0.92;
  flex: 1 1 auto;
}

.qa__a-body p {
  margin: 0;
}

/* simple open/close animation (no JS) */
.qa__item .qa__a {
  max-height: 0;
  transition: max-height 0.25s ease;
}

.qa__item[open] .qa__a {
  max-height: 800px; /* 回答が長い場合は増やす */
}


/* focus styles */
.qa__q:focus-visible {
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 3px;
  border-radius: 10px;
}

/* mobile tweaks */
@media (max-width: 520px) {
  .qa {
    padding: 36px 0;
  }
  .qa__q {
    padding: 14px 14px;
  }
  .qa__a {
    padding: 0 14px;
  }
}