body,
html {
  height: 100%;
}
body {
  font: normal 1em sans-serif;
  margin-left: 15px;
  margin-right: 15px;
  scroll-behavior: smooth;
}
a {
  color: #000a68;
}
a.user-name {
  white-space: pre-wrap;
}
h1 {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 0.2em;
  margin-bottom: 0.3em;
  text-shadow: 1px 1px 2px rgba(100,100,100,0.4);
  text-shadow: 2px 2px 3px rgba(140,140,140,0.25);
}
h2 {
  font-size: 1.3em;
  text-shadow: 1px 1px 1px rgba(100,100,100,0.4);
  text-shadow: 2px 2px 2px rgba(140,140,140,0.25);
  font-weight: bold;
  margin: 0.5em 0;
}
h3 {
  font-size: 1.1em;
  text-shadow: 1px 1px 1px rgba(100,100,100,0.4);
  text-shadow: 2px 2px 2px rgba(140,140,140,0.25);
  margin: 0.2em 0;
  font-weight: bold;
}
h4 {
  margin: 0.15em 0;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(100,100,100,0.4);
}
small {
  font-size: smaller;
}
strong {
  font-weight: bold;
}
fieldset {
  border: 1px dashed #888;
  padding: 0.8em;
  margin: 0.6em 0.2em;
}
input[type="number"] {
  width: 5ex;
}
*[data-helpicon] {
  display: inline-block;
  padding: 3px;
  font-size: 1.2em;
  font-size: 1.2rem;
  cursor: pointer;
}
#content {
  padding: 0;
  clear: both;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 60px);
}
#content:before {
  content: "";
  display: table;
}
#icpfooter {
  font-size: smaller;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  #icpfooter {
    display: none;
  }
}
body > header {
  text-align: center;
  margin-left: -15px;
  margin-right: -15px;
  padding: 4px 0 4px 8px;
  background-color: #000;
  background-color: #131313;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#565656), to(#131313));
  background-image: -moz-linear-gradient(top, #565656, #131313);
  border-bottom: 1px solid #aaa;
  color: #fff;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  line-height: 1.05;
}
body > header h1 {
  flex: auto 0 0;
  display: inline-block;
  margin: 0;
  font-family: 'Takao明朝', serif;
  font-size: 2em;
  text-shadow: 1px 1px 1px rgba(200,200,200,0.4);
}
body > header h1 a {
  text-decoration: none;
  color: #fff !important;
}
body > header #userinfo {
  padding: 0 5px;
}
#menu {
  display: contents;
}
#menu nav {
  display: inline-block;
}
#menu nav li {
  display: inline-block;
  white-space: nowrap;
  margin-right: 1em;
}
#menu nav li a {
  color: #fff !important;
  text-decoration: none;
}
#menu nav li a:hover {
  background-color: rgba(0,0,0,0.4);
  -webkit-box-shadow: 0 0 5px 5px rgba(0,0,0,0.4);
  -moz-box-shadow: 0 0 5px 5px rgba(0,0,0,0.4);
  box-shadow: 0 0 5px 5px rgba(0,0,0,0.4);
}
#menu #toolbar {
  text-align: right;
}
#menu #toolbar span.tool-button {
  display: inline-block;
  margin: 0 0.7em;
}
#menu #toolbar span.tool-button a {
  color: #fff !important;
}
#menu #toolbar span.tool-button.tool-disabled {
  color: #999;
}
#menu-open-icon {
  display: none;
  margin: 0 0.5em 0 auto;
}
#menu-open-icon button {
  appearance: none;
  border: none;
  background: none;
  color: #fff;
}
@media (max-width: 600px) {
  #menu {
    display: flex;
    flex-flow: column nowrap;
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    transition: left 0.2s ease-in-out;
    z-index: 20;
    color: #fff;
    border: 1px solid #fff;
  }
  #menu.open {
    left: 0;
  }
  #menu .menu-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.1);
    z-index: 999;
  }
  #menu nav {
    display: block;
    flex: auto 0 0;
    width: 80vw;
    z-index: 1000;
    background-color: rgba(0,0,0,0.78);
  }
  #menu nav li {
    display: block;
  }
  #menu #toolbar {
    flex: auto 1 0;
    width: 80vw;
    margin-left: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.78);
    text-align: left;
  }
  #menu nav li a,
  #menu #toolbar .tool-button {
    display: block;
    font-size: 1.2em;
    padding: 1em 0.1em 1em 0.2em;
    border-bottom: 1px solid #fff;
  }
  #menu-open-icon {
    display: block;
  }
}
.whole-page {
  margin-left: -15px;
  margin-right: -15px;
}
.whole-page.wide {
  margin-left: -15px;
  margin-right: -15px;
}
#content.wide {
  max-width: unset;
}
body > .notice {
  margin-left: -20px;
  background-color: #ff8;
  color: #000;
  font-size: smaller;
  padding: 3px 0 3px 10px;
}
.error {
  color: #d00;
}
.window {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #666;
  -webkit-box-shadow: 2px 2px 3px #000;
  -moz-box-shadow: 2px 2px 3px #000;
  box-shadow: 2px 2px 3px #000;
  margin: 0;
  padding: 0 0.6em 0.4em;
  position: absolute;
  background-color: rgba(240,240,240,0.88);
  color: #000;
  max-width: 20em;
  overflow: hidden;
}
.window a {
  color: #00f !important;
}
.window.login {
  width: 20em;
}
.window > h1 {
  margin: 0 -0.6em;
  font-size: 1.2em;
  padding-left: 1.6em;
  cursor: default;
  color: #333;
  background-color: rgba(255,255,255,0.6);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0.4)), to(rgba(255,255,255,0.6)));
  background-image: -moz-linear-gradient(top, rgba(255,255,255,0.4), rgba(255,255,255,0.6));
}
.window > h1 > span.window-icon {
  position: relative;
  left: -1.3em;
  top: 0;
}
.window form p {
  text-align: center;
  margin: 0.4em 0;
}
.window .closer {
  float: right;
  background: none;
  border: none;
  cursor: pointer;
}
.window div.window-content {
  margin: 1em 0.25em;
}
.window p.window-aside {
  text-align: right;
}
button.link-like {
  background-color: transparent;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9em;
}
#loginform,
#newentryform {
  display: grid;
  box-sizing: border-box;
  max-width: 100%;
  grid-template-columns: minmax(auto, max-content) minmax(auto, max-content);
  grid-gap: 0.15em;
}
#loginform p,
#newentryform p {
  grid-column: span 2;
}
@media (max-width: 600px) {
  #loginform,
  #newentryform {
    padding-right: 1em;
  }
  #loginform input[type="text"],
  #newentryform input[type="text"],
  #loginform input[type="password"],
  #newentryform input[type="password"] {
    font-size: 16px;
  }
}
section.profile p {
  margin: 0.6em 0;
}
table.roomstable td,
table.roomstable th {
  border: 1px solid currentColor !important;
}
table.roomstable span.rooms-td-win {
  color: #c00;
  font-weight: bold;
}
table.roomstable span.rooms-td-lose {
  color: #00d;
  font-weight: bold;
}
section.mylog p {
  margin: 0.6em 0;
}
section.mylog label.mylog-open {
  cursor: pointer;
}
section.mylog label.mylog-open.mylog-open-disabled {
  color: #999;
  cursor: default;
}
div.graph-area {
  display: flex;
  align-items: flex-start;
}
div.graph-area li > ul {
  margin-left: 1em;
}
div.graph-area li.graph-has-child > div.graph-item-title {
  cursor: pointer;
}
div.graph-area li.graph-has-child > div.graph-item-title:hover {
  color: #666;
}
div.graph-area li.graph-has-child.graph-item-closed > ul {
  display: none;
}
div.graph-area div.graph-item-title {
  margin-bottom: 0.2em;
}
#roomlist td img {
  vertical-align: text-bottom;
}
.lobby #users li {
  display: inline-block;
  margin-right: 1em;
}
#roomname {
  margin-left: 8px;
}
#roomname span.roomname-number {
  display: inline-block;
  margin-left: 0.7rem;
  font-size: 1rem;
  font-weight: normal;
}
#roomname span.roomname-icons {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
}
#lobbyform input {
  font-size: 16px;
}
#logs {
  padding: 5px;
  display: grid;
  grid-template-columns: fit-content(10em) 1fr auto;
  width: 100%;
}
#logs > div {
  margin: 0;
  padding: 1px 0;
  line-height: 100%;
}
#logs time {
  font-size: x-small;
  margin-left: 2em;
}
#logs div.name {
  grid-column: 1;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  max-width: 10em;
  word-wrap: break-word;
  text-align: right;
}
#logs div.comment {
  grid-column: 2;
  word-break: break-word;
  overflow-wrap: break-word;
}
#logs time.time {
  grid-comlumn: 3;
  white-space: nowrap;
  max-width: 22ex;
}
@media (max-width: 600px) {
  #logs {
    grid-template-columns: 1fr auto;
    grid-auto-flow: dense;
  }
  #logs div.name {
    grid-column: 1;
    max-width: none;
    text-align: left;
    font-size: 0.8em;
  }
  #logs div.comment {
    grid-column: 1/3;
  }
  #logs time {
    grid-column: 2;
  }
  #lobbyform p {
    display: flex;
    flex-flow: row nowrap;
  }
  #lobbyform p input[type=text] {
    width: 100%;
    flex: auto 1 1;
  }
  #lobbyform p input[type=submit] {
    flex: auto 0 0;
  }
}
.profile li {
  vertical-align: bottom;
}
.profile li.prizetip {
  border: 2px solid #000;
  background-color: #fff;
  padding: 1px;
  display: inline-block;
  margin: 3px;
  font-size: 1.2em;
  font-weight: bold;
}
.profile li.conjtip {
  border: 2px solid #000;
  background-color: #dff;
  padding: 1px;
  display: inline-block;
  margin: 3px;
  font-size: 1.2em;
  font-weight: bold;
}
.profile li.deleter {
  border: 2px solid #000;
  background-color: #fdd;
  padding: 1px;
  display: inline-block;
  margin: 3px;
  font-size: 1.2em;
  font-weight: bold;
}
.profile #prizeedit {
  border: 3px solid #000;
  padding: 5px;
  margin: 5px;
}
.profile li:empty {
  min-width: 1em;
  min-height: 1.2em;
}
b {
  font-weight: bold;
}
dt {
  font-weight: bold;
}
table {
  border-collapse: collapse;
}
table td,
table th {
  border: 1px solid currentColor;
  padding: 2px;
}
table th {
  font-weight: bold;
}
.casting table tr:nth-child(4n+1),
.casting table tr:nth-child(4n+3) {
  background-color: #fff;
}
.casting table tr:nth-child(4n+2) {
  background-color: #eee;
}
.casting table tr:nth-child(4n) {
  background-color: #ddd;
}
p {
  line-height: 110%;
}
.colorprofilebox {
  display: inline-block;
  position: relative;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  margin: 5px 15px;
}
.colorprofilebox .backbox {
  cursor: pointer;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #000;
}
.colorprofilebox .colorbox {
  cursor: pointer;
  box-sizing: border-box;
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #000;
}
.presetbox {
  border-top: 1px dashed #a0a0a0;
  margin-top: 6px;
}
section.manual dl {
  margin: 0.8em 0;
}
section.manual dl dd {
  margin-left: 2.5em;
}
section.manual dl dt {
  margin: 2px;
}
section.manual p {
  line-height: 1.2em;
  margin: 0.8em 0;
}
section.manual ul {
  line-height: 1.2em;
}
section.manual ul li {
  list-style: disc inside;
}
section.manual h1,
section.manual h2 {
  margin-top: 1.4em;
}
section.manual h3 {
  margin-top: 1em;
}
section.manual.long section {
  margin-left: 2em;
}
section.manual.long section h1,
section.manual.long section h2 {
  margin-left: -1.25em;
  font-size: 1.6em;
}
section.manual.long section h3,
section.manual.long section h4 {
  font-size: 1.4em;
  margin-left: -1.43em;
}
section.manual.long details summary {
  border: 3px dashed #aaa;
  width: 50%;
  padding: 0.4em;
  margin: 0.4em 0;
}
section.jobmanual {
  margin-left: 2em;
}
section.jobmanual h1 {
  margin-left: -1.25em;
  font-size: 1.6em;
}
@media (max-width: 600px) {
  section.manual {
    padding-right: 1em;
  }
  section.manual ul {
    line-height: 2em;
  }
  section.jobmanual {
    margin-left: 0.5em;
  }
  section.jobmanual h1 {
    margin-left: -0.5em;
  }
}
section.castlist dd {
  margin-left: 2em;
}
tr.deadoff-line {
  background-color: rgba(0,0,0,0.3);
}
