@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 { background: #42a5f5 !important; display: inline-block; font-size: 0.8em; padding: 2px 8px; border-radius: 4px; color: #fff; vertical-align: middle; margin-left: 5px; }
.chii3-item-span-sup-style { background: #66bb6a !important; display: inline-block; font-size: 0.8em; padding: 2px 8px; border-radius: 4px; color: #fff; vertical-align: middle; margin-left: 5px; }

/* 評価点 (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: 8px;
    text-align: center; padding: 10px 5px; margin: 0;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
    border: 1px solid #fff9c4;
}
.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: 8px; 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: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 12px; padding: 10px 5px; justify-content: center;
}
.chii3-icon-card {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none !important; color: var(--chii-text-brown) !important;
    width: 100%; transition: opacity 0.2s, transform 0.2s;
}
.chii3-icon-card:hover { transform: translateY(-3px); opacity: 1; }
.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 { font-size: 0.8rem; font-weight: bold; color: var(--chii-text-brown); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chii3-icon-sub { font-size: 0.7rem; color: #8d6e63; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 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: 8px !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: 8px;
    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: #0288d1; 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 { content: "✦"; color: #fff; margin-right: 6px; font-family: initial; }
.toc-title::after { content: "✦"; color: #fff; margin-left: 6px; font-family: initial; }

.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);
}


/* *********************************************************
   6. Design Points
   ********************************************************* */
.design-points-container {
    border: 2px solid #e7a57a;
    border-radius: 8px;
    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,
.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本番用)
   ********************************************************* */
.list-filter-area {
    background: #e1f5fe;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #81d4fa;
    margin-bottom: 20px;
    display: flex; flex-wrap: wrap; gap: 15px;
    align-items: center; justify-content: space-between;
    box-shadow: 0 3px 0 #b3e5fc;
}
.filter-search {
    display: flex; align-items: center; gap: 5px;
    flex: 1; min-width: 200px;
}
.filter-search label { font-weight: bold; color: #0277bd; }
.filter-search input {
    width: 100%; padding: 8px; border: 2px solid #b3e5fc;
    border-radius: 4px; font-size: 16px;
}
.filter-search input:focus { border-color: #0288d1; outline: none; }
.filter-tabs { display: flex; gap: 5px; }
.f-btn {
    padding: 6px 12px; border: 1px solid #b3e5fc;
    background: #fff; border-radius: 20px;
    cursor: pointer; font-size: 0.9em; transition: 0.2s;
    color: #0277bd; font-weight: bold;
}
.f-btn:hover { background: #e1f5fe; color: #01579b; }
.f-btn.active {
    background: #0288d1; color: #fff; border-color: #01579b;
    pointer-events: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.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 { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 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;
}