@charset "UTF-8";

/* ===============================================
  faq
=============================================== */

/* ------------------------------
	page-header
------------------------------ */
.page-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  @media (min-width: 768px) {
    .page-header {
      padding-top: 8rem;
      padding-bottom: 8rem;
    }
  }

.faq .page-header__category {
  font-size: .9em;
  letter-spacing: 0.05em;
  line-height: 1;
}
@media (min-width: 768px) {
  .faq .page-header__category {
    font-size: .9em;
    margin-bottom: 0.8rem;
  }
}

.faq__header {
    margin-bottom: 4rem;
}
.faq__en-title {
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.faq__section-title {
    width: fit-content;
    color: var(--color-secondary);
    font-size: 1.3em;
    border-bottom: 2px solid var(--color-secondary);
    margin:  3em auto 2em;
    padding: .5em 3em;
}
.faq__section-title:first-of-type {
    margin-top: 0;
}
.faq__sub-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: .5em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}
.faq__list dt {
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 0.5em;
    padding-top: 3rem;
    padding-left: 1.8em;
    color: var(--color-secondary);
    position: relative;
    border-top: 1px solid #eee;
    list-style: none;
    scroll-margin-top: 100px; /* SP用：小さめのオフセット */
}

@media (min-width: 768px) {
    .faq__list dt {
        scroll-margin-top: 120px; /* PC用：大きめのオフセット */
    }
}
.faq__list dt:first-of-type {
    border-top: none;
}
.faq__list dt::before {
    content: "Q.";
    position: absolute;
    left: 0;
    top: 2.9rem;
    font-weight: bold;
    color: var(--color-secondary);
}
.faq__list dd {
    margin-top: 1.5em;
    margin-bottom: 0;
    padding-bottom: 2em;
    margin-left: 0;
    line-height: 1.8;
    position: relative;
    padding-left: 1.8em;
    border-bottom: 1px solid #eee;
}
.faq__list dd:last-of-type {
    border-bottom: 1px solid #eee;
}
.faq__list dd::before {
    content: "A.";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #ccc;
}
.faq__list.is-nested dt {
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .faq__section-title {
        font-size: 1.67em;
    }
}

/* ------------------------------
	a-link
------------------------------ */
.faq .a-link {
    padding: 3em 0 1em;
}
.faq .a-link li {
    list-style: none;
}
.faq .a-link .column.col2 {
    gap: 1em;
}
.faq .a-link li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-gray-light);
    border-radius: 8px;
    padding: 1em 1em;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.faq .a-link li a::after {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-white);
    background-image: url('/common/img/arrow-black.svg');
    background-size: 1.2rem;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(90deg);
    transition: transform 0.3s ease, background-color 0.3s ease, background-image 0.3s ease;
}

@media (hover: hover) {
    .faq .a-link li a:hover {
        color: var(--color-primary);
    }
    
    .faq .a-link li a:hover::after {
        background-color: var(--color-primary);
        background-image: url('/common/img/arrow.svg');
        transform: rotate(90deg) scale(1.1);
    }
}

@media (min-width: 768px) {
    .faq .a-link .column.col2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
        flex-direction: unset;
    }
}

@media (min-width: 1024px) {
    .faq .a-link {
        padding: 5em 0 2em;
    }
    .faq .a-link li a {
        padding: 2em;
    }
    .faq .a-link .column.col2 {
        gap: 2em;
    }
}
