/* ============================================================
   article-styles.css — LP + エディター共通の記事コンテンツCSS
   LP 側は .article-content 配下、エディター側は .note-editable 配下
   片方を直せばもう片方も自動的に直る
   ============================================================ */

/* --- 見出し --- */
.article-content h2, .note-editable h2 {
    background: rgb(255, 0, 0) url('/static/meijin_cms/images/h3.png') no-repeat 10px center;
    color: #fff; font-size: 18px; font-weight: 700;
    padding: 7px 2em; margin: 120px -2em 18px -2em;
}
.article-content h3, .note-editable h3 {
    color: #000; font-size: 18px; font-weight: 700;
    padding: 9px 0; margin: 3em 0 18px; border-bottom: 2px solid #ddd;
}
.article-content .sale-status-label,
.note-editable .sale-status-label,
.article-content .heading-sale-status,
.note-editable .heading-sale-status {
    display: inline-block;
    padding: 0 0.35em;
    background: #e60000;
    color: #fff;
    border-radius: 2px;
}
.article-content h4, .note-editable h4 {
    background: rgb(246, 246, 246) url('/static/meijin_cms/images/arrow_black.gif') no-repeat 0 50%;
    color: #000; font-size: 18px; font-weight: 700;
    padding: 9px 13.5px 9px 25px; margin: 50px 0 18px;
}
.article-content h3.bg_red, .article-content h2.bg_red,
.note-editable h3.bg_red, .note-editable h2.bg_red {
    background: rgb(255, 0, 0) url('/static/meijin_cms/images/h3.png') no-repeat 10px center;
    color: #fff; font-size: 18px; font-weight: 700;
    padding: 7px 0 7px 35px; margin: 27px 0 18px; border-bottom: none;
}
.hd1, .note-editable .hd1 {
    background: #fff url('/static/meijin_cms/images/h3.png') no-repeat 4px center;
    color: #111; font-size: 18px; font-weight: 700;
    padding: 9px 9px 9px 31px; margin: 36px 0 27px;
    border-bottom: 3px solid rgb(185, 42, 44);
}

/* --- 基本要素 --- */
.article-content p, .note-editable p { margin-bottom: 1em; }
.article-content img, .note-editable img { max-width: 100%; height: auto; margin: 1em 0; }
.article-content ul, .note-editable ul { margin: 1em 0 1em 1.5em; }
.article-content ul li, .note-editable ul li { margin-bottom: 0.8em; }
.article-content ol, .note-editable ol { margin: 1em 0 1em 1.5em; }
.article-content ol li, .note-editable ol li { margin-bottom: 0.5em; }

/* --- テキスト装飾 --- */
.red { color: rgb(255, 10, 10); font-weight: bold; }
.bg_yellow { background-color: rgb(255, 255, 102); color: #000; }
.big1 { font-size: 1.2em; font-weight: bold; }
.big2 { font-size: 1.5em; font-weight: bold; }

/* --- チェックマーク（画像版） --- */
.check { padding-left: 28px; background: url('/static/meijin_cms/images/ico_check.png') no-repeat 0 0.4em; background-size: 20px 20px; line-height: 1.8; list-style: none; }

/* --- チェックマーク（ピンク Unicode） --- */
.check-pink { padding-left: 1.8em; position: relative; list-style: none; }
.check-pink::before { content: "\2714"; color: #e91e8c; position: absolute; left: 0; font-size: 1.1em; }

/* --- 矢印スタイル 4色 --- */
.arrow_black, .arrow_red, .arrow_blue, .arrow_orange {
    background-repeat: no-repeat; font-weight: bold; line-height: 160%;
    font-size: 1em; background-position: left center;
    padding-left: 20px; margin-bottom: 1em; overflow: hidden;
}
.arrow_black { background-image: url('/static/meijin_cms/images/arrow_black.gif'); }
.arrow_red   { background-image: url('/static/meijin_cms/images/arrow_red.gif'); }
.arrow_blue  { background-image: url('/static/meijin_cms/images/arrow_blue.gif'); }
.arrow_orange { background-image: url('/static/meijin_cms/images/arrow_orange.gif'); }

/* --- 黄色ボックス --- */
.ylwbox { background-color: rgb(255, 255, 210); border: 2px solid rgb(204, 0, 0); padding: 10px 16px; margin: 1.5em 0; border-radius: 4px; }
.ylwbox p { margin-bottom: 0; }

/* --- 白ブロック（影） --- */
.whiteblock { margin: 0.5em 0 1.5em; padding: 20px; background: #fff; border: 1px solid #ccc; box-shadow: #ddd 0 2px 3px 0; }

/* --- 引用ブロック（灰色背景+大きい引用符） --- */
.article-content blockquote, .note-editable blockquote, .block, blockquote.block {
    position: relative;
    overflow: hidden;
    padding: 26px 30px 22px;
    background: #d8d8d8;
    border: none;
    box-shadow: none;
    margin: 1.5em 0;
}
.article-content blockquote::before, .note-editable blockquote::before, .block::before, blockquote.block::before,
.article-content blockquote::after, .note-editable blockquote::after, .block::after, blockquote.block::after {
    position: absolute;
    color: rgba(255, 255, 255, 0.68);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 82px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
.article-content blockquote::before, .note-editable blockquote::before, .block::before, blockquote.block::before {
    content: "\201C";
    top: -16px;
    left: 8px;
}
.article-content blockquote::after, .note-editable blockquote::after, .block::after, blockquote.block::after {
    content: "\201D";
    right: 10px;
    bottom: -50px;
}
.article-content blockquote p, .note-editable blockquote p, .block p, blockquote.block p {
    margin: 0 0 1.1em;
}
.article-content blockquote > :last-child, .note-editable blockquote > :last-child, .block > :last-child, blockquote.block > :last-child {
    margin-bottom: 0;
}

/* --- おしゃれ見出し（グレー背景+影） --- */
.osyare { background-image: none; color: #000; padding: 0.5em 0.75em; background-color: #f6f6f6; box-shadow: rgba(0,0,0,0.15) 0 2px 6px; margin: 1em 0; }

/* --- 口コミセクション --- */
.review_sec { margin-bottom: 10px; padding: 1em; background: rgb(244, 240, 233); border-radius: 10px; }
.fukidasi { position: relative; padding: 0.5em 0.75em; background-color: #fff; border: 1px solid #ccc; border-radius: 6px; margin-bottom: 1em; font-weight: 700; font-size: 1.1em; overflow: visible; }
.fukidasi::before, .fukidasi::after { position: absolute; top: 100%; left: 12px; content: ""; height: 0; width: 0; border: 10px solid transparent; }
.fukidasi::before { border-top: 15px solid #ccc; }
.fukidasi::after  { margin-top: -2px; border-top: 15px solid #fff; }
.reviewer_info { color: rgb(105, 81, 26); margin-bottom: 1em; display: flex; align-items: center; gap: 0.5em; }
.reviewer_img { border: 1px solid rgb(230, 217, 195); background-color: #fff; }
.reviewer_img img { vertical-align: middle; }

/* --- イラレ屋メモ枠 --- */
.article-content .illareya-st-cmemo,
.note-editable .illareya-st-cmemo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 1.8em;
    padding: 18px 20px;
    border-left: 6px solid var(--st-cmemo-icon-color, #9ccc65);
    border-radius: 3px;
    background: var(--st-cmemo-bg, #f1f8e9) !important;
    color: var(--st-cmemo-color, #111) !important;
    color-scheme: light;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.article-content .illareya-st-cmemo-icon,
.note-editable .illareya-st-cmemo-icon {
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--st-cmemo-icon-color, #9ccc65);
    border-radius: 50%;
    background: #fff !important;
    color: var(--st-cmemo-icon-color, #9ccc65) !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.article-content .illareya-st-cmemo-body,
.note-editable .illareya-st-cmemo-body {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}
.article-content .illareya-st-cmemo-body p,
.note-editable .illareya-st-cmemo-body p {
    margin: 0 0 1em;
}
.article-content .illareya-st-cmemo-body > :last-child,
.note-editable .illareya-st-cmemo-body > :last-child {
    margin-bottom: 0;
}
.article-content .illareya-st-cmemo[data-darkreader-ignore],
.note-editable .illareya-st-cmemo[data-darkreader-ignore],
.article-content .illareya-st-cmemo[data-darkreader-ignore] .illareya-st-cmemo-body,
.note-editable .illareya-st-cmemo[data-darkreader-ignore] .illareya-st-cmemo-body,
.article-content .illareya-st-cmemo[data-darkreader-ignore] .illareya-st-cmemo-body *,
.note-editable .illareya-st-cmemo[data-darkreader-ignore] .illareya-st-cmemo-body * {
    color: var(--st-cmemo-color, #111) !important;
}

/* --- 千葉名人 吹き出し --- */
.article-content .speech-wrap,
.note-editable .speech-wrap {
    clear: both;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 32px;
}
.article-content .speech-person,
.note-editable .speech-person {
    flex: 0 0 82px;
    text-align: center;
}
.article-content .speech-icon,
.note-editable .speech-icon {
    margin: 0;
}
.article-content .speech-icon-image,
.note-editable .speech-icon-image {
    display: block;
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto !important;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}
.article-content .speech-name,
.note-editable .speech-name {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}
.article-content .speech-balloon,
.note-editable .speech-balloon {
    position: relative;
    flex: 1 1 auto;
    max-width: calc(100% - 102px);
    min-height: 56px;
    margin: 0;
    padding: 10px 14px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
}
.article-content .speech-balloon::before,
.article-content .speech-balloon::after,
.note-editable .speech-balloon::before,
.note-editable .speech-balloon::after {
    content: "";
    position: absolute;
    top: 22px;
    width: 0;
    height: 0;
    border-style: solid;
}
.article-content .speech-balloon::before,
.note-editable .speech-balloon::before {
    left: -14px;
    border-width: 8px 14px 8px 0;
    border-color: transparent #d0d0d0 transparent transparent;
}
.article-content .speech-balloon::after,
.note-editable .speech-balloon::after {
    left: -10px;
    border-width: 7px 12px 7px 0;
    border-color: transparent #fff transparent transparent;
}
.article-content .speech-wrap.sbp-r,
.note-editable .speech-wrap.sbp-r {
    flex-direction: row-reverse;
}
.article-content .speech-wrap.sbp-r .speech-balloon::before,
.note-editable .speech-wrap.sbp-r .speech-balloon::before {
    left: auto;
    right: -14px;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #d0d0d0;
}
.article-content .speech-wrap.sbp-r .speech-balloon::after,
.note-editable .speech-wrap.sbp-r .speech-balloon::after {
    left: auto;
    right: -10px;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
}
.article-content .speech-balloon p,
.note-editable .speech-balloon p {
    margin: 0;
}

.note-editable .illareya-st-cmemo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 1.8em;
    padding: 18px 20px;
    border-left: 6px solid var(--st-cmemo-icon-color, #9ccc65);
    border-radius: 3px;
    background: var(--st-cmemo-bg, #f1f8e9) !important;
    color: var(--st-cmemo-color, #111) !important;
    color-scheme: light;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.note-editable .illareya-st-cmemo-icon {
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--st-cmemo-icon-color, #9ccc65);
    border-radius: 50%;
    background: #fff !important;
    color: var(--st-cmemo-icon-color, #9ccc65) !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.note-editable .illareya-st-cmemo-body {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}
.note-editable .illareya-st-cmemo-body p {
    margin: 0 0 1em;
}
.note-editable .illareya-st-cmemo-body > :last-child {
    margin-bottom: 0;
}

/* --- CTA ボタン --- */
.cta-wrapper { text-align: center; margin: 2em 0; }
.cta-button, .note-editable .cta-button, .article-content .cta-button {
    display: inline-block; background: rgb(35, 140, 0) !important;
    color: #fff !important; font-size: 1.3em; font-weight: bold;
    padding: 18px 48px; border-radius: 50px;
    text-decoration: none !important; max-width: 500px;
}
/* CTA ボタンの親要素を常に中央寄せ（wrapper有無に関わらず） */
.cta-wrapper, p:has(> .cta-button), div:has(> .cta-button) { text-align: center !important; }

/* --- 商品概要 flexレイアウト --- */
.product-overview { display: flex; gap: 2em; align-items: flex-start; margin: 2em 0; }
.product-overview .product-image { flex: 0 0 300px; max-width: 300px; }
.product-overview .product-image img { width: 100%; height: auto; margin: 0; }
.product-overview .product-desc { flex: 1; }

/* --- イラレ屋 Amazon商品カード --- */
.article-content .illareya-amazon-card {
    margin: 0 0 1.8em;
}

.article-content .illareya-amazon-card-link {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 620px;
    padding: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    text-decoration: none;
}

.article-content .illareya-amazon-card-link:hover {
    border-color: #ff9900;
    color: #222;
}

.article-content .illareya-amazon-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f7f7f7;
}

.article-content .illareya-amazon-card-image img {
    display: block;
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0;
}

.article-content .illareya-amazon-card-body {
    display: block;
    min-width: 0;
}

.article-content .illareya-amazon-card-label,
.article-content .illareya-amazon-card-title,
.article-content .illareya-amazon-card-button {
    display: block;
}

.article-content .illareya-amazon-card-label {
    margin: 0 0 6px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.article-content .illareya-amazon-card-title {
    margin: 0 0 12px;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.article-content .illareya-amazon-card-price-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 10px;
    color: #222;
    font-size: 13px;
    line-height: 1.5;
}

.article-content .illareya-amazon-card-price-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.article-content .illareya-amazon-card-price-label {
    color: #666;
    font-weight: 700;
}

.article-content .illareya-amazon-card-price-sale .illareya-amazon-card-price-value,
.article-content .illareya-amazon-card-price-discount .illareya-amazon-card-price-value {
    color: #b12704;
    font-weight: 700;
}

.article-content .illareya-amazon-card-price-history {
    display: block;
    box-sizing: border-box;
    max-width: 620px;
    margin: 8px 0 0;
    padding: 8px 10px;
    border-left: 3px solid #ff9900;
    background: #f3f3f3;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.article-content .illareya-amazon-card-price-history-line {
    display: block;
}

.article-content .illareya-amazon-card-button {
    width: max-content;
    max-width: 100%;
    padding: 8px 16px;
    border-radius: 6px;
    background: #ff9900;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .article-content .illareya-amazon-card-link {
        display: block;
    }

    .article-content .illareya-amazon-card-image {
        margin: 0 0 12px;
    }

    .article-content .illareya-amazon-card-button {
        width: 100%;
        text-align: center;
    }
}
