/* ==============================================
   FAQセクション専用スタイル
   Version 13.2.0 - 2026-10-19 - Design System v9.0
   カテゴリー名強調、アクティブ状態の視認性改善、テキストサイズ最適化
   ============================================== */

/* 横スクロール防止 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumb-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, rgba(248, 255, 254, 0.5) 100%);
    border-bottom: 1px solid rgba(10, 61, 61, 0.08);
    padding: 18px 0;
    margin-top: 80px;
    box-shadow: 0 2px 8px rgba(10, 61, 61, 0.03);
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: #4A6B5B;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
}

.breadcrumb li a:hover {
    color: #0A3D3D;
    background: rgba(10, 61, 61, 0.05);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #4A6B5B;
    opacity: 0.4;
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: #0A3D3D;
    font-weight: 600;
    padding: 5px 8px;
}

/* ========================================
   ページヘッダー
======================================== */
.page-header {
    width: 100%;
    background: linear-gradient(135deg, #0A3D3D 0%, #164545 50%, #4A6B5B 100%);
    color: #ffffff;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.95;
    letter-spacing: 0.1em;
    margin: 0;
}

/* ========================================
   統合ナビゲーションコンテナ
======================================== */
.unified-navigation {
    background: linear-gradient(135deg, #FAFBFC 0%, #F0F4F8 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    margin-left: -20px;
    margin-right: -20px;
    box-shadow: 0 8px 32px rgba(10, 61, 61, 0.08);
    border: 1px solid rgba(10, 61, 61, 0.06);
}

/* カテゴリーセクション */
.category-section {
    margin-bottom: 2rem;
}

/* カテゴリーヘッダー */
.category-header {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #0A3D3D;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-header i {
    font-size: 1.5rem;
    color: #C9A961;
}

/* カテゴリー説明文 */
.category-description {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* ========================================
   セクションタイトル
======================================== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #0A3D3D;
}

.section-title p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    color: #4A5568;
}

/* ========================================
   FAQ統計ボックス
======================================== */
.faq-stats {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(10, 61, 61, 0.05) 100%);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    border-left: 4px solid #FFD700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.faq-stats h3 {
    font-size: 1.2rem;
    color: #0A3D3D;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.faq-stats h3 i {
    color: #FFD700;
    margin-right: 0.6rem;
}

.faq-stats p {
    color: #4A5568;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   医療広告ガイドライン
======================================== */
.medical-disclaimer {
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    border-left: 5px solid #F56565;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(245, 101, 101, 0.15);
}

.medical-disclaimer h3 {
    color: #C53030;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.medical-disclaimer h3 i {
    font-size: 1.3rem;
}

.medical-disclaimer-content {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.medical-disclaimer-content p {
    margin: 0;
    color: #742A2A;
    line-height: 1.8;
    font-size: 0.95rem;
}

.medical-disclaimer ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #742A2A;
    line-height: 1.8;
    font-size: 0.9rem;
}

.medical-disclaimer-note {
    margin: 1rem 0 0 0;
    font-size: 0.85rem;
    color: #975A16;
    text-align: right;
}

/* ========================================
   カテゴリータブ
======================================== */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    padding: 0;
}

.category-tab {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #4A5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #C9A961);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.category-tab:hover::before {
    transform: translateY(0);
}

.category-tab:hover {
    border-color: #C9A961;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    color: #0A3D3D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, #0A3D3D 0%, #1A4D4D 100%);
    border-color: #0A3D3D;
    color: white;
    box-shadow: 0 6px 24px rgba(10, 61, 61, 0.25);
}

.category-tab.active::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: translateY(0);
}

.category-tab i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: #4A6B5B;
}

.category-tab:hover i {
    transform: scale(1.05);
    color: #C9A961;
}

.category-tab.active i {
    color: #FFD700;
}

.category-name {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1A202C;
}

.category-tab.active .category-name {
    color: white;
    font-weight: 700;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.55;
    font-weight: 600;
    color: #718096;
}

.category-tab:hover .category-count {
    opacity: 0.65;
}

.category-tab.active .category-count {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   クイックアクセスセクション
======================================== */
.quick-access-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(10, 61, 61, 0.1);
}

.quick-access-btn {
    flex: 0 1 auto;
    max-width: 240px;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.05em;
}

.quick-access-btn i {
    font-size: 1.2rem;
}

.quick-access-testimonials {
    background: linear-gradient(135deg, #0A3D3D 0%, #1A4D4D 100%);
    color: white;
    border: 2px solid transparent;
}

.quick-access-testimonials:hover {
    background: linear-gradient(135deg, #1A4D4D 0%, #0A3D3D 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 61, 61, 0.3);
}

.quick-access-reserve {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A3D3D;
    border: 2px solid transparent;
}

.quick-access-reserve:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.quick-access-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.category-badge {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 0.5rem;
}

/* ========================================
   FAQコンテナ
======================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   FAQ項目
======================================== */
.faq-item {
    background: white !important;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    border: none !important;
    border-left: 4px solid #FFD700 !important;
    border-top: 3px solid #FFD700 !important;
    transition: all 0.3s ease !important;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0A3D3D;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.05);
}

.faq-icon {
    color: #FFD700;
    transition: transform 0.3s;
    font-size: 1.2rem;
}

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

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

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(74, 107, 91, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A3D3D;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background: #0A3D3D;
    color: white;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: #666;
    line-height: 1.8;
}

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

.faq-answer p {
    margin: 0 0 18px 0;
    color: #4A5568;
    font-size: 1rem;
    line-height: 2.0;
}

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

.faq-answer strong {
    color: #0A3D3D;
    font-weight: 600;
}

/* ========================================
   関連コンテンツセクション
======================================== */
.related-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fffe 0%, #ffffff 50%, #f8fffe 100%);
}

.related-content-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0A3D3D;
    text-align: center;
}

.related-content-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    color: #4A5568;
    text-align: center;
    margin-bottom: 3rem;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 61, 61, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 61, 61, 0.15);
}

.related-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.related-card-content {
    padding: 2rem;
}

.related-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #0A3D3D 0%, #4A6B5B 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A3D3D;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.related-card-description {
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A3D3D;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.related-card-link:hover {
    color: #4A6B5B;
    gap: 0.8rem;
}

.related-card-link i {
    transition: transform 0.3s ease;
}

.related-card-link:hover i {
    transform: translateX(4px);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.4s; }
.faq-item:nth-child(9) { animation-delay: 0.45s; }
.faq-item:nth-child(10) { animation-delay: 0.5s; }

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 14px 0;
        margin-top: 60px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .page-header {
        margin-top: 0;
        padding: 40px 20px 30px;
        min-height: 200px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* FAQ統計・医療広告ガイドライン */
    .faq-stats,
    .medical-disclaimer {
        padding: 1.5rem;
        margin-bottom: 1.8rem;
    }
    
    .faq-stats h3,
    .medical-disclaimer h3 {
        font-size: 1.05rem;
    }
    
    .medical-disclaimer-content {
        padding: 1rem;
    }
    
    /* 統合ナビゲーションコンテナ */
    .unified-navigation {
        padding: 2rem 1.5rem !important;
        border-radius: 16px !important;
        margin-bottom: 2.5rem !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
    }
    
    .category-header {
        font-size: 1.2rem;
    }
    
    .category-header i {
        font-size: 1.3rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
    
    /* カテゴリータブ */
    .faq-categories {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    
    .category-tab {
        padding: 1rem 0.9rem;
        gap: 0.5rem;
    }
    
    .category-tab i {
        font-size: 1.6rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-count {
        font-size: 0.85rem;
    }
    
    /* クイックアクセスボタン */
    .quick-access-section {
        gap: 0.8rem;
    }
    
    .quick-access-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .category-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }
    
    .category-tab i {
        font-size: 1rem;
    }
    
    .related-content-section {
        padding: 60px 0;
    }
    
    .related-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-card-content {
        padding: 1.5rem;
    }
    
    .related-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb .separator {
        margin: 0 6px;
        font-size: 0.7rem;
    }
    
    .page-header {
        padding: 35px 20px 25px;
        min-height: 180px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
    
    /* FAQ統計・医療広告ガイドライン（小画面） */
    .faq-stats,
    .medical-disclaimer {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-stats h3,
    .medical-disclaimer h3 {
        font-size: 1rem;
    }
    
    .faq-stats p,
    .medical-disclaimer ul {
        font-size: 0.85rem;
    }
    
    .medical-disclaimer-content {
        padding: 0.9rem;
    }
    
    /* 統合ナビゲーションコンテナ（小画面） */
    .unified-navigation {
        padding: 1.5rem 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 2rem !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    
    .category-header {
        font-size: 1.1rem;
    }
    
    .category-header i {
        font-size: 1.2rem;
    }
    
    .category-description {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    /* カテゴリータブ（小画面） */
    .faq-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.9rem 0.7rem;
        gap: 0.4rem;
    }
    
    .category-tab i {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.95rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }
    
    /* クイックアクセスボタン（小画面） */
    .quick-access-section {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .quick-access-btn {
        max-width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .page-header {
        padding: 30px 20px 20px;
        min-height: 160px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
}
