:root {
  --faq-accent: #8a5cff;
  --faq-accent-2: #a88cff;
  --faq-text: #f2f2f2;
  --faq-muted: #aaa;
  --faq-line: rgba(255, 255, 255, 0.06);
  --faq-link: #cdb8ff;
  --faq-panel: linear-gradient(180deg, rgba(18, 22, 30, 0.6), rgba(16, 19, 26, 0.48));
  --faq-card: linear-gradient(180deg, rgba(18, 22, 30, 0.22), rgba(16, 19, 26, 0.17));
}

.faq-static-page {
  color: var(--faq-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.7;
}

.faq-background {
  min-height: 100vh;
  background: transparent;
}

#page .faq-content {
  position: relative;
  isolation: isolate;
  padding: 128px 0 48px;
  background: transparent !important;
}

.faq-page {
  text-align: left;
  box-sizing: border-box;
  padding: 30px 36px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--faq-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
}

.faq-page :where(h1, h2, h3, h4, p, summary) {
  overflow-wrap: anywhere;
}

.faq-intro h1 {
  margin: 0 0 18px;
  color: var(--faq-text);
  font-size: 28.7px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

.faq-category {
  text-align: left;
  scroll-margin-top: 24px;
  margin: 0;
  padding: 0;
}

.faq-category + .faq-category {
  text-align: left;
  border-top: 1px solid var(--faq-line);
}

.faq-category__heading {
  position: relative;
  display: block;
  margin: 0;
  padding: 24px 52px 24px 10px;
  color: var(--faq-text);
  list-style: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

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

.faq-category__heading h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--faq-text);
  font-size: 21.3px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.faq-category__heading h2 small {
  color: var(--faq-muted);
  font-size: 13.12px;
  font-weight: 400;
}

.faq-category__heading::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid rgba(242, 242, 242, 0.9);
  border-bottom: 1.5px solid rgba(242, 242, 242, 0.9);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 140ms ease;
}

.faq-category[open] > .faq-category__heading::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-category__heading:hover,
.faq-category__heading:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  outline: none;
}

.faq-list {
  padding: 0 0 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.faq-item {
  scroll-margin-top: 24px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transition: background 140ms ease;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 52px;
  padding: 14px 54px 14px 18px;
  color: var(--faq-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(242, 242, 242, 0.86);
  border-bottom: 1.5px solid rgba(242, 242, 242, 0.86);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 140ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  outline: none;
}

.faq-item[open],
.faq-item:target {
  background: linear-gradient(100deg, rgba(138, 92, 255, 0.115), rgba(116, 92, 190, 0.055));
}

.faq-item[open] summary {
  color: #fff;
}

.faq-answer {
  padding: 14px 28px 22px 44px;
  border: 0;
  background: transparent;
  color: rgba(242, 242, 242, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item[open] .faq-answer {
  background: rgba(122, 92, 200, 0.035);
  color: rgba(247, 247, 249, 0.91);
}

.faq-answer > :first-child {
  margin-top: 0;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer p,
.faq-answer blockquote,
.faq-answer figure {
  margin: 0 0 1em;
}

.faq-answer blockquote,
.faq-answer figure {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-style: normal;
}

.faq-answer h3,
.faq-answer h4 {
  margin: 1.35em 0 0.55em;
  color: var(--faq-text);
  font-size: 16.8px;
  font-weight: 500;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.5em 0 1em;
  padding-left: 1.7em;
}

.faq-answer a {
  color: var(--faq-link);
  text-decoration-color: rgba(205, 184, 255, 0.45);
  text-underline-offset: 0.16em;
}

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

.faq-answer .faq-jump-link {
  margin: 1.05em 0;
}

.faq-answer .faq-jump-link a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--faq-link);
  font-style: normal;
  font-weight: 500;
  text-decoration: none;
}

.faq-answer .faq-jump-link a:hover span,
.faq-answer .faq-jump-link a:focus-visible span {
  text-decoration: underline;
  text-decoration-color: rgba(205, 184, 255, 0.55);
  text-underline-offset: 0.18em;
}

.faq-answer .faq-jump-link a:focus-visible {
  color: #fff;
  outline: 1px solid rgba(205, 184, 255, 0.58);
  outline-offset: 4px;
}

.faq-answer .faq-jump-link svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.faq-answer pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.8em 0 1em;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(3, 6, 12, 0.46) !important;
  color: #e4e4e8 !important;
  font-size: 13.76px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.faq-answer code,
.faq-answer pre code {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  font-style: normal !important;
  text-shadow: none !important;
  white-space: inherit !important;
}

.faq-answer img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 1023px) {
  #page .faq-content {
    padding-top: 118px;
  }
}
@media (max-width: 767px) {
  #page .faq-content {
    padding-top: 106px;
  }

  .faq-intro h1 {
    font-size: 26.4px;
  }

  .faq-category__heading h2 {
    font-size: 20.8px;
  }

  .faq-page {
    text-align: left;
    box-sizing: border-box;
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-right: auto;
    margin-left: auto;
    padding: 24px 18px 30px;
  }

  .faq-category__heading {
    padding: 21px 44px 21px 4px;
  }

  .faq-category__heading::after {
    right: 14px;
  }

  .faq-item summary {
    min-height: 48px;
    padding: 12px 44px 12px 14px;
    font-size: 15px;
  }

  .faq-item summary::after {
    right: 16px;
  }

  .faq-answer {
    padding: 12px 16px 20px 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-category__heading,
  .faq-category__heading::after,
  .faq-item,
  .faq-item summary,
  .faq-item summary::after {
    transition: none;
  }
}
