/*
Theme Name: AFFINGER Child Custom
Template: affinger
Description: メンエス SEOブログ用カスタム子テーマ
Version: 1.0.0
*/

/* ==========================================================
   MNS コンポーネントライブラリ
   プレフィックス: mns- （AFFINGERのst-と干渉しない）
   AI記事生成時はこのクラスのみを使用する
========================================================== */


/* ----------------------------------------------------------
   1. 見出し（h2 / h3 / h4）
---------------------------------------------------------- */

.entry-content .mns-h2 {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    border-left: 5px solid #c0392b;
    padding: 8px 14px;
    margin: 36px 0 16px;
    background: #fafafa;
    line-height: 1.5;
}

.entry-content .mns-h3 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
    margin: 28px 0 12px;
    line-height: 1.5;
}

.entry-content .mns-h4 {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding-left: 10px;
    border-left: 3px solid #bbb;
    margin: 20px 0 10px;
}


/* ----------------------------------------------------------
   2. 本文・段落
---------------------------------------------------------- */

.entry-content .mns-p {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 16px;
}


/* ----------------------------------------------------------
   3. ボックス系
---------------------------------------------------------- */

/* 汎用インフォボックス */
.entry-content .mns-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ポイント（青）*/
.entry-content .mns-point {
    background: #eaf4fb;
    border-left: 5px solid #2980b9;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

.entry-content .mns-point::before {
    content: "✔ ポイント";
    display: block;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 8px;
    font-size: 13px;
}

/* 注意・警告（オレンジ）*/
.entry-content .mns-warning {
    background: #fff8ec;
    border-left: 5px solid #e67e22;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

.entry-content .mns-warning::before {
    content: "⚠ 注意";
    display: block;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 8px;
    font-size: 13px;
}

/* まとめ・要約ボックス（記事冒頭用）*/
.entry-content .mns-summary {
    background: #fff;
    border: 2px solid #c0392b;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0 32px;
}

.entry-content .mns-summary-title {
    font-weight: bold;
    color: #c0392b;
    font-size: 15px;
    margin-bottom: 12px;
    display: block;
}


/* ----------------------------------------------------------
   4. リスト
---------------------------------------------------------- */

/* チェックリスト */
.entry-content .mns-check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.entry-content .mns-check-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px dotted #eee;
}

.entry-content .mns-check-list li::before {
    content: "✔";
    position: absolute;
    left: 4px;
    color: #27ae60;
    font-weight: bold;
}

/* 通常リスト（番号付き風）*/
.entry-content .mns-num-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: mns-counter;
}

.entry-content .mns-num-list li {
    padding: 8px 0 8px 36px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px dotted #eee;
    counter-increment: mns-counter;
}

.entry-content .mns-num-list li::before {
    content: counter(mns-counter);
    position: absolute;
    left: 0;
    top: 8px;
    background: #c0392b;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: bold;
}


/* ----------------------------------------------------------
   5. テーブル
---------------------------------------------------------- */

.entry-content .mns-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.entry-content .mns-table th {
    background: #c0392b;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
}

.entry-content .mns-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    vertical-align: top;
    line-height: 1.7;
}

.entry-content .mns-table tr:nth-child(even) td {
    background: #f9f9f9;
}


/* ----------------------------------------------------------
   6. 区切り・強調
---------------------------------------------------------- */

.entry-content .mns-divider {
    border: none;
    border-top: 2px dashed #ddd;
    margin: 32px 0;
}

.entry-content .mns-marker {
    background: linear-gradient(transparent 50%, #ffe066 50%);
    font-weight: bold;
}

.entry-content .mns-red {
    color: #c0392b;
    font-weight: bold;
}


/* ----------------------------------------------------------
   7. CTA（ワクスト誘導ボタン）
---------------------------------------------------------- */

/* インラインテキストリンク */
.entry-content .mns-link {
    color: #c0392b;
    text-decoration: underline;
    font-weight: bold;
}

/* CTAボックス（記事中・記事末用）*/
.entry-content .mns-cta-box {
    background: linear-gradient(135deg, #c0392b 0%, #8e1a10 100%);
    border-radius: 10px;
    padding: 28px 24px;
    margin: 36px 0;
    text-align: center;
    color: #fff;
}

.entry-content .mns-cta-box .mns-cta-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.entry-content .mns-cta-box .mns-cta-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    display: block;
    line-height: 1.6;
}

.entry-content .mns-cta-btn {
    display: inline-block;
    background: #fff;
    color: #c0392b !important;
    font-weight: bold;
    font-size: 15px;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.entry-content .mns-cta-btn:hover {
    opacity: 0.85;
}

/* シンプルCTAボタン（1行タイプ）*/
.entry-content .mns-btn-wrap {
    text-align: center;
    margin: 24px 0;
}

.entry-content .mns-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff !important;
    font-weight: bold;
    font-size: 15px;
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.entry-content .mns-btn:hover {
    opacity: 0.8;
}


/* ----------------------------------------------------------
   8. レスポンシブ調整
---------------------------------------------------------- */

@media only screen and (max-width: 599px) {

    .entry-content .mns-h2 {
        font-size: 17px;
        padding: 7px 12px;
    }

    .entry-content .mns-h3 {
        font-size: 15px;
    }

    .entry-content .mns-cta-box {
        padding: 22px 16px;
    }

    .entry-content .mns-cta-box .mns-cta-title {
        font-size: 16px;
    }

    .entry-content .mns-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ----------------------------------------------------------
   9. 会話吹き出し（セラピスト ↔ 田中）
---------------------------------------------------------- */

/* 会話ブロック全体 */
.entry-content .mns-talk {
    margin: 32px 0;
    padding: 0;
    background: none;
}

/* 1行分 */
.entry-content .mns-talk-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.entry-content .mns-talk-row:last-child {
    margin-bottom: 0;
}

/* セラピスト：アイコン左・吹き出し右 */
.entry-content .mns-talk-left {
    flex-direction: row;
}

/* 田中：吹き出し左・アイコン右 */
.entry-content .mns-talk-right {
    flex-direction: row-reverse;
}

/* アイコン部分 */
.entry-content .mns-talk-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 72px;
}

.entry-content .mns-talk-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* セラピスト：ピンクボーダー */
.entry-content .mns-talk-left .mns-talk-icon img {
    border: 3px solid #e8929a;
}

/* 田中：青ボーダー */
.entry-content .mns-talk-right .mns-talk-icon img {
    border: 3px solid #7ab3d9;
}

/* 田中の心の声：赤ボーダー */
.entry-content .mns-talk-right.mns-talk-inner .mns-talk-icon img {
    border: 3px solid #c0392b;
}

.entry-content .mns-talk-icon span {
    font-size: 11px;
    color: #555;
    margin-top: 6px;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
}

/* 吹き出し共通 */
.entry-content .mns-talk-bubble {
    flex: 1;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.9;
    border-radius: 12px;
}

/* ─── セラピスト吹き出し（ピンク・左上角なし） ─── */
.entry-content .mns-talk-left .mns-talk-bubble {
    background: #fff5f7;
    color: #c0626e;
    border-radius: 0 12px 12px 12px;
}

/* ─── 田中のセリフ吹き出し（水色・右上角なし） ─── */
.entry-content .mns-talk-right .mns-talk-bubble {
    background: #f0f7ff;
    color: #3a7abf;
    border-radius: 12px 0 12px 12px;
}

/* ─── 田中の心の声（薄赤・破線・斜体・右上角なし） ─── */
.entry-content .mns-talk-right.mns-talk-inner .mns-talk-bubble {
    background: #fff5f5;
    border: 1.5px dashed #c0392b;
    color: #c0392b;
    font-style: italic;
    border-radius: 12px 0 12px 12px;
}

/* ─── レスポンシブ（スマホ） ─── */
@media only screen and (max-width: 599px) {

    .entry-content .mns-talk-icon {
        width: 58px;
    }

    .entry-content .mns-talk-icon img {
        width: 50px;
        height: 50px;
    }

    .entry-content .mns-talk-icon span {
        font-size: 10px;
    }

    .entry-content .mns-talk-bubble {
        font-size: 13px;
        padding: 12px 14px;
    }
}
