@charset "utf-8";

/* ===================================================
   ちいかわぽけっと風 スタイル (整理・統合版)
   File: chii3-inc/chii-style3.css
   =================================================== */

/* *********************************************************
   1. 変数・基本設定
   ********************************************************* */
:root {
    --chii-pink: #ffb7c5;        /* メイン：桜色 */
    --chii-pink-deep: #ec407a;   /* 強調：濃いピンク */
    --chii-pink-light: #fff5f7;  /* 背景：薄ピンク */
    --chii-blue: #b3e5fc;        /* アクセント：空色 */
    --chii-blue-deep: #0288d1;   /* 強調：濃い青 */
    --chii-yellow: #fff9c4;      /* サブ：クリーム色 */
    --chii-text-brown: #4e342e;  /* テキスト：濃いこげ茶 */
    --chii-border-radius: 8px;   /* 角丸 */
}

.article {
    font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
    color: var(--chii-text-brown);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}


/* *********************************************************
   2. 見出し (H1/H2/H3)
   ********************************************************* */

/* H1: タイトル */
.article h1, .entry-title {
    background: #fff;
    color: var(--chii-text-brown);
    padding: 15px 10px;
    margin-bottom: 30px;
    border: 3px solid var(--chii-pink);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--chii-pink);
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

/* H2: 帯付き見出し */
[class^="chii3-h2"], 
.entry-content h2 { 
    background: #fffaf0 !important;
    color: var(--chii-text-brown) !important;
    padding: 12px 15px !important;
    margin: 45px 0 25px !important;
    border: 1px solid #ffccbc !important;
    border-left: 8px solid var(--chii-pink-deep) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    display: block !important;
    position: relative !important;
    clear: both !important;
}
/* 旧デザインリセット */
[class^="chii3-h2"]::before, [class^="chii3-h2"]::after,
.entry-content h2::before, .entry-content h2::after {
    content: none !important; display: none !important;
}

/* H3: 下線＋アイコン */
[class^="chii3-h3"],
.entry-content h3 {
    padding: 8px 10px 8px 32px !important;
    margin: 30px 0 20px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--chii-blue) !important;
    color: var(--chii-text-brown) !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    position: relative;
    box-shadow: none !important;
}
[class^="chii3-h3"]::before, .entry-content h3::before {
    content: ""; display: block !important;
    position: absolute; top: 50%; left: 0;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--chii-blue);
    border-radius: 6px;
    box-shadow: 2px 2px 0 #81d4fa;
}
[class^="chii3-h3"]::after, .entry-content h3::after {
    content: ""; display: block !important;
    position: absolute; top: 50%; left: 8px;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
}


/* *********************************************************
   3. キャラクター詳細・スペック (基本情報・評価など)
   ********************************************************* */

/* リード文 */
.chii3-lead-info, body p.chii3-lead-info {
    background: #fff !important;
    border: 2px solid var(--chii-pink) !important;
    border-radius: var(--chii-border-radius) !important;
    padding: 8px 8px !important;
    margin-bottom: 30px !important;
    position: relative !important;
    box-shadow: 4px 4px 0 #ffebee !important;
    display: block !important;
}

/* 基本情報カード */
.chii3-base-info-container {
    display: flex; flex-wrap: wrap; gap: 20px;
    background: #fff;
    border: 2px solid #ffab91;
    border-radius: 12px;
    padding: 20px; margin-bottom: 30px;
    box-shadow: 0 4px 0 #ffccbc;
}
.chii3-base-info-img {
    width: 120px !important; height: 120px !important;
    object-fit: contain !important;
    border-radius: 12px;
    background: #fff8e1;
    border: 2px solid #ffe0b2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 !important;
}
.chii3-info-details-area { flex: 1; min-width: 250px; }
.chii3-base-row {
    display: flex; align-items: baseline;
    border-bottom: 1px dashed #d7ccc8; padding-bottom: 6px; margin-bottom: 6px;
}
.chii3-base-row dt {
    font-weight: bold; color: #8d6e63; width: 100px; flex-shrink: 0;
}
.chii3-base-row dd { margin: 0; font-weight: bold; }
.chii3-item-span-style, .chii3-item-span-sup-style { display: inline-block; font-size: 0.8em; padding: 2px 8px; border-radius: 4px; color: #fff; vertical-align: middle; margin-left: 5px; }
.chii3-item-span-style { background: #42a5f5 !important; }
.chii3-item-span-sup-style { background: #66bb6a !important; }

/* 評価点 (PC/Tablet) */
.chii3-eval-container {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: space-between;
    background: #fffde7; padding: 15px;
    border-radius: 12px; border: 2px solid #fff176;
    margin-bottom: 30px;
}
.chii3-eval-container dl {
    flex: 1; min-width: 80px;
    background: #fff; border-radius: var(--chii-border-radius);
    text-align: center; padding: 10px 5px; margin: 0;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
    border: 1px solid var(--chii-yellow);
}
.chii3-eval-container dt { font-size: 0.85em; color: #ff8a65; margin-bottom: 5px; font-weight: bold; }
.chii3-eval-container dd { font-size: 1.2em; font-weight: bold; color: var(--chii-text-brown); margin: 0; }
.chii3-eval-container dl:last-child { background: #ffccbc; border-color: #ffab91; }
.chii3-eval-container dl:last-child dt { color: #d84315; }
.chii3-eval-container dl:last-child dd { color: #bf360c; }

/* 補足・スキル・ステータス詳細 */
.chii3-supplement-section-container {
    background: #fff; border-radius: 12px;
    border: 2px solid #ffccbc;
    padding: 5px 20px; margin: 30px 0;
    box-shadow: 0 4px 0 #ffe0b2;
}
.chii3-supplement-row {
    display: flex; align-items: flex-start; /* 背景被り対策 */
    padding: 10px 0; border-bottom: 1px dashed #d7ccc8;
}
.chii3-supplement-row:last-child { border-bottom: none; padding-bottom: 0; }
.chii3-supplement-row:first-child { padding-top: 0; }
.chii3-supplement-row dt {
    width: 110px; flex-shrink: 0;
    background: #d7ccc8 !important; color: #fff !important;
    text-align: center; padding: 6px 4px;
    border-radius: 6px; font-size: 0.9em; font-weight: bold;
    margin-right: 20px; 
    margin-bottom: 5px; /* 下線との被り回避用 */
    background-clip: padding-box !important;
    position: relative; z-index: 1;
}
.chii3-supplement-row dd { flex: 1; margin: 0; line-height: 1.8; color: var(--chii-text-brown); }

/* ボーナステーブル */
table.chii3-possession-bonus {
    width: 100%; border-collapse: collapse !important;
    margin-top: 10px; 
    border: 1px solid #cfd8dc !important;
    background: #fff !important;
}
table.chii3-possession-bonus th {
    background: #e0f2f1; color: #00695c;
    padding: 10px; font-weight: bold; text-align: center;
    border: 1px solid #cfd8dc;
}

table.chii3-possession-bonus td {
    padding: 10px;
    border: 1px solid #cfd8dc; 
    vertical-align: middle;
}
table.chii3-possession-bonus tr:nth-child(even) td { background: #f9fbe7; }
.chii3-possession-bonus-lv { text-align: center; font-weight: bold; color: #2e7d32; width: 60px; }
.chii3-possession-bonus-icon { text-align: center; width: 50px; }
.chii3-table-icon {
    width: 48px; height: 48px; object-fit: contain;
    background: #fff; border-radius: 6px; padding: 2px;
    border: 1px solid #eee;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1); margin: 0;
    cursor: zoom-in; /* 拡大機能用カーソル */
}

/* アイコンリスト (キャラ一覧など) */
.chii3-cos-list-container {
    background: #fff; border: 1px solid #e0e0e0;
    border-radius: var(--chii-border-radius); padding: 15px; margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chii3-cos-list-header {
    font-weight: bold; border-bottom: 2px solid #ffab91;
    padding-bottom: 5px; margin-bottom: 10px; color: #d84315;
}
.chii3-cos-list-data {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    justify-content: flex-start;
    padding: 10px 0;
}
.entry-content .chii3-icon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    margin-bottom: 5px;
    text-align: center;
    text-decoration: none;
    color: var(--chii-text-brown);
    transition: opacity 0.2s, transform 0.2s;
}
.chii3-icon-card:hover {
    transform: translateY(-3px);
    opacity: 1;
}
.chii3-icon-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: block;
    margin: 0 auto 5px;
    object-fit: cover;
}
.chii3-icon-card .chii3-icon-label {
    font-size: 10px;
    line-height: 1.2;
    color: var(--chii-text-brown);
}
.chii3-rank-score-badge,
.chii3-release-date-badge {
    position: absolute;
    bottom: 42px;
    right: 5px;
    z-index: 5;
    padding: 1px 4px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    pointer-events: none;
}
.chii3-rank-score-badge {
    background: rgba(0, 0, 0, 0.75);
}
.chii3-release-date-badge {
    background: rgba(0, 105, 92, 0.85);
}
.chii3-icon-wrap {
    width: 100%; aspect-ratio: 1 / 1; margin-bottom: 6px;
    position: relative; border-radius: 12px; overflow: hidden;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff; transition: all 0.2s;
}
.chii3-icon-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; margin:0; }
.chii3-icon-card:hover .chii3-icon-wrap {
    border-color: #ff91b6; 
    box-shadow: 0 4px 8px rgba(255, 145, 182, 0.4);
}
.chii3-icon-main, .chii3-icon-sub { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chii3-icon-main { font-size: 0.8rem; font-weight: bold; color: var(--chii-text-brown); }
.chii3-icon-sub { font-size: 0.7rem; color: #8d6e63; }

/* WP自動Pタグ無効化パッチ */
.chii3-base-info-container p:empty, .chii3-eval-container p:empty,
.chii3-supplement-section-container p:empty, .chii3-cos-list-container p:empty,
.chii3-base-info-container br, .chii3-eval-container br { display: none !important; }
.chii3-base-info-container, .chii3-eval-container,
.chii3-supplement-section-container, .chii3-cos-list-container {
    box-sizing: border-box !important; text-indent: 0 !important;
    margin-left: 0 !important; margin-right: 0 !important;
    padding: 15px !important; max-width: 100% !important;
    line-height: 1.6 !important;
}


/* *********************************************************
   4. 更新履歴・カードリンク
   ********************************************************* */
/* 更新履歴テーブル */
.news-table {
    width: 100% !important;
    border: 2px solid #ffb36b !important;
    border-radius: var(--chii-border-radius) !important;
    background-color: #fff !important;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 0 #ffe0b2 !important;
    font-size: 14px !important; 
}
.news-table table {
    width: 100% !important; margin: 0 !important; padding: 0 !important;
    border: none !important; background-color: transparent !important;
    border-collapse: collapse !important;
}
.news-table tr, .news-table td {
    background-color: transparent !important; border: none !important;
}
.news-table td {
    border-bottom: 1px solid #eee !important;
    padding: 10px 12px !important;
    vertical-align: middle !important;
}
.news-table tr:last-child td { border-bottom: none !important; }
.news-table td:first-child {
    font-weight: bold; color: #d35400 !important;
    background-color: #fff8e1 !important; 
    white-space: nowrap; width: 5em; text-align: center;
    border-right: 1px solid #ffe0b2 !important;
}
.news-table a { font-weight: bold; text-decoration: none; color: #333; }
.news-table a:hover { text-decoration: underline; color: #d35400; }

/* 記事カード */
.new-entry-card-link {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: var(--chii-border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px; margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important; display: block;
}
.new-entry-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.1);
    border-color: #ffb36b;
    background: #fffcf4;
}
.new-entry-card-title {
    font-weight: bold; color: #333;
    font-size: 14px; line-height: 1.5; margin: 0;
}
.new-entry-card-thumb img { border-radius: 6px; }

/* 公式Xリンク */
p.x-promo {
    text-align: center; font-size: 13px;
    margin-top: -10px; margin-bottom: 30px; color: #777;
}
p.x-promo a { text-decoration: none; color: var(--chii-blue-deep); font-weight: bold; }
p.x-promo a:hover { text-decoration: underline; }


/* *********************************************************
   5. 目次 (TOC)
   ********************************************************* */
.toc {
    border: 2px solid var(--chii-pink);
    border-radius: 12px;
    background: #fffaf0;
    padding: 25px 20px 20px;
    box-shadow: 0 4px 0 #ffcdd2;
    margin: 40px auto 30px;
    position: relative;
    max-width: 600px;
    display: block;
}
.toc-title {
    background: var(--chii-blue);
    color: #fff;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: bold; font-size: 1.1em;
    padding: 6px 30px; border-radius: 20px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: absolute;
    top: -20px; left: 50%; transform: translateX(-50%);
    width: auto; min-width: 160px;
    white-space: nowrap; text-align: center;
    z-index: 1; line-height: 1.4;
}
.toc-title::before, .toc-title::after { content: "✦"; color: #fff; font-family: initial; }
.toc-title::before { margin-right: 6px; }
.toc-title::after { margin-left: 6px; }

.toc-list > li > a {
    color: var(--chii-text-brown);
    font-weight: bold; text-decoration: none;
    display: block; padding: 8px 10px;
    border-bottom: 1px dashed #d7ccc8;
    transition: all 0.2s ease; border-radius: 6px;
}
.toc-list > li > a:hover {
    background: #fff; color: var(--chii-pink-deep);
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* *********************************************************
    color: var(--chii-text-brown);
    font-weight: bold; text-decoration: none;
    display: block; padding: 8px 10px;
    border-bottom: 1px dashed #d7ccc8;
    transition: all 0.2s ease; border-radius: 6px;
}
.toc-list > li > a:hover {
    background: #fff; color: var(--chii-pink-deep);
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* *********************************************************
   6. Design Points
   ********************************************************* */
    padding: 0; overflow: hidden;
    max-width: 600px; margin: 20px auto;
    box-shadow: 0 3px 0 #ffccbc;
}
.design-points-header {
    background-color: #f78d4a; color: white;
    padding: 10px 15px 10px 40px; font-weight: bold;
    font-size: 1.1em; position: relative;
    border-radius: 6px 6px 0 0; display: flex; align-items: center;
}
.design-points-header::before {
    content: "✓"; color: #f78d4a; background-color: white;
    width: 20px; height: 20px; line-height: 20px;
    text-align: center; border-radius: 4px;
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
}
ul.points-list {
    background-color: #fff; list-style: none;
    padding: 15px; margin: 0; color: #555;
}
ul.points-list li {
    padding: 8px 0 8px 25px; 
    border-bottom: 1px dashed #eee;
    position: relative; font-size: 1em;
}
ul.points-list li:last-child { border-bottom: none; }
ul.points-list li::before {
    content: ""; background-color: #ffccbc;
    width: 8px; height: 8px; border-radius: 50%;
    position: absolute; left: 8px; top: 16px;
}


/* *********************************************************
   7. トップページ・カラム・ウィジェット
   ********************************************************* */
/* ポータルカラム */
.wp-block-columns.mobile-2col img, 
.wp-block-columns.mobile-3col img {
    border-radius: 14px !important; 
    border: 2px solid #fff;
    box-sizing: border-box; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s; 
    cursor: pointer;
}
.wp-block-columns.mobile-2col img:hover, 
.wp-block-columns.mobile-3col img:hover {
    transform: translateY(-4px); 
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--chii-pink);
}
.wp-block-columns.mobile-2col p, .wp-block-columns.mobile-3col p {
    margin-top: 0 !important; margin-bottom: 0 !important;
    padding: 2px 0 !important;
    word-break: break-all !important; overflow-wrap: break-word !important;
    text-align: center; line-height: 1.3 !important; 
    color: #444; font-weight: bold; font-size: 0.9em;
}
.wp-block-columns .wp-block-image { margin-bottom: 5px !important; }

/* ウィジェットタイトル */
.widget_categories .widget-title, 
.widget_popular_entries .widget-title,
.widget_info_list .widget-title, 
.widget_search .widget-title,
.widget_text .widget-title,       /* ← 追加: テキストウィジェット */
.widget_custom_html .widget-title,/* ← 追加: カスタムHTML */
.sidebar .widget-title,           /* ← 追加: サイドバー内の全タイトル(保険) */
.related-entry-heading, 
.comment-title {
    background: var(--chii-pink); color: #fff;
    padding: 8px 15px; margin-bottom: 15px;
    border: none; border-radius: 6px; text-align: center;
    font-weight: bold; font-size: 1.1em;
    box-shadow: 0 3px 0 #e91e63;
}
/* ウィジェットリスト */
.widget_categories ul, .widget_popular_entries .widget-entry-cards,
.widget_info_list .info-list, .widget_search .search-form,
.related-entries .related-entry-cards, #comment-area {
    background: #fff; border-radius: 8px;
    border: 1px solid #ddd; padding: 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 記事ナビ */
.pager-post-navi a {
    background: #fff; border: 2px solid var(--chii-blue);
    border-radius: 8px; padding: 15px;
    color: #0277bd; font-weight: bold;
    box-shadow: 0 3px 0 #b3e5fc;
}
.pager-post-navi a:hover {
    background: #e1f5fe; transform: translateY(2px); box-shadow: none;
}


/* *********************************************************
   8. 記事本文のリスト装飾 (UL/OL)
   ********************************************************* */
.entry-content ul {
    list-style: none !important;
    padding: 1.5em 1.5em 1.5em 2em; margin: 2em 0;
    background: #fffaf0; 
    border: 2px solid var(--chii-pink);
    border-radius: 8px; box-shadow: 0 3px 0 #ffccbc;
}
.entry-content ul li {
    position: relative; padding: 0.5em 0 0.5em 1.5em;
    border-bottom: 1px dashed #d7ccc8;
    line-height: 1.6; color: var(--chii-text-brown); margin-bottom: 0;
}
.entry-content ul li::before {
    content: ''; position: absolute; left: 0.2em; top: 0.8em;
    width: 8px; height: 8px; background: var(--chii-pink-deep);
    border-radius: 50%;
}
.entry-content ol {
    list-style: none !important;
    padding: 1.5em 1.5em 1.5em 2.5em; margin: 2em 0;
    background: #f0f8ff; 
    border: 2px solid var(--chii-blue);
    border-radius: 8px; box-shadow: 0 3px 0 #b3e5fc;
    counter-reset: count-li;
}
.entry-content ol li {
    position: relative; padding: 0.5em 0 0.5em 1em;
    border-bottom: 1px dashed #b0bec5;
    line-height: 1.6; color: var(--chii-text-brown); margin-bottom: 0;
}
.entry-content ol li::before {
    counter-increment: count-li; content: counter(count-li);
    position: absolute; left: -2em; top: 0.4em;
    width: 22px; height: 22px; line-height: 22px;
    text-align: center; background: var(--chii-blue);
    color: #fff; font-weight: bold; border-radius: 50%;
    font-size: 0.85em; box-shadow: 0 2px 0 #4fc3f7;
}

/* 干渉回避 */
.entry-content .toc ul, .entry-content .points-list,
.entry-content .widget_categories ul, .entry-content .widget_popular_entries ul,
.entry-content .widget_info_list ul, .entry-content .chii-no-deco ul,
.entry-content ul.chii-no-deco, .entry-content #chii-fes-app ul,
.entry-content .toc ol, .entry-content .chii-no-deco ol,
.entry-content ol.chii-no-deco, .entry-content #chii-fes-app ol {
    background: transparent !important; border: none !important;
    box-shadow: none !important; padding: 0 !important; margin: 0 !important;
}
.entry-content .toc ul li, .entry-content #chii-fes-app ul li,
.entry-content .toc ol li, .entry-content #chii-fes-app ol li {
    border-bottom: none !important; padding: 0 !important;
}
.entry-content .toc ul li::before, .entry-content #chii-fes-app ul li::before,
.entry-content .toc ol li::before, .entry-content #chii-fes-app ol li::before {
    content: none !important; display: none !important;
}


/* *********************************************************
   9. イベントカレンダー
   ********************************************************* */
.chii-event-scheduler {
    background: #fff; 
    border: 2px solid #8d6e63;
    border-radius: 6px; padding: 15px; margin-bottom: 30px;
    box-shadow: 0 4px 0 #d7ccc8; 
    font-size: 14px; color: #333;
}
.chii-sched-title {
    text-align: center; font-weight: bold; font-size: 1.1em;
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 2px dashed #ffccbc; color: #d84315;
}
.sched-sub-title {
    font-size: 0.9em; font-weight: bold; color: #fff;
    background: #8d6e63; display: inline-block;
    padding: 3px 12px; border-radius: 12px; margin: 0 0 10px 0;
}
.coming-soon .sched-sub-title { background: #78909c; }
.chii-sched-list { list-style: none !important; margin: 0 0 20px 0 !important; padding: 0 !important; }
.sched-item {
    padding: 8px 5px; border-bottom: 1px solid #eee;
    display: flex; flex-wrap: wrap; align-items: center; line-height: 1.4;
}
.sched-item.near-end { background: #ffebee; border-radius: 4px; }
.sched-tag {
    display: inline-block; width: 60px; text-align: center;
    font-size: 0.75em; padding: 2px 0; border-radius: 4px; color: #fff;
    margin-right: 8px; font-weight: bold; white-space: nowrap;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}
.sched-tag.event { background: #ff7043; }
.sched-tag.shop { background: #42a5f5; }
.sched-tag.campaign { background: #66bb6a; }
.sched-tag.update { background: #78909c; }
.sched-date {
    font-weight: bold; margin-right: 10px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #d32f2f; font-size: 0.9em;
}
.sched-item a {
    color: #333; text-decoration: none; font-weight: bold;
    flex: 1; min-width: 180px;
}
.sched-item a:hover { color: #e91e63; text-decoration: underline; }
.sched-alert {
    font-size: 0.75em; color: #c62828; font-weight: bold;
    background: #ffcdd2; padding: 1px 5px; border-radius: 4px;
    margin-left: auto; white-space: nowrap; animation: blink 2s infinite;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.chii-sched-more-area {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}
.chii-sched-more-area.is-open { opacity: 1; }
.chii-sched-toggle {
    display: block; text-align: center; background: #f5f5f5;
    border-top: 1px solid #ddd; padding: 8px; margin-top: 5px;
    cursor: pointer; font-weight: bold; color: #555;
    font-size: 0.9em; border-radius: 0 0 6px 6px; transition: background 0.2s;
}
.chii-sched-toggle:hover { background: #e0e0e0; }
.chii-event-scheduler .coming-soon { margin-top: 15px; }


/* *********************************************************
   10. リストフィルタ・検索エリア (WordPress本番用)
   ********************************************************* */
.chii3-filter-area {
    background: #fff;
    border: 2px solid #ffb7c5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-sizing: border-box;
}
.chii3-filter-title {
    font-weight: bold;
    color: #d81b60;
    font-size: 0.9em;
    margin-bottom: 8px;
}
.chii3-filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}
.chii3-filter-btn-group:last-child {
    margin-bottom: 0;
}
.chii3-f-btn {
    display: inline-block;
    cursor: pointer;
    color: #d81b60;
    font-weight: bold;
    margin: 2px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #f8bbd0;
    transition: 0.2s;
    font-size: 0.85em;
    line-height: 1.2;
}
.chii3-f-btn:hover {
    background: #fce4ec;
}
.chii3-f-btn.active {
    background: #ec407a;
    color: #fff;
    border-color: #d81b60;
}
.chii3-f-btn--img {
    padding: 4px;
    border-radius: 8px;
}
.chii3-f-btn--img img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}
.char-group { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* *********************************************************
   11. レスポンシブ & 特殊調整 (統合版)
   ********************************************************* */
@media screen and (max-width: 480px) {
    /* 評価エリア(スマホ): 行間調整と文字折り返し防止 */
    .chii3-eval-container {
        display: flex !important; flex-wrap: wrap !important;
        gap: 4px !important; justify-content: space-between !important;
        padding: 10px 5px !important;
    }
    .chii3-eval-container dl {
        width: 23% !important; /* 4つ並び維持 */
        min-width: 65px !important; margin: 0 0 4px 0 !important;
        padding: 4px 1px !important; box-sizing: border-box !important;
        height: auto !important;
    }
    /* ランク欄(最後)の肥大化解除 */
    .chii3-eval-container dl:last-child {
        width: 23% !important; display: block !important;
        background-color: #fff !important; margin-top: 0 !important;
    }
    /* ラベル文字詰め */
    .chii3-eval-container dt {
        font-size: 9px !important; white-space: nowrap !important;
        letter-spacing: -1.2px !important; width: 100% !important;
        margin-bottom: 2px !important; overflow: visible !important;
        transform: scale(0.95); transform-origin: center top;
    }
    /* ランク文字SSの強調 */
    .chii3-eval-container dl:last-child dd {
        color: #ffd700 !important; font-weight: 900 !important;

        font-size: 16px !important; line-height: 1.2 !important; margin-top: 0 !important;
    }

    /* ボーナス表ヘッダー(スマホ): 1行収め */
    table.chii3-possession-bonus th {
        font-size: 9px !important; padding: 4px 0 !important;
        letter-spacing: -1.2px !important; white-space: nowrap !important;
        overflow: hidden !important; width: auto !important;
    }
    
    /* 基本レイアウト調整 */
    .chii3-base-info-container { flex-direction: column; align-items: center; padding: 15px 10px; }
    .chii3-base-info-img { margin-bottom: 15px !important; }
    .chii3-base-row dt { width: 110px; margin-right: 5px; }
    .chii3-info-details-area { min-width: 100%; }
    .chii3-supplement-section-container { margin: 20px 0; }
    .chii3-supplement-row { flex-direction: row; }
    .chii3-supplement-row dt { width: 80px; margin-right: 10px; font-size: 0.85em; padding: 5px 2px; }
}

@media screen and (min-width: 768px) {
    .chii3-cos-list-data { gap: 15px; }
    .chii3-icon-main { font-size: 0.85rem; }
    .chii3-icon-sub { font-size: 0.75rem; }
}

/* ポータルスマホ調整 (599px以下) */
@media screen and (max-width: 599px) {
  .wp-block-columns.mobile-2col { flex-wrap: nowrap !important; gap: 8px !important; margin-bottom: 30px !important; }
  .wp-block-columns.mobile-2col > .wp-block-column { flex-basis: 50% !important; width: 50% !important; }
  .wp-block-columns.mobile-2col p { font-size: 12px !important; }
  .wp-block-columns.mobile-3col { flex-wrap: nowrap !important; gap: 5px !important; margin-bottom: 40px !important; }
  .wp-block-columns.mobile-3col > .wp-block-column { flex-basis: 33.33% !important; width: 33.33% !important; }
  .wp-block-columns.mobile-3col p { font-size: 10px !important; white-space: nowrap; overflow: hidden; }
}


/* *********************************************************
   12. ツール用緊急スタイル & 画像拡大モーダル
   ********************************************************* */
#chii-fes-app ul, .entry-content #chii-fes-app ul,
#cp-sim-root ul, #cp-sim-root ol {
    background: transparent !important; border: none !important;
    box-shadow: none !important; padding: 0 !important; margin: 0 !important;
    list-style: none !important;
}
#chii-fes-app li, .entry-content #chii-fes-app li,
#cp-sim-root li {
    border-bottom: none !important; padding: 0 !important; margin: 0 !important;
    position: static !important;
}
#chii-fes-app ul li::before, #cp-sim-root li::before,
#cp-sim-root ul li::before, #cp-sim-root ol li::before {
    content: none !important; display: none !important;
}
.entry-content .chii-sched-list li::before { content: none !important; display: none !important; }
.entry-content .chii-sched-list { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 20px 0 !important; }
.entry-content .chii-sched-list li { padding: 8px 5px !important; border-bottom: 1px solid #eee !important; list-style: none !important; }
.entry-content .chii-sched-list li:last-child { border-bottom: none !important; }

/* 画像拡大モーダル */
#chii-img-modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center; justify-content: center; cursor: pointer;
}
#chii-img-modal.is-show { display: flex; animation: chiiFadeIn 0.2s; }
#chii-modal-content {
    max-width: 90%; max-height: 90%; border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    transform: scale(0.9); transition: transform 0.2s;
}
#chii-img-modal.is-show #chii-modal-content { transform: scale(1); }
@keyframes chiiFadeIn { from { opacity: 0; } to { opacity: 1; } }
.chii3-table-icon { cursor: zoom-in; transition: transform 0.1s; }
.chii3-table-icon:active { transform: scale(0.95); }

/* =========================================================
   ランク文字（リスト表示 .chii3-base-row 内）の強制装飾
   ========================================================= */
.chii3-base-row dd span {
    /* インラインスタイルの色を強制的に上書き */
    color: #ffd700 !important; 
    
    /* 太さと縁取りを追加して視認性を高める */
    font-weight: 900 !important;
    text-shadow: 
        1px 1px 0 #5d4037, -1px -1px 0 #5d4037, 
        -1px 1px 0 #5d4037, 1px -1px 0 #5d4037,
        0px 2px 0 #5d4037 !important;
        
    /* 少し大きくする */
    font-size: 1.2em;
    display: inline-block;
}

/* ====================================
   今日のおすすめ料理ウィジェット (最終版)
   ==================================== */
.chii-daily-widget {
    display: flex;
    align-items: center; /* 画像と吹き出しを中央揃え */
    gap: 15px;
    padding: 10px 5px;
    max-width: 500px;
    margin: 0 auto;
}

/* ハチワレ画像 */
.chii-chara-area {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}
.chii-hachiware-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.15));
    transition: transform 0.2s;
}
.chii-hachiware-img:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* 吹き出し本体 */
.chii-bubble {
    position: relative;
    background: #fff;
    border: 3px solid #8ecae6;
    border-radius: 18px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* 吹き出しのしっぽ (中央配置固定) */
.chii-bubble::before, .chii-bubble::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    height: 0; width: 0;
    pointer-events: none;
}
.chii-bubble::before {
    border-width: 10px;
    border-color: transparent #8ecae6 transparent transparent;
    margin-right: 0;
}
.chii-bubble::after {
    border-width: 6px;
    border-color: transparent #fff transparent transparent;
    margin-right: -4px;
}

/* 中身のデザイン */
.chii-bubble-content { text-align: center; }
.chii-cook-status { color: #8ecae6; font-weight: bold; font-size: 12px; }

.chii-cook-icon {
    width: 60px; height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.chii-cook-name {
    font-weight: bold; color: #444;
    font-size: 15px; margin: 2px 0 8px 0;
    border-bottom: 2px dotted #b3e5fc;
    padding-bottom: 4px;
    display: inline-block;
    min-width: 120px;
}
.chii-cook-quote {
    font-size: 13px; color: #555;
    margin: 0; line-height: 1.5;
    font-weight: bold;
}



/* 料理シミュレータ用 */


/* --- [1] スタイルリセット --- */
#cp-sim-root ul, #cp-sim-root ol, #cp-sim-root li {
    list-style: none !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
}
#cp-sim-root li::before, #cp-sim-root ul li::before, #cp-sim-root ol li::before {
    content: none !important; display: none !important;
}
/* タブのli要素を強制的にインラインブロック/フレックスアイテム扱いに戻す */
#cp-sim-root .cp-nav-tabs li { 
    display: inline-block !important; 
    width: auto !important; 
    margin: 0 !important; 
    padding: 0 !important;
}

/* --- [2] レイアウト調整 --- */


/* タブエリア (Step2) - ★横並びを強制 */
.cp-nav-tabs { 
    margin-top: 8px !important; 
    padding: 0 10px 4px !important; 
    border-bottom: 2px solid #f8f9fa; 
    
    display: flex !important;       /* Flexbox有効化 */
    flex-wrap: wrap !important;     /* 折り返し有効 */
    flex-direction: row !important; /* 横並び強制 */
    gap: 6px !important;            /* タブ間の隙間 */
}

/* ① タブのスタイル - ★左右の余白を狭める */
.cp-nav-tabs a { 
    display: inline-block !important; /* ブロックではなくインラインブロック */
    width: auto !important;           /* 幅を中身に合わせる */
    padding: 5px 10px !important;     /* ★左右パディングを狭く調整 (ここを調整) */
    background: #f1f3f5; 
    color: #868e96; 
    border-radius: 20px; 
    text-decoration: none; 
    font-size: 0.8rem !important; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.2s; 
    white-space: nowrap !important; /* 文字の折り返し禁止 */
}
.cp-nav-tabs a.active { background: #4dabf7; color: #fff; box-shadow: 0 2px 4px rgba(77,171,247,0.3); }

/* キャラ一覧エリア (Step2中身) */
.cp-tab-content { 
    padding: 10px 10px !important; 
    background: #fff; 
}


/* ベーススタイル */
#cp-sim-root {
    font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--chii-text-brown);
    line-height: 1.4;
    font-size: 16px;
}
#main-interface { margin-top: 10px; }
.p-0 { padding: 0 !important; }

/* ステータスエリア & メッセージ */
.cp-status-area { margin-bottom: 15px; }
.cp-msg {
    padding: 12px;
    border-radius: var(--chii-border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.cp-msg-info { background: #e1f5fe; color: #0277bd; border: 2px solid #b3e5fc; }
.cp-msg-error { background: #ffebee; color: #c62828; border: 2px solid #ffcdd2; }

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #b3e5fc;
    border-top-color: var(--chii-blue-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* カード & ヘッダー */
.cp-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: var(--chii-border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
}
.cp-card-header {
    background: var(--chii-pink-light);
    font-weight: bold;
    color: var(--chii-pink-deep);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 8px 12px !important;
    border-bottom: 1px solid #ffe0ea !important;
}
.cp-card-body { padding: 10px !important; }

.step-badge {
    background: var(--chii-pink-deep);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 設定エリア */
.setting-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.setting-item {
    flex: 1;
    min-width: 180px;
}
.setting-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #8d6e63;
}
.pop-select {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    border: 2px solid #eee;
    border-radius: var(--chii-border-radius);
    background: #fff;
    color: var(--chii-text-brown);
    transition: border-color 0.2s;
}
.pop-select:focus {
    border-color: var(--chii-blue);
    outline: none;
}
.setting-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ボタン & フレックス */
.cp-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.pop-btn {
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pop-btn:active { transform: scale(0.96); }

.cp-btn-primary { background: var(--chii-pink-deep); color: #fff !important; box-shadow: 0 2px 4px rgba(236, 64, 122, 0.3); }
.cp-btn-secondary { background: #fff; border: 2px solid var(--chii-pink); color: var(--chii-pink-deep) !important; }
.cp-btn-block { width: 100%; }

.btn-save { background: #78909c; color: #fff; }
.btn-reset { background: #fff; border: 2px solid #ffcdd2; color: #e53935; }
.btn-free { background: #fff9c4; border: 2px solid #fff59d; color: #f57f17; }

.btn-main-action {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 40px;
    box-shadow: 0 4px 10px rgba(255, 154, 158, 0.4);
    width: 100%;
    max-width: 300px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-main-action:hover { opacity: 0.9; transform: translateY(-1px); }
.action-area { text-align: center; margin: 25px 0; }

/* 結果 & パーティ編成 (モダンレイアウト用) */
.sim-result-area { margin-top: 25px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.result-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--chii-border-radius);
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sim-party-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.party-slot { text-align: center; width: 64px; }
.chara-img-wrap {
    width: 56px; height: 56px; margin: 0 auto 6px;
    border-radius: 10px; overflow: hidden;
    border: 2px solid #f5f5f5; background: #fff;
}
.chara-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chara-name {
    font-size: 11px; font-weight: bold; color: var(--chii-text-brown);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}

/* キャラカードエリア */
.cp-tab-pane { display: none; }
.cp-tab-pane.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ② グリッドレイアウト (衣装選択) */
.char-grid-container { 
    display: grid; 
    /* ★最小幅を80pxにし、タブのサイズ感に近づける */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 6px; 
}

.char-select-item { position: relative; }
.char-select-input { display: none; }
 
.char-select-label { 
    display: block; 
    border: 2px solid #f0f0f0; 
    border-radius: 8px; 
    padding: 4px 2px; /* ★内部余白を短縮 */
    background: #fff; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.15s; 
    height: 100%; 
    box-sizing: border-box; 
}
 
.char-select-input:checked + .char-select-label { background: #e3f2fd; border-color: #2196f3; box-shadow: 0 0 0 2px #2196f3 inset; }
.char-select-input:checked + .char-select-label.r-6-border { background: #fff5f5; border-color: #ff6b6b; box-shadow: 0 0 0 2px #ff6b6b inset; }
.char-select-input:checked + .char-select-label.r-5-border { background: #fff9db; border-color: #ffad33; box-shadow: 0 0 0 2px #ffad33 inset; }
 
/* ロック状態 */
.char-select-input:disabled + .char-select-label { opacity: 0.7; cursor: not-allowed; background: #f0f0f0 !important; border-color: #ccc !important; box-shadow: none !important; color: #555; }
.char-select-input:disabled + .char-select-label .char-name::after { content: ' (固定)'; font-size: 0.7em; color: #d63384; }

.char-badges { display: flex; justify-content: center; margin-bottom: 2px; }
.rarity-tag { font-size: 0.65rem; padding: 1px 4px; border-radius: 6px; color: #fff; font-weight: bold; }
.rarity-tag.r-6 { background: #ff6b6b; } .rarity-tag.r-5 { background: #ffad33; } .rarity-tag.r-4 { background: #ffd43b; color: #555; }
 
.char-name { font-weight: bold; font-size: 0.75rem; color: #333; margin-bottom: 2px; line-height: 1.2; }
.char-cook { font-size: 0.65rem; color: #999; }

/* スマホ用 */
@media (max-width: 600px) {
    .char-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px; 
    }
    .char-name { font-size: 0.7rem; }
    .char-cook { font-size: 0.6rem; }
    
    .setting-actions { width: 100%; justify-content: space-between; }
    .pop-btn { flex: 1; text-align: center; padding: 8px 0; }
}

/* 結果テーブル */
.result-wrapper { border: 2px solid #b2f2bb; margin-top: 10px; }
.result-header { background: #d3f9d8 !important; color: #2b8a3e !important; border-bottom-color: #b2f2bb !important; padding: 8px !important; }
.pop-score { background: #fff; padding: 2px 8px; border-radius: 20px; color: #2b8a3e; font-size: 0.8rem; border: 1px solid #b2f2bb; margin-left: auto; }
.table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pop-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.pop-table th { background: #f8f9fa; padding: 8px; border-bottom: 2px solid #dee2e6; color: #495057; font-size: 0.8rem; white-space: nowrap; }
.pop-table td { padding: 6px; border-bottom: 1px solid #eee; text-align: center; vertical-align: middle; font-size: 0.85rem; }
.booth-cell { text-align: left; background: #fdfdfd; border-right: 2px solid #f0f0f0; }
.booth-name { font-weight: bold; color: #333; font-size: 0.85rem; }
.booth-dish { font-size: 0.7rem; color: #888; }
.booth-score { display: inline-block; background: #e3f2fd; color: #0d47a1; font-size: 0.7rem; padding: 2px 5px; border-radius: 4px; margin-top: 2px; font-weight: bold; }
.cell-name { font-weight: bold; font-size: 0.85rem; margin-bottom: 2px; }
.cell-name.match-ok { color: #d63384; }
.cell-meta { font-size: 0.7rem; color: #adb5bd; }
.cell-rate { font-size: 0.8rem; color: #495057; font-weight: bold; margin-top: 2px; }
.empty-cell { color: #ddd; background: #fafafa; }


/* *********************************************************
   4. 詳細ページ・ボーナスUI
   ********************************************************* */

/* キャラクター詳細基本レイアウト */
.chii3-chara-detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--chii-pink);
}

.chara-detail-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.chara-detail-icon {
    flex-shrink: 0;
    width: 120px;
}

.chara-detail-icon img {
    width: 100%;
    height: auto;
    border-radius: var(--chii-border-radius);
    background: var(--chii-pink-light);
    border: 2px solid var(--chii-pink);
}

.chara-detail-info {
    flex: 1;
    min-width: 200px;
}

.chara-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.chara-detail-row:last-child {
    border-bottom: none;
}

.chara-detail-rarity {
    color: #f57f17;
    font-weight: bold;
}

/* AI診断レポート枠 */
.chii3-ai-review-section {
    margin-bottom: 30px;
}

.chii3-ai-review-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--chii-pink-deep);
    border-radius: var(--chii-border-radius);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.chii3-ai-review-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    color: #f0f0f0;
    z-index: 0;
    font-family: serif;
    user-select: none;
}

.chii3-ai-review-text {
    position: relative;
    z-index: 1;
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

.chii3-ai-review-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dotted #ddd;
    text-align: right;
    font-size: 0.8em;
    color: #999;
}

.chii3-ai-review-date {
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ボーナスUI (カード・フィルター) */
.chii3-bns-container {
    margin-bottom: 20px;
}

.chii3-bns-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.chii3-bns-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #f8bbd0;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.2s;
}

.chii3-bns-tab-btn img {
    width: 36px;
    height: 36px;
    display: block;
}

.chii3-bns-tab-btn--text {
    padding: 0 12px;
    height: 46px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--chii-pink-deep);
    font-size: 0.85em;
}

.chii3-bns-tab-btn:hover {
    background: var(--chii-pink-light);
}

.chii3-bns-tab-btn.is-active {
    background: var(--chii-pink-deep);
    color: #fff;
    border-color: var(--chii-pink-deep);
}

.chii3-bns-tab-btn.is-active img {
    filter: brightness(1.2);
}

/* ボーナスカード */
.chii3-bns-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--chii-border-radius);
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.chii3-bns-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chii3-bns-card-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.chii3-bns-card-info {
    flex: 1;
}

.chii3-bns-card-name {
    font-weight: bold;
    color: var(--chii-text-brown);
    font-size: 1.05em;
    text-decoration: none;
    display: block;
}

.chii3-bns-card-cos {
    font-size: 0.8em;
    color: #666;
}

.chii3-bns-card-rarity {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--chii-pink-deep);
}

.chii3-bns-card-val {
    font-weight: bold;
    color: var(--chii-pink-deep);
}

.chii3-bns-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.chii3-bns-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.75em;
    color: #555;
    font-weight: bold;
}

.chii3-bns-badge img {
    width: 14px;
    height: 14px;
}

.chii3-bns-badge.is-active {
    background: var(--chii-pink-light);
    border-color: #ff80ab;
    color: #c2185b;
}

/* ボーナステーブル共通 */
#chii3BonusTable {
    width: 100%;
    border-collapse: collapse !important;
    background: #fff !important;
    font-size: 0.9em;
}

#chii3BonusTable th,
#chii3BonusTable td {
    border: 1px solid #cfd8dc !important;
    padding: 10px 8px !important;
    vertical-align: middle;
}

#chii3BonusTable th {
    background: #e0f2f1;
    color: #00695c;
    font-weight: bold;
    text-align: center;
}


/* =========================================
   Chii3 評価ページ モダンカードレイアウト (BEM対応版)
========================================= */

/* --- 共通カードスタイル (各セクションの背景) --- */
.chii3-base-info,
.chii3-chara-eval,
.chii3-chara-skill,
.chii3-bonus-list {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* --- サマリーバッジ (.chii3-summary-badges) --- */
.chii3-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.chii3-summary-badges__item {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.chii3-summary-badges__item--rarity { background: linear-gradient(135deg, #ffca28 0%, #f57f17 100%); }
.chii3-summary-badges__item--rank { background: linear-gradient(135deg, #ff4081 0%, #d50000 100%); }
.chii3-summary-badges__item--cook { background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%); }

/* --- 基本情報 (.chii3-base-info) --- */
.chii3-base-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.chii3-base-info__img {
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff9f9;
}
.chii3-base-info__details {
    flex-grow: 1;
}
.chii3-base-info__list,
.chii3-chara-skill__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chii3-base-info__row,
.chii3-chara-skill__row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}
.chii3-base-info__label,
.chii3-chara-skill__label {
    width: 30%;
    background: #f8f9fa;
    padding: 10px 12px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    box-sizing: border-box;
    margin: 0;
}
.chii3-base-info__value,
.chii3-chara-skill__value {
    width: 70%;
    padding: 10px 12px;
    color: #333;
    font-size: 0.95rem;
    box-sizing: border-box;
    margin: 0;
}

/* --- 評価点 (.chii3-chara-eval) --- */
.chii3-chara-eval {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.chii3-chara-eval__item {
    flex: 1;
    min-width: 80px;
    margin: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}
.chii3-chara-eval__label {
    background: #f8f9fa;
    color: #555;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
}
.chii3-chara-eval__value {
    color: #d81b60;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px 0;
    margin: 0;
}
.chii3-chara-eval__item--total {
    border-color: #d81b60;
    box-shadow: 0 0 0 1px #d81b60;
}
.chii3-chara-eval__item--total .chii3-chara-eval__label {
    background: #fce4ec;
    color: #d81b60;
    border-bottom-color: #f8bbd0;
}
.chii3-chara-eval__supplement {
    width: 100%;
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* --- とくぎ・補足情報のバッジ --- */
.chii3-chara-skill__badge,
.chii3-bonus-list__badge {
    display: inline-block;
    background: #e3f2fd;
    color: #0277bd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 6px;
    border: 1px solid #b3e5fc;
}
.chii3-chara-skill__value hr {
    margin: 8px 0;
    border: none;
    border-top: 1px dashed #ddd;
}

/* --- ボーナス・ミッションリスト (.chii3-bonus-list) --- */
.chii3-bonus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chii3-bonus-list__item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
}
.chii3-bonus-list__item:last-child {
    border-bottom: none;
}
.chii3-bonus-list__lv {
    width: 60px;
    font-weight: bold;
    color: #d81b60;
}
.chii3-bonus-list__icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
}
.chii3-bonus-list__icon img {
    display: block;
}
.chii3-bonus-list__data {
    flex-grow: 1;
    font-size: 0.95rem;
}

/* --- アコーディオン (details/summary) スタイル --- */
.chii3-details {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--chii-border-radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chii3-summary {
    position: relative;
    padding: 12px 16px;
    background: #f8f9fa;
    color: var(--chii-pink-deep);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* デフォルトの三角を消す(Chrome/Safari) */
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

.chii3-summary::-webkit-details-marker {
    display: none; /* デフォルトの三角を消す(iOS/古いSafari) */
}

.chii3-summary:hover {
    background: var(--chii-pink-light);
}

/* カスタム矢印アイコン */
.chii3-summary::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s;
}

/* 開いている時のスタイル */
.chii3-details[open] .chii3-summary {
    background: var(--chii-pink-light);
    border-bottom-color: #f0f0f0;
}

.chii3-details[open] .chii3-summary::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 中身のリストの微調整 */
.chii3-details .chii3-bonus-list {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* --- レスポンシブ (スマホ向け) --- */
@media screen and (max-width: 768px) {
    /* 評価カードの調整 */
    .chii3-base-info {
        flex-direction: column;
        align-items: center;
    }
    .chii3-base-info__details {
        width: 100%;
    }
    .chii3-base-info__label,
    .chii3-chara-skill__label {
        width: 40%;
        font-size: 0.85rem;
        padding: 8px;
    }
    .chii3-base-info__value,
    .chii3-chara-skill__value {
        width: 60%;
        font-size: 0.9rem;
        padding: 8px;
    }
    .chii3-chara-eval__item {
        min-width: 45%;
    }

    /* 所持ボーナステーブル：左端列固定スクロール */
    #chii3BonusTable th:nth-child(1),
    #chii3BonusTable td:nth-child(1) {
        position: sticky !important;
        left: 0 !important;
        background-color: #ffffff;
        border-right: 2px solid #b2dfdb;
    }
    #chii3BonusTable th:nth-child(1) {
        z-index: 20 !important;
        background-color: #e0f2f1 !important;
    }
    #chii3BonusTable td:nth-child(1) {
        z-index: 5 !important;
    }
}


/* ===================================================
   Cocoonテーマ CSS干渉リセット（完全版）
   =================================================== */

/* ■画像①・③対策：基本情報やスキル値の強制左マージンを打ち消す */
.chii3-base-info__value,
.chii3-chara-skill__value,
.chii3-base-info dd,
.chii3-chara-skill dd {
    margin: 0 !important;
    margin-left: 0 !important;
    padding-left: 15px !important;
}
.chii3-base-info__label,
.chii3-chara-skill__label,
.chii3-base-info dt,
.chii3-chara-skill dt {
    margin: 0 !important;
}

/* ■画像②対策：評価点（攻撃、S攻撃など）のセンタリングとCocoon余白リセット */
.chii3-chara-eval {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* 枠全体を中央寄せ */
    gap: 15px !important;               /* 横の隙間 */
    margin-bottom: 1em !important;
}
.chii3-chara-eval__item {
    margin: 0 !important;               /* Cocoonが dl につける巨大な下余白を消去 */
    text-align: center !important;      /* 文字を中央揃え */
}
.chii3-chara-eval__label,
.chii3-chara-eval__value {
    margin: 0 !important;               /* dt, dd の余白をリセット */
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
}

/* ■リストマーク「・」と左余白を完全に消去（所持ボーナス、ガチャ役一覧、ランキング一覧） */
.chii3-bonus-list,
#yaku-list,
#modal-ranking-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.chii3-bonus-list__item,
#yaku-list li,
#modal-ranking-list li {
    list-style: none !important;
    margin-left: 0 !important;
}
/* Cocoonが疑似要素(::before)でリストアイコンを付けている場合ごと消し去る */
.chii3-bonus-list__item::before,
#yaku-list li::before,
#modal-ranking-list li::before {
    content: none !important;
    display: none !important;
}

/* ■スマホ対応：スマホ閲覧時に評価点(画像②)の縦の隙間をギュッと詰める */
@media screen and (max-width: 768px) {
    .chii3-chara-eval {
        gap: 8px !important;            /* スマホ時は全体の隙間を小さく */
    }
    .chii3-chara-eval__item {
        margin-bottom: 8px !important;  /* 縦並びになった時の下の余白を縮小 */
    }
}