/* ============================================
   使い方セクション専用CSS
   ============================================ */

/* 使い方セクション全体 */
.howto-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

/* 使い方コンテナ */
.howto-container {
    max-width: 1440px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px;
}

/* ステップカード */
.howto-step {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.howto-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #22c55e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.howto-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.howto-step:hover::before {
    opacity: 1;
}

/* ステップ番号 */
.step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.howto-step:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
}

/* ステップコンテンツ */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-family: 'Yusei Magic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
}

/* ドキュメントセクション */
.howto-docs {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.docs-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.docs-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f0f1ff 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.docs-icon svg {
    color: #6366f1;
    transition: all 0.3s ease;
}

.docs-card:hover .docs-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scale(1.1);
}

.docs-card:hover .docs-icon svg {
    color: white;
}

.docs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-family: 'Yusei Magic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.docs-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

.docs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.docs-link:hover {
    gap: 10px;
    color: #4f46e5;
}

.docs-link svg {
    transition: transform 0.3s ease;
}

.docs-link:hover svg {
    transform: translateX(4px);
}

/* テーマドキュメントリンク */
.theme-docs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.theme-doc-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f1ff 0%, #e0e7ff 100%);
    color: #6366f1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.theme-doc-link:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット */
@media (max-width: 768px) {
    .howto-section {
        padding: 80px 0;
    }

    .howto-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .howto-step {
        padding: 32px 24px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .howto-docs {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .docs-card {
        padding: 28px 24px;
    }

    .docs-icon {
        width: 64px;
        height: 64px;
    }

    .docs-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .howto-section {
        padding: 60px 0;
    }

    .howto-container {
        gap: 24px;
        padding: 0 16px;
        margin-bottom: 50px;
    }

    .howto-step {
        padding: 28px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .howto-docs {
        gap: 20px;
        padding: 0 16px;
    }

    .docs-card {
        padding: 24px 20px;
    }

    .docs-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .docs-icon svg {
        width: 24px;
        height: 24px;
    }

    .docs-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .docs-text {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

    .docs-link {
        font-size: 0.9rem;
    }

    .theme-docs-links {
        gap: 10px;
        margin-top: 16px;
    }

    .theme-doc-link {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* アニメーション */
@media (prefers-reduced-motion: no-preference) {
    .howto-step {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .howto-step:nth-child(1) { animation-delay: 0.1s; }
    .howto-step:nth-child(2) { animation-delay: 0.2s; }
    .howto-step:nth-child(3) { animation-delay: 0.3s; }
    .howto-step:nth-child(4) { animation-delay: 0.4s; }

    .docs-card {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .docs-card:nth-child(1) { animation-delay: 0.5s; }
    .docs-card:nth-child(2) { animation-delay: 0.6s; }
    .docs-card:nth-child(3) { animation-delay: 0.7s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
