@charset "UTF-8";

/**
 * Salon de Mirror - FAQ Page Styles
 * よくある質問ページ専用スタイル（完全修正版）
 */

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.faq-title {
    margin-bottom: 50px;
    font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-normal) var(--unnamed-font-size-32) / var(--unnamed-line-spacing-44) var(--unnamed-font-family-zenoldmincho-bold);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-128cadfd);
    text-align: center;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    margin-bottom: 40px;
    background: #dfedf4;
    position: relative;
}

/* --- 質問部分（クリックする場所） --- */
.faq-question {
    width: 100%;
    border: none;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    position: relative;
    z-index: 2; /* アニメーション時に上に表示 */
    background: inherit;
}

/* ホバー時の挙動 */
.faq-question:hover {
    background-color: #d8eef3;
}

/* Qアイコン */
.faq-icon {
    flex-shrink: 0;
    font-weight: bold;
    color: #0088b4;
    top: -5px;
    font-size: 22px;
    width: 30px;
    display: flex;
    justify-content: center;
    font-family: var(--unnamed-font-family-source-han-sans-jp);
    position: relative;
}

/* 質問テキスト */
.faq-text {
    flex: 1;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
}

/* 矢印アイコン */
.faq-arrow {
    flex-shrink: 0;
    color: #0088b4;
    font-size: 20px;
    height: 1.3em;
    transition: transform 0.3s ease;
    display: flex;
}

.faq-arrow img {
    height: 100%;
    width: auto;
}

/* 開いている時の矢印回転 */
.faq-question.active .faq-arrow {
    transform: rotate(90deg);
}


/* --- 回答エリア（アニメーションの肝） --- */
.faq-answer {
    overflow: hidden; /* 必須：はみ出し防止 */
    position: relative;
    z-index: 1;
    margin-top: -5px; /* 質問部分との隙間調整 */
    
    /* ▼ 閉じた状態（初期値） */
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;    /* 強制的に0 */
    padding-bottom: 0 !important; /* 強制的に0 */
    border: none;
    
    /* アニメーション設定 */
    transition: 
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease,
        opacity 0.4s ease;
}

/* 回答エリアの上の線 */
.faq-answer:before {
    content: "";
    display: block;
    width: 93%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 99999999;
    height: 6px;
    background: #118cac;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ▼ 開いた状態（.openクラス付与時） */
.faq-answer.open {
    max-height: 1000px; /* 文章が長くても入るように */
    opacity: 1;
    padding: 20px !important;
    border-radius: 0 0 4px 4px;
    position: relative;
}

.faq-answer.open:before {
    opacity: 1; /* 線を表示 */
}

/* 回答テキスト */
.faq-answer p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}


/* ========================================
   CTA Button
   ======================================== */
.faq-cta-button {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0088b4;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.faq-cta-button:hover {
    background-color: #006688;
}


/* ========================================
   Responsive Design (Tablet: 769px - 1024px)
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .faq-question {
        padding: 18px;
        gap: 15px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-cta-button {
        padding: 16px;
        font-size: 16px;
        margin-top: 40px;
    }
}

/* ========================================
   Responsive Design (スマホ対応)
   ======================================== */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

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

    .faq-text {
        font-size: 15px;
    }

    /* スマホ時は開いた時だけpaddingを変更 */
    .faq-answer.open {
        padding: 16px !important;
    }
    
    .faq-answer p {
        font-size: 14px;
    }

    .faq-cta-button {
        font-size: 16px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 30px 0;
    }

    .faq-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .faq-items {
        margin-bottom: 7rem;
    }

    .faq-item {
        margin-bottom: 15px;
        background-color: #d8eef3;
    }

    .faq-question {
        padding: 14px 6px;
        gap: 5px;
        align-items: center;
        position: relative;
    }

    .faq-icon {
        width: 24px;
        font-size: 16px;
    }

    .faq-text {
        font-size: 4vw;
    }

    .faq-arrow {
        font-size: 10px;
    }

    /* スマホ小時は開いた時だけpaddingを変更 */
    .faq-answer.open {
        padding: 14px !important;
    }

    .faq-answer p {
        font-size: 4.1vw;
        line-height: 1.9;
    }

    .faq-cta-button {
        font-size: 15px;
        padding: 14px;
    }
}