/* Modern wrapper for restored static size guide pages. */
:root { --sg-blue:#256ea8; --sg-blue-dark:#194d78; --sg-line:#d9e3ec; --sg-bg:#f5f8fb; --sg-card:#ffffff; --sg-muted:#667987; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.modern-sizeguide { margin:0; background:var(--sg-bg); color:#26313a; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; font-size:15px; line-height:1.8; }
a { color:var(--sg-blue); }
.sg-header { background:#fff; border-bottom:1px solid var(--sg-line); }
.sg-header-inner { max-width:1120px; margin:0 auto; padding:18px 20px; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.sg-logo { text-decoration:none; color:#1e2c38; font-weight:800; letter-spacing:.02em; }
.sg-back { color:var(--sg-blue); text-decoration:none; font-weight:700; }
.sg-shell { max-width:1120px; margin:0 auto; padding:28px 20px 60px; display:grid; grid-template-columns:230px minmax(0,1fr); gap:24px; }
.sg-side { position:sticky; top:18px; align-self:start; background:#fff; border:1px solid var(--sg-line); border-radius:12px; padding:14px; box-shadow:0 10px 30px rgba(31,58,84,.06); }
.sg-side-title { margin:0 0 10px; color:var(--sg-blue-dark); font-weight:800; }
.sg-side a { display:block; padding:8px 10px; border-radius:8px; color:#314453; text-decoration:none; font-weight:700; font-size:13px; }
.sg-side a:hover { background:#edf6ff; color:var(--sg-blue-dark); }
.sg-content { min-width:0; background:#fff; border:1px solid var(--sg-line); border-radius:14px; padding:24px; box-shadow:0 16px 42px rgba(31,58,84,.08); }
#pankuzu { margin:0 0 16px; color:var(--sg-muted); font-size:13px; }
.guide-hero { width:auto; margin:0 0 18px; padding:24px; border:0; border-radius:14px; background:linear-gradient(135deg,#eaf6ff,#fff); color:var(--sg-blue-dark); font-size:28px; font-weight:800; }
#headmenu { margin:18px 0 10px; padding:10px 12px; border-radius:9px; background:var(--sg-blue); color:#fff; font-weight:800; }
.guide-menu { width:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0 24px; }
.guide-menu a { display:flex; align-items:center; min-height:48px; padding:11px 13px; border:1px solid #b8d4ee; border-radius:9px; background:#fff; color:var(--sg-blue-dark); text-decoration:none; font-weight:800; }
.guide-menu a:hover { background:#eef7ff; }
.sg-content hr { border:0 !important; border-top:1px solid var(--sg-line) !important; width:100% !important; margin:22px 0 !important; }
.sg-content table { width:100% !important; border-collapse:separate; border-spacing:0; margin:12px 0 18px; }
.sg-content td { vertical-align:top; }
#midasi, #nameti, .txspkoti, #submidasi { color:var(--sg-blue-dark); font-weight:800; }
#midasi { display:block; padding:10px 12px; border-radius:8px; background:#edf6ff; }
#hyoutitle, #hyoukoumoku, #hyoumidasi, #hyoukoumoku2 { border:1px solid var(--sg-line); padding:7px 9px; }
#hyoutitle, #hyoukoumoku, #hyoumidasi { background:#eef6fd; font-weight:800; color:var(--sg-blue-dark); }
#imgspace { width:210px; padding:8px 18px 8px 0; text-align:center; }
#imgspace img { max-width:100%; height:auto; border-radius:8px; }
#textspace { padding:8px 0; }
#txmain { background:#fbfdff; border:1px solid #e6eef5; border-radius:10px; padding:12px 14px; }
#list li { margin:2px 0; }
.sg-content iframe { max-width:100%; border:1px solid var(--sg-line) !important; border-radius:10px; background:#fff; }
#page-top { position:fixed; right:18px; bottom:18px; margin:0; }
#page-top a { display:block; padding:10px 12px; border-radius:999px; background:var(--sg-blue); color:#fff; text-decoration:none; font-weight:800; box-shadow:0 8px 20px rgba(37,110,168,.25); }
@media (max-width:900px) { .sg-shell { grid-template-columns:1fr; padding:18px 12px 50px; } .sg-side { position:static; } .sg-side nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; } .sg-content { padding:16px; } .guide-menu { grid-template-columns:1fr; } .guide-hero { font-size:23px; padding:20px; } #imgspace { width:150px; } }
@media (max-width:640px) { .sg-header-inner { align-items:flex-start; flex-direction:column; } .sg-content table, .sg-content tbody, .sg-content tr, .sg-content td { display:block; width:100% !important; } #imgspace { width:100%; padding:8px 0; } #imgspace img { max-width:220px; } #textspace { width:100%; } .sg-side nav { grid-template-columns:1fr; } }
