.qa-container {
    max-width: 800px;
    margin: 0 auto 120px;
}

.qa-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #ccc;
    margin-bottom: 30px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.qa-item {
    border-bottom: 1px solid #f0f0f0;
}

.qa-question {
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.qa-question::after {
    content: '+';
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 200;
    transition: transform 0.4s ease;
}

.qa-item.active .qa-question {
    color: #999;
}

.qa-item.active .qa-question::after {
    transform: rotate(45deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.qa-item.active .qa-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in;
}

.qa-answer p {
    padding: 0 0 25px 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;
}

/* スマホ最適化 */
@media (max-width: 768px) {
    .qa-container { padding: 0 10px; }
    .qa-question { font-size: 0.85rem; padding: 20px 0; }
    .qa-answer p { font-size: 0.8rem; }
}

/* ==========================================
   AIチャットボットエリア (Inline Chat)
   ========================================== */
.ai-chat-section {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ai-chat-header {
    background-color: #4a5d23;
    color: white;
    padding: 20px;
    text-align: center;
}

.ai-chat-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.ai-chat-header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.inline-chat-window {
    display: flex;
    flex-direction: column;
}

#inline-chat-history {
    height: 250px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inline-chat-window .message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.inline-chat-window .ai-message {
    background-color: #e2e8f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.inline-chat-window .user-message {
    background-color: #4a5d23;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.inline-chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: white;
}

#inline-chat-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#inline-chat-input:focus {
    border-color: #4a5d23;
}

#inline-send-btn {
    background-color: #4a5d23;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    margin-left: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#inline-send-btn:hover {
    background-color: #3b4a1c;
}