/* ============================================================
   faq.css — よくある質問ページ固有スタイル
   v2 チャットバブル型（Q左ブルー / A右グリーン）
   ============================================================ */

/* --- Billboard offset override (info page) --- */
@media (min-width: 1200px) {
    .article-header__inner {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Chat container --- */
.faq-chat {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Question (left-aligned, blue) --- */
.faq-chat__q {
    display: flex;
    justify-content: flex-start;
    padding-right: 60px;
}

.faq-chat__bubble--q {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: #fff;
    border-radius: 20px 20px 20px 4px;
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.faq-chat__label {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
}

.faq-chat__bubble--q p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* --- Answer (right-aligned, green, avatar on right) --- */
.faq-chat__a {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 12px;
    padding-left: 60px;
    margin-bottom: 20px;
}

.faq-chat__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.faq-chat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-chat__bubble--a {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    border-radius: 20px 20px 4px 20px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    flex: 1;
    min-width: 0;
}

.faq-chat__bubble--a p {
    margin: 0 0 0.8em;
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
}

.faq-chat__bubble--a p:last-child {
    margin-bottom: 0;
}

/* --- Text decorations on green background --- */
.faq-chat__bubble--a .em-highlight {
    background: rgba(255, 255, 255, 0.25);
}

.faq-chat__bubble--a .em-highlight--blue {
    background: rgba(255, 255, 255, 0.25);
}

.faq-chat__bubble--a .em-underline {
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.faq-chat__bubble--a .em-bold {
    color: #fff;
}

.faq-chat__bubble--a .em-strong-highlight {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

/* --- Answer links --- */
.faq-chat__link {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.faq-chat__link .link-arrow {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.faq-chat__link .link-arrow:hover {
    border-bottom-color: #fff;
}

/* --- Desktop --- */
@media (min-width: 1024px) {
    .faq-chat__bubble--q p {
        font-size: 16px;
    }
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .faq-chat__q {
        padding-right: 32px;
    }

    .faq-chat__a {
        padding-left: 16px;
    }

    .faq-chat__bubble--q {
        padding: 14px 16px;
    }

    .faq-chat__bubble--a {
        padding: 16px 18px;
    }

    .faq-chat__avatar {
        width: 36px;
        height: 36px;
    }
}
