@charset "UTF-8";

/* ========================================================
   [FAQ PAGE STYLES - faq.css]
   FAQ 본문(바디) 영역 전용 스타일시트입니다.
   공통 색상 변수, 헤더, 푸터 스타일은 global.css에서 로드됩니다.
   ======================================================== */

/* ========================================================
   1. 바디 영역 (중앙 흰색 컨테이너 & 6개 카테고리 박스)
   ======================================================== */
.faq-body-wrapper {
    padding: 10px 16px 32px;
}

.faq-main {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 38px 34px 46px;
}

.faq-page-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 26px;
    letter-spacing: 0.02em;
}

/* 6개 카테고리를 감싸는 파란색 사각 박스 */
.category-hero-box {
    background-color: var(--color-primary);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 6개 개별 흰색 카드 (원본 사진 비율 유지) */
.category-card {
    background-color: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 8px;
    aspect-ratio: 1.55 / 1;
    min-height: 175px;
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    outline: none;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* 선택된 카드 강조 */
.category-card.is-active {
    border-color: #ffce3a;
    box-shadow: 0 0 0 3px rgba(255, 206, 58, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon-wrapper {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-card-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
}

/* ========================================================
   2. 카테고리 상세 구역 (カテゴリ詳細 & 아코디언)
   ======================================================== */
.category-detail-section {
    display: none;
    /* 초기 상태: 표시 안 함 */
    margin-bottom: 36px;
}

.category-detail-section.is-visible {
    display: block;
}

/* カテゴリ詳細 타이틀 바 */
.detail-header-bar {
    background-color: var(--color-primary-light);
    border-left: 5px solid var(--color-primary);
    padding: 13px 18px;
    margin-bottom: 22px;
}

.detail-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-main);
}

/* 카테고리 상세 박스 (파란 상단 헤더 + 파란 테두리 외곽 박스) */
.detail-group-card {
    border: 1px solid var(--color-primary);
    background-color: var(--color-surface);
    margin-bottom: 22px;
}

.detail-group-header {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    font-size: 15.5px;
    font-weight: 700;
    padding: 11px 18px;
}

/* 내부 둥근 테두리 아이템 리스트 */
.accordion-list {
    list-style: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    background-color: var(--color-surface);
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 12px 18px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-blue);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
}

.accordion-btn:hover {
    background-color: var(--color-primary-soft);
}

.accordion-btn.is-open {
    background-color: var(--color-primary-soft);
}

.accordion-arrow {
    font-size: 14px;
    color: var(--color-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.accordion-btn.is-open .accordion-arrow {
    transform: rotate(90deg);
}

/* 아코디언 펼쳐지는 답변 영역 */
.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background-color: #fafdff;
}

.accordion-content {
    padding: 15px 18px;
    font-size: 14.5px;
    color: var(--color-text-main);
    line-height: 1.75;
    border-top: 1px dashed #b8dff5;
    white-space: pre-line;
}

.accordion-content a {
    color: var(--color-primary);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* ========================================================
   3. 하단 문의하기 버튼 (お問い合わせへ)
   ======================================================== */
.faq-contact-area {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.contact-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-btn-blue);
    color: var(--color-text-white);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 44px;
    border-radius: 9999px;
    transition: background-color 0.15s ease;
}

.contact-pill-btn:hover {
    background-color: var(--color-primary-hover);
}


/* ========================================================
   4. 반응형 (Responsive)
   ======================================================== */
@media (max-width: 1023px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        min-height: 75px;
        padding: 12px 7px 9px;
        aspect-ratio: 0;
    }

    .category-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .category-card-name {
        font-size: 10px;
        font-weight: 700;
        color: var(--color-text-main);
        text-align: center;
    }

    .accordion-btn,
    .accordion-content {
        font-size: 10px;
    }


}