.faq {
    max-width: 600px;
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 2px solid #d6dde3;
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2.0em 1em 2.5em; /* top right bottom left */
    color: #333333;
    font-weight: 450;
    cursor: pointer;
    text-align: left;
}

.faq summary::before,
.faq p::before {
    position: absolute;
    left: 0.5em; /* アイコンの左端からの位置 */
    font-weight: 600;
    font-size: 1.3em;
}

.faq summary::before {
    position: absolute;
    top: 0.6em; /* 上端に合わせる */
    color: #75bbff;
    content: "Q";
}

.faq summary::after {
    position: absolute;
    right: 1.0em; /* 右端からの位置 */
    top: 40%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    margin-left: 15px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .5s;
}

.faq[open] summary::after {
    transform: rotate(225deg);
}

.faq p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 1.2em 1.5em 2.5em; /* top right bottom left */
    color: #333;
    transition: transform .5s, opacity .5s;
}

.faq[open] p {
    transform: none;
    opacity: 1;
}

.faq p::before {
    color: #ff8d8d;
    line-height: 1.2;
    content: "A";
}
