html {
  scroll-padding-top: 0;
}

.faq {
  display: flow-root;
  background-color: #e4e5e6;
  color: #23282c;
}
.faq .sp-blank {
  display: none;
}

.faq-area {
  max-width: 1000px;
  margin: 130px auto;
  padding: 24px 12px 40px;
}

.faq-block {
  background-color: #fff;
  padding: 2.5rem;
  border: 1px solid #c8ced3;
  border-radius: 0.25rem;
}

.faq-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  padding-bottom: 2rem;
}

.faq-lead {
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.faq-lead a {
  color: #2C7F96;
  text-decoration: underline;
}
.faq-lead a:hover {
  text-decoration: none;
}

.faq-index {
  margin-bottom: 3.5rem;
}

.faq-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-index-item a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #FE1C64;
  border-radius: 20px;
  color: #FE1C64;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.faq-index-item a:hover {
  background-color: #FE1C64;
  color: #fff;
}

.faq-section {
  margin-bottom: 4rem;
  scroll-margin-top: 115px;
}
@media (max-width: 850px) {
  .faq-section {
    scroll-margin-top: 170px;
  }
}
.faq-section:last-of-type {
  margin-bottom: 0;
}

.faq-category-title {
  font-size: 1.3rem;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 2px solid #FE1C64;
}

.faq-qa-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.faq-qa-item {
  border-bottom: 1px solid #cccccc;
}

.faq-question {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  border: solid #FE1C64;
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-question:hover .faq-question-text {
  color: #FE1C64;
}

.faq-details[open] .faq-question::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-question-text {
  font-weight: bold;
  transition: color 0.3s;
}

.faq-mark {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #FE1C64;
}

.faq-mark-answer {
  color: #2C7F96;
}

.faq-answer {
  display: flex;
  gap: 12px;
  padding: 0 0 24px;
}

.faq-answer-body {
  min-width: 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.faq-answer-body p {
  margin: 0 0 1em;
}
.faq-answer-body p:last-child {
  margin-bottom: 0;
}
.faq-answer-body a {
  color: #2C7F96;
  text-decoration: underline;
}
.faq-answer-body a:hover {
  text-decoration: none;
}
.faq-answer-body ul,
.faq-answer-body ol {
  padding-left: 1.5em;
}
.faq-answer-body ul {
  list-style: disc;
}
.faq-answer-body ol {
  list-style: decimal;
}

.faq-contact {
  margin-top: 4rem;
  text-align: center;
}

.faq-contact-text {
  margin-bottom: 20px;
}

.faq .faq-contact-button {
  display: inline-block;
  min-width: 280px;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  background-color: #FE1C64;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
}
.faq .faq-contact-button:hover {
  color: #fff;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .faq .sp-blank {
    display: block;
  }
  .faq-area {
    margin: 130px auto 60px;
  }
  .faq-block {
    padding: 2rem 1rem;
  }
  .faq-index {
    margin-bottom: 3rem;
  }
  .faq-section {
    margin-bottom: 3rem;
  }
  .faq-category-title {
    font-size: 1.15rem;
  }
  .faq-contact-button {
    min-width: 70vw;
  }
}
