@charset "utf-8";

/* アコーディオン全体のコンテナ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

/* 各Q&Aアイテム */
.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item:first-child {
    border-top: 1px solid #ddd;
}

.faq-input {
    display: none;
}

/* 質問部分（ラベル） */
.faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 16px;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.faq-question:hover {
    background-color: #fcf4f5;
}

/* Qのマーク */
.faq-q-mark {
    color: #e02943;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 質問テキスト */
.faq-q-text {
    flex-grow: 1;
    padding-right: 20px;
}

/* 開閉アイコン（＋と－） */
.faq-toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e02943;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-toggle-icon::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-input:checked+.faq-question .faq-toggle-icon::after {
    transform: translateY(-50%) rotate(0);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f9f9f9;
}

.faq-input:checked~.faq-answer {
    grid-template-rows: 1fr;
}

/* 回答の内側コンテナ（はみ出し防止） */
.faq-answer-inner {
    overflow: hidden;
    display: flex;
    padding: 0 16px;
}

/* Aのマーク */
.faq-a-mark {
    color: #666;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    margin-top: -2px;
    flex-shrink: 0;
}

/* 回答テキスト */
.faq-a-text {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/*----------------------------------------------------
    SPサイトcss
----------------------------------------------------*/

@media screen and (max-width: 480px) {

 .faq-question {
        padding: 16px 12px;
    }

    .faq-answer-inner {
        padding: 0 12px;
    }

    .faq-a-text {
        margin: 0 0 20px 0;
    }




}