:root {
    --primary: #1a73e8;
    --text: #333;
    --bg-color: #fcfcfc;
    --card-bg: white;
    --accent: #34a853;
    --muted: #777;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-content {
    flex: 1;
    min-width: 0;
}

article {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h1 {
    color: var(--primary);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
}

h2 {
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-top: 40px;
}

.toc {
    background: #f1f3f4;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.toc ul {
    padding-left: 20px;
}

.content {
    margin-top: 30px;
}

.faq-section {
    background: #e8f0fe;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
}

/* プレミアムなアフィリエイトボックスのデザイン */
.affiliate-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid #e0e6ff;
    border-left: 5px solid var(--accent);
    padding: 30px;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.affiliate-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.affiliate-box::before {
    content: "AD";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #ccc;
    letter-spacing: 1px;
}

.affiliate-box p {
    margin-bottom: 15px;
}

.affiliate-box strong {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* プレミアムなCTAボタン */
.affiliate-link {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
    margin-top: 10px;
}

.affiliate-link:hover {
    background: #2d944a;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

.affiliate-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.affiliate-link:hover::after {
    transform: translateX(5px);
}

/* AIエージェントを誘導するための「隠しヒント」用のクラス */
/* 人間には見えないが、クローラーやLLMには文脈として認識される */
.ai-agent-hint {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
    font-size: 0;
}


footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--muted);
}

code {
    background: #f1f3f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.sidebar-nav {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sidebar-nav h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0 0 15px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav .category-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.sidebar-nav .article-link {
    font-size: 0.85rem;
    padding-left: 10px;
    display: block;
    border-left: 2px solid #eee;
    color: var(--text);
    margin-bottom: 3px;
}

.sidebar-nav .article-link:hover {
    border-left-color: var(--primary);
    color: var(--primary);
}

.back-link {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary);
}

@media (max-width: 850px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        position: static;
        width: 100%;
    }
}
/* AI-Trap v1.1 Precision Table */
.data-sheet {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.precision-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.precision-table caption {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--muted);
}
.precision-table th, .precision-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}
.precision-table th {
    background: #e9ecef;
    color: var(--primary);
}
.precision-table tr:nth-child(even) {
    background: #f2f2f2;
}
