/* --- 文字サイズアップ（page-top.phpに基づく） --- */
html {
    font-size: 150% !important;
}

body {
    font-size: 21px !important;
}

/* モバイル向け微調整 */
@media screen and (max-width: 767px) {
    html {
        font-size: 140% !important;
    }

    body {
        font-size: 18px !important;
    }
}

/* --- 基本設定 --- */
:root {
    --rm-gold: #937960;
    --rm-gold-light: #bfa88f;
    --rm-gold-pale: #f3efe9;
    --rm-text: #333333;
    --rm-gray: #666666;
    --rm-bg: #ffffff;
    --rm-font-serif: 'Noto Serif JP', serif;
    --rm-font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.rm-wrapper {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif;
    font-size: 21px;
    /* 16px -> 21px (1.5x) */
    color: var(--rm-text);
    line-height: 1.8;
    background-color: var(--rm-bg);
    overflow-x: hidden;
}

@media screen and (max-width: 767px) {
    .rm-wrapper {
        font-size: 18px;
        /* モバイル微調整 */
    }
}

.rm-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.rm-serif {
    font-family: var(--rm-font-serif);
}

.rm-center {
    text-align: center;
}

/* --- 1. カテゴリナビゲーション（大見出し用目次） --- */
.rm-category-nav-section {
    background-color: var(--rm-gold-pale);
    padding: 40px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #e0d8d0;
}

.rm-category-nav-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* 折り返しを許容し、文字サイズアップによるレイアウト崩れを防ぐ */
    flex-wrap: wrap;
}

.rm-category-nav-item {
    flex: 1;
    text-align: center;
    max-width: 250px;
    /* 大きい文字に合わせて少し広げる */
    min-width: 180px;
}

.rm-category-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    height: 100%;
    min-height: 70px;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    text-decoration: none;
    color: var(--rm-text);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    font-size: 16px;
    /* 14px -> 16px */
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.rm-category-nav-link::after {
    content: "＞";
    font-family: sans-serif;
    font-size: 14px;
    color: var(--rm-gold);
    margin-left: 10px;
    font-weight: bold;
}

.rm-category-nav-link:hover,
.rm-category-nav-link.active {
    background-color: var(--rm-gold);
    color: #fff;
    border-color: var(--rm-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 121, 96, 0.3);
}

.rm-category-nav-link:hover::after,
.rm-category-nav-link.active::after {
    color: #fff;
}

/* --- ページタイトルエリア --- */
.rm-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.rm-page-title {
    font-size: 2.2rem;
    color: var(--rm-gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.rm-page-subtitle {
    font-size: 1rem;
    color: var(--rm-gray);
    font-family: var(--rm-font-serif);
    letter-spacing: 0.1em;
}

/* --- 2. 記事内目次（アンカーリンク） --- */
.rm-article-toc {
    background-color: #fff;
    border: 2px solid var(--rm-gold-light);
    padding: 30px 40px;
    margin: 0 auto 80px;
    max-width: 1040px;
    position: relative;
}

.rm-article-toc::before {
    content: "INDEX";
    position: absolute;
    top: -16px;
    /* 14px -> 16px */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 20px;
    color: var(--rm-gold);
    font-weight: bold;
    font-family: var(--rm-font-serif);
    letter-spacing: 0.1em;
}

.rm-article-toc-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-article-toc-list li {
    position: relative;
    padding-left: 20px;
    /* 15px -> 20px */
}

.rm-article-toc-list li::before {
    content: "▼";
    position: absolute;
    left: 0;
    top: 10px;
    /* 8px -> 10px */
    font-size: 12px;
    color: var(--rm-gold);
}

.rm-article-toc-list a {
    text-decoration: none;
    color: var(--rm-text);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.rm-article-toc-list a:hover {
    color: var(--rm-gold);
    border-bottom-color: var(--rm-gold);
}

/* --- コンテンツセクション共通 --- */
.rm-section {
    margin-bottom: 100px;
}

.rm-section-header {
    margin-bottom: 40px;
    border-left: 5px solid var(--rm-gold);
    padding-left: 20px;
}

.rm-section-title {
    font-size: 1.8rem;
    color: var(--rm-text);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* --- H3セクションタイトル（ステップ用） --- */
.rm-step-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0d8d0;
    position: relative;
}

.rm-step-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--rm-gold);
}

.rm-step-title {
    font-size: 1.5rem;
    color: var(--rm-text);
    font-weight: 500;
    font-family: var(--rm-font-serif);
    margin: 0;
    line-height: 1.4;
}

/* --- レイアウト: 行（画像 + テキスト） --- */
.rm-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.rm-row.reverse {
    flex-direction: row-reverse;
}

.rm-col-img {
    flex: 0 0 40%;
    position: relative;
}

.rm-col-text {
    flex: 1;
}

/* 画像スタイル */
.rm-img-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rm-img-frame img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.rm-img-frame:hover img {
    transform: scale(1.03);
}

/* 画像キャプション */
.rm-caption {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-family: var(--rm-font-serif);
}

/* テキストスタイル */
.rm-sub-head {
    font-size: 1.3rem;
    /* サイズ揺れを統一 */
    color: var(--rm-gold);
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    margin-top: 20px;
}

.rm-sub-sub-head {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--rm-text);
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: var(--rm-gold-pale);
    padding: 8px 15px;
    border-left: 3px solid var(--rm-gold);
    display: inline-block;
}

.rm-text p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.rm-highlight {
    background: linear-gradient(transparent 60%, rgba(147, 121, 96, 0.2) 60%);
    font-weight: bold;
}

dl.rm-desc-list {
    margin-bottom: 20px;
}

dl.rm-desc-list dt {
    font-weight: bold;
    color: var(--rm-gold);
    margin-bottom: 5px;
    margin-top: 15px;
}

dl.rm-desc-list dd {
    margin-left: 0;
    margin-bottom: 10px;
}

/* --- コンテンツレイアウト --- */
.rm-content-col-2 {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.rm-content-col {
    flex: 1;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* --- リストスタイル --- */
.rm-effect-box {
    background-color: var(--rm-gold-pale);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--rm-gold-light);
}

.rm-effect-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-effect-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.8;
}

.rm-effect-list li:last-child {
    margin-bottom: 0;
}

.rm-effect-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 5px;
    /* Adjust 3px -> 5px for bigger font */
    width: 24px;
    height: 24px;
    background-color: var(--rm-gold);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-family: sans-serif;
}

.rm-note-box {
    border: 2px solid #eee;
    padding: 40px;
    border-radius: 8px;
}

.rm-note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-note-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
    border-bottom: 1px dashed #e0d8d0;
    padding-bottom: 15px;
}

.rm-note-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rm-note-list li::before {
    content: "●";
    color: var(--rm-gold);
    position: absolute;
    left: 0;
    top: 10px;
    /* Adjust 6px -> 10px */
    font-size: 10px;
}

/* --- 特別なレイアウト: 3カラム（採取場所） --- */
.rm-harvest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.rm-harvest-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.rm-harvest-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.rm-harvest-title {
    font-weight: bold;
    color: var(--rm-gold);
    display: block;
    margin-bottom: 10px;
}

.rm-image-row-container {
    width: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    gap: 2%;
}

.rm-image-row-container img {
    width: 49%;
    height: auto;
    border-radius: 4px;
}

/* --- Flow Chart Styles (NK細胞など) --- */
.rm-flow-container {
    max-width: 960px;
    margin: 0 auto;
}

.rm-flow-intro {
    margin-bottom: 40px;
    font-weight: 500;
}

.rm-flow-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.rm-flow-text {
    flex: 1;
    padding-right: 60px;
    padding-top: 15px;
}

.rm-flow-media {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rm-flow-figure {
    margin: 0;
    width: 100%;
    text-align: center;
    background-color: transparent;
}

.rm-flow-figure img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.rm-flow-caption {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--rm-text);
    margin-bottom: 0;
    display: block;
    line-height: 1.4;
}

.rm-flow-arrow-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rm-flow-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid var(--rm-gold);
}

/* PCのみ */
@media (min-width: 769px) {
    #section3 .rm-col-img {
        flex: 0 0 60%;
    }

    .rm-img-small-pc {
        max-width: 400px;
    }
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .rm-image-row-container {
        width: 100%;
    }

    .rm-category-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .rm-category-nav-item {
        width: 100%;
        max-width: 100%;
    }

    .rm-category-nav-link {
        justify-content: space-between;
        text-align: left;
        padding: 15px 10px;
    }

    .rm-row,
    .rm-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .rm-col-img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .rm-harvest-grid {
        grid-template-columns: 1fr;
    }

    .rm-page-title {
        font-size: 1.6rem;
    }

    .rm-section-title {
        font-size: 1.4rem;
    }

    .rm-content-col-2 {
        flex-direction: column;
        gap: 30px;
    }

    .rm-effect-box,
    .rm-note-box {
        padding: 25px 20px;
    }

    /* Flow Chart */
    .rm-flow-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
        gap: 20px;
    }

    .rm-flow-text {
        padding-right: 0;
        width: 100%;
        padding-top: 0;
    }

    .rm-flow-media {
        width: 100%;
        max-width: 320px;
        flex: auto;
    }
}