/* 基本スタイル */
.ch-faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.ch-faq-main-title {
    text-align: center;
    color: #2b6cb0;
    margin-bottom: 2rem;
    position: relative;
    font-size: 2rem;
}

.ch-faq-main-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #2b6cb0, #4299e1);
    margin: 1rem auto 0;
}

/* フィルターボタン */
.ch-faq-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ch-faq-filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: #ebf8ff;
    border: none;
    border-radius: 9999px;
    color: #2b6cb0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.ch-faq-filter-btn:hover {
    background-color: #bee3f8;
}

.ch-faq-filter-btn.active {
    background: linear-gradient(to right, #2b6cb0, #4299e1);
    color: white;
}

/* FAQアイテム */
.ch-faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ch-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ch-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: #f7fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.ch-faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
}

.ch-faq-toggle {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
	flex-shrink: 0; /* 追加：縮小を防ぐ */
}

.ch-faq-toggle::before,
.ch-faq-toggle::after {
    content: "";
    position: absolute;
    background-color: #4a5568;
    transition: transform 0.3s ease;
}

.ch-faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.ch-faq-toggle::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.ch-faq-item.active .ch-faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
}

.ch-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.ch-faq-item.active .ch-faq-answer {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
}

.ch-faq-answer > * {
    margin-top: 1rem;
    margin-bottom: 1%;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ch-faq-main-title {
        font-size: 1.5rem;
    }
    
    .ch-faq-question {
        padding: 1rem;
    }
    
    .ch-faq-question h3 {
        font-size: 1rem;
		margin-right: 0.5rem; /* 追加：十字マークとの間隔を確保 */
    }
	/* 十字マークのサイズを調整 */
    .ch-faq-toggle {
        width: 1rem;
        height: 1rem;
    }
    
    .ch-faq-toggle::before {
        height: 1.5px; /* 線の太さを調整 */
    }
    
    .ch-faq-toggle::after {
        width: 1.5px; /* 線の太さを調整 */
    }
}