@charset "UTF-8";

/* ==================================================
   ページ見出し（FAQ用のキャラクター位置）
================================================== */
.faq-header__chara {
      top: 10px;
    width: 25%;
}

/* ==================================================
   カテゴリーへのリンク
================================================== */
.faq-category {
  padding: 10px 0 0;
}

.faq-category__list {
  display: grid;
  gap: 10px;
}

.faq-category__link {
  position: relative;
  display: block;
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--color-cyan);
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 3px 3px 0 var(--color-teal);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s, transform .25s;

  /* 右側の下向き矢印 */
  &::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  &:hover {
    background-color: #e6f8fb;
    transform: translateY(2px);
  }
}

/* ==================================================
   カテゴリーごとのまとまり
================================================== */
.faq-section {
  padding: 60px 0 0;
}

/* ==================================================
   Q&A（details 要素で開閉）
================================================== */
.faq-item {
  border-bottom: 1px dotted #9fc8e6;
}

.faq-item__q {
  position: relative;
  display: block;
  padding: 14px 36px 14px 40px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color .25s;

  &::-webkit-details-marker {
    display: none;
  }

  /* 「Q」マーク */
  &::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 12px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-blue);
    box-shadow: 2px 2px 0 var(--color-blue-light);
    color: #fff;
    font-size: 15px;
    line-height: 1;
  }

  /* 開閉アイコン（＋／−） */
  &::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background:
      linear-gradient(var(--color-blue), var(--color-blue)) center / 100% 2px no-repeat,
      linear-gradient(var(--color-blue), var(--color-blue)) center / 2px 100% no-repeat;
    transition: transform .3s;
  }

  .faq-item[open] &::after {
    transform: rotate(45deg);
  }

  &:hover {
    color: var(--color-blue);
  }
}

.faq-item__a {
  position: relative;
  padding: 0 4px 18px 40px;
  font-size: 14px;

  /* 「A」マーク */
  &::before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-pink);
    box-shadow: 2px 2px 0 #ffc4d0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
  }

  & > * + * {
    margin-top: 8px;
  }
}

.faq-item__sub {
  font-weight: 700;
}

.faq-item__links {
  & a {
    color: var(--color-blue);
    text-underline-offset: 3px;

    &:hover {
      text-decoration: none;
    }
  }
}

/* 本文中のリンク（公式Xなど） */
.faq-item__link {
  color: var(--color-blue);
  text-underline-offset: 3px;

  &:hover {
    text-decoration: none;
  }
}
