:root {
    --primary-color: #e85a71;
    --secondary-color: #4ea1d3;
    /* A nice contrasting blue for links/accents, similar to original #1DA1F2 but softer */
    --text-main: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-speed: 0.3s;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* Header Section */
.qa-header {
    text-align: center;
    margin-bottom: 50px;
}

.qa-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.qa-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.qa-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Q&A Cards */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.qa-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.qa-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    outline: none;
}

.qa-question:focus,
.qa-question:active,
.qa-question:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.qa-icon-q {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 16px;
    margin-top: 2px;
    /* Visual alignment with text */
}

.qa-text-q {
    flex-grow: 1;
}

.qa-toggle-icon {
    margin-left: 16px;
    color: #ccc;
    transition: transform var(--transition-speed);
}

.qa-card.active .qa-toggle-icon {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* Answer Section */
.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out;
    opacity: 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.qa-card.active .qa-answer {
    max-height: 500px;
    /* Fallback for safe-guard, JS should handle dynamic height ideal */
    opacity: 1;
}

.qa-answer-content {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    color: var(--text-main);
    line-height: 1.8;
}

.qa-icon-a {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 16px;
    margin-top: 2px;
}

/* Category Title */
.qa-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 5px solid var(--primary-color);
}

.qa-category-title:first-of-type {
    margin-top: 10px;
}

/* Button */
.qa-footer {
    margin-top: 60px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(232, 90, 113, 0.3);
}

.btn-back:hover {
    background-color: #d6455d;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 576px) {
    .qa-container {
        padding: 30px 15px;
    }

    .qa-title {
        font-size: 1.6rem;
    }

    .qa-question {
        padding: 20px;
        font-size: 1rem;
    }

    .qa-answer-content {
        padding: 20px;
    }

    .qa-icon-q,
    .qa-icon-a {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 12px;
    }
}