/* ==============================================
   FAQ専用スタイル
   訪問看護ステーションHaRE
   ============================================== */

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #4A9FD8 0%, #87CEEB 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

/* 検索セクション */
.faq-search-section {
    padding: 3rem 0 2rem;
    background: #f8f9fa;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4A9FD8;
    font-size: 1.2rem;
}

#faq-search {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 4rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#faq-search:focus {
    outline: none;
    border-color: #4A9FD8;
    box-shadow: 0 4px 20px rgba(74, 159, 216, 0.2);
}

/* カテゴリータブ */
.faq-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover {
    border-color: #4A9FD8;
    color: #4A9FD8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 159, 216, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, #4A9FD8, #67B5E3);
    color: white;
    border-color: #4A9FD8;
    box-shadow: 0 4px 15px rgba(74, 159, 216, 0.3);
}

.category-tab i {
    font-size: 1.1rem;
}

/* FAQ一覧セクション */
.faq-list-section {
    padding: 3rem 0;
    background: white;
}

.faq-category-group {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #4A9FD8;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category-title i {
    color: #4A9FD8;
    font-size: 1.6rem;
}

/* FAQアイテム */
.faq-item {
    margin-bottom: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #4A9FD8;
    box-shadow: 0 4px 15px rgba(74, 159, 216, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 1rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4A9FD8, #67B5E3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(74, 159, 216, 0.3);
}

.faq-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
}

.faq-arrow {
    flex-shrink: 0;
    color: #4A9FD8;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.answer-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF8C42, #FFB366);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.faq-answer > div {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.answer-content {
    flex: 1;
}

.answer-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content ul,
.answer-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.answer-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.answer-content strong {
    color: #333;
    font-weight: 600;
}

/* CTAセクション */
.faq-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #4A9FD8 0%, #67B5E3 100%);
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary {
    background: white;
    color: #4A9FD8;
}

.cta-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-info {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-info strong {
    font-weight: 700;
    font-size: 1.05rem;
}

/* 検索結果の強調 */
.faq-item.search-match {
    display: block;
}

.faq-item.search-hidden {
    display: none;
}

.highlight {
    background: yellow;
    padding: 0 2px;
    border-radius: 2px;
}

/* カテゴリーフィルター */
.faq-category-group.category-hidden {
    display: none;
}

/* 検索結果なしメッセージ */
.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.no-results-message i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.no-results-message a {
    color: #4A9FD8;
    text-decoration: underline;
    font-weight: 600;
}

.no-results-message a:hover {
    color: #3A8FC8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1.5rem 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .search-box {
        padding: 0 1rem;
    }

    #faq-search {
        padding: 1rem 1rem 1rem 3.5rem;
        font-size: 0.95rem;
    }

    .search-box i {
        left: 1.2rem;
    }

    .category-tabs {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .category-tab i {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.4rem;
        gap: 0.5rem;
    }

    .category-title i {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 1.2rem 1rem;
        gap: 0.8rem;
    }

    .faq-icon,
    .answer-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .faq-text {
        font-size: 1rem;
    }

    .faq-arrow {
        font-size: 1rem;
    }

    .faq-answer > div {
        padding: 1.2rem 1rem;
        gap: 0.8rem;
    }

    .answer-content p,
    .answer-content li {
        font-size: 0.95rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }

    .faq-answer > div {
        flex-direction: column;
        gap: 1rem;
    }

    .answer-icon {
        align-self: flex-start;
    }
}