.eapx-lost-log{display:block!important;opacity:1!important;visibility:visible!important;}

    /* ============ 江戸オク市場 スタイル ============ */
    .eim-ichiba-wrap {
        max-width: 1000px; margin: 0 auto; padding: 0 16px;
        font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
                     "Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
    }

    /* イベントバナー */
    .eim-event-banner {
        background: linear-gradient(135deg, #e64a19 0%, #ff7043 100%);
        color: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
        box-shadow: 0 4px 12px rgba(230,74,25,.3);
    }
    .eim-event-inner { display: flex; align-items: center; gap: 14px; }
    .eim-event-icon { font-size: 40px; line-height: 1; }
    .eim-event-title { font-size: 20px; font-weight: 900; }
    .eim-event-desc { font-size: 13px; opacity: 0.9; margin-top: 4px; }

    /* カードグリッド */
    .eim-list { display: grid; gap: 20px; }
    .eim-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .eim-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .eim-cols-4 { grid-template-columns: repeat(4, 1fr); }

    @media (max-width: 600px) {
        .eim-cols-2,.eim-cols-3,.eim-cols-4 { grid-template-columns: 1fr; }
    }
    @media (min-width: 601px) and (max-width: 900px) {
        .eim-cols-3,.eim-cols-4 { grid-template-columns: repeat(2, 1fr); }
    }

    /* カード */
    .eim-card {
        background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
        overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08);
        transition: transform .2s, box-shadow .2s; position: relative;
    }
    .eim-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,.15);
    }

    /* 市場バッジ */
    .eim-badge-ichiba {
        position: absolute; top: 8px; left: 8px;
        background: rgba(230,74,25,.9); color: #fff;
        padding: 3px 10px; border-radius: 20px; font-size: 11px;
        font-weight: bold; z-index: 1;
    }

    /* サムネイル */
    .eim-thumb img {
        width: 100%; height: 200px; object-fit: cover; display: block;
    }
    .eim-ytbox { position: relative; padding-top: 56.25%; background: #000; }
    .eim-ytbox iframe {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
    }

    /* カード本文 */
    .eim-body { padding: 12px 14px; }
    .eim-ttl { font-size: 14px; font-weight: bold; margin-bottom: 6px; }
    .eim-ttl a { color: #111; text-decoration: none; }
    .eim-ttl a:hover { color: #e64a19; }
    .eim-price { font-size: 15px; font-weight: 800; color: #e64a19; margin-bottom: 4px; }
    .eim-price-num { font-variant-numeric: tabular-nums; }
    .eim-meta { font-size: 12px; color: #666; }
    .eim-countdown { color: #e60000; font-weight: bold; }
    .eim-badge-end {
        background: #555; color: #fff; padding: 2px 8px;
        border-radius: 4px; font-size: 11px;
    }

    /* ボタン */
    .eim-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
    .eim-btn-outline {
        display: inline-block; border: 2px solid #555; color: #555;
        background: #fff; padding: 7px 12px; border-radius: 8px;
        text-decoration: none; font-weight: bold; font-size: 13px; text-align: center; flex: 1;
    }
    .eim-btn-primary {
        display: inline-block; background: #e64a19; color: #fff; border: 0;
        padding: 7px 12px; border-radius: 8px; text-decoration: none;
        font-weight: bold; font-size: 13px; text-align: center; flex: 1;
    }
    .eim-btn-primary:hover { background: #bf360c; }
    .eim-empty { padding: 30px; text-align: center; color: #888; font-size: 15px; }

    /* 通常オークション一覧と共通化した市場ステータス */
    .eim-native-status {
        display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px;
    }
    .eim-native-status-btn {
        display: inline-block; padding: 8px 16px; border-radius: 999px;
        border: 1px solid #d7d7d7; background: #fff; color: #333 !important;
        text-decoration: none; font-size: 13px; font-weight: 800;
    }
    .eim-native-status-btn:hover { border-color: #e64a19; color: #e64a19 !important; }
    .eim-native-status-btn.active {
        background: #e64a19; border-color: #e64a19; color: #fff !important;
    }
    .eim-native-list-host .eap-list-wrapper,
    .eim-native-list-host .eap-searchwrap { max-width: 960px; margin-left: auto; margin-right: auto; }

    /* 絞り込みタブバー */
    .eim-filter-bar {
        display: flex; flex-wrap: wrap; gap: 10px 20px;
        margin-bottom: 18px; align-items: center;
    }
    .eim-filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .eim-filter-label { font-size: 12px; color: #888; font-weight: bold; min-width: 3em; }
    .eim-tab {
        background: #f5f5f5; color: #444; border: 1px solid #ddd;
        border-radius: 20px; padding: 5px 14px; font-size: 13px;
        font-weight: bold; cursor: pointer; transition: all .15s;
    }
    .eim-tab:hover { background: #ffe0d4; border-color: #e64a19; color: #e64a19; }
    .eim-tab.active { background: #e64a19; color: #fff; border-color: #e64a19; }

    /* カードエリアのフェード */
    .eim-cards-area { transition: opacity .2s; }

    /* ローディングスピナー */
    .eim-loading {
        text-align: center; padding: 20px; font-size: 14px; color: #888;
    }
    .eim-spinner {
        display: inline-block; width: 16px; height: 16px;
        border: 2px solid #ddd; border-top-color: #e64a19;
        border-radius: 50%; animation: eim-spin .7s linear infinite;
        vertical-align: middle; margin-right: 6px;
    }
    @keyframes eim-spin { to { transform: rotate(360deg); } }

    /* 入場ボタン */
    .eim-entry-btn-wrap { margin-bottom: 20px; }
    .eim-entry-btn {
        display: inline-block; background: #e64a19; color: #fff !important;
        border: none; border-radius: 10px; padding: 14px 32px;
        font-size: 16px; font-weight: 900; text-decoration: none;
        box-shadow: 0 4px 12px rgba(230,74,25,.3);
        transition: background .2s, transform .15s;
    }
    .eim-entry-btn:hover { background: #bf360c; transform: translateY(-2px); }

    /* 入場カード（通常カードと同サイズ） */
    .eim-entry-card {
        background: #fff; border: 2px solid #e64a19; border-radius: 12px;
        overflow: hidden; display: flex; flex-direction: column;
        box-shadow: 0 2px 8px rgba(230,74,25,.15); position: relative;
        cursor: pointer; text-decoration: none; color: inherit;
    }
    .eim-entry-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(230,74,25,.3); transition: transform .2s, box-shadow .2s; }
    .eim-entry-card-img {
        width: 100%; padding-top: 56.25%; position: relative; background: #e64a19; overflow: hidden;
    }
    .eim-entry-card-img-inner {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        font-size: 52px; line-height: 1;
    }
    .eim-entry-card-body {
        padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: center;
    }
    .eim-entry-card-title {
        font-size: 15px; font-weight: 900; color: #e64a19; margin-bottom: 6px; line-height: 1.4;
    }
    .eim-entry-card-sub {
        font-size: 12px; color: #888;
    }
    .eim-entry-card-actions {
        padding: 0 14px 14px;
    }
    .eim-entry-card-btn {
        display: block; background: #e64a19; color: #fff !important; text-align: center;
        border-radius: 8px; padding: 9px 12px; font-weight: 900; font-size: 13px;
        text-decoration: none;
    }
    .eim-entry-card-btn:hover { background: #bf360c; }

    /* 開催中パルス（赤く光る） */
    .eim-entry-card.eim-live {
        animation: eim-pulse-border 2s ease-in-out infinite;
    }
    .eim-live-badge {
        position: absolute; top: 8px; right: 8px; z-index: 2;
        background: #e60000; color: #fff; font-size: 11px; font-weight: 900;
        padding: 3px 10px; border-radius: 20px;
        animation: eim-pulse-badge 1.4s ease-in-out infinite;
    }
    @keyframes eim-pulse-border {
        0%,100% { box-shadow: 0 0 0 0 rgba(230,74,25,.5), 0 2px 8px rgba(230,74,25,.15); }
        50%      { box-shadow: 0 0 0 6px rgba(230,74,25,0), 0 2px 8px rgba(230,74,25,.15); }
    }
    @keyframes eim-pulse-badge {
        0%,100% { opacity: 1; }
        50%      { opacity: .55; }
    }
    
.gallery .gallery-item img { width: auto; height: auto; }
#eap-install-banner{display:none !important;}
.eappd-box{color:#1b1f24 !important;border-color:#c8ced6 !important}.eappd-box h3,.eappd-box label,.eappd-box .eappd-label,.eappd-box .eappd-row label,.eappd-box p,.eappd-box small,.eappd-box summary,.eappd-box span{color:#1b1f24 !important}.eappd-box .eappd-note{color:#2b3a47 !important;background:#eef3f8 !important}.eappd-box .eappd-warn{color:#6b5200 !important;background:#fff3cd !important}.eappd-box .eap-input,.eappd-box input,.eappd-box select,.eappd-box textarea{color:#1b1f24 !important;background:#fff !important;border:1px solid #c8ced6 !important;-webkit-text-fill-color:#1b1f24 !important;opacity:1 !important}.eappd-box input::placeholder,.eappd-box textarea::placeholder{color:#8a94a0 !important;-webkit-text-fill-color:#8a94a0 !important;opacity:1 !important}.eappd-box option{color:#1b1f24 !important;background:#fff !important}.eappd-box .eappd-apply{border-color:#c8ced6 !important}.eappd-drawer{color:#1b1f24 !important;background:#fff !important}.eappd-drawer *{color:#1b1f24 !important}.eappd-drawer .eap-input{background:#fff !important;-webkit-text-fill-color:#1b1f24 !important}.eappd-drawer .eappd-close{color:#1b1f24 !important}
.eapmtl-page-link{color:inherit;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.28);padding-bottom:.05em;transition:border-color .15s ease,background-color .15s ease;}.eapmtl-page-link:hover,.eapmtl-page-link:focus{border-bottom-color:currentColor;background-color:rgba(0,0,0,.04);}

    /* 既存スマート履歴の色味を濃くする */
    .eap-bidlog-smart .nm{color:#111827 !important;font-weight:700 !important;} /* 名前：真っ黒＆太字 */
    .eap-bidlog-smart .tm{color:#374151 !important;}                             /* 日時：濃いグレー */
    .eap-bidlog-smart .yen{color:#111827 !important;font-weight:800 !important;} /* 金額：濃色＆太字 */
    .eap-bidlog-smart li.is-top .yen{color:#b91c1c !important;}                  /* 最高値は濃い赤 */
    .eap-bidlog-smart .auto{color:#1d4ed8 !important;}                           /* 自動入札バッジ */
    .eap-bidlog-smart .cap{color:#059669 !important;}                            /* 上限更新バッジ */

    /* 全履歴ブロック */
    .eap-bidlog-all{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;margin-top:12px;font-size:14px;line-height:1.6}
    .eap-bidlog-all .hd{display:flex;gap:8px;align-items:baseline;margin-bottom:6px}
    .eap-bidlog-all .hd .ttl{font-weight:700}
    .eap-bidlog-all .toggle{margin-left:auto;border:1px solid #e5e7eb;background:#fafafa;border-radius:8px;padding:8px 10px;cursor:pointer}
    .eap-bidlog-all ol{list-style:none;margin:8px 0 0;padding:0}
    .eap-bidlog-all li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px dashed #e5e7eb}
    .eap-bidlog-all li:first-child{border-top:none}
    .eap-bidlog-all .nm{color:#111827;font-weight:700}
    .eap-bidlog-all .tm{color:#374151;font-size:12px}
    .eap-bidlog-all .yen{color:#111827;font-weight:800}
    .eap-bidlog-all .auto{color:#1d4ed8;font-size:12px;margin-left:6px}
    .eap-bidlog-all .cap{color:#059669;font-size:12px;margin-left:6px}
    .eap-bidlog-all[data-open="0"] ol{display:none}
  

    .eapx-lost-log{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;margin-top:16px;font-size:14px;line-height:1.6}
    .eapx-lost-log .hd{display:flex;gap:8px;align-items:baseline;margin-bottom:6px}
    .eapx-lost-log .ttl{font-weight:700}
    .eapx-lost-log ol{list-style:none;margin:8px 0 0;padding:0}
    .eapx-lost-log li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px dashed #e5e7eb}
    .eapx-lost-log li:first-child{border-top:none}
    .eapx-lost-log .nm{color:#111827;font-weight:700}
    .eapx-lost-log .tm{color:#374151;font-size:12px}
    .eapx-lost-log .yen{color:#111827;font-weight:800}
  

    .eapx-lost-log{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;margin-top:16px;font-size:14px;line-height:1.6}
    .eapx-lost-log .nm{color:#111827;font-weight:700}
    .eapx-lost-log .tm{color:#374151;font-size:12px}
    .eapx-lost-log .yen{color:#111827;font-weight:800}
  

    .eapx-lost-log{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;margin-top:16px;font-size:14px;line-height:1.6}
    .eapx-lost-log .nm{color:#111827;font-weight:700}
    .eapx-lost-log .tm{color:#374151;font-size:12px}
    .eapx-lost-log .yen{color:#111827;font-weight:800}
  

    .eapx-lost-log{display:none!important;}
    .eapx-lost-log--masked{display:block!important;opacity:1!important;visibility:visible!important;}
  
.eapx-lost-log--masked{display:none!important;visibility:hidden!important;}

			/* ===========================================
   1) サイト全体（HP全体）に効く“見えやすさ”リセット
   ※ テーマが薄い配色でもフォームが読めるように
   =========================================== */
html, body {
  color-scheme: light only; /* 一部テーマの自動反転対策（任意） */
}

/* 入力欄・セレクト・テキストエリア（全ページ共通） */
input[type="text"], input[type="search"], input[type="email"],
input[type="tel"], input[type="url"], input[type="number"],
input[type="password"], textarea, select {
  color:#111 !important;
  background:#fff !important;
  border:1px solid #ccc !important;
  border-radius:6px !important;
  padding:.65em .8em !important;
  box-shadow:none !important;
  outline:none !important;
}
::placeholder { color:#888 !important; opacity:1 !important; }
input:focus, textarea:focus, select:focus {
  border-color:#666 !important;
  box-shadow:0 0 0 2px rgba(0,0,0,.08) !important;
}
/* オートフィルで白文字になる対策 */
input:-webkit-autofill {
  -webkit-text-fill-color:#111 !important;
  box-shadow:0 0 0 1000px #fff inset !important;
}

/* ボタンのコントラスト（共通） */
button, .wp-element-button, input[type="submit"] {
  color:#fff !important;
  background:#333 !important;
  border:0 !important;
  border-radius:6px !important;
}
button:hover, .wp-element-button:hover, input[type="submit"]:hover {
  filter:brightness(1.05);
}

/* ===========================================
   2) オークション専用の見た目（どのページでも .eap-* があれば適用）
   =========================================== */

/* ボックス */
.eap-auction{
  max-width:920px;
  margin:24px auto;
  padding:16px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  color:#222;
}
.eap-title{margin:0 0 10px;font-size:22px;color:#222}
.eap-price{font-size:20px;font-weight:700;margin:8px 0;color:#222}
.eap-meta{color:#555;margin:4px 0}
.eap-count{font-size:16px;margin:6px 0;color:#222}
.eap-badge{display:inline-block;background:#111;color:#fff;font-size:12px;padding:2px 8px;border-radius:4px}
.eap-h3{margin-top:18px;color:#222}
.eap-hist{background:#fafafa;border:1px solid #eee;border-radius:6px;padding:10px;margin-top:8px;font-size:14px;color:#222}

/* 入力類（.eap-auction 内はさらに確実に） */
.eap-auction input[type="text"],
.eap-auction input[type="number"],
.eap-auction input[type="email"],
.eap-auction input[type="tel"],
.eap-auction input[type="url"],
.eap-auction textarea,
.eap-auction select{
  color:#111 !important; -webkit-text-fill-color:#111 !important;
  background:#fff !important; border:1px solid #ccc !important;
  padding:10px !important; border-radius:6px !important;
  box-shadow:none !important; outline:none !important;
}
.eap-auction ::placeholder{ color:#888 !important; opacity:1 !important; }
.eap-auction .eap-btn-primary{
  background:#333 !important; color:#fff !important; border:0 !important;
}
.eap-auction .eap-countdown{ color:#111 !important; }

/* YouTube（ヒーロー） */.eap-hero iframe,
.eap-video iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}
.eap-hero iframe, .eap-video iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

/* ギャラリー（YouTubeの下に小さく綺麗に） */
.eap-gallery, .eap-items{
  max-width:920px;
  margin:8px auto 16px;
  display:grid !important;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
}
@media (max-width:900px){ .eap-gallery, .eap-items{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:600px){ .eap-gallery, .eap-items{ grid-template-columns:repeat(2, 1fr); } }

.eap-gitem, .eap-item{
  position:relative;
  aspect-ratio:1 / 1;
  border:1px solid #eee;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.eap-gitem img, .eap-item img{
  width:100%; height:100%; object-fit:cover; display:block !important;
}

/* キャプション（小見出し・本文を画像の下部に重ねる版） */
.eap-gcap{
  position:absolute; left:0; right:0; bottom:0;
  padding:6px 8px;
  background:linear-gradient(transparent, rgba(0,0,0,.6));
  color:#fff;
  font-size:12px; line-height:1.4;
}
.eap-gcap strong{ display:block; font-size:13px; margin-bottom:2px; }
.eap-gitem--text{ padding:10px; aspect-ratio:auto; }

/* 商品説明（画像の下にテキストで出す版の体裁） */
.eap-item-title{font-size:13px;margin:6px 8px 0}
.eap-item-text {font-size:12px;margin:4px 8px 8px;color:#555}

/* “本文の最初の1枚がダブる”テーマ向け（単一オークションのみ隠す） */
body.single-auction .post-thumbnail:first-of-type,
body.single-auction .entry-content > .wp-block-image:first-of-type,
body.single-auction .entry-content > p:first-of-type > img:first-child{
  display:none !important;
}
/* スマホメニューを強制的に隠す */
#global-menu,
.sp-header-menu,
.mobile-nav,
.drawer-menu,
nav ul#menu-header,
header .menu,
.drawer--right {
    display: none !important;
}		

    /* 濃い表示に上書き（スマート履歴） */
    .eap-bidlog-smart .nm{color:#111827 !important;font-weight:700 !important;}
    .eap-bidlog-smart .tm{color:#374151 !important;}
    .eap-bidlog-smart .yen{color:#111827 !important;font-weight:800 !important;}
    .eap-bidlog-smart li.is-top .yen{color:#b91c1c !important;}
    .eap-bidlog-smart .auto{color:#1d4ed8 !important;}
    .eap-bidlog-smart .cap{color:#059669 !important;}

    /* 全履歴ブロックの基本（トグルON/OFF用） */
    .eap-bidlog-all[data-open="0"] ol{display:none;}
    .eap-bidlog-all .toggle{cursor:pointer;}

    /* 連続して同じブロックが出たら2個目を非表示（簡易保険） */
    .eap-bidlog-smart + .eap-bidlog-smart{display:none !important;}
    .eap-bidlog-all   + .eap-bidlog-all{display:none !important;}
  

    /* 「さらに表示」ボタンを消す */
    .eap-bidlog-smart .more{ display:none !important; }
    /* 隠しクラスでも常に表示（レンダリング更新時も有効） */
    .eap-bidlog-smart li.is-hidden{ display:flex !important; }
  
[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}

@media (min-width: 1200px) {
  main > section > .container { max-width: 1440px !important; }
  main .epress_pager { max-width: 1440px !important; }
  main article > .container { max-width: none !important; padding: 0 !important; }
  main article > .container > .row { display: flex !important; align-items: flex-start !important; gap: 2% !important; }
  main article > .container > .row > .col { float: none !important; margin-left: 0 !important; margin-bottom: 0 !important; }
  main article > .container > .row > .col.span_4 { width: 40% !important; align-self: flex-start; }
  main article > .container > .row > .col.span_8 { width: 58% !important; }
  main { overflow: visible !important; overflow: clip !important; }
  main article > .container > .row > .col.span_4 { position: -webkit-sticky; position: sticky; top: calc(24px + var(--wp-admin--admin-bar-height, 0px)); }
  main article .col.span_4 .swiper { width: 100% !important; }
  main article .col.span_4 .swiper-slide { aspect-ratio: 1 / 1 !important; }
  main article .col.span_8 .eap-auction:not(.eap-card) { max-width: none !important; width: auto !important; padding: 32px 36px !important; }
  main article .col.span_8 .eap-gallery, main article .col.span_8 .eap-items { max-width: none !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;
            }
        }
    

        .eap-field:has(input[name="auto_max"]),
        .eap-bid-form input[name="auto_max"],
        .eap-bid-form label[for*="auto_max"],
        .eap-bid-form input[name="auto_max"] + .eap-help { display: none !important; }
        input[name="auto_max"] { display: none !important; }
        .eap-btn-primary { width: 100%; text-align: center; padding: 16px; font-size: 1.2rem; font-weight: 900; margin-top: 10px; }
    

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

                .eap-bid-form, #eap-bid-form, 
                .eap-login-box, .eap-fav-auth-form, .eapx-reset-email, #eap-wait-box,
                .eap-btn-sub, .eapx-verify-btn, .eap-verify-trigger { 
                    display: none !important; 
                }
                
                input[name="bid_price"]:not(.eua-bid-input), 
                input[name="amount"]:not(.eua-bid-input), 
                input[name="email"]:not(.eua-input), 
                input[name="nickname"]:not(.eua-nick-input),
                input[name="bidder_email"], 
                input[name="bidder_contact"],
                button.eap-btn-primary {
                    display: none !important;
                }

                .eua-bid-card {
                    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
                    padding: 20px; margin: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
                    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
                    color: #333;
                    display: block !important; visibility: visible !important; opacity: 1 !important;
                }
                .eua-status-bar {
                    display: flex; align-items: center; justify-content: space-between;
                    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
                }
                .eua-user-info { font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 5px; }
                .eua-verified-mark { color: #06C755; background: #e6fffa; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
                
                .eua-login-prompt { text-align: center; padding: 10px; }
                .eua-login-btn {
                    background: #333; color: #fff; padding: 12px 30px; border-radius: 50px; 
                    text-decoration: none; font-weight: bold; display: inline-block; cursor: pointer;
                }

                .eua-form-group { margin-bottom: 15px; }
                .eua-label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 5px; color: #555; }

                .eua-bid-input, .eua-nick-input { 
                    display: block !important;
                    width: 100%; padding: 12px; font-size: 16px; border: 2px solid #ddd; border-radius: 8px; 
                    box-sizing: border-box; visibility: visible !important; opacity: 1 !important;
                }
                .eua-bid-input::placeholder, .eua-nick-input::placeholder { color: #ccc !important; opacity: 1; }

                .eua-bid-submit {
                    display: block !important; width: 100%; padding: 14px; font-size: 18px; border: none; border-radius: 50px; 
                    background: linear-gradient(to bottom, #d4af37, #b8860b); 
                    color: #fff; font-weight: bold; cursor: pointer;
                    box-shadow: 0 4px 0 #8b6508; transition: transform 0.1s, box-shadow 0.1s;
                    visibility: visible !important; opacity: 1 !important; margin-top: 10px;
                }
                .eua-bid-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #8b6508; }
            

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

        /* 入札ページのみ: mainの220pxを60pxに上書き */
        main {
            margin-top: 60px !important;
            padding-top: 0 !important;
        }
    

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