/* プロンプトエンジニアリング技術ページ専用スタイル */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --card-bg: #f9fafb;
    --background-light: #f3f4f6;
    --background-soft: #fefefe;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --accent-soft: #e0e7ff;
    --shadow-soft: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

/* メインコンテンツエリア */
.main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 40px 0;
    min-height: 100vh;
}

/* ページヘッダーのスタイリング */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, #f0f9ff 100%);
    border-radius: 16px;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header h1 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

/* 技術セクション */
.technique-section {
    margin-bottom: 50px;
    padding: 35px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.technique-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.technique-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.technique-title i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: var(--accent-soft);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technique-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* 例のコンテナ */
.example-container {
    margin-top: 30px;
}

.example-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.example-title i {
    color: var(--warning-color);
    background: #fef3c7;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.example-box {
    background: var(--background-soft);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.example-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    padding: 8px 12px;
    background: var(--accent-soft);
    border-radius: 6px;
    display: inline-block;
}

/* 比較表 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: var(--background-soft);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table tr:hover {
    background: var(--accent-soft);
    transition: background-color 0.2s ease;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* パンくずリスト */
.breadcrumb {
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 20px;
}

.breadcrumb a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* 現在のページ（アクティブページ）のスタイル */
.breadcrumb .current-page {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ヒントボックス */
.tips-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.tips-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.tips-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.tips-title i {
    font-size: 1.2rem;
    color: #ffd700;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .technique-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .technique-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .example-box {
        padding: 20px;
        font-size: 0.9rem;
    }

    .tips-box {
        padding: 25px 20px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 15px;
        margin-top: 10px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .technique-section {
        padding: 20px 15px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
}
