/* ==========================================
   Reset & Base Styles
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'MS Mincho', serif;
    color: #1f2937;
    background-color: #f8fafc;
    line-height: 1.8;
    letter-spacing: 0.05em;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Layout & Containers
========================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.main-content {
    padding-bottom: 48px;
}
.section-spacing {
    margin-top: 56px;
    margin-bottom: 56px;
}

/* ==========================================
   Main Hero Header (Rich Design)
========================================== */
.main-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 40px 0 100px 0; /* 下部の余白を多めに取ってintro-boxを重ねる */
    position: relative;
    overflow: hidden;
}
/* 背景の装飾パターン */
.main-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content {
    flex: 1;
    z-index: 2;
}
@media (min-width: 768px) {
    .hero-image-wrap {
        display: block;
    }
}
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #cbd5e1;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0), linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(255, 255, 255, 0.1);
}
.hero-badge {
    display: inline-block;
    background-color: #f59e0b; /* Amber */
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.hero-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}
.hero-title span {
    color: #fbbf24;
    border-bottom: 3px solid #fbbf24;
    padding-bottom: 4px;
}
.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
}
@media (min-width: 768px) {
    .hero-title { font-size: 44px; }
    .hero-desc { font-size: 18px; }
}

/* ==========================================
   Intro Box
========================================== */
.intro-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    margin-top: -50px; /* Heroに重ねる */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.8;
}
.intro-box strong {
    color: #b91c1c;
    border-bottom: 2px dashed #b91c1c;
}

@media (min-width: 768px) {
    .intro-box {
        font-size: 18px;
    }
}

/* ==========================================
   Typography & Headings
========================================== */
.section-title {
    border-left: 6px solid #172554;
    border-bottom: 1px solid #cbd5e1;
    padding-left: 16px;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.sub-title {
    border-bottom: 1px dashed #94a3b8;
    padding-bottom: 4px;
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.highlight {
    background-color: #fef08a;
    padding: 0 4px;
    font-weight: 600;
}

@media (min-width: 768px) {

    .sub-title {
        font-size: 18px;
    }
    .section-title {
        font-size: 24px;
    }
}

/* ==========================================
   Table of Contents (Rich TOC)
========================================== */
.toc-box {
    background-color: #f8fafc;
    border-top: 6px solid #1e3a8a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 40px 15px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 56px;
}
@media (min-width: 768px) {
    .toc-box {
        padding: 40px 32px;
    }
}
.toc-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.toc-title::before, .toc-title::after {
    content: '';
    height: 1px;
    width: 40px;
    background-color: #94a3b8;
}
.toc-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 768px) {
    .toc-title {
        font-size: 24px;
    }
    .toc-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.toc-list li {
    margin-bottom: 0;
}
.toc-list a {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 100%;
}
@media (min-width: 768px) {
    .toc-list a {
        font-size: 16px;
    }
}
.toc-list a::before {
    content: '▼';
    color: #3b82f6;
    margin-right: 12px;
    font-size: 10px;
    margin-top: 4px;
}
.toc-list a:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    color: #1d4ed8;
}

/* ==========================================
   Agent Cards
========================================== */
.agent-card {
    border: 1px solid #94a3b8;
    background-color: #ffffff;
    padding: 32px;
    margin-bottom: 32px;
    border-radius: 8px;
}
.agent-name {
    font-size: 20px;
    border-left: 4px solid #172554;
    padding-left: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.agent-feature {
    font-weight: 700;
    margin-bottom: 8px;
}
.agent-desc {
    margin-bottom: 16px;
}
.agent-awards {
    list-style: none;
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
}
.agent-strength {
    background-color: #f3f4f6;
    padding: 16px;
    border: 1px solid #d1d5db;
}

/* ==========================================
   Reviews
========================================== */
.review-section {
    margin-top: 24px;
    border-top: 1px solid #d1d5db;
    padding-top: 16px;
}
.review-header {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}
.review-block {
    margin-bottom: 12px;
}
.review-title-pos {
    font-weight: 700;
    color: #1e40af;
    font-size: 14px;
}
.review-title-neg {
    font-weight: 700;
    color: #991b1b;
    font-size: 14px;
}
.review-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 4px;
    font-size: 14px;
    color: #374151;
}

/* ==========================================
   Buttons
========================================== */
.btn-cta {
    display: block;
    background-color: #b91c1c;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #7f1d1d;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 24px;
}
.btn-cta:hover {
    background-color: #ffffff;
    color: #b91c1c;
}
.btn-primary {
    display: inline-block;
    background-color: #172554;
    color: #ffffff;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #0f172a;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #ffffff;
    color: #172554;
}
.btn-table-cta {
    display: inline-block;
    background-color: #b91c1c;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #7f1d1d;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-table-cta:hover {
    background-color: #ffffff;
    color: #b91c1c;
}

@media (min-width: 768px) {
    .btn-cta {
        font-size: 18px;
    }
}

/* ==========================================
   Tables
========================================== */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}
.custom-table th, .custom-table td {
    border: 1px solid #64748b;
    padding: 16px;
    text-align: left;
    vertical-align: middle;
}
.custom-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================
   Lists & Blocks
========================================== */
.numbered-list {
    list-style: decimal;
    padding-left: 24px;
}
.numbered-list li {
    margin-bottom: 16px;
}
.editor-note {
    background-color: #eff6ff;
    border-left: 4px solid #1e40af;
    padding: 16px;
    margin-top: 24px;
    font-size: 14px;
}

/* QA List */
.qa-box {
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 8px;
}
.qa-q {
    font-weight: 700;
    margin-bottom: 8px;
}
.qa-a {
    font-size: 14px;
    color: #374151;
}

/* White Companies */
.white-company-card {
    border-left: 4px solid #15803d;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.white-company-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.white-company-feature {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 8px;
}
.white-company-points {
    font-size: 14px;
    margin-top: 8px;
    color: #14532d;
    background-color: #f0fdf4;
    padding: 12px;
    border: 1px solid #bbf7d0;
    list-style: none;
    border-radius: 4px;
}

/* Black Companies */
.black-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (min-width: 768px) {
    .black-grid { grid-template-columns: 1fr 1fr; }
}
.black-card {
    border: 1px solid #991b1b;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
}
.black-title {
    color: #7f1d1d;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.black-list {
    list-style: none;
    font-size: 14px;
}
.black-list li { margin-bottom: 8px; }

.black-summary {
    background-color: #fef2f2;
    padding: 24px;
    margin-top: 32px;
    border-top: 4px solid #991b1b;
    border-radius: 0 0 8px 8px;
}
.black-summary-title {
    font-size: 20px;
    color: #7f1d1d;
    font-weight: 700;
    margin-bottom: 16px;
}
.black-summary-list {
    font-weight: 700;
    font-size: 18px;
    color: #7f1d1d;
    list-style: decimal;
    padding-left: 24px;
}
.black-summary-list span {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    margin-top: 4px;
    margin-bottom: 16px;
}
.conclusion-box {
    background-color: #172554;
    color: #ffffff;
    padding: 32px;
    margin-top: 48px;
    text-align: center;
    border: 4px solid #d1d5db;
    border-radius: 8px;
}
.conclusion-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}
.conclusion-text {
    font-size: 14px;
    text-align: left;
}
@media (min-width: 768px) {
    .conclusion-text { 
        font-size: 18px;
        text-align: center; 
    }
    .conclusion-title {
        font-size: 24px;
    }
}

/* Reasons Section */
.reason-box {
    margin-bottom: 32px;
}
.reason-list {
    border-left: 4px solid #1e40af;
    background-color: #f8fafc;
    padding: 12px 16px;
    list-style: none;
    margin-top: 16px;
    border-radius: 0 4px 4px 0;
}
.reason-list li {
    margin-bottom: 8px;
}

/* Action Plan */
.action-plan {
    border: 2px solid #172554;
    background-color: #ffffff;
    padding: 32px;
    margin-top: 64px;
    border-radius: 8px;
}
.action-title {
    text-align: center;
    font-size: 20px;
    color: #172554;
    font-weight: 700;
    margin-bottom: 24px;
}
.action-list {
    list-style: decimal;
    padding-left: 24px;
    font-size: 16px;
}
.action-list li {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.action-list span {
    display: block;
    font-size: 14px;
    color: #4b5563;
    margin-top: 4px;
}
.action-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .action-title {
        font-size: 24px;
    }
    .action-list {
        font-size: 18px;
    }
    .action-list span {
        font-size: 14px;
    }
}

/* Final Message */
.final-message {
    background-color: #f3f4f6;
    padding: 32px;
    margin-top: 48px;
    border-left: 8px solid #9ca3af;
    border-radius: 0 8px 8px 0;
}
.final-title {
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 16px;
}
.final-strong {
    font-weight: 700;
    font-size: 18px;
    color: #172554;
    margin-top: 16px;
}

/* Footer */
.site-footer {
    background-color: #172554;
    color: #ffffff;
    padding: 32px 0;
    text-align: center;
    margin-top: 48px;
    font-size: 14px;
}
