/* 比較画面: 枠は薄い外フチと丸角だけ。PCは高さ最優先(上下8px)、案名と操作は枠の左右 */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#eef0f2;color:#24313a;font:16px/1.7 "Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic Medium","Yu Gothic",Meiryo,sans-serif}
p,h2,ul{margin:0}
a{color:#1f4f7a;text-underline-offset:.25em}
:focus-visible{outline:3px solid #1f6fd1;outline-offset:3px}
.nw{white-space:nowrap}
.skip{position:absolute;left:8px;top:-200px;background:#fff;padding:10px 16px;z-index:9}
.skip:focus{top:8px}

.hub{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px;height:100vh;height:100svh;padding:8px 16px;overflow:hidden}
.stage{display:flex;gap:24px;align-items:flex-start;height:100%}
.variant{height:100%;display:flex;flex-direction:column}
.vhead{display:none}
.device{width:392px;height:100%;border:1px solid #c6cdd4;border-radius:20px;overflow:hidden;background:#fff}
.device iframe{display:block;width:390px;height:100%;border:0}

.side{overflow-y:auto;max-height:100%;padding:4px 4px}
.side-l{justify-self:end;max-width:300px}
.side-r{justify-self:start;max-width:300px}
.proj{padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #d3d9de}
.proj-name{font-weight:700;font-size:18px}
.proj-title{color:#4c5963}
.proj-title .nw{display:block}
.vmark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#24364b;color:#fff;font-weight:700;font-size:16px;line-height:1}
.vinfo h2{font-size:20px;line-height:1.5;margin:8px 0 6px}
.vnote{color:#3b4852}
.vpoints{margin:12px 0 0;padding-left:1.2em;color:#4c5963}
.vpoints li+li{margin-top:4px}
.open{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:14px;padding:0 16px;border:1px solid #24364b;border-radius:8px;background:#fff;color:#24364b;font-weight:700;text-decoration:none}
.open::after{content:"↗";margin-left:6px}
.common{margin-top:16px;padding-top:12px;border-top:1px solid #d3d9de;font-size:14px;color:#56636d}

/* 中くらいの幅: 左右の欄を上の1行にまとめ、枠の上に案名 */
@media (max-width:1179px){
  .hub{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px;padding:8px 12px}
  .side-l{justify-self:stretch;max-width:none;padding:0 4px;overflow:visible}
  .side-l .vinfo,.side-l .common,.side-r{display:none}
  .proj{display:flex;flex-wrap:wrap;gap:0 16px;align-items:baseline;padding:0;margin:0;border:0}
  .proj-title .nw{display:inline}
  .stage{justify-content:center;min-height:0}
  .variant{min-height:0}
  .vhead{display:flex;align-items:center;justify-content:space-between;gap:12px;width:392px;min-height:44px;margin-bottom:4px}
  .vhead p{display:flex;align-items:center;gap:8px;font-weight:700}
  .vhead .vmark{width:28px;height:28px}
  .vhead a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .vhead a::after{content:"↗";margin-left:4px}
  .device{flex:1;min-height:0}
}
/* スマホ・狭い画面: 2案を縦に並べる */
@media (max-width:839px){
  .hub{display:block;height:auto;overflow:visible;padding:8px 12px 24px}
  .side-l{padding:4px 4px 8px}
  .stage{flex-direction:column;align-items:center;height:auto;gap:28px}
  .variant{width:100%;max-width:392px;height:auto}
  .vhead{width:100%}
  .device{width:100%;height:calc(100svh - 76px);min-height:520px;flex:none}
  .device iframe{width:100%}
}
