/* Large, complete information-menu icons. */
.site-sidebar a{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:10px;padding:12px 10px;white-space:normal;line-height:1.5;min-width:0;box-sizing:border-box}
.site-sidebar a::before{content:"";display:block;width:56px;height:56px;flex:none;background-repeat:no-repeat;background-size:contain;background-position:center;filter:drop-shadow(0 0 5px #167aa755)}
.site-sidebar a .ui-icon{display:none}
.nav .ui-icon,.bottom-nav .ui-icon{width:52px;height:52px;flex:0 0 52px}
.site-sidebar a[href*="venues.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M32%2057S13%2037%2013%2024a19%2019%200%201%201%2038%200c0%2013-19%2033-19%2033Z%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2224%22%20r%3D%227%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="plans.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M6%2040h52L45%2051H19ZM18%2034h30l-9-10H28ZM29%2024l3-9h9l-2%209M5%2057q8-5%2016%200t16%200t16%200%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="analysis.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M10%2054h44M16%2048V32h8v16m8%200V20h8v28m8%200V10h6v38%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="race-interest.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M9%2055h46M13%2050V35h11v15m2%200V19h12v31m2%200V28h11v22M32%207v6M8%2021l5%204M51%2015l5-4%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="players.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2218%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%2056v-9c0-19%2040-19%2040%200v9Z%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="results.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M19%208h26v15c0%2020-26%2020-26%200ZM19%2013H9v7c0%209%206%2012%2013%2012m23-19h10v7c0%209-6%2012-13%2012M32%2038v12M20%2056h24M24%2050h16%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="articles.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%2244%22%20height%3D%2244%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M18%2020h12v12H18Zm20%200h8M38%2028h8M18%2040h28M18%2047h28%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="amber.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20x%3D%2210%22%20y%3D%2219%22%20width%3D%2244%22%20height%3D%2234%22%20rx%3D%2212%22%2F%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2234%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2241%22%20cy%3D%2234%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M24%2044h16M32%2019V9M25%208h14M4%2030v12m56-12v12%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="guide.html"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2224%22%2F%3E%3Cpath%20d%3D%22M24%2023c0-12%2021-12%2018%200-1%206-10%206-10%2014M32%2046h.1%22%2F%3E%3C%2Fsvg%3E")}
.site-sidebar a[href*="member/contact.php"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20stroke%3D%22url%28%23g%29%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%23ffe599%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f6ca67%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235fd8ff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20x%3D%227%22%20y%3D%2214%22%20width%3D%2250%22%20height%3D%2236%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22m8%2017%2024%2019%2024-19%22%2F%3E%3C%2Fsvg%3E")}

@media(min-width:981px){.page-layout{grid-template-columns:230px minmax(0,1fr)}.site-sidebar{width:auto;max-width:230px}}
@media(max-width:980px){.site-sidebar a{display:flex;flex-direction:column;gap:6px;min-width:112px;text-align:center;padding:10px 8px;white-space:nowrap}.site-sidebar a::before{width:56px;height:56px}.bottom-nav a{padding:8px 6px}.bottom-nav{min-height:80px}}
.member-entry-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:960px;margin:0 auto 24px;box-sizing:border-box}
.member-entry-header .entry-logo img{display:block;width:220px;max-width:100%;height:auto}
.member-entry-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.member-entry-actions a{display:flex;align-items:center;justify-content:center;min-width:150px;min-height:52px;padding:8px 18px;box-sizing:border-box;border:1px solid #f2cd75;border-radius:28px;color:#fff;text-decoration:none;background:#102a3b;font-weight:700}
.member-entry-actions .entry-register{background:linear-gradient(135deg,#ffedb0,#d99624);color:#142033}
.member-entry-actions a:hover,.member-entry-actions a:focus-visible{outline:2px solid #72dfff;outline-offset:3px}
@media(max-width:600px){.member-entry-header{justify-content:center}.member-entry-header .entry-logo img{width:200px}.member-entry-actions a{min-width:140px}}

.has-sidebar .site-sidebar a[href]::before{width:56px;height:56px;min-width:56px;flex:0 0 56px}
.member-entry-actions a{padding:0;border:0;background:none!important;min-width:150px}
.member-entry-actions img{display:block;width:170px;height:auto;max-width:100%}
@media(max-width:980px){.has-sidebar .site-sidebar a{white-space:normal;min-width:130px;max-width:150px;overflow-wrap:anywhere}}
@media(max-width:600px){.member-entry-actions a{min-width:135px}.member-entry-actions img{width:140px}}
/* Smartphone layout refinement — 2026-10-10 */
@media(max-width:800px){
 .venue-card:has(>.result-table){overflow:visible;max-width:100%;padding:12px 10px;border-width:9px;gap:10px}
 .venue-card:has(>.result-table)::before{display:none;content:none}
 .venue-card>.result-table{display:block;width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:separate}
 .venue-card>.result-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .venue-card>.result-table tbody{display:grid;width:100%;gap:8px}
 .venue-card>.result-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px;padding:11px 8px;border:1px solid #38536b;border-radius:9px;background:#102a3e}
 .venue-card>.result-table tbody tr:nth-child(even){background:#17354b}
 .venue-card>.result-table tbody td{display:block;min-width:0;width:auto;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:14px;line-height:1.5}
 .venue-card>.result-table tbody td::before{display:block;color:#b5c8d8;font-size:11px;line-height:1.4;font-weight:500;margin-bottom:3px}
 .venue-card>.result-table td:nth-child(1)::before{content:'締切'}
 .venue-card>.result-table td:nth-child(2)::before{content:'会場・R'}
 .venue-card>.result-table td:nth-child(3)::before{content:'三連単'}
 .venue-card>.result-table td:nth-child(4)::before{content:'判定'}
 .venue-card>.result-table td:nth-child(5)::before{content:'払戻／100円'}
 .venue-card>.result-table td:nth-child(6)::before{content:'状態'}
 .venue-card>.result-table td:nth-child(3){font-weight:800;color:#fff;font-size:16px;letter-spacing:.3px}
 .venue-card>.result-table td:nth-child(5){font-weight:700;color:#ffe3a0;font-variant-numeric:tabular-nums}
 .venue-card>.result-table .result-verdict{display:inline-block;font-size:13px;padding:2px 5px;max-width:100%;box-sizing:border-box}
 .venue-card>.result-table .prediction-kind{display:block;max-width:100%;font-size:11px;white-space:normal;line-height:1.5;margin-top:3px}
 .venue-card:has(>.result-table) .venue-head{gap:8px;flex-wrap:wrap;padding:8px 10px;margin:0}
 .venue-card:has(>.result-table) .venue-head h3{font-size:22px;margin:0}
 .venue-card:has(>.result-table) .venue-head .tag{font-size:12px;white-space:normal}
}
@media(max-width:600px){
 .has-sidebar .page-layout{padding:10px;gap:16px}
 .has-sidebar main.wrap{width:100%;min-width:0;margin:0}
 main.wrap .controls{gap:12px 10px;padding:16px 0 20px}
 main.wrap .controls label{min-width:0;line-height:1.5}
 main.wrap .controls select{box-sizing:border-box;max-width:100%;padding:10px 8px}
 main.wrap .controls .text-button{box-sizing:border-box;min-width:0}
 .has-sidebar .site-sidebar{padding:8px}
 .has-sidebar .site-sidebar a{padding:8px 6px;gap:6px}
 main.wrap .venue-grid,main.wrap .analysis-grid,main.wrap .player-grid,main.wrap .forecast-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 main.wrap .intro{padding:18px 16px}
 main.wrap .intro h1{font-size:clamp(23px,6.5vw,28px);line-height:1.45;overflow-wrap:anywhere}
 main.wrap .intro p{font-size:14px;line-height:1.7}
 main.wrap .notice{padding:12px;font-size:13px;line-height:1.8}
 main.wrap .analysis-card,main.wrap .forecast,main.wrap .hit-hero,main.wrap .public-article,main.wrap .guide-section{padding:16px 12px;border-width:10px;max-width:100%}
 main.wrap .venue-card:not(:has(>.result-table)){padding:16px 12px;border-width:10px;gap:10px}
 main.wrap .player-card,main.wrap .player-card.with-racer-visual{padding:16px;max-width:100%}
 main.wrap .player-card h3{font-size:22px;line-height:1.5;overflow-wrap:anywhere}
 main.wrap .section-title{gap:8px;flex-wrap:wrap}
 .article-controls{gap:10px;margin:18px 0;min-width:0}
 .article-controls label{flex-wrap:wrap;min-width:0;max-width:100%}
 .article-controls select{max-width:100%;box-sizing:border-box}
 .footer{overflow-wrap:anywhere}
}

/* 2026-10-12: keep scrolling inside the decorative frame. */
.page-layout{grid-template-columns:260px minmax(0,1fr)}
.page-layout>main{min-width:0;max-width:100%;box-sizing:border-box}
.site-sidebar{display:block;overflow:hidden;max-width:none;max-height:none;padding:30px 24px;box-sizing:border-box}
.sidebar-links{display:grid;gap:10px;max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px 6px 8px 2px}
.site-sidebar .sidebar-links a{display:grid;text-align:left;grid-template-columns:40px minmax(0,1fr);min-width:0;min-height:52px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;padding:10px 8px}
.site-sidebar .sidebar-links a:before{width:36px;height:36px}
.site-sidebar a:focus-visible{outline:2px solid #ffe2a1;outline-offset:-2px}
@media(max-width:900px){.page-layout{display:block}.site-sidebar{display:block;padding:14px;margin-bottom:20px;max-width:100%}.sidebar-links{grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px}.site-sidebar .sidebar-links a{font-size:14px;grid-template-columns:28px minmax(0,1fr)}.site-sidebar .sidebar-links a:before{width:26px;height:26px}}

/* Desktop optical alignment: shift the menu 8px inward without changing its width. */
@media(min-width:981px){.has-sidebar .site-sidebar{padding-left:32px;padding-right:16px}}
/* 2026-10-15: balanced menu columns inside the frame. */
@media(max-width:980px){
 .has-sidebar .site-sidebar .sidebar-links a{width:100%;max-width:none;min-width:0;box-sizing:border-box}
}
