/* FAQ専用スタイルシート - 青色トーンマナー統一 */

/* ベースカラー定義 */
:root {
    --primary-blue: #2196F3;
    --primary-blue-dark: #1976D2;
    --primary-blue-light: #64B5F6;
    --secondary-blue: #E3F2FD;
    --accent-blue: #0277BD;
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-muted: #78909c;
    --background-white: #ffffff;
    --background-light: #f8fafc;
    --border-light: #e0e7ff;
    --shadow-light: 0 2px 8px rgba(33, 150, 243, 0.1);
    --shadow-medium: 0 4px 16px rgba(33, 150, 243, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* メインコンテナ */
.faq-container {
    max-width: 900px;
    margin: 100px auto 0;
    padding: 2rem;
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* ヘッダー */
.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-blue);
}

.faq-header h1 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* パンくずナビ */
.breadcrumb {
    margin: 80px auto 0;
    max-width: 900px;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* FAQアイテム */
.faq-items {
    margin: 2rem 0;
}

.faq-item {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue-light);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.faq-question::before {
    content: "Q";
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.75rem;
    line-height: 24px;
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

.faq-answer::before {
    content: "A";
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.75rem;
    line-height: 24px;
    float: left;
    margin-top: 2px;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

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

/* 強調表示 */
.faq-answer strong {
    color: var(--primary-blue-dark);
    font-weight: 600;
}

/* コードブロック */
.faq-answer code {
    background: var(--secondary-blue);
    color: var(--primary-blue-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

/* リンク */
.faq-answer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* 戻るボタン */
.back-to-faq {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.back-to-faq a {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-faq a:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* 詳細ページ用 */
.faq-detail-container {
    max-width: 800px;
    margin: 100px auto 0;
    padding: 2rem;
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.faq-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-blue);
}

.faq-detail-header h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* アラートボックス */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-info {
    background: var(--secondary-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue-dark);
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .faq-container,
    .faq-detail-container {
        margin-top: 80px;
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
    
    .faq-header h1,
    .faq-detail-header h1 {
        font-size: 1.8rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
    
    .breadcrumb {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-container,
    .faq-detail-container {
        margin-top: 70px;
        padding: 1rem;
    }
    
    .faq-header h1,
    .faq-detail-header h1 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
}