/* ======================
   バイブコーディング入門 - モダンベースCSS
   モダンデザイン刷新版 - グラデーション & アニメーション対応
   更新日: 2025/06/07
   ====================== */

/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Typography & Colors - Simple Palette ===== */
:root {
    /* カラーテーマ - Simple */
    --primary-blue: #667eea;
    --dark-blue: #5a67d8;
    --light-blue: #f7fafc;
    --border-blue: #cbd5e0;
    --bright-blue: #4299e1;
    
    /* グレースケール - Refined */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #a0aec0;
    --background-main: #ffffff;
    --background-white: #ffffff;
    --background-glass: rgba(255, 255, 255, 0.25);
    --border-light: #e2e8f0;
    --border-lighter: #f1f5f9;
    
    /* 状態カラー - Simple */
    --warning-yellow: #f6ad55;
    --warning-bg: #fef5e7;
    --success-green: #48bb78;
    --success-bg: #f0fff4;
    --error-red: #f56565;
    --error-bg: #fed7d7;
    
    /* フォント */
    --font-main: 'Hiragino Sans', 'Meiryo', sans-serif;
    --font-code: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* サイズ & エフェクト - Enhanced */
    --container-max: 1000px;
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;
    
    /* シャドウ システム - シンプル */
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Base Typography - Enhanced ===== */
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748 !important;
    background: #ffffff !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.6;
    margin-bottom: 15px;
}

h1 { font-size: 28px; font-weight: bold; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; font-weight: bold; }
h5 { font-size: 16px; font-weight: bold; }
h6 { font-size: 15px; font-weight: bold; }

p {
    margin-bottom: 18px;
    line-height: 1.8;
}

/* ===== Layout Foundation ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 広告レイアウト（左側広告） ===== */
.vibe-page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.vibe-page-wrapper .ad-container {
    position: sticky;
    top: 20px;
    width: 160px;
    height: 600px;
    flex-shrink: 0;
}

.vibe-page-wrapper .ad-left {
    order: 1;
}

.vibe-page-wrapper .vibe-content,
.vibe-page-wrapper .container {
    flex: 1;
    max-width: 1000px;
    margin: 0;
    padding: 0 20px;
    order: 2;
}

/* ===== Header & Navigation ===== */
header {
    background: var(--background-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.site-logo {
    text-align: center;
}

.site-logo h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 0;
}

/* パンくずリスト */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Main Sections - Simple Design ===== */
.title-section {
    background: #f5f5f5;
    color: #333333;
    padding: 40px 30px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}

.page-description {
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: #333333;
}

.content-section {
    background: #ffffff;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.content-section h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-lighter);
}

.content-section h3 {
    margin: 25px 0 15px;
}

/* 最初のh2要素のmargin-topを除外 */
.content-section h2:first-child {
    margin-top: 0;
}

/* ===== Lists & Links ===== */
ul, ol {
    margin: 15px 0 20px 30px;
    line-height: 1.8;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Tables - Simple Design ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #fafafa;
    color: #333333;
    font-weight: bold;
    font-size: 14px;
}

/* ===== Code & Pre ===== */
pre {
    background: #f5f5f5;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: var(--font-code);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== Code Example ===== */
.code-example {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    font-family: var(--font-code);
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ===== Footer - Simple Design ===== */
footer {
    background: #333333;
    color: #e2e8f0;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer p,
footer a,
footer li {
    color: #e2e8f0;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    padding: 8px 12px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer p {
    font-size: 14px;
    margin: 0;
}

/* ===== Responsive Base ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-links a {
        margin: 0;
    }
    
    /* モバイルでは広告を非表示 */
    .vibe-page-wrapper {
        flex-direction: column;
    }
    
    .vibe-page-wrapper .ad-container {
        display: none;
    }
    
    .vibe-page-wrapper .vibe-content,
    .vibe-page-wrapper .container {
        padding: 0 15px;
    }
}

/* ===== Animation & Performance - Disabled ===== */
/* All animations have been removed for a simpler experience */
