@charset "utf-8";

/* FAQ */
.faq-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-body {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .faq-box>.ydp-box:hover {
        transition: 0.3s ease-in-out;
        background-color: rgba(0, 0, 0, 0.05);
    }
}

.faq-body .faq-q {
    display: flex;
    align-items: inherit;
}

.faq-body .faq-q h2,
.faq-body .faq-q h3 {
    padding: 0;
    margin: 0;
}

.faq-body .faq-q h2::before,
.faq-body .faq-q h3::before {
    display: none;
}

.faq-body .faq-q::before {
    content: "Q";
    color: #e80013;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    margin-right: 0.25em;
}

.faq-body .faq-q::after {
    content: "";
    align-self: center;
    font-size: 1.75em;
    font-weight: bold;
    width: 1.25em;
    height: 1.25em;
    color: #fff;
    background-color: #bbbbbb;
    border-radius: 50%;
    line-height: 1em;
    text-align: center;
    flex: 0 0 1.25em;
    margin-left: 0.5em;
    background-image: url(../img/faq_open_white.svg);
    background-position: top 0.45em center;
    background-repeat: no-repeat;
    background-size: 0.75em;
    transition: 0.3s ease-in-out;
}

.faq-body .faq-q.is-open::after {
    transform: rotate(180deg);
}

.faq-body .faq-q__text {
    width: 100%;
}

.faq-body .faq-a {
    display: none;
    margin-top: 10px;
}

.faq-body .faq-a__body {
    display: flex;
}

.faq-body .faq-a__body::before {
    content: "A";
    color: #1111bb;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    margin-right: 0.25em;
}

.faq-a__text p:not(:first-child) {
    margin-top: 0.5em;
}

/* 検索窓 */
.faq-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 2px solid #bbbbbb;
    border-radius: 10px;
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    margin: 0 0 0 auto;
}

.faq-search label {
    width: 100%;
}

.faq-search input {
    width: 100%;
    height: 45px;
    padding: 5px 15px;
    border: none;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
}

.faq-search input::placeholder {
    color: #8f8f8f;
}

.faq-search button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 45px;
    border: none;
    background-color: #bbbbbb;
    cursor: pointer;
}

.faq-search button::after {
    width: 24px;
    height: 24px;
    background-image: url(../img/faq_button.svg);
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
}

/* 3文字未満のエラーメッセージ */
.faq-form {
    position: relative;
}

.faq-error {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 400px;
    right: 0;
    top: 3.5em;
    padding: 0.5em;
    border: 2px solid rgba(232, 0, 19, 0.6);
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
    color: #333333;
    box-shadow: 0 0 8px rgba(232, 0, 19, 0.6);
}

.faq-error::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    border-style: solid;
    border-width: 0 10px 20px 10px;
    border-color: transparent transparent rgba(232, 0, 19, 0.6);
    transform: translateX(-50%) translateY(-100%) skew(15deg);
    transform-origin: bottom;
}

.faq-error::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    border-style: solid;
    border-width: 0 7.8px 15.5px 7.8px;
    border-color: transparent transparent #ffffff;
    transform: translateX(-50%) translateY(-100%) skew(15deg);
    transform-origin: bottom;
}