
body { position: static!important; }


 html, body {
 height: 100%;
 width: 100%;
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
 }
 #result-area {
 margin-top: 10px;
 padding: 8px;
 border-radius: 5px;
 font-weight: bold;
 display: inline-block;
 min-width: 200px;
 text-align: center;
 white-space: pre-wrap;
 width: 100%;
 box-sizing: border-box;
 font-size: 22px;
 color: #ffffff;
 
 }
 /* 演出中や結果時用に大きなサイズ */
 .big-text {
 font-size: 36px !important;
 transition: font-size 0.3s ease;
 }
 .success {
 color: #155724!important;
 background-color: #d4edda;
 border: 1px solid #c3e6cb;
 }
 .error {
 color: #721c24!important;
 background-color: #f8d7da;
 border: 1px solid #f5c6cb;
 }
 .rarity-SS { background: linear-gradient(45deg, gold, violet, gold); color: #fff; border: 2px solid gold; }
 .rarity-S { background: gold; color: #000; border: 2px solid orange; }
 .rarity-A { background: silver; color: #000; border: 2px solid gray; }
 .rarity-B { background: lightblue; color: #000; border: 2px solid blue; }

 #kuji-area { background: #0f0f0f; padding: 80px 0; width: 100%; height: 100%; }
 .form-area { max-width: 560px; padding: 0 36px; margin: 0 auto; }
 .form-conteiner { margin: 0 auto; }
 .submit-container { display: flex; gap: 8px; align-items: center; }
 .id-text { flex: 1; padding: 8px; font-size: 18px; font-weight: bold; color: #000; height: 36px; box-sizing: border-box; }
 .submit-btn { width: 100px; padding: 8px; font-size: 14px; background-color: #4CAF50; color: white; border: none; cursor: pointer; font-weight: bold; }
 .submit-btn:hover { background-color: #45a049; }
 .result-conteicer { min-height: 100px; text-align: center; }
 #history-result { white-space: pre-wrap; color: #ffffff; }
 .history-btn {
 padding: 4px 8px;
 font-size: 14px;
 background-color: #4CAF50;
 color: white;
 border: none;
 cursor: pointer;
 font-weight: bold;
 box-sizing: border-box;
 }
 .history-btn:hover {
 background-color: #45a049;
 }
 #history-email {
 padding: 4px 8px;
 box-sizing: border-box;
 color: #000000;
 }
 .bounce {
 display: inline-block;
 animation: bounceAnim 0.9s ease-out infinite;
 }

 .bounce:nth-child(1) { animation-delay: 0s; }
 .bounce:nth-child(2) { animation-delay: 0.15s; }
 .bounce:nth-child(3) { animation-delay: 0.3s; }
 .bounce:nth-child(4) { animation-delay: 0.45s; }
 .bounce:nth-child(5) { animation-delay: 0.6s; }
 .bounce:nth-child(6) { animation-delay: 0.75s; }
 .bounce:nth-child(7) { animation-delay: 0.9s; }

 @keyframes bounceAnim {
 0% { transform: translateY(0); }
 30% { transform: translateY(-2px); } /* 素早く上に跳ねる */
 60% { transform: translateY(0); } /* すぐ戻る */
 100% { transform: translateY(0); }
 }

 /* ===== SS用虹色キラキラオーバーレイ ===== */
 @keyframes rainbowSparkle {
 0% { background-position: 0% 50%; }
 50% { background-position: 100% 50%; }
 100% { background-position: 0% 50%; }
 }
 .rainbow-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 animation: rainbowSparkle 3s linear infinite;
 background: linear-gradient(270deg,
 red, orange, yellow, green, cyan, blue, violet, red);
 background-size: 1400% 1400%;
 opacity: 0.4;
 z-index: 9998;
 }

 /* ===== 光線エフェクト ===== */
 .rays {
 position: fixed;
 top: 50%;
 left: 50%;
 width: 300px;
 height: 300px;
 margin: 0;
 background: conic-gradient(
 from 0deg,
 gold,
 transparent 30%,
 gold 60%,
 transparent 90%,
 gold
 );
 border-radius: 50%;
 transform: translate(-50%, -50%);
 animation: rotateRays 3s linear infinite;
 z-index: 9998;
 pointer-events: none;
 opacity: 0.8;
 }

 @keyframes rotateRays {
 0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
 100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.1); }
 }


 /* ===== S用背景キラキラ ===== */
 @keyframes sparkle {
 0%, 100% { background-position: 0 0; }
 50% { background-position: 100% 100%; }
 }
 .sparkle-bg {
 animation: sparkle 2s infinite linear;
 background: radial-gradient(circle, rgba(255,215,0,0.5) 20%, transparent 70%),
 radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 60%);
 background-size: 200% 200%;
 }
 /* ===== S用背景キラキラ（全面レイヤー） ===== */
 .sparkle-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none; /* ボタン操作を邪魔しない */
 animation: sparkle 2s infinite linear;
 background: radial-gradient(circle, rgba(255,215,0,0.5) 20%, transparent 70%),
 radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 60%);
 background-size: 200% 200%;
 z-index: 9998;
 }
 

.eap-card .ytbox.eapctf-box{position:relative;background:#000;overflow:hidden}
.eapctf-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:58px;height:58px;
	background:rgba(0,0,0,.5);border:2px solid rgba(255,255,255,.8);border-radius:50%;pointer-events:none}
.eapctf-play::after{content:"";position:absolute;top:50%;left:54%;transform:translate(-50%,-50%);
	width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:18px solid #fff}


.eapyp-preview{margin:8px 0 4px;max-width:480px;background:#000;border-radius:8px;overflow:hidden;display:none;}
.eapyp-preview.eapyp-on{display:block;}
.eapyp-preview iframe{display:block;width:100%;aspect-ratio:16/9;border:0;}
.eapyp-hint{font-size:12px;margin:4px 0;color:#2e7d32;display:none;}
.eapyp-hint.eapyp-on{display:block;}
.eapyp-hint.eapyp-ng{color:#c62828;}


        .eapx-checkout-info { background:#f0f9ff !important; padding:10px !important; border-radius:6px !important; margin-bottom:10px !important; border:1px solid #bae6fd !important; font-size:12px !important; }
        .eapx-checkout-info .ci-row { display:flex; justify-content:space-between; align-items:center; padding:3px 0; }
        .eapx-checkout-info .ci-label { color:#64748b !important; font-weight:bold; }
        .eapx-checkout-info .ci-value { color:#0f172a !important; font-weight:bold; }
        .eapx-checkout-info .ci-memo { background:#fffbeb !important; border:1px solid #fde68a !important; padding:8px !important; border-radius:4px !important; margin-top:6px !important; color:#92400e !important; font-size:12px !important; white-space:pre-wrap; word-break:break-word; }
        .eapx-checkout-info .ci-payment-paypay { color:#ef4444 !important; }
        .eapx-checkout-info .ci-payment-bank { color:#2563eb !important; }
        .eapx-checkout-info .ci-payment-card { color:#f59e0b !important; }
        .eapx-checkout-info .ci-completed { color:#059669 !important; font-size:11px; margin-top:4px; }
        .eapx-no-checkout { background:#f9fafb !important; padding:8px !important; border-radius:4px !important; margin-bottom:10px !important; border:1px dashed #d1d5db !important; font-size:11px !important; color:#9ca3af !important; text-align:center !important; }
    

        /* 発送先確認モーダル */
        #eapx-addr-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:100010; display:none; }
        #eapx-addr-modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:#fff; padding:0; border-radius:12px; z-index:100011; width:90%; max-width:420px; box-shadow:0 12px 40px rgba(0,0,0,0.3); overflow:hidden; display:none; }
        #eapx-addr-modal * { color:#333 !important; text-align:left !important; }
        .eapx-addr-header { background:#0369a1; padding:16px 20px; }
        .eapx-addr-header h3 { color:#fff !important; margin:0 !important; font-size:1.2em !important; }
        .eapx-addr-body { padding:20px; }
        .eapx-addr-table { width:100%; border-collapse:collapse; }
        .eapx-addr-table th { text-align:left; padding:10px 12px; background:#f0f9ff; color:#0369a1 !important; font-weight:700; width:30%; border-bottom:1px solid #e0f2fe; font-size:13px; }
        .eapx-addr-table td { padding:10px 12px; border-bottom:1px solid #f1f5f9; font-size:14px; font-weight:500; }
        .eapx-addr-memo { background:#fffbeb; border:1px solid #fde68a; padding:12px; border-radius:6px; margin-top:12px; font-size:13px; color:#92400e !important; white-space:pre-wrap; word-break:break-word; }
        .eapx-addr-memo strong { color:#92400e !important; }
        .eapx-addr-not-found { text-align:center !important; padding:30px 20px; color:#9ca3af !important; }
        .eapx-addr-close { display:block; width:100%; padding:14px; background:#f1f5f9; border:none; border-top:1px solid #e2e8f0; font-size:15px; font-weight:bold; cursor:pointer; color:#64748b !important; text-align:center !important; }
        .eapx-addr-close:hover { background:#e2e8f0; }
        .eapx-addr-btn { background:#0369a1 !important; color:#fff !important; border:none !important; padding:8px 14px !important; border-radius:5px !important; cursor:pointer !important; font-weight:bold !important; font-size:12px !important; width:100% !important; display:block !important; margin-top:8px !important; text-align:center !important; }
        .eapx-addr-btn:hover { opacity:0.9; }
        .eapx-addr-loading { text-align:center !important; padding:40px 20px; color:#94a3b8 !important; }
    

        /* --- 根本的なレイヤーの分離と強制隔離 --- */
        
        /* HP側の背景が透けるように設定 */
        html, body {
            background-color: transparent !important;
        }

        /* 背景システム全体を包む絶対隔離コンテナ */
        #edo-night-background-system {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: -2147483647 !important; 
            pointer-events: none !important; /* HP側の操作を全てスルー */
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
            display: block !important;
            visibility: visible !important;
            isolation: isolate !important;
        }

        /* 3Dキャンバス自体の設定 */
        #canvas-container-edo {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: -2 !important;
            pointer-events: auto !important; /* 背景のドラッグ操作は有効 */
        }

        /* 背景内の告知レイヤー（最上部配置） */
        #edo-bg-text-layer {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: -1 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: flex-start !important; /* 画面上部に配置（元の位置） */
            text-align: center !important;
            box-sizing: border-box !important;
            padding: 50px 10% 0 !important; 
            pointer-events: none !important;
        }

        /* 激しく熱気のある赤色発光アニメーション */
        @keyframes fierceRedGlow {
            0% { text-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 30px rgba(200, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.9); }
            100% { text-shadow: 0 0 25px rgba(255, 50, 50, 1), 0 0 60px rgba(255, 0, 0, 0.9), 0 0 100px rgba(200, 0, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.9); }
        }

        /* エドオク メインテキスト（赤・極太ゴシック・斜体で勢いを演出） */
        .main-announcement-edo {
            width: 100% !important;
            max-width: 95vw !important;
            margin: 0 auto !important;
            font-size: clamp(3rem, 12vw, 8rem) !important;
            font-family: "Impact", "Arial Black", "Noto Sans JP", "Yu Gothic", "MS Gothic", sans-serif !important; 
            font-weight: 900 !important; /* 極太 */
            font-style: italic !important; /* スピード感・勢いを出す斜体 */
            color: #FF1111 !important; /* 鮮烈な赤 */
            line-height: 1.1 !important;
            letter-spacing: 0.05em !important;
            animation: fierceRedGlow 1.5s infinite alternate ease-in-out !important; /* 鼓動のような速めの点滅 */
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            transform: skewX(-5deg) !important; /* さらに少し傾けてアグレッシブに */
        }

        /* サブタイトル（EDO KILLIFISH AUCTION） */
        .sub-announcement-edo {
            font-family: "Impact", "Arial Black", "Noto Sans JP", "Yu Gothic", "MS Gothic", sans-serif !important; 
            font-size: clamp(1rem, 3.5vw, 2.5rem) !important;
            color: #ffffff !important; /* 白文字で赤く光らせる */
            font-weight: 900 !important;
            font-style: italic !important;
            letter-spacing: 0.15em !important;
            margin-top: 5px !important;
            transform: skewX(-5deg) !important;
            animation: fierceRedGlow 1.5s infinite alternate ease-in-out !important;
            text-shadow: 0 0 15px rgba(255, 0, 0, 0.8) !important;
        }

    

    /* v1.3.0: カートモーダルのスクロール構造を修正 */
    #eap-ec-cart-modal-inner {
        display: flex !important;
        flex-direction: column !important;
        max-height: 85vh !important;
        padding: 20px 20px 16px !important;
    }
    #eap-ec-cart-modal-inner h2 {
        flex-shrink: 0;
    }
    #eap-ec-cart-items-wrap {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 60px;
    }
    #eap-ec-cart-total {
        flex-shrink: 0;
        border-top: 1px solid #eee;
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }
    #eap-ec-checkout-btn,
    #eap-ec-cart-close-btn {
        flex-shrink: 0;
    }
    

    /* v1.6.0: カード内小計 */
    .eapsnp-card-sub {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 6px 0 8px;
        padding: 6px 10px;
        background: #f0f6ff;
        border-radius: 6px;
        font-size: .9em;
    }
    .eapsnp-card-sub .sub-label { color: #555; }
    .eapsnp-card-sub .sub-price {
        font-weight: bold;
        color: #c00;
        font-size: 1.1em;
    }
    /* ドロワー各アイテムの小計 */
    .eapsnp-item-sub {
        font-size: .85em;
        color: #c00;
        font-weight: bold;
        margin-top: 3px;
    }
    /* ドロワーフッター送料行 */
    .eapsnp-shipping-row {
        display: flex;
        justify-content: space-between;
        font-size: .84em;
        color: #888;
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px dashed #e0e0e0;
    }
    

    #eapsnp-confirm-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
    #eapsnp-confirm-overlay.show{display:flex}
    #eapsnp-confirm-box{background:#fff;border-radius:14px;padding:28px 24px 20px;max-width:340px;width:100%;box-shadow:0 8px 32px rgba(0,0,0,.25);text-align:center}
    #eapsnp-confirm-box .snp-title{font-size:1.05rem;font-weight:bold;color:#1a3a6a;margin:0 0 8px}
    #eapsnp-confirm-box .snp-body{font-size:.9rem;color:#555;margin:0 0 20px;line-height:1.6}
    .snp-btns{display:flex;gap:12px}
    .snp-ok{flex:1;padding:13px;background:linear-gradient(135deg,#1a5fb4,#1a3a6a);color:#fff;border:none;border-radius:9px;font-size:1rem;font-weight:bold;cursor:pointer}
    .snp-cancel{flex:1;padding:13px;background:#f0f0f0;color:#555;border:1px solid #ddd;border-radius:9px;font-size:1rem;cursor:pointer}
    

.eapmb-badge{position:fixed;left:50%;transform:translateX(-50%);bottom:74px;z-index:9998;
	display:flex;align-items:center;gap:10px;padding:12px 20px;border-radius:14px;
	font-size:15px;line-height:1.35;text-decoration:none;
	box-shadow:0 4px 18px rgba(0,0,0,0.28);max-width:92%;width:auto;
	animation:eapmbPop .35s ease;}
@keyframes eapmbPop{from{opacity:0;transform:translateX(-50%) translateY(10px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}
.eapmb-badge:hover{opacity:.92;}
.eapmb-badge .eapmb-ic{font-size:24px;flex-shrink:0;}
.eapmb-badge .eapmb-tx{font-weight:800;}
.eapmb-badge .eapmb-sb{display:block;font-size:12px;font-weight:500;opacity:.9;margin-top:2px;}
.eapmb-guest{background:#ffcf33;color:#5c4300;border:2px solid #e6b800;}
.eapmb-partial{background:#4a90ff;color:#fff;border:2px solid #2f6fd8;}
.eapmb-full{background:#2ecc71;color:#fff;border:2px solid #27ae60;cursor:default;}
.eapmb-close{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;
	background:#fff;color:#666;border:1px solid #ccc;font-size:14px;line-height:20px;text-align:center;
	cursor:pointer;text-decoration:none;box-shadow:0 1px 4px rgba(0,0,0,0.2);}
@media(max-width:480px){
	.eapmb-badge{bottom:70px;font-size:14px;padding:11px 16px;}
	.eapmb-badge .eapmb-ic{font-size:22px;}
}


.eap-descvid-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin-top:8px}
.eap-descvid-box{position:relative;width:100%;padding-top:56.25%;border-radius:8px;overflow:hidden;background:#000}
.eap-descvid-box iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

