@charset "utf-8";

body {
  overflow-x: clip;
  position: relative;
  background-color: #F0F0F0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;

  @media (max-width: 768px) {
    background-size: 80px 80px;
  }
}

.faq-inner {
  width: min(856px, 66.875cqw);
  margin: 0 auto min(160px, 12.5cqw);

  @media (max-width: 768px) {
    width: 100%;
    margin-bottom: 80px;
  }
}

.faq-item_wrap {
  width: 100%;
  .head {
    position: relative;
    width: fit-content;
    font-size: min(26px, 2.03125cqw);
    font-weight: 700;
    color: var(--color-navy);
    padding-bottom: min(4px, 0.3125cqw);
    @media (max-width: 768px) {
      font-size: 1.6rem;
      padding-bottom: 5px;
    }
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: min(3px, 0.234375cqw);
      background-image: var(--grad01);
      @media (max-width: 768px) {
        height: 4px;
      }
    }
  }
  + .faq-item_wrap {
    margin-top: min(64px, 5cqw);
    @media (max-width: 768px) {
      margin-top: 48px;
    }
  }
}

.faq-item {
  padding: min(16px, 1.25cqw);
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #fff;
  transition: border 300ms ease;
  margin-top: min(32px, 2.5cqw);

  @media (max-width: 768px) {
    padding: 16px;
    margin-top: 24px;
  }

  .qes {
    width: 100%;
    padding: min(11px, 0.859375cqw) min(64px, 5cqw) min(11px, 0.859375cqw) min(72px, 5.625cqw);
    font-size: min(1.8rem, 1.40625cqw);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.555555555555556;
    position: relative;
    cursor: pointer;

    @media (max-width: 768px) {
      padding: 0 56px;
      font-size: 1.8rem;
    }

    .icon {
      position: absolute;
      top: 50%;
      left: 0;
      translate: 0 -50%;
      width: min(48px, 3.75cqw);
      aspect-ratio: 1/1;
      background: var(--grad02);
      border-radius: 100%;
      font-family: var(--text-poppins);
      font-size: min(2.4rem, 1.875cqw);
      font-weight: 500;
      letter-spacing: 0;
      line-height: 1;
      color: #fff;
      display: grid;
      place-content: center;

      @media (max-width: 768px) {
        width: 40px;
        font-size: 2.4rem;
      }
    }

    .toggle-icon {
      position: absolute;
      top: 50%;
      right: 0;
      translate: 0 -50%;
      width: min(40px, 3.125cqw);
      aspect-ratio: 1/1;
      border-radius: 100%;
      background-color: #000;
      display: block;
      transition: background-color 300ms ease;

      @media (max-width: 768px) {
        width: 40px;
      }

      &::before,
      &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        width: 50%;
        height: min(2px, 0.15625cqw);
        background-color: #fff;
        transition: rotate 300ms 0s ease;
      }

      &::after {
        rotate: 90deg;
      }
    }

    &.is-open {
      .toggle-icon {
        &::before {
          rotate: 180deg;
        }

        &::after {
          rotate: 360deg;
        }
      }
    }
  }

  .ans {
    display: none;
    padding: min(8px, 0.625cqw) min(64px, 5cqw) min(8px, 0.625cqw) min(72px, 5.625cqw);
    font-size: min(1.5rem, 1.171875cqw);
    letter-spacing: 0.04em;
    line-height: 1.866666666666667;
    text-align: justify;
    word-break: break-all;

    @media (max-width: 768px) {
      padding: 30px 0 16px;
      font-size: 1.5rem;
    }

    .-link {
      font-weight: 700;
      color: var(--color-navy);
      text-decoration-line: underline;
      text-decoration-color: var(--color-navy);
      text-decoration-style: solid;
      text-decoration-thickness: 1px;
    }
  }
  @media (min-width: 769px) {
    &:has(.qes:hover) {
      border: 1px solid var(--color-navy);
      .toggle-icon {
        background-color: var(--color-navy);
      }
    }
  }
}

.faq-item + .faq-item {
  margin-top: 10px;

  @media (max-width: 768px) {
    margin-top: 16px;
  }
}