/* faq.css - DMM Trace */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.dmm-faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03); /* DMMの柔らかいシャドウ */
  overflow: hidden;
}

.dmm-faq-q {
  list-style: none; /* remove native triangle */
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  background: #fff;
  transition: background var(--tr);
}
.dmm-faq-q:hover {
  background: #FAFAFA;
}
.dmm-faq-q::-webkit-details-marker {
  display: none;
}

.dmm-q-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.dmm-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.dmm-q-chevron {
  width: 14px;
  height: 14px;
  border-bottom: 3px solid #888;
  border-right: 3px solid #888;
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 8px;
}

details[open] .dmm-faq-q {
  border-bottom: 1px dashed var(--border-light);
}
details[open] .dmm-q-chevron {
  transform: rotate(-135deg) translateY(-4px) translateX(4px);
}

.dmm-faq-a {
  padding: 24px 32px 24px 84px; /* Align text under Q-icon (32px padding + 32px width + 20px gap) */
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: var(--fw-b);
  background: #FAFAFA;
}

@media(max-width: 768px) {
  .dmm-faq-q { padding: 20px; gap: 16px; }
  .dmm-q-text { font-size: 15px; }
  .dmm-faq-a { padding: 20px 20px 20px 68px; }
}
