:root{--ndm-navy:#152841;--ndm-gold:#ce8d16;--ndm-line:#d8dee5;--ndm-bg:#f6f8fa}
@font-face{font-family:"NDM Fusion Pixel";src:url("fonts/fusion-pixel/fusion-pixel-12px-proportional-ja.ttf.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
body.ndm-page{margin:0;background:white;color:var(--ndm-navy);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;line-height:1.65}
#ndm-root,#ndm-root *,.ndm-header,.ndm-footer,.ndm-lightbox{box-sizing:border-box}
#ndm-root{color:var(--ndm-navy);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:15px;line-height:1.65}
#ndm-root [hidden]{display:none!important}
#ndm-root input,#ndm-root textarea,#ndm-root select{display:block;width:100%;max-width:100%;min-width:0;border:1px solid #a8b3c0;border-radius:5px;background:#fff;color:var(--ndm-navy);padding:10px 12px;font:inherit;line-height:1.5;margin:5px 0 0;box-shadow:none}
#ndm-root input[type=checkbox]{display:inline-block;width:18px;height:18px;margin:0 6px 0 0;accent-color:var(--ndm-gold);vertical-align:middle;padding:0}
#ndm-root label{display:block;font-weight:600;font-size:14px}
#ndm-root textarea{resize:vertical;font-weight:400}
#ndm-root input:focus-visible,#ndm-root textarea:focus-visible,#ndm-root select:focus-visible,#ndm-root button:focus-visible,#ndm-root a:focus-visible{outline:3px solid #eac570;outline-offset:3px}
#ndm-root button,#ndm-root .ndm-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;max-width:100%;padding:9px 15px;border:1px solid #a8b3c0;border-radius:5px;color:var(--ndm-navy);background:#fff;font-size:14px;font-weight:600;line-height:1.4;font-family:inherit;text-align:center;text-decoration:none;cursor:pointer;transition:background .22s,color .22s,border-color .22s;letter-spacing:0;box-shadow:none;margin:0;white-space:normal}
#ndm-root button:hover,#ndm-root .ndm-button:hover{background:#f3e7cc;border-color:var(--ndm-gold)}
#ndm-root button:disabled{opacity:.45;cursor:default}
#ndm-root .ndm-primary,#ndm-root .active{background:var(--ndm-gold);color:white;border-color:var(--ndm-gold)}
#ndm-root .ndm-primary:hover{background:#ad7512}
#ndm-root .ndm-x:hover{background:#000;color:#fff;border-color:#000}
#ndm-root h1{font-size:clamp(24px,3vw,34px);line-height:1.4;margin:24px 0 14px;font-weight:700;color:inherit;letter-spacing:.015em;background:none;border:0;padding:0}
#ndm-root h2{font-size:20px;margin:0 0 12px;line-height:1.5;background:none;color:inherit;padding:0;border:0}
#ndm-root p{margin:0 0 18px}#ndm-root small{font-size:12px;font-weight:400;color:#657588;line-height:1.6}
.ndm-header{background:var(--ndm-navy);padding:17px max(20px,calc((100vw - 1200px)/2));border-bottom:4px solid var(--ndm-gold)}
.ndm-header a{color:white;font-weight:700;text-decoration:none;font-size:18px}
.ndm-header a{font-family:"NDM Fusion Pixel","Yu Gothic",sans-serif;font-weight:400;font-synthesis:none;font-size:24px;line-height:1.5}
#ndm-root h1.ndm-tool-title{font-family:"NDM Fusion Pixel","Yu Gothic",sans-serif;font-weight:400;font-synthesis:none;font-size:36px;line-height:1.5;letter-spacing:0}
@media(max-width:800px){#ndm-root h1.ndm-tool-title{font-size:24px}}
.ndm-container{width:100%;max-width:1240px;margin:0 auto;padding:24px 24px 70px}
.ndm-tabs{display:flex;gap:10px;border-bottom:1px solid var(--ndm-line);padding-bottom:16px}
.ndm-top-inputs{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:24px}
.ndm-live-title{font-size:18px;font-weight:700;margin:12px 0!important;color:#8b5c09}
.ndm-tools{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:20px 0}
.ndm-tools button{margin-left:auto!important}
.ndm-editor-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px;align-items:start}
.ndm-field-side{position:sticky;top:30px;padding:16px;background:var(--ndm-bg);border:1px solid var(--ndm-line);border-radius:9px}
.ndm-slot{padding:20px;border:1px solid var(--ndm-line);border-radius:8px;margin:0 0 18px;background:white;scroll-margin-top:20px}
.ndm-slot-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:15px}
.ndm-slot-heading>strong{font-size:21px;color:#8b5c09}
.ndm-position{display:flex!important;align-items:center;gap:10px;margin-left:auto}
.ndm-position select{width:125px!important;margin:0!important;font-size:14px!important}
.ndm-movers{display:flex;gap:5px}.ndm-movers button{padding:6px 10px!important;min-height:34px!important}
.ndm-source{display:flex;align-items:center;gap:16px;margin:15px 0}
.ndm-source>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ndm-source small{flex-basis:100%}
#ndm-root .ndm-image-button{border:none;background:transparent;padding:0;flex-shrink:0;min-height:0;border-radius:0;overflow:hidden}
.ndm-image{display:flex;align-items:center;justify-content:center;background:#f0f2f5;overflow:hidden;width:90px;height:90px}
.ndm-image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.ndm-image svg{width:70%;height:70%;fill:#b8c1cc}
.ndm-source .ndm-image{border:1px solid var(--ndm-line);border-radius:50%;padding:8px}
.ndm-whole-comment{margin:25px 0}.ndm-complete{display:flex;align-items:center;gap:20px}.ndm-complete span{font-weight:700;color:#8b5c09}
.ndm-mobile-tabs{display:none}
.ndm-diamond{position:relative;width:100%;aspect-ratio:1/1.1;background:#edf2ec;border-radius:8px;overflow:hidden}
.ndm-dirt{position:absolute;top:34%;left:19%;width:62%;height:51%;background:#dcc39b;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.ndm-infield{position:absolute;left:28%;top:41%;width:44%;height:37%;background:#b8cda8;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
#ndm-root .ndm-player{position:absolute;top:var(--y);left:var(--x);transform:translate(-50%,-36%);display:flex;flex-direction:column;align-items:center;justify-content:start;background:none;border:0;padding:0;width:28%;min-height:0;gap:0;color:var(--ndm-navy)}
#ndm-root .ndm-player:hover{background:none}
.ndm-player .ndm-image{width:clamp(45px,6vw,76px);height:clamp(45px,6vw,76px);border:2px solid #fff;border-radius:50%;background:#fff;padding:8px;box-shadow:0 2px 4px #15284118}
.ndm-player-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;min-height:18px;font-weight:700;margin-top:3px;line-height:1.4}
.ndm-player small{color:#53644b!important;font-size:11px!important}
.ndm-search{border-top:1px solid var(--ndm-line);padding-top:14px;margin-bottom:16px}
.ndm-source-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.ndm-source-tabs button{padding:8px 10px!important;font-size:12px!important;flex:1;min-width:75px}.ndm-fixed-position{padding:8px 12px;border:1px solid var(--ndm-line);border-radius:5px;background:var(--ndm-bg)}
.ndm-credit{font-size:12px;line-height:1.65;border-top:1px solid var(--ndm-line);margin-top:16px;padding-top:12px;overflow-wrap:anywhere}.ndm-credit>a,.ndm-credit>span,.ndm-credit>small{display:block}.ndm-credit a{color:#596b80;text-decoration:underline}
#ndm-root .ndm-credit .ndm-article-button{display:inline-flex;min-height:50px;padding:12px 22px;font-size:16px;margin-top:12px;text-decoration:none}
.ndm-comment-count{display:block;text-align:right;margin-top:4px}
.ndm-strip-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.6;padding:5px 3px;text-align:center;color:var(--ndm-navy)}
.ndm-search-bar{display:flex;gap:8px;align-items:end}.ndm-search-bar>label{flex:1}
.ndm-search-bar button{padding:8px!important;font-size:12px!important;min-height:43px!important}
.ndm-candidate-fields{padding:12px;border:1px solid var(--ndm-line);margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.ndm-results{max-height:500px;overflow:auto;margin:12px 0 0;overscroll-behavior:contain}
.ndm-candidate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#ndm-root .ndm-candidate{flex-direction:column;align-items:stretch;text-align:left;padding:8px;font-size:12px;justify-content:flex-start;gap:6px;min-width:0}
.ndm-candidate img{width:100%;height:100px;object-fit:contain;background:white}
.ndm-candidate span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-weight:400;overflow-wrap:anywhere}
.ndm-results>button{margin-top:12px!important}
.ndm-move-notice{position:sticky;top:0;z-index:5;background:#fff3d4;border:1px solid var(--ndm-gold);padding:12px}.ndm-move-target{display:block;margin-top:15px}
.ndm-finished{background:#f8f5ed;padding-top:40px}
.ndm-score-heading{border-top:4px solid var(--ndm-gold);border-bottom:1px solid var(--ndm-gold);padding:20px 0;text-align:center;margin-bottom:30px}
.ndm-score-heading>span{color:#8b5c09;font-size:13px;letter-spacing:.16em;font-weight:700}
#ndm-root .ndm-score-heading h1{margin:10px 0 12px;overflow-wrap:anywhere;font-family:"NDM Fusion Pixel","Yu Gothic",sans-serif;font-weight:400;font-synthesis:none;line-height:1.5}
.ndm-score-heading p{margin:0!important}
.ndm-finished-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:center}
.ndm-lineup{width:100%;border-collapse:collapse;font-size:16px;background:#fff;border:1px solid var(--ndm-line);table-layout:fixed}
.ndm-lineup th{background:var(--ndm-navy);color:white;text-align:left;font-size:14px;padding:12px}
.ndm-lineup th:first-child{width:54px}.ndm-lineup th:nth-child(2){width:80px}
.ndm-lineup td{padding:13px 12px;border-bottom:1px solid var(--ndm-line);vertical-align:middle}
.ndm-lineup tbody tr:nth-child(even){background:#f4f6f8}
.ndm-lineup td a{color:var(--ndm-navy);text-decoration:none;display:block;white-space:normal;overflow-wrap:anywhere}
.ndm-whole-finished{margin:30px 0;padding:24px;background:white;border-left:4px solid var(--ndm-gold)}
.ndm-whole-finished p,.ndm-comment{white-space:pre-wrap;overflow-wrap:anywhere}
.ndm-descriptions{margin-top:35px;display:grid;gap:20px}
.ndm-description{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;padding:24px;background:#fff;border:1px solid #dfd6c3;border-radius:6px;scroll-margin-top:25px}
.ndm-description .ndm-image{width:160px;height:160px;background:#fff}
.ndm-description h2{overflow-wrap:anywhere}.ndm-description h2 span{display:block;font-size:13px;color:#8b5c09;margin-bottom:5px}
.ndm-product{border-top:1px solid var(--ndm-line);padding-top:16px}.ndm-product p{font-size:13px;margin-bottom:8px!important;overflow-wrap:anywhere}.ndm-product small{display:block;margin-top:10px}
.ndm-publish{display:flex;flex-wrap:wrap;gap:15px;margin-top:35px;padding:24px;background:white;border:1px solid var(--ndm-line);border-radius:6px;align-items:center}
.ndm-publish h2,.ndm-publish>input,.ndm-share-buttons{flex-basis:100%}.ndm-share-buttons{display:flex;gap:10px;flex-wrap:wrap}
.ndm-sort{display:flex!important;gap:12px;align-items:center;margin:25px 0}.ndm-sort select{width:auto!important;margin:0!important}
.ndm-gallery{display:grid;gap:20px;margin:20px 0}.ndm-gallery-card{border:1px solid var(--ndm-line);padding:18px;border-radius:8px}
.ndm-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px}.ndm-strip>div{flex:1;min-width:64px;text-align:center}.ndm-strip .ndm-image{width:100%;height:85px;border-radius:4px}.ndm-strip small{display:block;font-weight:600!important;margin-top:3px}
.ndm-gallery-card h2{margin-top:12px!important}.ndm-gallery-card p{margin-bottom:10px!important}.ndm-gallery-meta{display:flex;justify-content:space-between;align-items:center;gap:20px}.ndm-gallery-meta>span{font-size:13px;color:#657588}
.ndm-footer{padding:28px 20px;border-top:1px solid var(--ndm-line);text-align:center;font-size:12px;color:#657588}.ndm-footer p{margin:0 0 8px}.ndm-footer a{color:var(--ndm-navy)}
.ndm-lightbox{position:fixed;inset:0;background:#101824e8;z-index:9999999;display:flex;align-items:center;justify-content:center;padding:60px 20px 20px}.ndm-lightbox img{max-width:90vw;max-height:85vh;width:auto;height:auto;object-fit:contain}.ndm-lightbox button{position:absolute;right:20px;top:15px;border:1px solid white;background:#fff;color:var(--ndm-navy);padding:10px 20px;border-radius:4px;cursor:pointer}.ndm-modal-open{overflow:hidden}
.ndm-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:10000000;max-width:calc(100vw - 32px);width:max-content;background:var(--ndm-navy);color:white;border-radius:6px;padding:12px 20px;box-shadow:0 3px 10px #0002;font-size:14px}.ndm-toast.error{background:#823c2c}
@media(max-width:800px){.ndm-container{padding:18px 16px 45px}.ndm-top-inputs{grid-template-columns:1fr}.ndm-editor-layout{grid-template-columns:1fr}.ndm-field-side{position:static;max-width:500px;width:100%;margin:auto}.ndm-mobile-tabs{display:flex;gap:10px;margin-bottom:20px}.mobile-input .ndm-field-side{display:none}.mobile-field .ndm-input-side{display:none}.ndm-finished-top{grid-template-columns:1fr}.ndm-finished-top .ndm-diamond{max-width:520px;margin:auto}.ndm-player .ndm-image{width:clamp(46px,12vw,74px);height:clamp(46px,12vw,74px)}.ndm-description{grid-template-columns:95px minmax(0,1fr);gap:16px;padding:16px}.ndm-description .ndm-image{width:95px;height:95px}.ndm-description h2{font-size:18px!important}.ndm-slot{padding:16px}.ndm-strip>div{flex:0 0 70px}.ndm-strip .ndm-image{height:70px}.ndm-publish{padding:18px}.ndm-tools{gap:12px}.ndm-source button{font-size:12px!important}.ndm-source .ndm-image{width:72px;height:72px}.ndm-candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ndm-candidate img{height:80px}.ndm-slot-heading{gap:8px}.ndm-position{font-size:12px!important}.ndm-position select{width:105px!important}.ndm-movers{width:100%;justify-content:flex-end}.ndm-tabs button{flex:1;font-size:13px!important}.ndm-header{padding:15px 16px}.ndm-search-bar{flex-wrap:wrap}.ndm-search-bar>label{flex-basis:100%}.ndm-tools small{order:3;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){#ndm-root button,#ndm-root .ndm-button{transition:none}}

.ndm-no-image{display:flex;align-items:center;justify-content:center;color:#647184;font:600 12px sans-serif;text-align:center;width:100%;height:100%;background:#f0f2f5}.ndm-candidate-placeholder{height:100px}@media(max-width:800px){.ndm-candidate-placeholder{height:80px}}
.ndm-stadium{aspect-ratio:1;background:#69a34f}
.ndm-stadium-background{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
.ndm-stadium .ndm-player-name{background:#ffffffe8;border-radius:3px;padding:2px 5px;max-width:95%}
.ndm-stadium .ndm-player small{background:#ffffffda;border-radius:2px;padding:0 4px;color:#263c24!important}
.ndm-lineup th:nth-child(3){width:auto}
.ndm-lineup .ndm-table-comment{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}
.ndm-scoreboard{margin-top:14px;padding:9px 10px 10px;border:2px solid #53616a;border-radius:4px;background:#242e34;color:#f4f1d7;box-shadow:inset 0 0 0 1px #131c23}
.ndm-board-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:#b2bdbe;font:10px sans-serif;letter-spacing:.12em}
.ndm-board-heading span{font-size:11px;letter-spacing:0}
.ndm-field-side,#ndm-live-scoreboard,.ndm-scoreboard{min-width:0;max-width:100%}
.ndm-board-scroll{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#77867a #202a30}
.ndm-board-scroll:focus-visible{outline:2px solid #eac570;outline-offset:2px}
.ndm-board-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(32px,1fr));min-width:calc(var(--columns)*32px);border:1px solid #596268}
#ndm-root .ndm-board-player{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:0;min-width:0;min-height:0;max-width:none;background:#263139;border:0;border-right:1px solid #596268;border-radius:0;padding:0;color:#f4f1d7;font-family:"NDM Fusion Pixel",sans-serif;font-weight:400;line-height:1.2;font-synthesis:none}
#ndm-root .ndm-board-player:last-child{border-right:0}
#ndm-root .ndm-board-player:hover{background:#38474e;color:#fff4b6}
.ndm-board-order,.ndm-board-position{width:100%;text-align:center;padding:4px 0;border-bottom:1px solid #596268;font-size:16px;line-height:1.2}
.ndm-board-order{background:#344047;color:#fff}.ndm-board-position{height:26px;font-size:14px;color:#e8cf8b}
.ndm-board-name{display:block;height:117px;max-height:117px;overflow:hidden;writing-mode:vertical-rl;text-orientation:upright;padding:6px 0;font-size:12px;letter-spacing:1px;line-height:1.4}
.ndm-long-mark{display:inline-block;writing-mode:horizontal-tb;transform:rotate(90deg);width:1em;height:1em;line-height:1;text-align:center;letter-spacing:0}
#ndm-root [data-drag-kind][data-drag-index]:not([data-drag-index="-1"]):not([data-drag-index="9"]){touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#ndm-root [data-drag-kind] img{pointer-events:none;-webkit-user-drag:none}
#ndm-root .ndm-drag-source{opacity:.4;cursor:grabbing}
#ndm-root .ndm-drag-over{outline:3px solid #ce8d16;outline-offset:2px;border-radius:4px}
.ndm-drag-ghost{position:fixed!important;transform:translate(-50%,-50%)!important;pointer-events:none!important;z-index:999999;opacity:.85;background:#263139;color:#fff3c9;border:2px solid #eac570;border-radius:5px;display:flex;flex-direction:column;align-items:center;font-family:"NDM Fusion Pixel",sans-serif;padding:3px;box-shadow:0 6px 20px #0005}
.ndm-drag-ghost .ndm-image{width:60px;height:60px;border-radius:50%;background:#fff}
.ndm-drag-ghost .ndm-image img{max-width:100%;max-height:100%}
.ndm-drag-ghost .ndm-player-name{font-size:12px}.ndm-drag-ghost small{font-size:11px}
.ndm-dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
.ndm-board-scroll{padding-bottom:12px}
@media(min-width:801px){.ndm-field-side #ndm-live-diamond{width:min(100%,max(180px,calc(90.9dvh - 245px)));margin:auto}.ndm-field-side{top:16px;padding:12px}}
@media(max-width:800px){.ndm-lineup th,.ndm-lineup td{padding:10px 8px}.ndm-lineup th:first-child{width:40px;white-space:nowrap}.ndm-lineup th:nth-child(2){width:62px}.ndm-lineup th:nth-child(3){width:auto}.ndm-lineup{font-size:13px}.ndm-lineup .ndm-table-comment{font-size:12px}}

#ndm-root .ndm-comment strong,#ndm-root .ndm-whole-finished strong{font-weight:700}

.ndm-description.ndm-rakuten-description{grid-template-columns:minmax(0,420px) minmax(0,1fr);align-items:start}
.ndm-gallery{min-width:0;width:100%}
#ndm-root .ndm-gallery-main{display:block;width:100%;padding:0}
.ndm-description .ndm-gallery-main .ndm-image{width:100%;height:auto;aspect-ratio:1;max-width:420px;margin:auto}
.ndm-gallery-main img{width:100%;height:100%;object-fit:contain}
.ndm-gallery-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#ndm-root .ndm-gallery-thumbs button{width:72px;height:72px;padding:3px;border:2px solid var(--ndm-line);background:white;border-radius:4px}
#ndm-root .ndm-gallery-thumbs button[aria-pressed=true]{border-color:var(--ndm-gold)}
.ndm-gallery-thumbs img{width:100%;height:100%;object-fit:contain}
@media(max-width:800px){.ndm-description.ndm-rakuten-description{grid-template-columns:minmax(0,1fr)}.ndm-gallery-thumbs{justify-content:center}}
