
.oil-article-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
    background-color: none!important;
  }

/* body スタイルは削除 */

.oil-article-content { /* .container のスタイルをこちらに統合 */
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.oil-article-content .glass-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.oil-article-content .glass-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.oil-article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
}

.oil-article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 30px 0 20px 0;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.oil-article-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 25px 0 15px 0;
    color: #34495e;
}

.oil-article-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 20px 0 10px 0;
    color: #34495e;
}

.oil-article-content p {
    margin-bottom: 15px;
    color: #555;
}

.oil-article-content .highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.oil-article-content .info-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.oil-article-content .warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.oil-article-content .success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.oil-article-content .table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #ffffff;
}

.oil-article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.oil-article-content th, .oil-article-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.oil-article-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.oil-article-content tr:hover {
    background: #f8f9fa;
}

.oil-article-content .diagram-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.oil-article-content .diagram-container .fatty-acid-diagram {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 20px;
    margin: 30px 0;
}

.oil-article-content .fatty-acid-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 20px;
    width: 100%;
    max-width: 220px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.oil-article-content .fatty-acid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oil-article-content .fatty-acid-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.oil-article-content .saturated { background: #e74c3c; }
.oil-article-content .monounsaturated { background: #27ae60; }
.oil-article-content .polyunsaturated { background: #3498db; }
.oil-article-content .trans { background: #e67e22; }

.oil-article-content .checklist {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
}

.oil-article-content .checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    color: #495057;
}

.oil-article-content .checklist-item::before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.2rem;
}

.oil-article-content .omega-balance-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.oil-article-content .omega-bar {
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    min-width: 120px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.oil-article-content .omega-6 {
    background: #e74c3c;
    width: 200px;
}

.oil-article-content .omega-3 {
    background: #3498db;
    width: 50px;
}

.oil-article-content .ratio-text {
    color: #495057;
    font-weight: bold;
    text-align: center;
}

/* 健康効果の図解スタイル */
.oil-article-content .health-effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.oil-article-content .health-effect-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.oil-article-content .health-effect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.oil-article-content .health-effect-card.positive {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.oil-article-content .health-effect-card.negative {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.oil-article-content .health-effect-card.neutral {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.oil-article-content .effect-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.oil-article-content .effect-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.oil-article-content .effect-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 脂肪酸別の健康効果比較チャート */
.oil-article-content .comparison-chart {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    padding-left: 30px;
    padding-right: 30px;
    margin: 30px 0;
}

@media (max-width: 600px) {
  .oil-article-content .comparison-chart {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.oil-article-content .fatty-acid-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.oil-article-content .fatty-acid-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.oil-article-content .fatty-acid-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.oil-article-content .fatty-acid-emoji {
    font-size: 2rem;
    margin-right: 10px;
}

.oil-article-content .fatty-acid-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.oil-article-content .benefits-list, .oil-article-content .risks-list {
    margin: 15px 0;
}

.oil-article-content .benefits-list h5, .oil-article-content .risks-list h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.oil-article-content .benefits-list h5 {
    color: #28a745;
}

.oil-article-content .risks-list h5 {
    color: #dc3545;
}

.oil-article-content .benefits-list ul, .oil-article-content .risks-list ul {
    list-style: none;
    padding: 0;
}

.oil-article-content .benefits-list li::before {
    content: "✅ ";
    margin-right: 5px;
}

.oil-article-content .risks-list li::before {
    content: "⚠️ ";
    margin-right: 5px;
}

/* 体への影響フローチャート */
.oil-article-content .body-impact-flow {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

/* ステップと矢印を囲むコンテナ */
.oil-article-content .body-impact-flow > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0 0 0 !important;
}

.oil-article-content .flow-step {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #3498db;
    border-radius: 50px;
    padding: 8px 18px;
    margin: 5px 0;
    font-weight: 600;
    color: #2c3e50;
}

.oil-article-content .flow-arrow {
    font-size: 1.2rem;
    color: #3498db;
}

.oil-article-content ul, .oil-article-content ol {
    margin: 15px 0 15px 30px;
    color: #555;
}

.oil-article-content li {
    margin: 8px 0;
}

.oil-article-content .citation {
    font-size: 0.8rem;
    color: #6c757d;
    vertical-align: super;
}

.oil-article-content strong {
    color: #2c3e50;
}

.oil-article-content .emoji {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .oil-article-content { /* .container のスタイルをこちらに統合 */
        padding: 20px 15px; /* 上下は20px、左右のパディングを15pxに調整 */
        margin: 10px auto;  /* 上下マージン10px、左右はautoで中央寄せ */
        width: auto; /* 幅を自動に戻すか、必要に応じて設定 */
    }

    .oil-article-content h1 {
        font-size: 2rem;
    }

    .oil-article-content h2 {
        font-size: 1.5rem;
    }

    .oil-article-content .diagram-container .fatty-acid-diagram {
        grid-template-columns: 1fr;
    }

    .oil-article-content .fatty-acid-card {
        min-width: 250px;
    }

    .oil-article-content .omega-balance-chart {
        flex-direction: column;
    }

    .oil-article-content table {
        font-size: 0.8rem;
    }

    .oil-article-content th, .oil-article-content td {
        padding: 10px;
    }

    .oil-article-content .health-effects-grid {
        grid-template-columns: 1fr;
    }

    .oil-article-content .fatty-acid-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* body スタイルは削除 */

    .oil-article-content { /* .container のスタイルをこちらに統合 */
        padding: 15px 10px; /* 上下は15px、左右のパディングを10pxに調整 */
        margin-left: 0;     /* 左マージンを0に */
        margin-right: 0;    /* 右マージンを0に */
        width: 100%;        /* コンテナ幅を画面100%に */
        box-sizing: border-box; /* paddingとborderをwidth/heightに含める */
    }

    .oil-article-content h1 {
        font-size: 1.8rem;
    }

    .oil-article-content .diagram-container .fatty-acid-diagram {
        grid-template-columns: 1fr;
    }

    .oil-article-content .fatty-acid-card {
        max-width: 250px;
        min-height: auto;
    }

    .oil-article-content .glass-card {
        padding: 20px;
    }
}

/* Oil Ranking Section Styles */
.oil-ranking-section {
    margin-top: 40px;
    padding: 25px;
    border-radius: 15px;
}

.oil-ranking-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #7f8c8d;
    padding-bottom: 15px;
    font-size: 2em;
}

.oil-ranking-section .ranking-intro,
.oil-ranking-section .ranking-conclusion {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
}

.ranking-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db; /* Default border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ranking-item h3 {
    color: #2980b9; /* Darker blue for rank title */
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6em;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.ranking-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ranking-column {
    flex: 1;
    min-width: 280px; /* Ensure columns don't get too squished */
}

.ranking-column h4 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.2em;
    padding-bottom: 5px;
    border-bottom: 2px dotted #bdc3c7;
}

.ranking-column ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.ranking-column ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95em;
    display: flex;
    align-items: flex-start; /* Align icon and text nicely */
}

.ranking-column ul li::before {
    content: "✓"; /* Default checkmark */
    color: #27ae60;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Specific icons for benefits and warnings */
.ranking-column h4:first-child + ul li::before { /* For 主な油 */
    content: "🌿"; /* Default, can be overridden */
}

.ranking-column h4:nth-of-type(2) + ul li::before { /* For 体に良いこと or 🌟 体に良いこと */
    content: "✅";
    color: #2ecc71;
}

.ranking-column h4:nth-of-type(1) + ul li::before { /* If only one h4 (like in danger rank) */
    content: "👉"; /* Default for single h4, usually for '主な油・食品' */
}


/* Customizing icons for specific lists */
.ranking-column:nth-of-type(1) h4 ~ ul li::before { /* First column, usually '主な油' or 'benefits' */
    /* The default checkmark/leaf is good for the first column */
}
.ranking-column:nth-of-type(2) h4 ~ ul li::before { /* Second column, usually '注意したいこと' or '悪影響' */
    content: "⚠️";
    color: #f39c12;
}

/* Special ranks styling */
.ranking-item.rank-1 { border-left-color: #f1c40f; } /* Gold */
.ranking-item.rank-1 h3 { color: #f1c40f; }

.ranking-item.rank-2 { border-left-color: #bdc3c7; } /* Silver */
.ranking-item.rank-2 h3 { color: #7f8c8d; }

.ranking-item.rank-3 { border-left-color: #cd7f32; } /* Bronze */
.ranking-item.rank-3 h3 { color: #a0522d; }

.ranking-item.rank-4 { border-left-color: #3498db; } /* Blue */
.ranking-item.rank-4 h3 { color: #2980b9; }

.ranking-item.warning-rank { 
    border-left-color: #e67e22; /* Orange for general warning */
    background-color: rgba(243, 156, 18, 0.08);
}
.ranking-item.warning-rank h3 { color: #d35400; }
.ranking-item.warning-rank .ranking-column:nth-of-type(2) h4 ~ ul li::before {
    content: "🚨";
    color: #d35400;
}

.ranking-item.danger-rank { 
    border-left-color: #c0392b; /* Red for danger */
    background-color: rgba(231, 76, 60, 0.08);
}
.ranking-item.danger-rank h3 { color: #c0392b; }
.ranking-item.danger-rank .ranking-column:nth-of-type(1) h4:nth-of-type(2) + ul li::before { /* "基本的にありません" */
    content: "❌";
    color: #c0392b;
}
.ranking-item.danger-rank .ranking-column:nth-of-type(2) h4 ~ ul li::before {
    content: "☠️";
    color: #c0392b;
}

/* Responsive adjustments for ranking section */
@media (max-width: 768px) {
    .oil-ranking-section h2 {
        font-size: 1.8em;
    }
    .ranking-item h3 {
        font-size: 1.4em;
    }
    .ranking-details {
        flex-direction: column; /* Stack columns on smaller screens */
    }
    .ranking-column {
        min-width: 100%; /* Columns take full width */
    }
}

@media (max-width: 480px) {
    .oil-ranking-section {
        padding: 15px;
    }
    .oil-ranking-section h2 {
        font-size: 1.6em;
    }
    .ranking-item {
        padding: 15px;
    }
    .ranking-item h3 {
        font-size: 1.3em;
    }
    .ranking-column ul li {
        font-size: 0.9em;
    }
}
