/* FAQ + AIサポート — ダークネオン */

.faq-page {
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-page-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.faq-page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  background: linear-gradient(135deg, #f5f3ff 0%, #c084fc 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ヘッダーは position:sticky（高さ実測 73px）。見出しへ直接飛ぶと、その分だけ見出しが
   ヘッダーの下に潜って読めなくなる。scroll-margin-top でジャンプ位置を押し下げる。
   スクロール位置にしか効かないので、通常の閲覧・レイアウトには一切影響しない。 */
.faq-section {
  scroll-margin-top: 88px;
  margin-bottom: 2rem;
}

.faq-section__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 20, 36, 0.95), rgba(12, 14, 28, 0.92));
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card[open] {
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12) inset,
    0 0 24px rgba(124, 58, 237, 0.14);
}

.faq-card__q {
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

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

.faq-card__q::after {
  content: '+';
  float: right;
  margin-left: 0.75rem;
  color: var(--purple-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-card[open] .faq-card__q::after {
  content: '−';
}

.faq-card__a {
  padding: 0 1.15rem 1rem;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.faq-card__a p {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  word-break: break-word;
}

.faq-support-cta {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(59, 130, 246, 0.08));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
}

.faq-support-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-support-cta__lead {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ai-support-panel {
  margin: 0 0 2.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border-strong);
  background: rgba(8, 10, 22, 0.96);
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.16);
  overflow: hidden;
}

.ai-support-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(59, 130, 246, 0.1));
}

.ai-support-panel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.ai-support-panel__status {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.ai-support-panel__close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.ai-support-chat {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(52vh, 420px);
}

.ai-support-chat__log {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-support-chat__msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
}

.ai-support-chat__msg--bot {
  align-self: flex-start;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: var(--text);
}

.ai-support-chat__msg--user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--text);
}

.ai-support-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(4, 5, 10, 0.65);
}

.ai-support-chat__input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(16, 18, 32, 0.9);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
}

.ai-support-chat__input:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.ai-support-chat__send {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--accent-gradient);
}

.faq-page__contact {
  text-align: center;
  margin: 0 0 2.5rem;
}

@media (max-width: 640px) {
  .faq-page-hero {
    padding-top: 1.75rem;
  }

  .faq-card__q {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }

  .faq-support-cta {
    padding: 1.25rem 1rem;
  }

  .ai-support-chat {
    min-height: 240px;
  }
}
