/**
 * ヘルプページ用スタイル
 */

/* ヘルプページコンテナ（1カラム） */
.help-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* メインコンテンツエリア */
.help-main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 3px solid #f0f0f0;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary-color, #DC2626);
    font-size: 36px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ヘルプコンテンツ */
.help-content {
    padding: 0;
}

/* FAQ リスト */
.faq-list {
    margin-top: 0;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--primary-color, #DC2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* 質問部分 */
.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.3s;
}

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

.faq-item.active .faq-question {
    background-color: #FEF2F2;
}

.q-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color, #DC2626);
    color: white;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.arrow {
    flex-shrink: 0;
    margin-left: 20px;
    color: #999;
    transition: transform 0.3s;
}

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

/* 回答部分 */
.faq-answer {
    display: none;
    padding: 0 25px 25px;
    background-color: white;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer {
    display: block;
}

.answer-wrapper {
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
    border-top: 2px dashed #f0f0f0;
}

.a-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #10B981;
    color: white;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.answer-content {
    flex: 1;
    padding-top: 5px;
}

.answer-content p {
    margin: 0 0 15px;
    line-height: 1.8;
    color: #555;
}

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

.answer-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.answer-content li {
    margin-bottom: 8px;
    color: #555;
}

/* お問い合わせセクション */
.contact-section {
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.contact-icon {
    font-size: 48px;
    color: var(--primary-color, #DC2626);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.contact-section p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* お問い合わせボタン */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: var(--primary-color, #DC2626);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-contact:hover {
    background-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-contact i {
    font-size: 18px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .help-page-container {
        padding: 20px 15px;
    }

    .help-main-content {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .page-header {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .page-title i {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .faq-item {
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .q-mark,
    .a-mark {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 12px;
    }

    .question-text {
        font-size: 14px;
    }

    .arrow {
        margin-left: 10px;
    }

    .answer-wrapper {
        padding-top: 15px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .contact-section {
        padding: 35px 25px;
        margin-top: 40px;
        border-radius: 12px;
    }

    .contact-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-section p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .btn-contact {
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 30px;
    }

    .btn-contact i {
        font-size: 16px;
    }
}