/* マイページ - FAQタブ専用CSS */

.faq-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.faq-search-title {
  font-size: var(--fs-14);
  opacity: 0.7;
}

.faq-search {
  margin-bottom: 20px;
}

.faq-search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #dde1f3;
  border-radius: 8px;
  font-size: var(--fs-14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}
.faq-search-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 208, 199, 0.1);
}

.faq-toolbar-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* セクション単位で"塊感"を作る */
.faq-section {
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.faq-section:first-child {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}

.faq-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.faq-section-title .chip {
  /* 既存chipを流用（見出しの"視線ストッパー"） */
  font-weight: 600;
}

.faq-item {
  border: none;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.faq-accordion {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
  gap: 10px;
  position: relative;
  z-index: 2;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(140, 160, 190, 0.12);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* グラデーションの枠（擬似要素で実現） */
.faq-summary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, 
    rgba(94, 200, 216, 0.14) 0%,
    rgba(143, 140, 243, 0.12) 100%);
  z-index: -1;
  pointer-events: none;
}

.faq-summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.faq-summary:hover {
  box-shadow: 0 4px 12px rgba(140, 160, 190, 0.18);
  transform: translateY(-1px);
}

.faq-summary:hover::before {
  background: linear-gradient(135deg, 
    rgba(94, 200, 216, 0.18) 0%,
    rgba(143, 140, 243, 0.16) 100%);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  display: none;
}

/* Qアイコン */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(94, 200, 216, 0.2) 0%,
    rgba(94, 200, 216, 0.15) 100%);
  color: rgba(94, 200, 216, 0.95);
  font-size: var(--fs-14);
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(94, 200, 216, 0.3);
  position: relative;
  z-index: 1;
}

.faq-question-text {
  color: var(--text-main);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* 開閉アイコン（+と-） */
.faq-summary::after {
  content: "+";
  font-size: var(--fs-18);
  font-weight: 300;
  color: rgba(94, 200, 216, 0.8);
  transition: transform 0.2s ease, content 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.faq-accordion[open] .faq-summary::after {
  content: "−";
  transform: none;
  color: rgba(94, 200, 216, 0.9);
}

.faq-answer-content {
  padding: 12px 14px;
  padding-left: 44px;
  margin-top: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(255, 245, 248, 0.7) 0%,
    rgba(255, 235, 240, 0.5) 100%);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(237, 84, 112, 0.2);
}

/* Aアイコン */
.faq-answer-icon {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(237, 84, 112, 0.15) 0%,
    rgba(255, 155, 168, 0.12) 100%);
  color: rgba(237, 84, 112, 0.9);
  font-size: var(--fs-13);
  font-weight: 700;
  border: 2px solid rgba(237, 84, 112, 0.3);
}

.faq-answer-text {
  font-size: var(--fs-14);
  color: var(--text-main);
  line-height: 1.6;
}

.faq-empty {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(203, 213, 225, 0.9);
  background: rgba(245, 248, 255, 0.6);
  font-size: var(--fs-13);
  color: var(--text-sub);
}

@media (max-width: 480px) {
  .faq-toolbar {
    gap: 10px;
  }
  .faq-search-input {
    min-width: 100%;
  }
  .faq-toolbar-actions {
    width: 100%;
  }
  .faq-toolbar-actions .chip-link {
    flex: 1;
    justify-content: center;
  }
}

