/* ヘルプページ専用スタイル */
/* 最終更新: 2025年8月6日 - リファクタリング対応 */

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

.help-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #f8f9fa;
    color: #2a9d8f;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--sc-primary);
}

.help-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2a9d8f;
}

.help-header p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.accordion {
    max-width: 100%;
}

.accordion-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 20px;
    position: relative;
    text-align: left;
}

.accordion-button:not(.collapsed) {
    background-color: #27ae60;
    color: white;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h3 {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.help-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.help-steps li {
    counter-increment: step-counter;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 60px;
}

.help-steps li:last-child {
    border-bottom: none;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    background: #27ae60;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.help-tips {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.help-tips h4 {
    color: #27ae60;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.help-warning h4 {
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.help-feature-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.help-feature-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.help-feature-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.help-feature-description {
    color: #666;
    line-height: 1.6;
}

.help-contact {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #27ae60;
    color: #2c3e50;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.1);
}

.help-contact h3 {
    margin-bottom: 15px;
    font-weight: 700;
    color: #27ae60;
}

.help-contact p {
    margin-bottom: 20px;
    color: #34495e;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    padding: 15px 30px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    margin-bottom: 15px;
}

.contact-method i {
    font-size: 1.3rem;
}

.contact-note {
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(39, 174, 96, 0.08);
    border-left: 4px solid #27ae60;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    text-align: left;
}

.contact-note i {
    margin-right: 8px;
    color: #27ae60;
}

.contact-note a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-note a:hover {
    color: #1e8449;
    border-bottom-color: #1e8449;
    text-decoration: none;
}

/* Bootstrap 4アコーディオンのスタイル改善 */
.help-accordion-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 0;
    text-decoration: none !important;
}

.help-accordion-btn:hover,
.help-accordion-btn:focus {
    text-decoration: none !important;
    color: #28a745;
}

.help-accordion-btn.collapsed {
    color: #666;
}

.help-accordion-btn .help-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #28a745;
}

/* ショートカット表示 */
.help-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.shortcut-item kbd {
    background: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.shortcut-item span {
    font-weight: 500;
    color: #495057;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .help-header h1 {
        font-size: 2rem;
    }
    
    .help-header p {
        font-size: 1rem;
    }
    
    .help-container {
        padding: 15px;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 15px;
    }
    
    .accordion-body {
        padding: 20px;
    }
    
    .help-steps li {
        padding-left: 50px;
    }
    
    .help-steps li::before {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .help-feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* 印刷対応 */
@media print {
    .help-header {
        background: #f8f9fa !important;
        color: #333 !important;
        box-shadow: none;
    }
    
    .accordion-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .accordion-button:not(.collapsed) {
        background-color: #f8f9fa !important;
        color: #333 !important;
    }
    
    .help-contact {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .contact-method {
        background: #e9ecef !important;
        color: #333 !important;
    }
}
