[style*="background:#fff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background: #fff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background:#ffffff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background: #ffffff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background-color:#fff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background-color: #fff"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background:white"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background: white"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background:#fffdf7"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background: #fffdf7"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background:#fefefe"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])),[style*="background: #fefefe"] :where(p,li,td,th,h1,h2,h3,h4,h5,h6,label,legend,small,blockquote,dt,dd,span:not([style*="color"]),div:not([style*="color"]):not([style*="background"])){color:#222222;-webkit-text-fill-color:currentColor;text-shadow:none}[style*="background:#fff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background: #fff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background:#ffffff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background: #ffffff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background-color:#fff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background-color: #fff"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background:white"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background: white"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background:#fffdf7"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background: #fffdf7"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background:#fefefe"] :where(strong:not([style*="color"]),b:not([style*="color"])),[style*="background: #fefefe"] :where(strong:not([style*="color"]),b:not([style*="color"])){color:#111111;-webkit-text-fill-color:currentColor}[style*="background:#fff"] :where(a:not([style*="color"])),[style*="background: #fff"] :where(a:not([style*="color"])),[style*="background:#ffffff"] :where(a:not([style*="color"])),[style*="background: #ffffff"] :where(a:not([style*="color"])),[style*="background-color:#fff"] :where(a:not([style*="color"])),[style*="background-color: #fff"] :where(a:not([style*="color"])),[style*="background:white"] :where(a:not([style*="color"])),[style*="background: white"] :where(a:not([style*="color"])),[style*="background:#fffdf7"] :where(a:not([style*="color"])),[style*="background: #fffdf7"] :where(a:not([style*="color"])),[style*="background:#fefefe"] :where(a:not([style*="color"])),[style*="background: #fefefe"] :where(a:not([style*="color"])){color:#8a6d1f;-webkit-text-fill-color:currentColor}[style*="background:#fff"] button, [style*="background:#fff"] input[type="submit"], [style*="background:#fff"] input[type="button"],[style*="background: #fff"] button, [style*="background: #fff"] input[type="submit"], [style*="background: #fff"] input[type="button"],[style*="background:#ffffff"] button, [style*="background:#ffffff"] input[type="submit"], [style*="background:#ffffff"] input[type="button"],[style*="background: #ffffff"] button, [style*="background: #ffffff"] input[type="submit"], [style*="background: #ffffff"] input[type="button"],[style*="background-color:#fff"] button, [style*="background-color:#fff"] input[type="submit"], [style*="background-color:#fff"] input[type="button"],[style*="background-color: #fff"] button, [style*="background-color: #fff"] input[type="submit"], [style*="background-color: #fff"] input[type="button"],[style*="background:white"] button, [style*="background:white"] input[type="submit"], [style*="background:white"] input[type="button"],[style*="background: white"] button, [style*="background: white"] input[type="submit"], [style*="background: white"] input[type="button"],[style*="background:#fffdf7"] button, [style*="background:#fffdf7"] input[type="submit"], [style*="background:#fffdf7"] input[type="button"],[style*="background: #fffdf7"] button, [style*="background: #fffdf7"] input[type="submit"], [style*="background: #fffdf7"] input[type="button"],[style*="background:#fefefe"] button, [style*="background:#fefefe"] input[type="submit"], [style*="background:#fefefe"] input[type="button"],[style*="background: #fefefe"] button, [style*="background: #fefefe"] input[type="submit"], [style*="background: #fefefe"] input[type="button"]{background:#1a1a1a !important;color:#e8c86a !important;-webkit-text-fill-color:currentColor !important;text-shadow:none !important;font-weight:bold !important}

        /* ==========================================
           1. ターゲットの精密定義（一覧カードを完全に除外）
           ========================================== */
        /* .eap-card クラスを持っていない要素のみを対象とする */
        .eap-auction:not(.eap-card), 
        .eap-mypage-wrap, 
        .eap-rank-card-wrap,
        .eap-fav-page-wrapper,
        .eap-gacha-box,
        #eap-gate-wrap,
        .eap-gate-container,
        .eap-auction-form-wrap,
        form.eap-auction {
            max-width: 850px !important; /* 人が最も読みやすいと言われる幅 */
            margin-left: auto !important;
            margin-right: auto !important;
            float: none !important;
            box-sizing: border-box !important;
            display: block !important;
            clear: both !important;
        }

        /* 一覧の親グリッド(.eap-list)自体はページ中央に配置するが、中のカードには触れない */
        .eap-list {
            max-width: 1200px !important; /* 一覧全体は広く取る */
            margin-left: auto !important;
            margin-right: auto !important;
        }

        /* ==========================================
           2. フォーム内部と入力フィールドの最適化
           ========================================== */
        /* 各入力項目（ラベルと入力欄）を中央ブロック内にバランスよく配置 */
        .eap-field, 
        .eap-gate-field, 
        .eap-form-group,
        .eap-gate-container form > div {
            text-align: left;
            max-width: 650px;
            margin-left: auto !important;
            margin-right: auto !important;
            margin-bottom: 25px !important;
        }

        /* 入力欄そのものを枠いっぱいに広げる */
        .eap-input, 
        .eap-input-text, 
        textarea.eap-input,
        .eap-gate-container input:not([type="submit"]):not([type="checkbox"]),
        .eap-gate-container textarea,
        .eap-gate-container select {
            width: 100% !important;
            box-sizing: border-box !important;
            border-radius: 8px !important;
            padding: 12px !important;
        }

        /* ==========================================
           3. 全ての重要ボタンを中央に（カード内ボタンは除外）
           ========================================== */
        /* コンテナ直下の大きなボタンのみ中央寄せ */
        .eap-auction > .eap-btn-primary, 
        .eap-auction > .eap-btn-outline,
        .eap-mypage-wrap .eap-btn-sub, 
        .eap-btn-line, 
        .eap-gate-submit {
            display: block !important;
            width: 100% !important;
            max-width: 380px !important;
            margin: 30px auto !important;
            text-align: center !important;
            padding: 16px 20px !important;
            font-weight: bold !important;
            height: auto !important;
            border-radius: 50px !important;
        }

        /* ==========================================
           4. マイページ・ランク表示・ガチャの中央化
           ========================================== */
        .eap-mypage-header, .eap-gacha-box {
            text-align: center !important;
        }
        .eap-rank-card {
            width: 100% !important;
            max-width: 580px !important;
            margin: 0 auto !important;
        }

        /* ==========================================
           5. PC表示での装飾（カード以外に限定）
           ========================================== */
        @media (min-width: 1024px) {
            /* コンテンツを背景から浮き立たせて「高級感」を出す */
            .eap-auction:not(.eap-card), 
            .eap-mypage-wrap, 
            #eap-gate-wrap,
            .eap-gate-container {
                padding: 60px !important;
                background: #fff !important;
                border: 1px solid #f2f2f2 !important;
                border-radius: 20px !important;
                box-shadow: 0 25px 50px rgba(0,0,0,0.06) !important;
                margin-top: 40px !important;
                margin-bottom: 60px !important;
            }
        }

        /* ==========================================
           6. スマホ・モバイルの最適化
           ========================================== */
        @media (max-width: 767px) {
            .eap-auction:not(.eap-card), 
            .eap-mypage-wrap, 
            #eap-gate-wrap,
            .eap-gate-container {
                width: 96% !important;
                padding: 25px 15px !important;
            }
            .eap-btn-primary, .eap-btn-outline {
                max-width: 100% !important;
            }
        }
    

        .eapfx-topinfo {
            top: 20px !important;
        }
    

            .edo-bottom-nav { grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr !important; }
            #edo-sub-menu { display: none; position: fixed; bottom: 70px; right: 10px; background: rgba(17, 17, 17, 0.95); border: 1px solid #c5a059; border-radius: 8px; padding: 0; z-index: 9999999; box-shadow: 0 4px 20px rgba(0,0,0,0.6); min-width: 200px; overflow: hidden; }
            #edo-sub-menu a { display: block; color: #fff; padding: 15px 20px; text-decoration: none; font-size: 14px; border-bottom: 1px solid #333; transition: background 0.2s; }
            #edo-sub-menu a:last-child { border-bottom: none; }
            #edo-sub-menu a:hover { background: #333; color: #c5a059; }

            .eua-step { display: none; } .eua-step.active { display: block; }
            .eua-input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
            .eua-btn { width: 100%; padding: 12px; margin-top: 10px; background: #c5a059; color: #000; border: none; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer; }
            .eua-btn:disabled { opacity: 0.6; cursor: not-allowed; }
            .eua-btn.secondary { background: #f0f0f0; color: #333; }
        

        main h1,
        .primary_header,
        .crumbs_area {
            display: none !important;
        }
       main > br + br {display:none;}
       main {margin-top:220px;}
        footer,
        footer:before {
        	background: none !important;
        }
    

        /* モーダル表示時、親の z-index 制限を解除 */
        .medaka-modal {
            position: fixed !important;
            z-index: 999999 !important;
            isolation: auto !important;
        }
    
