

:root{
  --bg:#ffffff;
  --ink:#1b1c1e;
  --ink-soft:#55585d;
  --ink-faint:#8a8f96;
  --line:#e2e4e8;
  --line-soft:#eef0f3;
  --brand:#c8241c;
  --brand-dark:#a51810;
  --link:#1a56b8;
  --chip:#f3f4f6;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--link);}
img{max-width:100%;}

body{overflow-x:hidden;}

.start{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 20px 80px;
  gap:0;
}
.start-logo{
  font-size:clamp(34px,9vw,60px);
  font-weight:800;
  letter-spacing:.02em;
  margin:0 0 4px;
}
.start-logo .y{color:var(--brand);}
.start-logo .s{color:var(--ink);}
.start-tag{
  color:var(--ink-faint);
  font-size:13px;
  letter-spacing:.14em;
  margin:0 0 30px;
}
.start-form{
  width:100%;
  max-width:560px;
  display:flex;
  gap:0;
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:0 1px 6px rgba(0,0,0,.06);
  overflow:hidden;
  background:#fff;
}
.start-form:focus-within{box-shadow:0 2px 12px rgba(0,0,0,.12);border-color:#cfd2d7;}
.start-input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:15px 22px;
  font-size:16px;
  font-family:inherit;
  background:transparent;
  color:var(--ink);
}

.start-fake{
  display:flex;
  align-items:center;
  user-select:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.start-btn{
  flex:none;
  border:0;
  background:var(--brand);
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  padding:0 28px;
  cursor:pointer;
  transition:background .15s;
}
.start-btn:hover{background:var(--brand-dark);}
.start-note{
  margin-top:40px;
  color:var(--ink-faint);
  font-size:12px;
  text-align:center;
  line-height:1.9;
}

.gbar-form{
  flex:none;
  order:-1;
  display:flex;
  align-items:center;
  height:28px;
  min-width:180px;
  max-width:340px;
  margin-right:4px;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:#fff;
}
.gbar-form:focus-within{border-color:#b9bdc3;}
.gbar-input{
  flex:1;min-width:0;border:0;outline:0;
  height:26px;line-height:26px;padding:0 12px;
  font-size:16px;font-family:inherit;background:transparent;color:var(--ink);
}
.gbar-btn{
  flex:none;border:0;background:var(--brand);color:#fff;
  font-family:inherit;font-size:12px;font-weight:700;height:100%;padding:0 14px;
  cursor:pointer;transition:background .15s;
}
.gbar-btn:hover{background:var(--brand-dark);}
.gbar-msg{
  position:fixed;
  top:48px;left:0;right:0;
  z-index:99999;
  text-align:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s;
}
.gbar-msg.show{opacity:1;}
.gbar-msg span{
  display:inline-block;
  background:#2b2d31;color:#fff;
  font-size:13px;padding:7px 16px;border-radius:8px;
  box-shadow:0 4px 14px rgba(0,0,0,.2);
}

.vhist-bar{overflow:hidden;max-width:100vw;}
.vhist-bar-list{min-width:0;}

.vhist-bm-ico .vhist-fav{width:100%;height:100%;object-fit:contain;border-radius:3px;display:block;}

.vhist-bar-list .vhist-bar-icon{
  border-left:1px solid #cdd0d4 !important;
  margin-left:2px !important;
  padding:0 9px !important;
  height:24px;
}

.vhist-bar > .vhist-bar-icon:last-of-type{
  border-left:none !important;
  margin-left:0 !important;
  padding:0 5px !important;
}

body.node{padding-top:40px;}

.assist-toggle{
  flex:none; order:-1;
  display:flex; align-items:center; gap:6px;
  height:28px; padding:0 4px 0 8px; margin-right:2px;
}
.assist-label{ font-size:10px; line-height:1.05; color:#666; white-space:nowrap; }
.assist-switch{
  position:relative; flex:none; width:34px; height:18px;
  border:0; border-radius:999px; background:#c4c7cc; cursor:pointer; padding:0;
  transition:background .18s;
}
.assist-toggle.on .assist-switch{ background:var(--brand); }
.assist-knob{
  position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:left .18s;
}
.assist-toggle.on .assist-knob{ left:18px; }
.assist-help{
  flex:none; width:18px; height:18px; padding:0;
  border:none; border-radius:50%; background:#8a8a8a;
  color:#fff; font-size:10px; line-height:1; cursor:pointer; font-weight:bold;
  display:flex; align-items:center; justify-content:center;
}
.assist-help:hover{ background:#6a6a6a; }
.assist-tip{
  position:fixed; z-index:99999;
  width:150px; max-width:calc(100vw - 16px); padding:9px 12px; border-radius:8px;
  background:#333; color:#fff; font-size:11px; line-height:1.65; font-weight:400;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}
.assist-tip b{ color:#ffd54a; font-weight:700; }
.assist-tip::before{
  content:""; position:absolute; bottom:100%; left:var(--arrow-left, 12px);
  border:6px solid transparent; border-bottom-color:#333;
}

.assist-hit{
  color:var(--brand);
  cursor:pointer;
  white-space:nowrap;
  text-decoration:none;
}
.assist-hit .assist-text{
  border-bottom:2px dotted #ccc;
  font-weight:bold;
  display:inline-block;
}
.assist-hit:hover .assist-text{ background:rgba(200,36,28,.08); }
.assist-hit .assist-ico{ display:inline-flex; align-items:center; margin-left:3px; }
.assist-hit .assist-ico svg{ width:11px; height:11px; }

.assist-mark.assist-lit{ color:var(--brand); border-bottom:2px dotted #ccc; font-weight:bold; cursor:pointer; }
.assist-mark .assist-ico{ display:inline-flex; align-items:center; margin-left:3px; }
.assist-mark .assist-ico svg{ width:11px; height:11px; }

@media (max-width:600px){

  .vhist-bar{height:46px !important;}
  body.node{padding-top:46px;}

  .vhist-bm--active{display:none !important;}

  .vhist-bar .vhist-bar-icon{display:none !important;}
  .gbar-form{flex:1;min-width:0;max-width:none;height:34px;margin-right:2px;}
  .gbar-input{height:32px;line-height:32px;font-size:16px;}
  .gbar-msg{top:52px;}
  .assist-toggle{height:34px;gap:4px;padding:0 2px 0 6px;}
  .assist-label{font-size:9px;}
}

.global-footer{
  border-top:1px solid var(--line);
  background:var(--bg);
  padding:18px 16px 26px;
  text-align:center;
  color:var(--ink-faint);
  font-size:11.5px;
  line-height:1.9;
}
.global-footer .gf-links{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:0 0 8px;}
.global-footer .gf-sep{color:var(--line);}
.global-footer .gf-copy{margin:0;}
.global-footer .gf-copy-link{color:inherit;text-decoration:none;}
.global-footer .gf-copy-link:hover{color:var(--ink);text-decoration:underline;}

.gf-link{
  background:none;border:0;padding:2px 2px;margin:0;
  font-family:inherit;font-size:11.5px;color:var(--ink-soft);
  cursor:pointer;text-decoration:none;line-height:1;
}
.gf-link:hover{text-decoration:underline;}
.gf-link:focus-visible{outline:2px solid var(--link);outline-offset:2px;}
.gf-x{display:inline-flex;align-items:center;color:var(--ink-soft);}
.gf-x:hover{color:var(--ink);text-decoration:none;}

.gf-modal{
  display:none;position:fixed;inset:0;z-index:100000;
  background:rgba(0,0,0,.5);justify-content:center;align-items:center;padding:20px;
}
.gf-modal.open{display:flex;}
.gf-modal-box{
  background:#fff;color:var(--ink);border-radius:8px;
  max-width:640px;width:100%;max-height:80vh;overflow-y:auto;
  padding:30px 30px 34px;position:relative;box-shadow:0 12px 40px rgba(0,0,0,.3);
  text-align:left;line-height:1.8;
}
.gf-modal-close{
  position:absolute;top:10px;right:14px;background:none;border:0;
  font-size:26px;line-height:1;color:#999;cursor:pointer;padding:4px;
}
.gf-modal-close:hover{color:#333;}
.gf-modal-title{font-size:18px;font-weight:700;margin:0 0 20px;color:#222;}
.gf-modal-body h3{font-size:14px;font-weight:700;margin:18px 0 6px;color:#333;}
.gf-modal-body p{font-size:13.5px;color:#555;line-height:1.85;margin:0 0 8px;}
.gf-modal-body ul{font-size:13.5px;color:#555;line-height:1.85;margin:8px 0 8px 20px;padding:0;}
.gf-modal-body a{color:var(--link);}
@media (max-width:600px){
  .gf-modal{padding:12px;}
  .gf-modal-box{padding:22px 18px 26px;}
}

.nf{min-height:72vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 22px;}
.nf-code{font-size:clamp(52px,14vw,76px);font-weight:800;color:var(--line);margin:0 0 4px;letter-spacing:.06em;line-height:1;}
.nf-title{font-size:clamp(18px,4.6vw,23px);font-weight:700;margin:0 0 14px;color:var(--ink);}
.nf-text{color:var(--ink-soft);font-size:14px;line-height:1.95;margin:0 0 28px;}
.nf-back{display:inline-block;color:var(--brand);text-decoration:none;font-weight:700;font-size:14px;border:1px solid var(--brand);border-radius:999px;padding:9px 22px;}
.nf-back:hover{background:var(--brand);color:#fff;}

.stub{max-width:640px;margin:0 auto;padding:60px 22px;text-align:center;color:var(--ink-soft);}
.stub h2{font-size:20px;color:var(--ink);margin:0 0 10px;}
.stub p{font-size:14px;}
