@charset "UTF-8";

.faq-container {
    max-width: 600px;
    margin: 40px auto;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: #005088;
    color: #fff;
    border: none;
    text-align: left;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "＋";
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    transition: height 0.3s ease;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
}

/* クリック時「＋」を45度回転させて「×」にする */
.faq-question.open::after {
    transform: rotate(45deg);
}
.faq-answer.open {
    height: 120px; /* 中身が収まる適切な高さ */
}