
    #mgh-rwc-v1{--bg:#fff;--ink:#242424;--muted:#666;--line:#e5e5e5;--soft:#f7f7f5;--accent:#263238;--high:#b42318;--mid:#9a6700;--ok:#1f7a4d;max-width:920px;margin:0 auto;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.8;box-sizing:border-box}
    #mgh-rwc-v1 *{box-sizing:border-box}
    #mgh-rwc-v1 .mgh-hero{padding:30px 22px;border:1px solid var(--line);border-radius:18px;background:var(--bg)}
    #mgh-rwc-v1 .mgh-title,#mgh-rwc-v1 .mgh-h2,#mgh-rwc-v1 .mgh-h3{line-height:1.45;margin-top:0;font-weight:700}
    #mgh-rwc-v1 .mgh-title{font-size:clamp(1.65rem,4vw,2.35rem);margin-bottom:14px}
    #mgh-rwc-v1 .mgh-h2{font-size:1.45rem;margin-bottom:16px}
    #mgh-rwc-v1 .mgh-h3{font-size:1.08rem;margin-bottom:8px}
    #mgh-rwc-v1 p{margin:0 0 14px}
    #mgh-rwc-v1 .mgh-lead{font-size:1.04rem}
    #mgh-rwc-v1 .mgh-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
    #mgh-rwc-v1 .mgh-tag{padding:5px 11px;background:var(--soft);border-radius:999px;font-size:.88rem;font-weight:700}
    #mgh-rwc-v1 .mgh-note{font-size:.88rem;color:var(--muted);padding:12px 14px;background:var(--soft);border-radius:10px}
    #mgh-rwc-v1 .mgh-progress-wrap{position:sticky;top:0;z-index:10;margin:22px 0 14px;padding:10px 0;background:rgba(255,255,255,.96);backdrop-filter:blur(4px)}
    #mgh-rwc-v1 .mgh-progress-meta{display:flex;justify-content:space-between;gap:10px;font-size:.86rem;color:var(--muted);margin-bottom:6px}
    #mgh-rwc-v1 .mgh-progress{height:8px;background:#ececea;border-radius:99px;overflow:hidden}
    #mgh-rwc-v1 .mgh-progress>span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s ease}
    #mgh-rwc-v1 .mgh-section{margin:36px 0 42px;clear:both}
    #mgh-rwc-v1 .mgh-section-head{padding:18px 20px;background:var(--soft);border-left:4px solid var(--accent);border-radius:10px;margin:0 0 18px;clear:both}
    #mgh-rwc-v1 .mgh-section-head p{margin:4px 0 0;color:var(--muted);font-size:.9rem}
    #mgh-rwc-v1 .mgh-question{padding:22px 20px;border:1px solid #d7dee5;border-radius:14px;margin:18px 0;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.035);overflow:hidden}
    #mgh-rwc-v1 .mgh-qhead{display:block}
    #mgh-rwc-v1 .mgh-qnum{display:inline-block;font-size:.8rem;font-weight:800;color:var(--muted);margin-bottom:6px}
    #mgh-rwc-v1 .mgh-qtext{font-weight:700;line-height:1.7;margin-bottom:13px}
    #mgh-rwc-v1 .mgh-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
    #mgh-rwc-v1 .mgh-option{position:relative}
    #mgh-rwc-v1 .mgh-option input{position:absolute;opacity:0;pointer-events:none}
    #mgh-rwc-v1 .mgh-option label{display:flex;align-items:center;justify-content:center;min-height:56px;padding:9px 10px;border:1px solid #d8d8d5;border-radius:10px;text-align:center;font-size:.9rem;line-height:1.45;cursor:pointer;transition:.15s ease;background:#fff}
    #mgh-rwc-v1 .mgh-option input:checked+label{border:2px solid var(--accent);background:#f1f3f3;font-weight:800}
    #mgh-rwc-v1 .mgh-option input:focus-visible+label{outline:3px solid rgba(38,50,56,.2);outline-offset:2px}
    #mgh-rwc-v1 .mgh-actions{margin:28px 0;text-align:center}
    #mgh-rwc-v1 button.mgh-submit,#mgh-rwc-v1 button.mgh-reset{appearance:none;border:0;border-radius:12px;padding:14px 22px;font-weight:800;font-size:1rem;cursor:pointer}
    #mgh-rwc-v1 button.mgh-submit{background:var(--accent);color:#fff;min-width:260px}
    #mgh-rwc-v1 button.mgh-submit:hover{opacity:.9}
    #mgh-rwc-v1 button.mgh-reset{background:#efefed;color:var(--ink);margin-top:12px}
    #mgh-rwc-v1 .mgh-error{display:none;margin:14px auto 0;max-width:620px;padding:12px 14px;border-radius:10px;background:#fff2f0;color:#8a1c13;font-weight:700;text-align:left}
    #mgh-rwc-v1 .mgh-results{margin-top:38px;padding-top:10px}
#mgh-rwc-v1 .mgh-results[hidden]{display:none !important}
    #mgh-rwc-v1 .mgh-result-card{border:1px solid var(--line);border-radius:18px;padding:22px;margin:16px 0;background:#fff}
    #mgh-rwc-v1 .mgh-overall{border-top:6px solid var(--mid)}
    #mgh-rwc-v1 .mgh-overall[data-level="high"]{border-top-color:var(--high)}
    #mgh-rwc-v1 .mgh-overall[data-level="low"]{border-top-color:var(--ok)}
    #mgh-rwc-v1 .mgh-badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#fff3cd;color:#6e5200;font-weight:800;font-size:.84rem;margin-bottom:10px}
    #mgh-rwc-v1 .mgh-overall[data-level="high"] .mgh-badge{background:#fff0ee;color:var(--high)}
    #mgh-rwc-v1 .mgh-overall[data-level="low"] .mgh-badge{background:#eaf7f0;color:var(--ok)}
    #mgh-rwc-v1 .mgh-chart-wrap{display:grid;grid-template-columns:minmax(280px,1fr) minmax(240px,.72fr);gap:18px;align-items:center}
    #mgh-rwc-v1 .mgh-canvas-box{min-height:380px;position:relative}
    #mgh-rwc-v1 canvas{display:block;width:100%;height:380px}
    #mgh-rwc-v1 .mgh-score-list{display:grid;gap:8px}
    #mgh-rwc-v1 .mgh-score-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 12px;background:var(--soft);border-radius:9px}
    #mgh-rwc-v1 .mgh-score-row strong{font-variant-numeric:tabular-nums}
    #mgh-rwc-v1 .mgh-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
    #mgh-rwc-v1 .mgh-count{padding:14px;border-radius:12px;text-align:center;background:var(--soft)}
    #mgh-rwc-v1 .mgh-count b{display:block;font-size:1.5rem;line-height:1.2}
    #mgh-rwc-v1 .mgh-count.high{background:#fff0ee;color:#8e1b12}
    #mgh-rwc-v1 .mgh-count.mid{background:#fff7df;color:#765600}
    #mgh-rwc-v1 .mgh-count.ok{background:#eaf7f0;color:#17623d}
    #mgh-rwc-v1 .mgh-risk-group{margin-top:20px}
    #mgh-rwc-v1 .mgh-risk-item{padding:13px 14px;margin:9px 0;border-radius:10px;background:var(--soft);border-left:4px solid #aaa}
    #mgh-rwc-v1 .mgh-risk-item.high{background:#fff4f2;border-left-color:var(--high)}
    #mgh-rwc-v1 .mgh-risk-item.mid{background:#fff9e9;border-left-color:var(--mid)}
    #mgh-rwc-v1 .mgh-risk-title{font-weight:800;margin-bottom:3px}
    #mgh-rwc-v1 .mgh-risk-detail{font-size:.91rem;color:#555}
    #mgh-rwc-v1 .mgh-none{padding:14px;background:#eef8f2;border-radius:10px;color:#286348}
    #mgh-rwc-v1 .mgh-service{background:#f4f5f4}
    #mgh-rwc-v1 .mgh-coming{display:inline-block;padding:7px 13px;border-radius:999px;background:#dedfdd;font-weight:800;margin-top:4px}
    #mgh-rwc-v1 .mgh-sources{font-size:.86rem;color:var(--muted)}
    #mgh-rwc-v1 .mgh-sources a{color:inherit;text-decoration:underline}
    #mgh-rwc-v1 .mgh-disclaimer{font-size:.86rem;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
    @media(max-width:720px){
      #mgh-rwc-v1 .mgh-options{grid-template-columns:1fr}
      #mgh-rwc-v1 .mgh-option label{min-height:48px;justify-content:flex-start;text-align:left}
      #mgh-rwc-v1 .mgh-chart-wrap{grid-template-columns:1fr}
      #mgh-rwc-v1 .mgh-canvas-box{min-height:330px}
      #mgh-rwc-v1 canvas{height:330px}
      #mgh-rwc-v1 .mgh-counts{grid-template-columns:1fr}
      #mgh-rwc-v1 .mgh-hero{padding:24px 16px}
      #mgh-rwc-v1 .mgh-question{padding:17px 14px}
    }
  
#mgh-rwc-v1 .mgh-qhead{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #edf0f2;
}
#mgh-rwc-v1 .mgh-qnum{
  flex:0 0 auto;
  min-width:48px;
  text-align:center;
}
#mgh-rwc-v1 .mgh-qtext{
  flex:1;
  font-weight:700;
  line-height:1.7;
}
#mgh-rwc-v1 .mgh-options{
  display:grid;
  gap:10px;
}
#mgh-rwc-v1 .mgh-option{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}
#mgh-rwc-v1 .mgh-option label{
  display:block;
  width:100%;
  padding:11px 12px;
  border:1px solid #e5e9ed;
  border-radius:10px;
  background:#fafbfc;
  line-height:1.55;
  cursor:pointer;
}
#mgh-rwc-v1 .mgh-option input[type="radio"]{
  flex:0 0 auto;
}
#mgh-rwc-v1 .mgh-option input[type="radio"]:checked + label{
  border-color:#6f7d73;
  background:#f1f5f2;
  font-weight:700;
}
#mgh-rwc-v1 .mgh-question.mgh-answered{
  border-color:#aebbb1;
}
#mgh-rwc-v1 .mgh-section + .mgh-section{
  margin-top:48px;
}
@media (max-width:640px){
  #mgh-rwc-v1 .mgh-question{padding:18px 14px;margin:14px 0}
  #mgh-rwc-v1 .mgh-qhead{gap:9px;padding-bottom:12px;margin-bottom:12px}
  #mgh-rwc-v1 .mgh-qnum{min-width:42px}
  #mgh-rwc-v1 .mgh-option label{padding:10px}
}



#mgh-rwc-v1 .mgh-section-head .mgh-h2{margin-bottom:4px;font-size:1.3rem}
#mgh-rwc-v1 .mgh-section:first-child{margin-top:30px}
#mgh-rwc-v1 .mgh-question:first-of-type{margin-top:0}
#mgh-rwc-v1 .mgh-result-card .mgh-h2{margin-bottom:12px}
#mgh-rwc-v1 .mgh-risk-box .mgh-h3{margin-bottom:8px}

/* Ver.1.1.0: mobile readability refinements */
@media (max-width:640px){
  #mgh-rwc-v1 .mgh-title{font-size:1.55rem;line-height:1.5;word-break:normal;overflow-wrap:anywhere}
  #mgh-rwc-v1 .mgh-lead{font-size:1rem;line-height:1.75}
  #mgh-rwc-v1 .mgh-hero p:not(.mgh-lead):not(.mgh-note){font-size:.94rem;line-height:1.85}
  #mgh-rwc-v1 .mgh-tags{margin:15px 0;gap:7px}
  #mgh-rwc-v1 .mgh-tag{font-size:.82rem;padding:4px 9px}
  #mgh-rwc-v1 .mgh-section{margin:30px 0 36px}
  #mgh-rwc-v1 .mgh-section + .mgh-section{margin-top:38px}
}
