@charset "UTF-8";

/* ==============================================
   OLUOLI Recipe Card - Final Perfect Style
   ============================================== */

/* --- Layout Base (共通) --- */
.oluoli-recipe-card {
    margin-bottom: 3em;
    padding: 30px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
}

/* Header */
.recipe-title {
    margin: 0 0 20px 0 !important;
    line-height: 1.4;
    font-weight: bold;
    outline: none;
}

/* Body */
.recipe-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    align-items: flex-start;
}

/* Image */
.col-img {
    flex: 0 0 40%;
    width: 40%;
    min-width: 0;
}
.col-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}
.no-image-placeholder {
    width: 100%;
    height: 150px;
    background: #f9f9f9;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

/* Info */
.col-info {
    flex: 1;
    min-width: 0;
}
.info-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 0.9em;
}
.info-label {
    width: 70px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* PlainText Inputs */
.input-plain, .val-time, .val-yield, .val-kcal {
    font-weight: bold;
    flex-grow: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    min-width: 50px;
}
.block-editor-plain-text.input-plain { margin: 0; }

/* Textarea Editor Styles */
.ing-list-editor textarea,
.steps-list-editor textarea {
    min-height: 120px;
    line-height: 1.6;
    font-size: 0.95em;
    border: 1px dashed #ccc !important;
    background: #fafafa !important;
    color: #444;
}
.ing-list-editor textarea:focus,
.steps-list-editor textarea:focus {
    background: #fff !important;
    border-color: #666 !important;
}

/* Ingredients (Output) */
.ing-area { margin-top: 20px; }
ul.ing-list {
    list-style: none; padding: 0; margin: 0;
}
ul.ing-list li {
    padding: 5px 0;
    border-bottom: 1px dotted rgba(0,0,0,0.15);
    font-size: 0.95em;
    position: relative;
    padding-left: 15px;
}
ul.ing-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #bbb;
}

/* Steps (Output) */
.recipe-foot { margin-top: 20px; }
.sec-label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
}
ol.steps-list {
    margin: 0; padding-left: 1.4em;
}
ol.steps-list li { margin-bottom: 12px; line-height: 1.6; }

/* Memo */
.memo-area {
    margin-top: 20px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    font-size: 0.9em;
}
.memo-label {
    font-size: 0.75em; font-weight: bold;
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 3px;
}
.memo-text { 
    margin: 0; flex-grow: 1;
    background: transparent; border: none; box-shadow: none; 
    font-size: inherit; color: inherit; 
}


/* ==============================================
   Style 1: Minimal (究極のミニマル) - 余白調整版
   ============================================== */
.is-style-minimal {
    /* ★修正: 左右に30pxの余白を追加 */
    padding: 10px 30px; 
    border: none;
    color: #333;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.is-style-minimal .recipe-head {
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.is-style-minimal .recipe-title {
    font-size: 1.8em !important;
    letter-spacing: 0.05em;
}
.is-style-minimal .col-img img {
    /* 装飾なし */
}
.is-style-minimal .sec-label {
    border-bottom: 1px solid #000;
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.1em;
}
.is-style-minimal .memo-area {
    border-left: 4px solid #000;
    background: #f4f4f4;
    padding: 15px 20px;
}
.is-style-minimal .memo-label {
    background: #000; color: #fff;
}


/* ==============================================
   Style 2: Luxe (洋書スタイル)
   ============================================== */
.is-style-luxe {
    border: 1px solid #eee;
    padding: 50px;
    color: #444;
    font-family: "Yu Mincho", serif;
}
.is-style-luxe .recipe-head {
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}
.is-style-luxe .recipe-title {
    font-size: 1.6em !important;
    font-weight: normal;
    letter-spacing: 0.05em;
}
.is-style-luxe .sec-label {
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.2em;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: block; 
}
.is-style-luxe .memo-area {
    background: #fff;
    border: 1px solid #f0f0f0;
    font-style: italic;
    color: #666;
}
.is-style-luxe .memo-label {
    background: #555; color: #fff; font-style: normal; border: 1px solid #ccc;
}


/* ==============================================
   Style 3: Casual (優しい丸み)
   ============================================== */
.is-style-casual {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef2f5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    color: #555;
    font-family: "Rounded Mplus 1c", sans-serif;
}
.is-style-casual .recipe-head {
    background: #f3f7f9;
    margin: -30px -30px 30px -30px;
    padding: 25px 30px;
}
.is-style-casual .recipe-title {
    color: #5d6d7e;
    text-align: center;
}
.is-style-casual .col-img img {
    border-radius: 12px;
}
.is-style-casual .sec-label {
    color: #5d6d7e;
    background: #eaf2f8;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}
.is-style-casual .memo-area {
    background: #fffbf0;
    border-radius: 12px;
}
.is-style-casual .memo-label {
    background: #ffb74d; color: #fff;
}


/* --- スマホ対応 --- */
@media (max-width: 600px) {
    .oluoli-recipe-card { padding: 20px; }
    .recipe-body { display: block; }
    .col-img { width: 100%; flex: none; margin-bottom: 20px; }
    .is-style-casual .recipe-head { margin: -20px -20px 20px -20px; }
    .is-style-luxe { padding: 20px; }
}

@charset "UTF-8";

/* ==============================================
   OLUOLI Speech Bubble Block (Chat Style Fixed)
   ============================================== */

.oluoli-speech-block {
    display: flex;
    gap: 20px;
    margin-bottom: 2em;
    align-items: flex-start;
}

/* --- 配置: 右寄せ (自分) --- */
.oluoli-speech-block.is-pos-right {
    flex-direction: row-reverse;
}

/* --- アイコンエリア --- */
.speech-icon-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}
.icon-wrapper, .speech-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    margin-bottom: 8px;
    cursor: pointer;
}
.icon-wrapper img, .speech-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.speech-name {
    font-size: 0.75em;
    color: #777;
    text-align: center;
    background: transparent;
    border: none;
    width: 100%;
    padding: 0;
    margin: 0;
}
.icon-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 0.7em;
    color: #999;
}

/* --- 吹き出しエリア --- */
.speech-bubble-area {
    flex: 1;
    max-width: 100%;
    min-width: 0;
    margin-top: 5px; /* アイコンと少し高さを合わせる */
}
.speech-text {
    position: relative;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    line-height: 1.6;
    word-break: break-all;
}


/* ==============================================
   Design 1: Chat (LINE風 / 会話) - しっぽ復活
   ============================================== */
/* JSから渡された --bg-color 変数を使って
   しっぽの色を動的に変更します
*/
.is-style-chat .speech-text {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); /* ほんのり影 */
}

/* しっぽの共通設定 */
.is-style-chat .speech-text::before {
    content: "";
    position: absolute;
    top: 12px; /* 上からの位置 */
    width: 0;
    height: 0;
    border-style: solid;
}

/* 左配置 (相手) のしっぽ: 左向き◀ */
.is-pos-left.is-style-chat .speech-text::before {
    left: -10px; /* 左にはみ出す */
    border-width: 8px 10px 8px 0; /* 三角形を作る */
    border-color: transparent var(--bg-color) transparent transparent; /* 右辺だけ色をつける */
}

/* 右配置 (自分) のしっぽ: 右向き▶ */
.is-pos-right.is-style-chat .speech-text::before {
    right: -10px; /* 右にはみ出す */
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent var(--bg-color); /* 左辺だけ色をつける */
}


/* ==============================================
   Design 2: Simple (枠線のみ)
   ============================================== */
.is-style-simple .speech-text {
    background-color: #fff !important; /* 強制白 */
    border: 2px solid; /* 色はJSからborderColorで指定 */
    /* Simpleにはしっぽ無し */
}
.is-style-simple .speech-text::before { display: none; }


/* ==============================================
   Design 3: Cloud (もくもく / 心の声)
   ============================================== */
.is-style-cloud .speech-text {
    border-radius: 20px;
    box-shadow: 
       4px 4px 0 rgba(0,0,0,0.05) inset,
       -2px -2px 0 rgba(255,255,255,0.5) inset;
    border: 1px solid rgba(0,0,0,0.05);
}
/* 思考の丸ポチ */
.is-style-cloud .speech-bubble-area::after {
    content: "";
    display: block;
    width: 8px; height: 8px;
    background-color: #ccc; /* デフォルト色 */
    border-radius: 50%;
    margin-top: 5px;
    opacity: 0.5;
}
/* 丸ポチの位置 */
.is-pos-right.is-style-cloud .speech-bubble-area::after {
    margin-left: auto; margin-right: 10px;
}
.is-pos-left.is-style-cloud .speech-bubble-area::after {
    margin-left: 10px;
}
/* Cloudには三角しっぽ無し */
.is-style-cloud .speech-text::before { display: none; }


/* スマホ対応 */
@media (max-width: 600px) {
    .oluoli-speech-block { gap: 10px; }
    .speech-icon-area { width: 50px; }
    .icon-wrapper, .speech-icon { width: 40px; height: 40px; }
    .speech-text { padding: 12px; font-size: 0.9em; }
}

@charset "UTF-8";

@charset "UTF-8";

/* ==============================================
   OLUOLI All-in-One Review Block (Premium Design v2)
   ============================================== */

/* --- Base Layout --- */
.oluoli-review-block {
    margin-bottom: 3.5em;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #444;
    line-height: 1.7;
    box-sizing: border-box;
    width: 100%;
}

/* --- Common Elements --- */

/* 画像エリア */
.review-img-area {
    flex-shrink: 0;
}
.img-wrapper, .review-img {
    width: 100%; height: auto; display: block; object-fit: cover;
    background: #f9f9f9; cursor: pointer;
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.img-placeholder {
    display: flex; justify-content: center; align-items: center;
    width: 80px; height: 80px; font-size: 0.7em; color: #aaa;
    border: 1px dashed #ccc; border-radius: 8px;
}

/* テキスト */
.review-title {
    font-weight: bold; font-size: 1.15em; margin-bottom: 0.6em;
    color: #333; line-height: 1.4;
}
.review-text {
    font-size: 0.95em; color: #666; margin-bottom: 1.2em;
}

/* 星評価 */
.review-stars {
    display: flex; align-items: center; margin-bottom: 12px;
    background: #fff; padding: 5px 10px; border-radius: 20px;
    display: inline-flex; border: 1px solid #eee;
}
.star-val {
    font-weight: bold; margin-right: 8px; font-size: 1.2em; color: #333;
}
.star-bg {
    position: relative; color: #e0e0e0; font-size: 18px; line-height: 1;
}
.star-bg::before { content: "★★★★★"; letter-spacing: 2px; }
.star-fg {
    position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: #ffb400; 
}
.star-fg::before { content: "★★★★★"; letter-spacing: 2px; }

/* リスト (メリット/デメリット等) */
.review-lists {
    margin-top: 20px;
}
.review-list-1, .review-list-2 {
    margin-bottom: 15px; font-size: 0.9em;
    background: #fff; padding: 15px; border-radius: 8px;
    border: 1px solid #eee;
}
.list-label {
    display: inline-block; font-size: 0.75em; font-weight: bold;
    padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
    color: #fff; letter-spacing: 0.05em;
}
.review-lists ul {
    margin: 0; padding: 0; list-style: none;
}
.review-lists li {
    padding-left: 1.4em; position: relative; margin-bottom: 6px;
    line-height: 1.5;
}
.review-lists li::before {
    content: "✔"; position: absolute; left: 0; color: #ccc; font-size: 0.9em;
}

/* ボタン */
.review-btns {
    display: flex; gap: 15px; margin-top: 25px;
}
.review-btn {
    flex: 1; text-align: center; padding: 14px; 
    border-radius: 50px; 
    text-decoration: none; font-weight: bold; font-size: 0.9em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff; color: #333; border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center;
}
.review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.is-btn1 {
    background: linear-gradient(135deg, #FF9900 0%, #FFCC00 100%); 
    color: #fff; border: none;
}
.is-btn2 {
    background: linear-gradient(135deg, #bf0000 0%, #ff0000 100%); 
    color: #fff; border: none;
}


/* ------------------------------------------------
   Type Variations (Design Polish)
------------------------------------------------ */

/* --- 1. Customer Voice (吹き出し・左) --- */
.type-voice_left {
    display: flex; gap: 20px; align-items: flex-start;
}
.type-voice_left .review-img-area { width: 65px; text-align: center; }
.type-voice_left .review-img { width: 65px; height: 65px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.type-voice_left .review-title { font-size: 0.75em; text-align: center; margin-top: 8px; font-weight: bold; color: #777; margin-bottom: 0; }
.type-voice_left .review-content-area {
    /* ★修正: CSS変数を使用 (デフォルト値も設定) */
    background-color: var(--voice-bg-color, #f0f4f8);
    padding: 20px; border-radius: 12px; position: relative; flex: 1;
    color: #444;
}
/* しっぽ */
.type-voice_left .review-content-area::before {
    content: ""; position: absolute; top: 20px; left: -12px;
    border: 12px solid transparent;
    /* ★修正: CSS変数を使用 */
    border-right-color: var(--voice-bg-color, #f0f4f8);
}

/* --- 2. Customer Voice (吹き出し・右) --- */
.type-voice_right {
    display: flex; gap: 20px; align-items: flex-start; flex-direction: row-reverse;
}
.type-voice_right .review-img-area { width: 65px; text-align: center; }
.type-voice_right .review-img { width: 65px; height: 65px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.type-voice_right .review-title { font-size: 0.75em; text-align: center; margin-top: 8px; font-weight: bold; color: #777; margin-bottom: 0; }
.type-voice_right .review-content-area {
    /* ★修正: CSS変数を使用 */
    background-color: var(--voice-bg-color, #dcf8c6);
    padding: 20px; border-radius: 12px; position: relative; flex: 1;
}
/* しっぽ */
.type-voice_right .review-content-area::before {
    content: ""; position: absolute; top: 20px; right: -12px;
    border: 12px solid transparent;
    /* ★修正: CSS変数を使用 */
    border-left-color: var(--voice-bg-color, #dcf8c6);
}

/* --- 3. Customer Voice (Card) --- */
.type-voice_card {
    border: none; padding: 30px; text-align: center;
    background: #fff; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.type-voice_card .review-img-area { width: 80px; margin: 0 auto 15px; }
.type-voice_card .review-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* --- 4. Customer Voice (List) --- */
.type-voice_list {
    border: none; border-radius: 12px; padding: 20px; 
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex; gap: 20px; align-items: center; border-left: 5px solid #ccc;
}
.type-voice_list .review-img-area { width: 50px; }
.type-voice_list .review-img { width: 50px; height: 50px; border-radius: 50%; }
.type-voice_list .review-content-area { flex: 1; }
.type-voice_list .review-title { display: inline-block; margin-right: 15px; font-size: 0.9em; color: #333; }
.type-voice_list .review-text { display: inline; font-size: 0.95em; color: #555; }

/* --- 5. Review Box (Stars) --- */
.type-star_box {
    border: 1px solid #eee; padding: 30px; text-align: center; border-radius: 8px;
    background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.type-star_box .review-title { margin-bottom: 5px; font-size: 1.3em; }
.type-star_box .review-stars { justify-content: center; margin: 15px auto; border: none; background: transparent; }
.type-star_box .star-val { font-size: 2.5em; color: #333; }
.type-star_box .star-bg { font-size: 28px; }

/* --- 6. Review Box (Details) --- */
.type-detail_box {
    border-top: 2px solid #333; border-bottom: 2px solid #333;
    padding: 30px; background: #fff;
}
.type-detail_box .review-title { text-align: center; margin-bottom: 20px; font-size: 1.2em; }
.type-detail_box .review-lists { border: none; }
.type-detail_box .review-list-1 { background: transparent; border: none; padding: 0; margin: 0; }
.type-detail_box .review-list-1 li { 
    display: flex; justify-content: space-between; 
    border-bottom: 1px dashed #ddd; padding: 8px 0; margin: 0;
}
.type-detail_box .review-list-1 li::before { content: none; }

/* --- 7. Summary (Merit/Demerit) --- */
.type-summary {
    display: flex; gap: 25px; padding: 25px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.type-summary .review-content-area { width: 100%; }
.type-summary .review-lists { border: none; padding: 0; margin: 0; display: flex; gap: 25px; }
.type-summary .review-list-1 { 
    flex: 1; background: #f0f9ff; 
    border: 1px solid #e0f2fe; border-radius: 8px; padding: 20px;
}
.type-summary .review-list-2 { 
    flex: 1; background: #fff5f5; 
    border: 1px solid #ffe4e6; border-radius: 8px; padding: 20px;
}
.type-summary .review-list-1 .list-label { background: #3b82f6; }
.type-summary .review-list-2 .list-label { background: #ef4444; }
.type-summary .review-list-1 li::before { color: #3b82f6; content: "✔"; }
.type-summary .review-list-2 li::before { color: #ef4444; content: "✖"; }

/* --- 8-11. Cards (Product, Book, Movie, Shop) --- */
.type-prod_card, .type-book_card, .type-movie_card, .type-shop_card {
    border: none; padding: 35px; 
    display: flex; gap: 35px; align-items: flex-start;
    background: #fff; border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06);
    /* ★削除: 黒い帯を削除 */
    /* border-top: 4px solid #333; */
}
.type-prod_card .review-img-area, 
.type-book_card .review-img-area,
.type-movie_card .review-img-area,
.type-shop_card .review-img-area {
    width: 32%; min-width: 180px;
}
.type-prod_card .review-img,
.type-book_card .review-img,
.type-movie_card .review-img,
.type-shop_card .review-img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 8px;
}

.type-prod_card .review-content-area,
.type-book_card .review-content-area,
.type-movie_card .review-content-area,
.type-shop_card .review-content-area {
    flex: 1;
}

/* リストの見出しラベル色調整 */
.type-prod_card .list-label { background: #444; }
.type-book_card .list-label { background: #8d6e63; }
.type-movie_card .list-label { background: #5c6bc0; }
.type-shop_card .list-label { background: #26a69a; }


/* スマホ対応 */
@media (max-width: 600px) {
    .type-summary .review-lists { display: block; }
    .type-summary .review-list-1 { margin-bottom: 20px; }
    
    .type-prod_card, .type-book_card, .type-movie_card, .type-shop_card {
        display: block; padding: 25px;
    }
    .type-prod_card .review-img-area,
    .type-book_card .review-img-area,
    .type-movie_card .review-img-area,
    .type-shop_card .review-img-area {
        width: 100%; margin-bottom: 25px;
    }
    
    .review-btns { display: block; }
    .review-btn { margin-bottom: 12px; }
}


/* ==============================================
   3. リッチメニュー (画像下配置対応版)
   ============================================== */
.oluoli-rich-menu .rich-menu-container {
    display: grid;
    grid-template-columns: repeat(var(--menu-col-pc, 2), 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .oluoli-rich-menu .rich-menu-container {
        grid-template-columns: repeat(var(--menu-col-sp, 2), 1fr);
    }
}

.rich-menu-item {
    display: flex; position: relative;
    border-radius: 8px; overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    /* pos-below以外は画像の上に文字が乗る */
    flex-direction: column; 
}
.rich-menu-item:hover {
    transform: translateY(-3px);
}

/* 画像レイヤー */
.menu-img-layer {
    width: 100%;
    position: relative;
    aspect-ratio: var(--aspect-ratio, 16/9);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.menu-img-layer img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.rich-menu-item:hover .menu-img-layer img {
    transform: scale(1.1);
}
.menu-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--overlay-color, rgba(0,0,0,0.3));
    transition: background 0.3s;
}

/* --- テキスト位置制御 --- */

/* A. 文字が画像の上に乗るパターン (デフォルト) */
.oluoli-rich-menu:not(.pos-below) .rich-menu-item {
    aspect-ratio: var(--aspect-ratio, 16/9); /* アイテム全体で比率を持つ */
}
.oluoli-rich-menu:not(.pos-below) .menu-img-layer {
    position: absolute; top: 0; left: 0; height: 100%; z-index: 1;
    box-shadow: none; border-radius: 0;
}
.oluoli-rich-menu:not(.pos-below) .menu-text {
    position: relative; z-index: 2;
    color: #fff; font-weight: bold; text-shadow: 0 2px 5px rgba(0,0,0,0.6);
    padding: 10px; width: 100%; box-sizing: border-box;
}

/* 位置バリエーション */
.pos-center .rich-menu-item { justify-content: center; align-items: center; text-align: center; }
.pos-top-left .rich-menu-item { justify-content: flex-start; align-items: flex-start; text-align: left; }
.pos-top-right .rich-menu-item { justify-content: flex-start; align-items: flex-end; text-align: right; }
.pos-bottom-left .rich-menu-item { justify-content: flex-end; align-items: flex-start; text-align: left; }
.pos-bottom-right .rich-menu-item { justify-content: flex-end; align-items: flex-end; text-align: right; }


/* B. ★追加: 文字が画像の下にくるパターン */
.oluoli-rich-menu.pos-below .rich-menu-item {
    display: block; /* 縦積み */
    box-shadow: none; /* 全体の影はなし */
    overflow: visible;
}
.oluoli-rich-menu.pos-below .menu-img-layer {
    /* 画像だけにアスペクト比と角丸 */
    aspect-ratio: var(--aspect-ratio, 16/9);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}
.oluoli-rich-menu.pos-below .menu-text {
    display: block;
    color: #333; /* 黒文字 */
    font-weight: bold;
    font-size: 0.95em;
    text-shadow: none;
    text-align: center;
}

/* エディタ用 */
.rich-menu-item-editor {
    border: 1px solid #eee; padding: 10px; background: #fff;
    border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.rich-menu-item-editor .menu-img-wrapper {
    background: #f0f0f0; display: flex; justify-content: center; align-items: center;
    border-radius: 4px; overflow: hidden;
}
/* ==============================================
   OLUOLI Premium Button Styles (Shape Update)
   ============================================== */

.oluoli-btn-wrapper { display: flex; width: 100%; margin: 2.5em 0; clear: both; }

.oluoli-btn {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer; border: none; overflow: hidden;
    text-decoration: none !important; box-sizing: border-box;
    background-color: var(--btn-main-color, #333);
    color: var(--btn-text-color, #fff) !important;
    text-align: center;
}

.btn-inner { display: flex; flex-direction: column; align-items: center; line-height: 1.2; width: 100%; }
.btn-maintext { font-weight: bold; font-size: 1.1em; }
.btn-subtext { font-size: 0.65em; opacity: 0.85; margin-bottom: 4px; font-weight: normal; }

/* --- 形状 (Shape) --- */
.is-shape-square { border-radius: 0px !important; }
.is-shape-rounded { border-radius: 8px !important; }
.is-shape-pill { border-radius: 100px !important; }

/* サイズ */
.is-size-s { padding: 10px 24px; min-width: 160px; }
.is-size-m { padding: 16px 45px; min-width: 240px; }
.is-size-l { padding: 22px 60px; min-width: 300px; font-size: 1.1em; }
.is-size-full { width: 100%; padding: 18px; }

/* 矢印アイコン */
.oluoli-btn.has-arrow::after {
    content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    margin-left: 15px; transition: transform 0.3s ease;
    display: inline-block;
}
.oluoli-btn.has-arrow:hover::after { transform: translateX(6px); }

/* キラッと光るエフェクト */
.is-shiny::before {
    content: ""; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255,255,255,0.3); transform: rotate(30deg);
    animation: oluoli-shiny 4s infinite linear;
    pointer-events: none; z-index: 1;
}
@keyframes oluoli-shiny { 0% { left: -60%; } 15% { left: 120%; } 100% { left: 120%; } }

/* 各デザインタイプ */
/* SWELL風：立体グラデ */
.is-style-swell-grad {
    background: linear-gradient(135deg, var(--btn-main-color) 0%, color-mix(in srgb, var(--btn-main-color), #000 15%) 100%) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.is-style-swell-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); filter: brightness(1.1); }

/* SANGO風：3D立体 */
.is-style-sango-3d {
    box-shadow: 0 5px 0 color-mix(in srgb, var(--btn-main-color), #000 25%);
}
.is-style-sango-3d:hover { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--btn-main-color), #000 25%); }

/* JINR風：二重線 */
.is-style-jinr-double { background: transparent !important; border: 1px solid var(--btn-main-color); color: var(--btn-main-color) !important; }
.is-style-jinr-double::before {
    content: ""; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid var(--btn-main-color); border-radius: inherit;
    z-index: 0;
}
.is-style-jinr-double:hover { background: var(--btn-main-color) !important; color: #fff !important; }

/* 枠線のみ */
.is-style-outline { background: transparent !important; border: 2px solid var(--btn-main-color); color: var(--btn-main-color) !important; }
.is-style-outline:hover { background: var(--btn-main-color) !important; color: #fff !important; }
/* ==============================================
   Illustration List Block - Unified Design
   ============================================== */

/* ブロック全体のコンテナ */
.oluoli-ill-list-block {
    margin: 2em 0;
    width: 100%;
}

/* グリッドレイアウト */
.oluoli-ill-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* 個別アイテム */
.ill-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.ill-item:hover {
    transform: translateY(-5px);
}

.ill-link {
    text-decoration: none !important;
    color: inherit !important;
}

/* サムネイル（左上カテゴリーラベルの基準） */
.ill-thumb {
    position: relative; /* 絶対配置の基準 */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

.ill-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* カテゴリーラベル（画像の上に重ねる） */
.ill-cat-label {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10;
    background: var(--color-main, #333) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* メタ情報 */
.ill-meta {
    padding: 15px;
}

.ill-title {
    margin: 0 0 5px 0 !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
}

.ill-author {
    font-size: 0.8rem;
    color: #888;
}

/* スマホ対応 */
@media (max-width: 599px) {
    .oluoli-ill-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
/* ==============================================
   OLUOLI Step Block - Modern Update
   ============================================== */

/* 親コンテナ全体の余白 */
.oluoli-step-container {
    margin: 4em 0;
    counter-reset: oluoli-step-counter; /* カウンターをリセット（自動番号用） */
}

/* 個別ステップ項目 */
.oluoli-step-item {
    position: relative;
    display: flex;
    gap: 30px;
    padding-bottom: 60px; /* ステップ間の間隔を広めに */
}

/* 縦のライン：より太く、柔らかい色に */
.oluoli-step-item::before {
    content: "";
    position: absolute;
    top: 55px; /* 番号の下から */
    left: 24px; /* 番号の中央位置 */
    width: 3px;
    height: calc(100% - 45px);
    background: #f1f5f9; /* 薄いグレー */
    border-radius: 2px;
    z-index: 1;
}

/* 最後のステップのラインを消す */
.oluoli-step-item:last-child::before {
    display: none;
}

/* ステップ番号（円形部分） */
.step-header {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--step-color, #333);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 軽い影で浮かす */
    font-family: 'Montserrat', sans-serif; /* 欧文フォントがあれば綺麗 */
}

/* 自由入力エリアの装飾 */
.step-content-area {
    flex-grow: 1;
    padding: 10px 25px 25px 25px;
    background: #fff; /* 背景を白に */
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); /* 極めて薄い影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーで少し浮き上がる演出 */
.oluoli-step-item:hover .step-content-area {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* 中身のブロックの間隔を整える */
.step-content-area > * {
    margin-top: 0;
    margin-bottom: 1.2em;
}

.step-content-area > *:last-child {
    margin-bottom: 0;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .oluoli-step-item {
        gap: 15px;
    }
    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .oluoli-step-item::before {
        top: 45px;
        left: 19px;
    }
    .step-content-area {
        padding: 15px 20px 20px 20px;
    }
}

/* --- 吹き出しブロック 全体設定 --- */
.oluoli-balloon-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 2em 0;
    max-width: 100%;
}

/* 向きの切り替え */
.oluoli-balloon-wrapper.is-right {
    flex-direction: row-reverse;
}

/* アイコンエリア */
.balloon-icon-area {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.balloon-icon {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.balloon-icon.circle { border-radius: 50%; }
.balloon-icon.square { border-radius: 8px; }

.balloon-name {
    font-size: 0.75rem;
    color: #666;
    display: block;
    font-weight: bold;
}

/* 吹き出し本体 */
.balloon-content {
    position: relative;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: calc(100% - 100px);
    box-sizing: border-box;
}

/* 吹き出しのしっぽ（共通） */
.balloon-content::before {
    content: "";
    position: absolute;
    top: 25px;
    border: 10px solid transparent;
}

/* 左向きのしっぽ */
.is-left .balloon-content::before {
    left: -20px;
    border-right-color: inherit; /* 親の境界線・背景色を引き継ぐ */
}

/* 右向きのしっぽ */
.is-right .balloon-content::before {
    right: -20px;
    border-left-color: inherit;
}

/* 塗りつぶしタイプ */
.is-type-fill .balloon-content {
    border: none;
}

/* 枠線タイプ */
.is-type-outline .balloon-content {
    background: transparent !important;
    border: 2px solid;
}

/* 編集画面用の調整 */
.oluoli-balloon-editor {
    display: flex;
    gap: 20px;
}
.oluoli-balloon-editor.is-right {
    flex-direction: row-reverse;
}

/* ============================================================
   OLUOLI Custom Heading - Theme Color Integrated Designs
   ============================================================ */

.oluoli-custom-h {
    margin: 2em 0 1.2em;
    line-height: 1.5;
    font-weight: 700;
    color: var(--color-text, #333); /* 基本文字色はテキストカラー変数を使用 */
    transition: all 0.3s ease;
}

/* デザイン1：吹き出し風 (テーマカラー背景) */
.oluoli-custom-h.design-1 {
    position: relative;
    padding: .5em .7em;
    border-radius: 10px;
    background-color: var(--color-main);
    color: #fff !important; /* 背景がテーマカラーなので文字は白固定 */
    display: inline-block;
}
.oluoli-custom-h.design-1::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 30px;
    width: 0;
    height: 0;
    border: 11px solid transparent;
    border-top: 11px solid var(--color-main);
}

/* デザイン2：スラッシュライン (テーマカラー線) */
.oluoli-custom-h.design-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.oluoli-custom-h.design-2::before,
.oluoli-custom-h.design-2::after {
    width: 3px;
    height: 40px;
    background-color: var(--color-main);
    content: '';
}
.oluoli-custom-h.design-2::before { transform: rotate(-35deg); margin-right: 30px; }
.oluoli-custom-h.design-2::after { transform: rotate(35deg); margin-left: 30px; }

/* デザイン3：背景番号付き (番号にテーマカラーを使用) */
.oluoli-custom-h.design-3 {
    position: relative;
    padding-top: 1.5em;
}
.oluoli-custom-h.design-3::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: var(--color-main);
    opacity: 0.1; /* 番号はテーマカラーを薄く表示 */
    font-size: 3em;
    line-height: 1;
    content: attr(data-number);
    font-family: sans-serif;
    font-weight: 900;
}

/* デザイン4：最初の1文字色変え (テーマカラー適用) */
.oluoli-custom-h.design-4::first-letter {
    color: var(--color-main);
    font-size: 2em;
    line-height: 1;
}

/* デザイン5：左ライン+背景 (ラインにテーマカラー) */
.oluoli-custom-h.design-5 {
    display: flex;
    align-items: center;
    padding: .5em .7em;
    background-color: #f2f2f2;
}
.oluoli-custom-h.design-5::before {
    display: inline-block;
    width: 5px;
    height: 1.5em;
    margin-right: .5em;
    background-color: var(--color-main);
    content: '';
}

/* デザイン6：左右に水平線 (テーマカラー線) */
.oluoli-custom-h.design-6 {
    position: relative;
    display: inline-block;
    padding: 0 55px;
    text-align: center;
}
.oluoli-custom-h.design-6:before, .oluoli-custom-h.design-6:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45px;
    height: 1px;
    background-color: var(--color-main);
}
.oluoli-custom-h.design-6:before { left: 0; }
.oluoli-custom-h.design-6:after { right: 0; }

/* デザイン7：中央太下線 (テーマカラー線) */
.oluoli-custom-h.design-7 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.oluoli-custom-h.design-7:before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-main);
    border-radius: 2px;
}

/* デザイン8：丸角背景 (テーマカラー背景) */
.oluoli-custom-h.design-8 {
    background: var(--color-main);
    padding: 0.5em 1em;
    color: #fff !important;
    border-radius: 0.5em;
    display: inline-block;
}

/* デザイン9：太い点線下線 (テーマカラー点線) */
.oluoli-custom-h.design-9 {
    padding: 0.3em 0;
    border-bottom: dotted 6px var(--color-main);
}

/* デザイン10：中央5点ドット下線 (テーマカラードット) */
.oluoli-custom-h.design-10 {
    position: relative;
    text-align: center;
    padding-bottom: 1.5rem;
}
.oluoli-custom-h.design-10:before {
    content: '';
    position: absolute;
    border-bottom: 10px dotted var(--color-main);
    width: 50px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* デザイン11：アクセント下線 */
.oluoli-custom-h.design-11 { border-bottom: 1px solid #eee; position: relative; padding-bottom: 10px; }
.oluoli-custom-h.design-11::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 40px; height: 3px; background: var(--color-main); }

/* デザイン12：シンプル枠線 */
.oluoli-custom-h.design-12 { border: 1px solid var(--color-main); padding: 10px 20px; display: inline-block; }

/* デザイン13：蛍光ペン風 (テーマカラーの薄い塗り) */
.oluoli-custom-h.design-13 { 
    background: linear-gradient(transparent 70%, var(--color-main) 70%); 
    display: inline-block; 
    /* マーカー風にするため不透明度を調整したい場合は背景色をRGBAで指定する等の工夫が必要ですが、ここでは標準的な指定にします */
}

/* デザイン14：L字アクセント */
.oluoli-custom-h.design-14 { border-left: 10px solid var(--color-main); border-bottom: 1px solid #eee; padding: 10px 20px; }

/* デザイン15：上下ライン */
.oluoli-custom-h.design-15 { 
    text-align: center; 
    padding: 15px 0;
    border-top: 1px solid var(--color-main);
    border-bottom: 1px solid var(--color-main);
}

/* デザイン16：二重下線 */
.oluoli-custom-h.design-16 { border-bottom: 5px double var(--color-main); padding-bottom: 5px; }

/* デザイン17：サイドバー風左線 */
.oluoli-custom-h.design-17 { padding-left: 15px; border-left: 5px solid var(--color-main); }

/* デザイン18：ステッチ風 */
.oluoli-custom-h.design-18 { 
    background: var(--color-main); 
    color: #fff !important; 
    padding: 10px 20px; 
    border: 2px dashed #fff; 
    outline: 2px solid var(--color-main); 
    border-radius: 5px; 
}

/* デザイン19：リボンフラッグ */
.oluoli-custom-h.design-19 { 
    background: var(--color-main); 
    color: #fff !important; 
    padding: 10px 20px; 
    clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%); 
}

/* デザイン20：Q&Aスタイル */
.oluoli-custom-h.design-20 { display: flex; align-items: center; font-size: 1.2em; }
.oluoli-custom-h.design-20::before { content: "Q."; color: var(--color-main); font-size: 1.5em; margin-right: 10px; }