@charset "utf-8";

/* ===================================================
   ちいかわぽけっと風 スタイル (完全復元・統合版)
   =================================================== */

/* *********************************************************
   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;
}

@keyframes fuwafuwa {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* =========================================
   ■ 全体レイアウト（メイン枠）とヘッダー
   ========================================= */
/* メイン枠 */
main#main { background-color: #ffffff !important; border-radius: 12px !important; padding: 10px !important; margin-top: 15px !important; }
body.home main#main { border: 3px solid var(--chii-pink) !important; box-shadow: 0 6px 0 #ffd0d9 !important; }
body:not(.home) main#main { border: 3px solid #81d4fa !important; box-shadow: 0 6px 0 #e1f5fe !important; }
@media screen and (min-width: 768px) { main#main { padding: 30px !important; border-radius: 20px !important; border-width: 4px !important; } }

/* ヘッダー・ナビ周り */
header#header, .header-container, .header-container-in { background-color: transparent !important; border: none !important; }
.header-container, .header-container-in { padding-top: 10px !important; }
.logo-header { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.tagline { background-color: rgba(255, 255, 255, 0.7) !important; border-radius: 20px !important; padding: 8px 15px !important; margin: 5px auto 15px !important; display: inline-block !important; font-size: 0.75em !important; color: #8d6e63 !important; line-height: 1.4 !important; border: 1px dashed #ffb7c5 !important; }
#navi { background-color: transparent !important; }
#navi .navi-in > ul > li { border: none !important; }
#navi .navi-in > ul > li > a { background-color: #ffffff !important; border: 3px solid #b3e5fc !important; border-radius: 25px !important; color: #0288d1 !important; font-weight: 900 !important; margin: 5px 8px !important; padding: 10px 15px !important; box-shadow: 0 4px 0 #81d4fa !important; transition: all 0.1s ease !important; }
#navi .navi-in > ul > li > a:hover, #navi .navi-in > ul > li > a:active { transform: translateY(4px); box-shadow: 0 0 0 transparent !important; background-color: #e1f5fe !important; }
.mobile-menu-buttons .menu-button { background-color: #ffffff !important; border: 2px solid #ffb7c5 !important; border-radius: 16px !important; color: #ec407a !important; box-shadow: 0 3px 0 #ffd0d9 !important; margin: 4px !important; }
.mobile-menu-buttons .menu-button:active { transform: translateY(3px); box-shadow: 0 0 0 transparent !important; }


/* *********************************************************
   2. 見出し (H1/H2/H3)
   ********************************************************* */
/* H1: 記事タイトル */
body:not(.home) h1.entry-title {
    background: linear-gradient(to right, #81d4fa 0%, #29b6f6 100%) !important;
    color: #ffffff !important; border: 3px solid #ffffff !important; border-radius: 16px !important;
    padding: 15px 20px !important; margin-bottom: 30px !important;
    box-shadow: 0 6px 0 #0288d1, 0 4px 10px rgba(0,0,0,0.1) !important;
    text-align: center !important; font-weight: 900 !important; font-size: 1.4rem !important;
    text-shadow: 1px 1px 0px #0288d1, -1px -1px 0px #0288d1, 1px -1px 0px #0288d1, -1px 1px 0px #0288d1 !important; line-height: 1.5 !important;
}

/* 共通 H2 ベース設定 */
.entry-content h2, [class^="chii3-h2"] {
    border-radius: 20px !important; padding: 12px 20px !important;
    margin: 40px auto 25px !important; font-weight: 900 !important; text-align: center !important;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff !important;
    animation: fuwafuwa 3s ease-in-out infinite; position: relative; z-index: 1; clear: both !important; display: block !important;
}
.entry-content h2::after, [class^="chii3-h2"]::after { display: none !important; content: none !important; }

/* トップページ H2 (イエロー・オレンジ) */
body.home .entry-content h2 {
    background: linear-gradient(to bottom, #fff9c4 0%, #fff59d 100%) !important;
    color: #d84315 !important; border: 3px solid #ffab91 !important; border-left: 3px solid #ffab91 !important;
    box-shadow: 0 5px 0 #ffab91, 0 8px 10px rgba(0,0,0,0.1) !important;
}
/* 左上の星マークの視認性を改善 */
body.home .entry-content h2::before {
    content: "✨" !important; position: absolute !important; top: -12px !important; left: -10px !important; 
    font-size: 1.6em !important; 
    color: #ffca28 !important; /* 星自体の色を濃いイエローに変更 */
    text-shadow: 
        -2px -2px 0 #fff, 
         2px -2px 0 #fff, 
        -2px  2px 0 #fff, 
         2px  2px 0 #fff, /* 白いフチ取りで背景からくっきり浮かせる */
         0 4px 6px rgba(0,0,0,0.15) !important; /* 強めのドロップシャドウ */
    transform: rotate(-15deg) !important; z-index: 2 !important;
    background: transparent !important; box-shadow: none !important; border-radius: 0 !important; width: auto !important; height: auto !important;
}

/* 記事ページ H2 (水色) */
body:not(.home) .entry-content h2, body:not(.home) [class^="chii3-h2"] {
    background: linear-gradient(to bottom, #e1f5fe 0%, #b3e5fc 100%) !important;
    color: #0277bd !important; border: 3px solid #4fc3f7 !important; border-left: 3px solid #4fc3f7 !important;
    box-shadow: 0 5px 0 #4fc3f7, 0 8px 10px rgba(0,0,0,0.1) !important; margin-top: 50px !important;
}
body:not(.home) .entry-content h2::before, body:not(.home) [class^="chii3-h2"]::before {
    content: "✨" !important; position: absolute !important; top: -12px !important; left: -8px !important;
    font-size: 1.5em !important; transform: rotate(-10deg) !important; z-index: 2 !important;
    background: transparent !important; box-shadow: none !important; width: auto !important; height: auto !important; border-radius: 0 !important;
}

/* H3: 記事ページ用 (スマートパネル) */
.entry-content h3, [class^="chii3-h3"] {
    background: #f0faff !important; color: #0288d1 !important;
    border: none !important; border-left: 8px solid #4fc3f7 !important;
    border-radius: 4px 12px 12px 4px !important; padding: 12px 15px !important;
    margin: 40px 0 20px !important; font-weight: 900 !important;
    box-shadow: 0 3px 0 #e1f5fe !important; position: relative !important; font-size: 1.1rem !important;
}
.entry-content h3::before, .entry-content h3::after, [class^="chii3-h3"]::before, [class^="chii3-h3"]::after { display: none !important; content: none !important; }

/* =========================================================
   2カラム・3カラム枠
   ========================================================= */
.wp-block-columns.mobile-2col {
  background: #fffaf0; border: 2px solid var(--chii-pink, #ffb7c5); border-radius: 16px;
  padding: 7px 3px; box-shadow: 0 4px 0 #ffe0b2; box-sizing: border-box; margin-bottom: 12px !important;
}
.wp-block-columns.mobile-2col > .wp-block-column { background: transparent; padding: 0; }
.wp-block-columns.mobile-3col {
  background: #f0faff; border: 2px solid var(--chii-blue, #b3e5fc); border-radius: 16px;
  padding: 6px 3px; box-shadow: 0 4px 0 #b3e5fc; box-sizing: border-box; margin-bottom: 12px !important;
}
.wp-block-columns.mobile-3col > .wp-block-column { background: transparent; padding: 0; }
.wp-block-columns.mobile-2col p:last-child, .wp-block-columns.mobile-3col p:last-child { margin-bottom: 2px !important; }


/* *********************************************************
   3. キャラクター詳細・スペック (基本情報・評価など)
   ********************************************************* */
/* リード文パネル（お知らせボード風） */
.chii3-lead-info, body.home .entry-content > p:first-of-type, body.single .entry-content > p:first-of-type, body.page:not(.home) .entry-content > p:first-of-type {
    position: relative !important; background: #ffffff !important; border-radius: 16px !important; padding: 35px 20px 20px !important;
    margin-top: 30px !important; margin-bottom: 30px !important; font-weight: bold !important; text-align: center !important; line-height: 1.8 !important; display: block !important;
}
.chii3-lead-info::after, body.home .entry-content > p:first-of-type::after, body.single .entry-content > p:first-of-type::after, body.page:not(.home) .entry-content > p:first-of-type::after {
    content: "" !important; position: absolute !important; top: 6px !important; left: 6px !important; right: 6px !important; bottom: 6px !important;
    border-radius: 10px !important; pointer-events: none !important; z-index: 1 !important; display: block !important;
}
/* トップ用配色 (ピンク) */
body.home .chii3-lead-info, body.home .entry-content > p:first-of-type { border: 4px solid var(--chii-pink) !important; box-shadow: 0 6px 0 #ffd0d9 !important; color: #5d4037 !important; }
body.home .chii3-lead-info::before, body.home .entry-content > p:first-of-type::before {
    content: "Welcome!" !important; position: absolute !important; top: -18px !important; left: 20px !important;
    background: linear-gradient(to bottom, #ff9eb5 0%, #ec407a 100%) !important; color: #ffffff !important; font-size: 0.85rem !important; font-weight: 900 !important;
    padding: 6px 18px !important; border-radius: 20px !important; border: 2px solid #ffffff !important; transform: rotate(-5deg) !important; letter-spacing: 1px !important; z-index: 2 !important; display: block !important;
    box-shadow: 0 4px 0 #c2185b, 0 4px 6px rgba(0,0,0,0.15) !important;
}
body.home .chii3-lead-info::after, body.home .entry-content > p:first-of-type::after { border: 2px dashed #ffcdd2 !important; }
/* 記事用配色 (水色) */
body:not(.home) .chii3-lead-info, body:not(.home) .entry-content > p:first-of-type { border: 4px solid #b3e5fc !important; box-shadow: 0 6px 0 #e1f5fe !important; color: #0277bd !important; }
body:not(.home) .chii3-lead-info::before, body:not(.home) .entry-content > p:first-of-type::before {
    content: "Info" !important; position: absolute !important; top: -18px !important; left: 20px !important;
    background: linear-gradient(to bottom, #81d4fa 0%, #29b6f6 100%) !important; color: #ffffff !important; font-size: 0.85rem !important; font-weight: 900 !important;
    padding: 6px 18px !important; border-radius: 20px !important; border: 2px solid #ffffff !important; transform: rotate(-5deg) !important; letter-spacing: 1px !important; z-index: 2 !important; display: block !important;
    box-shadow: 0 4px 0 #0288d1, 0 4px 6px rgba(0,0,0,0.15) !important;
}
body:not(.home) .chii3-lead-info::after, body:not(.home) .entry-content > p:first-of-type::after { border: 2px dashed #b3e5fc !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. 更新履歴・カードリンク
   ********************************************************* */

/* 投稿日だけを確実に非表示にする */
body .post-date {
    display: none !important;
}

/* 更新履歴テーブル */
.news-table {
    border: 3px solid #ffab91 !important; border-radius: 16px !important; box-shadow: 0 6px 0 #ffe0b2 !important; background-color: #ffffff !important;
    overflow: hidden !important; margin-bottom: 30px !important; padding: 0 !important; box-sizing: border-box !important; width: 100% !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: 2px dotted #ffccbc !important; padding: 12px 15px !important; color: #4e342e !important; font-weight: bold !important; vertical-align: middle !important; }
.news-table tr:last-child td { border-bottom: none !important; }
.news-table td:first-child {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%) !important; color: #d84315 !important; font-weight: 900 !important; border-right: 2px dashed #ffab91 !important;
    text-align: center !important; width: 6.5em !important; text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff !important; white-space: nowrap !important;
}
.news-table a { color: #ec407a !important; transition: all 0.2s ease !important; text-decoration: none !important; font-weight: bold !important; }
.news-table a:hover { color: #c2185b !important; text-decoration: underline !important; }
.news-table tr { transition: background-color 0.2s ease !important; }
.news-table tr:hover td:not(:first-child) { background-color: #fffdfa !important; }

/* 記事カードリンク */
.new-entry-card-link, .new-entry-cards a, .popular-entry-cards a, .widget-entry-cards a {
    background-color: #ffffff !important; border: 2px solid #8bd19e !important; border-radius: 16px !important; box-shadow: 0 4px 0 #c2ecd1 !important;
    margin-bottom: 12px !important; padding: 10px !important; transition: all 0.2s ease !important; text-decoration: none !important; display: block !important;
}
.new-entry-card-title { font-weight: bold; color: #333; font-size: 14px; line-height: 1.5; margin: 0; }
.new-entry-card-thumb img, .new-entry-cards .card-thumb img, .popular-entry-cards .card-thumb img, .widget-entry-cards .card-thumb img { border-radius: 8px !important; }
@media screen and (min-width: 768px) {
    .new-entry-card-link:hover, .new-entry-cards a:hover, .popular-entry-cards a:hover, .widget-entry-cards a:hover {
        transform: translateY(-3px) !important; box-shadow: 0 7px 0 #c2ecd1, 0 10px 15px rgba(139, 209, 158, 0.2) !important; background-color: #f6fcf8 !important; border-color: #6cbf84 !important;
    }
}
.new-entry-card-link:active, .new-entry-cards a:active, .popular-entry-cards a:active, .widget-entry-cards a:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent !important; }

/* 公式Xリンク */
p.x-promo { text-align: center !important; margin: 20px auto 40px !important; font-size: 13px; color: #777; }
p.x-promo a {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: linear-gradient(to bottom, #81d4fa 0%, #29b6f6 100%) !important; color: #ffffff !important; border: 2px solid #ffffff !important; border-radius: 30px !important; padding: 12px 30px !important;
    font-weight: 900 !important; font-size: 15px !important; text-decoration: none !important; text-shadow: 1px 1px 0 #0288d1, -1px -1px 0 #0288d1, -1px 1px 0 #0288d1, 1px -1px 0 #0288d1 !important;
    box-shadow: 0 5px 0 #0288d1, 0 8px 10px rgba(0,0,0,0.15) !important; transition: all 0.1s ease !important;
}
p.x-promo a:hover, p.x-promo a:active { transform: translateY(5px) !important; box-shadow: 0 0 0 transparent, 0 2px 5px rgba(0,0,0,0.1) !important; color: #ffffff !important; }

/* *********************************************************
   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); }

/* *********************************************************
   6. Design Points
   ********************************************************* */
.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, .sidebar .widget-title, .related-entry-heading, .comment-title {
    background: #ffb7c5 !important; color: #fff !important; padding: 8px 15px !important; margin-bottom: 15px !important; border: none !important; border-radius: 6px !important; text-align: center !important; font-weight: bold !important; font-size: 1.1em !important; box-shadow: 0 3px 0 #e91e63 !important;
}
.widget_categories .widget-title::before, .widget_popular_entries .widget-title::before, .widget_info_list .widget-title::before, .widget_search .widget-title::before, .widget_text .widget-title::before, .widget_custom_html .widget-title::before, .sidebar .widget-title::before, .related-entry-heading::before, .comment-title::before {
    content: "♪" !important; color: #fff !important; margin-right: 6px !important; font-size: 1.1em !important; display: inline-block !important;
}

/* ▼ 新着情報などのリストウィジェット全般 */
.widget_new_entries > ul, .widget_new_entries .widget-entry-cards, .widget_recent_entries > ul, .widget_popular_entries .widget-entry-cards, .widget_info_list .info-list { background-color: #ffffff !important; border: 3px solid #ffb7c5 !important; border-radius: 16px !important; box-shadow: 0 4px 0 #ffd0d9 !important; padding: 0 !important; overflow: hidden !important; margin-bottom: 20px !important; }
.widget_new_entries, .widget_recent_entries, .widget_popular_entries, .widget_info_list { border: none !important; background: transparent !important; box-shadow: none !important; }
.widget_new_entries > ul > li, .widget_new_entries .widget-entry-cards > .a-wrap, .widget_recent_entries > ul > li, .widget_popular_entries .widget-entry-cards > .a-wrap, .widget_info_list .info-list > li, .widget_info_list .info-list > .info-item { border-top: none !important; border-left: none !important; border-right: none !important; border-bottom: 2px dotted #ffccbc !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background-color: transparent !important; }
.widget_new_entries > ul > li:last-child, .widget_new_entries .widget-entry-cards > .a-wrap:last-child, .widget_recent_entries > ul > li:last-child, .widget_popular_entries .widget-entry-cards > .a-wrap:last-child, .widget_info_list .info-list > li:last-child, .widget_info_list .info-list > .info-item:last-child { border-bottom: none !important; }
.widget_new_entries > ul > li > a, .widget_new_entries .widget-entry-cards > .a-wrap, .widget_recent_entries > ul > li > a, .widget_popular_entries .widget-entry-cards > .a-wrap, .widget_info_list .info-list > li > a, .widget_info_list .info-list > .info-item > a { display: block !important; padding: 15px !important; color: #5d4037 !important; text-decoration: none !important; font-weight: bold !important; line-height: 1.5 !important; transition: all 0.2s ease !important; }
.widget_new_entries > ul > li > a:hover, .widget_new_entries .widget-entry-cards > .a-wrap:hover, .widget_recent_entries > ul > li > a:hover, .widget_popular_entries .widget-entry-cards > .a-wrap:hover, .widget_info_list .info-list > li > a:hover, .widget_info_list .info-list > .info-item > a:hover { background-color: #fffdfa !important; color: #ec407a !important; }
.widget-entry-card-date, .post-date, .info-date { display: inline-block !important; font-size: 0.85em !important; color: #ec407a !important; margin-top: 8px !important; font-weight: bold !important; }

/* ▼ カテゴリーリスト */
.widget_categories > ul { background-color: #ffffff !important; border: 3px solid #ffb7c5 !important; border-radius: 16px !important; box-shadow: 0 4px 0 #ffd0d9 !important; padding: 0 !important; overflow: hidden !important; margin-bottom: 20px !important; }
.widget_categories { border: none !important; background: transparent !important; box-shadow: none !important; }
.widget_categories > ul > li { border-top: none !important; border-left: none !important; border-right: none !important; border-bottom: 2px dotted #ffccbc !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background-color: transparent !important; }
.widget_categories > ul > li:last-child { border-bottom: none !important; }
.widget_categories > ul > li > a { display: block !important; padding: 12px 15px !important; color: #5d4037 !important; text-decoration: none !important; font-weight: bold !important; transition: all 0.2s ease !important; position: relative !important; }
.widget_categories > ul > li > a::before { content: "▶" !important; color: #ffb7c5 !important; margin-right: 8px !important; font-size: 0.9em !important; transition: all 0.2s ease !important; display: inline-block !important; }
.widget_categories > ul > li > a:hover { background-color: #fffdfa !important; color: #ec407a !important; padding-left: 20px !important; }
.widget_categories > ul > li > a:hover::before { color: #ec407a !important; transform: scale(1.1) !important; }
.widget_categories > ul > li > a > span.post-count { background-color: #fff5f7 !important; color: #ec407a !important; border-radius: 10px !important; padding: 2px 8px !important; font-size: 0.8em !important; margin-left: 5px !important; }

/* ▼ サイト内検索 */
.widget_search { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 20px !important; }
.widget_search .search-form { display: flex !important; align-items: center !important; justify-content: space-between !important; background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.widget_search .search-edit { background-color: #ffffff !important; border: 3px solid #ffb7c5 !important; border-radius: 30px !important; padding: 10px 15px !important; color: #4e342e !important; font-weight: bold !important; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important; width: calc(100% - 55px) !important; height: 48px !important; float: none !important; margin: 0 !important; box-sizing: border-box !important; transition: all 0.2s ease !important; }
.widget_search .search-edit::placeholder { color: #bcaaa4 !important; font-weight: normal !important; }
.widget_search .search-edit:focus { border-color: #ec407a !important; outline: none !important; background-color: #fffdfa !important; }
.widget_search .search-submit { background: linear-gradient(to bottom, #ff9eb5 0%, #ec407a 100%) !important; color: #ffffff !important; border: none !important; border-radius: 50% !important; width: 48px !important; height: 48px !important; font-size: 1.2em !important; box-shadow: 0 4px 0 #c2185b, 0 4px 6px rgba(0,0,0,0.15) !important; float: none !important; margin: 0 !important; cursor: pointer !important; transition: all 0.1s ease !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; }
.widget_search .search-submit:hover, .widget_search .search-submit:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent, 0 2px 5px rgba(0,0,0,0.1) !important; }
.widget_search .search-form::after { display: none !important; }

/* 記事ナビ */
.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 #ffb7c5; border-radius: 12px; padding: 15px; margin-bottom: 30px; box-shadow: 0 4px 0 #ffe0ea; 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: #c2185b; 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; max-height: 2000px; }
.chii-sched-toggle { background: linear-gradient(to bottom, #ff9eb5 0%, #ec407a 100%) !important; color: #ffffff !important; border: 2px solid #ffffff !important; border-radius: 30px !important; padding: 10px 20px !important; font-weight: 900 !important; text-shadow: 1px 1px 0 #c2185b, -1px -1px 0 #c2185b, -1px 1px 0 #c2185b, 1px -1px 0 #c2185b !important; box-shadow: 0 4px 0 #c2185b, 0 6px 10px rgba(0,0,0,0.15) !important; width: 80% !important; margin: 15px auto 5px !important; transition: all 0.1s ease !important; display: block; text-align: center; cursor: pointer; }
.chii-sched-toggle:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent, 0 2px 5px rgba(0,0,0,0.1) !important; }
.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; 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; }
    .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; }
    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; }
}
@media screen and (max-width: 599px) {
  .wp-block-columns.mobile-2col { flex-wrap: nowrap !important; gap: 8px !important; margin-bottom: 15px !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: 20px !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 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; }

/* ====================================
   料理シミュレータ用
   ==================================== */
#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; }
#cp-sim-root .cp-nav-tabs li { display: inline-block !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.cp-nav-tabs { margin-top: 8px !important; padding: 0 10px 4px !important; border-bottom: 2px solid #f8f9fa; display: flex !important; 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); }
.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; }
.char-grid-container { display: grid; 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; }

/* ====================================
   詳細ページ・ボーナス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; }
.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; }
.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-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 { 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 { 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 { 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 { 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; }
.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; border-bottom: 1px solid transparent; transition: background 0.2s; }
.chii3-summary::-webkit-details-marker { display: none; }
.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; }

/* 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; }
.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; text-align: center !important; }
.chii3-chara-eval__label, .chii3-chara-eval__value { margin: 0 !important; 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; }
.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-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 { gap: 8px !important; }
    .chii3-chara-eval__item { margin-bottom: 8px !important; 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; }
}


