/**
 * 使い方ガイドページ固有スタイル
 * 共通スタイルは header-info.php に含まれています
 * カラーテーマ: orange (#ff9a56 / #ffb380)
 */

/* ページコンテナ */
.how-to-use-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 20px;
}

.how-to-use-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

/* タイトル */
.page-title {
    font-size: 42px;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-subtitle {
    font-size: 18px;
    color: white;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.section-title {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 10px;
    border-left: 4px solid #ff6b6b;
}

h3 {
    font-size: 20px;
    color: #333;
    font-weight: 700;
    margin: 24px 0 12px;
}

h4 {
    font-size: 18px;
    color: #555;
    font-weight: 700;
    margin: 20px 0 10px;
}

p, li {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

/* ステップリスト */
.step-list {
    padding-left: 20px;
}

.step-list li {
    margin-bottom: 16px;
}

/* スクリーンショット */
.screenshot-box {
    margin: 20px 0;
    text-align: center;
}

.screenshot {
    max-width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ボックス系 */
.tip-box, .warning-box, .alert-box {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid #90caf9;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    border: 2px solid #ffc107;
}

.alert-box {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    border: 2px solid #f44336;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.faq-question {
    cursor: pointer;
    color: #ff6b6b;
    margin: 0;
}

.faq-answer {
    margin-top: 12px;
}

/* 目次 */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.toc-item:hover {
    background: #fff;
    border-color: #ff6b6b;
    transform: translateX(4px);
}

.toc-item.sub {
    margin-left: 24px;
    background: #fafafa;
}

.toc-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8f8f 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.toc-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toc-text {
    flex: 1;
    font-weight: 600;
}

/* ステップヘッダー */
.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 20px;
}

.step-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8f8f 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.step-content {
    margin-top: 16px;
}

/* タブ */
.tab-container {
    margin: 24px 0;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.tab-button.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8f8f 100%);
    color: white;
    border-color: #ff6b6b;
}

.tab-content {
    display: none;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 0 8px 8px 8px;
    border: 2px solid #e0e0e0;
}

.tab-content.active {
    display: block;
}

/* 使い方カード */
.usage-card {
    margin: 32px 0;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

/* CTAボタン */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8f8f 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

/* CTAセクション */
.cta-section .cta-card {
    background: linear-gradient(135deg, #fff5f0 0%, #ffecec 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 2px solid #ffddcc;
}

.cta-section .cta-card h2 {
    color: #ff6b6b;
    margin-bottom: 16px;
}

/* ヘルプセクション */
.help-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e0e0e0;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .how-to-use-container {
        padding: 15px;
        margin-top: 80px;
    }

    .how-to-use-card {
        padding: 24px;
    }

    .page-title {
        font-size: 24px;
    }

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

    .section-title {
        font-size: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        border-radius: 8px;
    }

    .tab-content {
        border-radius: 8px;
    }
}
