/* R38: button exists immediately; later positioned beside the real phone. */
#sc-global-share-button{box-sizing:border-box;appearance:none;position:fixed!important;left:0;top:0;z-index:2147483000!important;display:inline-flex;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;border:0!important;padding:5px!important;background:transparent!important;color:white!important;border-radius:9px!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent}
#sc-global-share-button svg{display:block!important;width:23px!important;height:23px!important;fill:none!important;stroke:white!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none}
#sc-global-share-button:active{background:rgba(255,255,255,.2)!important;transform:scale(.94)}
#sc-global-share-button:focus-visible{outline:2px solid white!important;outline-offset:2px}
@media(max-width:375px){#sc-global-share-button{width:32px!important;min-width:32px!important;height:34px!important;min-height:34px!important}#sc-global-share-button svg{width:21px!important;height:21px!important}}
/* R38: explicit safe fallback if the WP header uses a custom div structure. */
#sc-global-share-button{right:130px!important;left:auto;top:18px;visibility:visible;touch-action:manipulation;}
#sc-global-share-button[aria-label="このページをシェア"]{isolation:isolate;}
@media(min-width:760px){#sc-global-share-button:not([data-sc-position="header"]){right:155px!important;}}


/* R40: shared SNS picker copied in structure from the existing green GAME QUIZ share menu. */
#sc-r40-share{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,23,42,.36);padding:0 10px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
#sc-r40-share *{box-sizing:border-box}
#sc-r40-share .sc-r40-panel{width:min(100%,560px);max-height:min(94vh,920px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:24px;padding:13px 12px 16px;box-shadow:0 -8px 36px rgba(15,23,42,.16);color:#172033}
#sc-r40-share .sc-r40-handle{width:36px;height:4px;border-radius:99px;background:#d6dbe3;margin:0 auto 8px}
#sc-r40-share .sc-r40-head{display:flex;align-items:center;justify-content:space-between;padding:2px 1px 9px;gap:8px}
#sc-r40-share .sc-r40-head strong{font-size:17px;line-height:1.35;font-weight:900;color:#172033}
#sc-r40-share .sc-r40-close{appearance:none;border:0;background:#f3f5f7;width:32px;height:32px;border-radius:50%;font-size:21px;line-height:1;color:#475569;display:grid;place-items:center;padding:0;flex:0 0 32px}
#sc-r40-share .sc-r40-apps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:2px 0 0}
#sc-r40-share .sc-r40-apps button{appearance:none;border:0;background:transparent;min-width:0;padding:3px 0;display:flex;flex-direction:column;align-items:center;gap:6px;color:#182033;font:inherit;cursor:pointer}
#sc-r40-share .sc-r40-apps button>span:last-child{font-size:11px;font-weight:700;white-space:nowrap}
#sc-r40-share .sc-r40-appicon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:23px;font-weight:900}
#sc-r40-share .sc-r40-line{background:#06c755;color:#fff;font-size:17px}
#sc-r40-share .sc-r40-x{background:#111827;color:#fff}
#sc-r40-share .sc-r40-instagram{background:linear-gradient(135deg,#8a3ab9,#e95950,#fccc63);color:#fff}
#sc-r40-share .sc-r40-facebook{background:#1877f2;color:#fff;font-family:Arial,sans-serif}
#sc-r40-share .sc-r40-wechat{background:#07c160;color:#fff;font-size:18px}
#sc-r40-share .sc-r40-rednote{background:#ff2442;color:#fff;font-size:14px;letter-spacing:-.04em}
#sc-r40-share .sc-r40-neutral{background:#eef2f6;color:#263244;font-size:21px}
#sc-r40-share button:disabled{opacity:.48;cursor:wait}
#sc-r40-share .sc-r40-official{appearance:none;width:100%;margin:10px 0 0;border:1px solid #c8ead7;background:#f4fbf7;border-radius:15px;padding:11px 10px;display:flex;align-items:center;justify-content:center;gap:8px;color:#058a4b;font:inherit;font-size:13px;font-weight:800}
#sc-r40-share .sc-r40-official b{display:inline-grid;place-items:center;padding:6px 9px;border-radius:8px;background:#06c755;color:#fff;font-size:10px}
#sc-r40-share .sc-r40-status{margin:8px 2px 0;color:#64748b;font-size:11px;line-height:1.45}
#sc-r40-share .sc-r40-status[data-error="1"]{color:#b43a37;font-weight:700}
#sc-r40-share .sc-r40-sub{font-size:12px;color:#607089;line-height:1.45;margin:1px 0 8px}
#sc-r40-share .sc-r40-caption{border:1px solid #cdebd8;border-radius:14px;background:#f7fcf9;color:#17291f;padding:12px 12px;margin:0 0 12px;font-size:12.5px;line-height:1.46;white-space:pre-wrap;word-break:break-word;max-height:170px;overflow:auto;-webkit-user-select:text;user-select:text}
#sc-r40-share .sc-r40-steps{display:grid;gap:6px;padding:0;margin:0 0 10px;list-style:none}
#sc-r40-share .sc-r40-steps li{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f5fbf7;border:1px solid #d6eee0;border-radius:14px;color:#183027;font-size:12px;font-weight:800;line-height:1.4}
#sc-r40-share .sc-r40-steps b{width:23px;height:23px;flex:0 0 23px;border-radius:50%;display:grid;place-items:center;background:#06c755;color:#fff;font-size:11px}
#sc-r40-share .sc-r40-cta,#sc-r40-share .sc-r40-outline{appearance:none;width:100%;border:1px solid #bfe8cf;border-radius:14px;background:#fff;color:#058a4b;padding:11px 14px;font:inherit;font-size:14px;font-weight:900;margin-top:6px}
#sc-r40-share .sc-r40-cta{background:#06c755;color:#fff;border-color:#06c755}
#sc-r40-share .sc-r40-cancel{appearance:none;width:100%;border:0;background:transparent;color:#64748b;padding:10px 8px 0;font:inherit;font-size:12px;font-weight:800;margin-top:4px}
#sc-r40-share .sc-r40-choices{display:grid;gap:8px}
#sc-r40-share .sc-r40-choices button{appearance:none;width:100%;text-align:left;border:1px solid #cdebd8;border-radius:16px;background:#f8fcfa;padding:14px 16px;font:inherit}
#sc-r40-share .sc-r40-choices strong{display:block;font-size:16px;font-weight:900;color:#058a4b;margin-bottom:4px}
#sc-r40-share .sc-r40-choices small{display:block;font-size:12px;color:#607089}
@media(max-width:430px){#sc-r40-share .sc-r40-apps{gap:6px}#sc-r40-share .sc-r40-appicon{width:46px;height:46px}#sc-r40-share .sc-r40-apps button>span:last-child{font-size:10px}}
@media(max-height:760px){#sc-r40-share{padding:0 8px calc(6px + env(safe-area-inset-bottom))}#sc-r40-share .sc-r40-panel{max-height:96vh;padding:11px 11px 13px}#sc-r40-share .sc-r40-caption{max-height:140px}#sc-r40-share .sc-r40-steps li{padding:7px 9px;font-size:11.5px}#sc-r40-share .sc-r40-cta,#sc-r40-share .sc-r40-outline{padding:10px 12px;font-size:13px}}
@media(max-height:700px){#sc-r40-share .sc-r40-head strong{font-size:16px}#sc-r40-share .sc-r40-sub{margin-bottom:6px}#sc-r40-share .sc-r40-caption{padding:10px 10px;margin-bottom:9px;max-height:116px;font-size:11.5px;line-height:1.4}#sc-r40-share .sc-r40-steps{gap:5px;margin-bottom:8px}#sc-r40-share .sc-r40-steps li{padding:7px 8px;gap:7px;line-height:1.32}#sc-r40-share .sc-r40-steps b{width:21px;height:21px;flex-basis:21px;font-size:10px}#sc-r40-share .sc-r40-cta,#sc-r40-share .sc-r40-outline{margin-top:5px;padding:9px 12px}#sc-r40-share .sc-r40-cancel{padding-top:8px}}
@media(max-height:650px){#sc-r40-share .sc-r40-panel{max-height:97vh}#sc-r40-share .sc-r40-caption{max-height:88px;display:block}}

/* R44: tappable four-action layout for RedNote, LINE, X and Instagram only. */
#sc-r40-share .sc-r44-action-panel{padding:14px 12px 16px;}
#sc-r40-share .sc-r44-action-panel .sc-r40-head{padding-bottom:9px;}
#sc-r40-share .sc-r44-action-panel .sc-r40-head strong{font-size:18px;}
#sc-r40-share .sc-r44-action-panel .sc-r40-sub{margin:2px 0 9px;}
#sc-r40-share .sc-r44-action-panel .sc-r44-caption{max-height:255px;min-height:195px;margin-bottom:12px;padding:12px 13px;font-size:12.5px;line-height:1.5;}
#sc-r40-share .sc-r44-actions{display:grid;gap:9px;}
#sc-r40-share .sc-r44-step{appearance:none;display:flex;align-items:center;width:100%;min-width:0;gap:10px;min-height:64px;padding:10px 12px;text-align:left;border:1px solid #bfe6cf;border-radius:16px;background:linear-gradient(90deg,#fff,#f9fdfa);color:#14352a;font:inherit;cursor:pointer;box-shadow:0 2px 4px rgba(13,57,38,.05);-webkit-tap-highlight-color:rgba(6,199,85,.10);touch-action:manipulation;}
#sc-r40-share .sc-r44-step:active{background:#eaf9f0;transform:scale(.995);}
#sc-r40-share .sc-r44-step:focus-visible{outline:3px solid #06c755;outline-offset:2px;}
#sc-r40-share .sc-r44-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#06c755;color:#fff;font-size:14px;font-weight:900;}
#sc-r40-share .sc-r44-symbol{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#f0faf5;color:#078e56;}
#sc-r40-share .sc-r44-symbol svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;}
#sc-r40-share .sc-r44-text{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:2px;}
#sc-r40-share .sc-r44-text strong{font-size:15px;line-height:1.35;font-weight:900;color:#143b2d;}
#sc-r40-share .sc-r44-text small{display:block;font-size:11.5px;line-height:1.5;font-weight:500;color:#52665d;overflow-wrap:anywhere;}
#sc-r40-share .sc-r44-chevron{flex:0 0 auto;font-size:23px;line-height:1;color:#75827b;padding-left:2px;}
#sc-r40-share .sc-r44-cancel{min-height:55px;}
#sc-r40-share .sc-r44-brand{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:18px;font-weight:900;}
#sc-r40-share .sc-r44-rednote{font-size:11px;letter-spacing:-.04em;background:#ff2442;}
#sc-r40-share .sc-r44-line{font-size:12px;background:#06c755;}
#sc-r40-share .sc-r44-x{background:#111;color:#fff;}
#sc-r40-share .sc-r44-instagram{background:linear-gradient(135deg,#8a3ab9,#e95950,#fccc63);}
@media(max-width:430px){#sc-r40-share .sc-r44-action-panel .sc-r44-caption{max-height:250px;min-height:195px;}#sc-r40-share .sc-r44-step{gap:8px;padding:9px 10px;}#sc-r40-share .sc-r44-number{flex-basis:27px;height:27px;}#sc-r40-share .sc-r44-symbol{flex-basis:41px;width:41px;height:41px;}#sc-r40-share .sc-r44-text strong{font-size:14px;}#sc-r40-share .sc-r44-text small{font-size:11px;}}
@media(max-height:760px){#sc-r40-share .sc-r44-action-panel{max-height:96vh;padding:10px 11px 12px;}#sc-r40-share .sc-r44-action-panel .sc-r44-caption{max-height:150px;min-height:120px;margin-bottom:9px;}#sc-r40-share .sc-r44-actions{gap:7px;}#sc-r40-share .sc-r44-step{min-height:56px;padding:8px 9px;}#sc-r40-share .sc-r44-cancel{min-height:49px;}}
@media(max-height:650px){#sc-r40-share .sc-r44-action-panel .sc-r44-caption{max-height:100px;min-height:72px;}#sc-r40-share .sc-r44-text small{font-size:10.5px;line-height:1.32;}#sc-r40-share .sc-r44-symbol{flex-basis:36px;width:36px;height:36px;}#sc-r40-share .sc-r44-brand{width:34px;height:34px;}#sc-r40-share .sc-r44-step{min-height:50px;padding:6px 8px;}#sc-r40-share .sc-r44-cancel{min-height:45px;}}
