/* ==================================================
   FAQ
================================================== */

.w-faq-lead {
  font-size: 0.9rem;
  line-height: 1.8;
}


/* 2 COLUMN
------------------------------ */

.w-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 2.5rem;
}


/* CATEGORY
------------------------------ */

.w-faq-category {
  min-width: 0;
}

.w-faq-category-title {
  margin-bottom: 1.75rem;
  padding-bottom: 0.65rem;

  border-bottom: 2px solid #333;

  color: #333;

  font-size: 1.15rem;
  font-weight: 600;
}


/* LIST
------------------------------ */

.w-faq-list {
  border-top: 1px solid #ddd;
}


/* ITEM
------------------------------ */

.w-faq-item {
  border-bottom: 1px solid #ddd;
}


/* QUESTION
------------------------------ */

.w-faq-question {
  position: relative;
  display: block;

  padding: 1rem 2.5rem 1rem 0.75rem;

  cursor: pointer;

  color: #333;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;

  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}


/* 標準の三角を非表示 */
.w-faq-question::-webkit-details-marker {
  display: none;
}

.w-faq-question::marker {
  content: "";
}


/* HOVER */
.w-faq-question:hover {
  background-color: #f5f5f5;
}


/* ＋ / － */
.w-faq-question::after {
  content: "＋";

  position: absolute;
  top: 50%;
  right: 0.8rem;

  transform: translateY(-50%) rotate(0deg);

  color: #666;

  font-size: 1.1rem;
  font-weight: 400;

  transition:
    transform 0.3s ease-in-out;
}


/* OPEN */
.w-faq-item[open] .w-faq-question {
  background-color: #f5f5f5;
}

.w-faq-item[open] .w-faq-question::after {
  content: "－";

  transform: translateY(-50%) rotate(180deg);
}


/* ANSWER
------------------------------ */

.w-faq-answer {
  overflow: hidden;
  max-height: 0;

  transition:
    max-height 0.35s ease-in-out;
}


/* 回答本文 */
.w-faq-answer-inner {
  padding: 0.25rem 0.75rem 1.25rem;

  color: #444;

  font-size: 0.875rem;
  line-height: 1.8;
}

.w-faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* FAQ内リンク
------------------------------ */

.w-faq-answer a {
  display: inline-block;

  color: #0056b3;
  font-weight: 600;

  text-decoration: underline;
  text-underline-offset: 0.2em;

  transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}

.w-faq-answer a::after {
  content: " ＞";

  display: inline-block;

  margin-left: 0.2rem;

  font-size: 0.8em;
  text-decoration: none;
}

.w-faq-answer a:hover {
  color: #003f82;
  text-decoration: none;
}

/* MOBILE
------------------------------ */

@media (max-width: 767.98px) {

  .w-faq-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .w-faq-category-title {
    font-size: 1.05rem;
  }

  .w-faq-question {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;

    font-size: 0.875rem;
  }

  .w-faq-answer-inner {
    font-size: 0.85rem;
  }

}