@charset "utf-8";

/* // Body
---------------------------------------------------------------------------------------------------- */
body {
  background-image: url(../../_common/img/back-pattern.png), url(../img/back-xx.png);
}
/* // Layout
---------------------------------------------------------------------------------------------------- */
@media screen and (max-width:735px){
  body {
    background-size: auto, 60%;
  }
}
@media screen and (min-width:1400px){
  body {
    grid-template-columns: minmax(0, 1fr) minmax(auto, 1800px) minmax(0, 1fr);
  }
  header nav {
    max-width: 1800px;
  }
  article{
    max-width: 1760px;
    display: grid;
    grid-gap: 0 1.2rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 0 1.2rem;
    position: relative;
  }
  .backup-message {
    position: absolute;
    top: -.5em;
    left: 1em;
  }
  .backup-message + #area-name {
    margin-top: 1em;
  }
  #area-name, #tags {
    grid-column: span 2;
  }
  #area-battle {
    grid-row: span 2;
  }
  #free-note {
    grid-column: 1;
  }
  #enc-bonus {
    align-self: end;
  }
}
/* // Font
---------------------------------------------------------------------------------------------------- */
#history {
  font-family: "Kosugi","Arial",var(--base-font-family-jp);
}
#character-name,
.words {
  font-family: var(--base-font-family-min);
}
#character-name rt {
  font-family: Arial,var(--base-font-family-min);
}

/* // Name / Date
---------------------------------------------------------------------------------------------------- */
#area-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  
  padding: 0px 5px;
  border-width: 3px 0px;
  border-style: solid;
  
  background-image: linear-gradient(to right, var(--box-head-bg-color), var(--box-base-bg-color));
  background-color: var(--bg-color);
  border-color: var(--box-outside-border-color, inherit);
}
h1#character-name {
  padding: 1rem;
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: var(--bg-color) 0px 0px .5em,
    var(--bg-color)  .1rem .1rem, var(--bg-color) -.1rem -.1rem,
    var(--bg-color) -.1rem .1rem, var(--bg-color)  .1rem -.1rem,
    var(--bg-color)  .0rem .1rem, var(--bg-color)  .0rem -.1rem,
    var(--bg-color) -.1rem .0rem, var(--bg-color)  .1rem  .0rem;
}
#aka {
  margin-right: .5em;
}
#area-name > div { 
  text-align: right;
  font-size: 1.2rem;
}
#update-time {
}
#player-name {
}
@media screen and (min-width:1400px){
  
}

/* // Common
---------------------------------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-style: hidden hidden none;
}
.data-table:last-child {
  border-bottom-style: hidden;
}
.data-table.side-margin,
.data-tables.side-margin table,
.data-tables.side-margin ul,
.data-tables.side-margin dl {
  width: calc(100% - 1rem);
  margin: 0 .5rem;
}
table.data-table > tbody tr {
  border-width: 1px 0;
  border-style: solid;
}
table.data-table:not(.side-margin) thead th {
  padding: .3rem 0 .2rem;
  border-width: 0;
  line-height: 1;
}
table.data-table tbody td,
ul.data-table > li,  .data-tables ul > li,
dl.data-table > *,   .data-tables dl > *  {
  padding: .2em 0;
  line-height: 1.4;
}
table.data-table:not(.side-margin) tbody th,
table.data-table:not(.side-margin) tbody td {
  border-left-width: 1px;
  border-right-width: 1px;
  border-left-style: dotted;
  border-right-style: dotted;
}
table.data-table:not(.side-margin).line-tbody tbody:nth-of-type(even) tr > *,
table.data-table:not(.side-margin):not(.line-tbody) tbody tr:nth-of-type(even) > * {
  background-color: var(--box-even-rows-bg-color);
}

ul.data-table > li,  .data-tables ul  > li,
dl.data-table > *,   .data-tables dl  > *  {
  border-width: 0 0 1px;
  border-style: solid;
}
ul.data-table:last-child > li:last-child,
dl.data-table:last-child > dt:last-of-type,
dl.data-table:last-child > dt:last-of-type ~ dd,
.data-tables ul:last-child > li:last-child,
.data-tables dl:last-child > dt:last-of-type,
.data-tables dl:last-child > dt:last-of-type ~ dd {
  border-bottom-style: hidden;
}

table.data-table tbody td:empty::before {
  content: '　';
}
table.data-table tbody tr td span {
  display: inline-block;
}
table.data-table tbody tr td span.thin {
  transform: scaleY(calc(1/0.93));
  font-size: 93%;
}
table.data-table tbody tr td span.thiner {
  transform: scaleY(calc(1/0.86));
  font-size: 86%;
}
table.data-table tbody tr td span.thinest {
  transform: scaleY(calc(1/0.8));
  font-size: 79%;
}
table.data-table tbody tr td span.thinest.small {
  transform: scaleY(calc(1/0.8));
  font-size: 73%;
}
table.data-table tbody tr td:nth-child(9) span.thinest.small {
  transform: scaleY(calc(1/0.8)) translateY(-.1rem);
  font-size: 70%;
}

/* // Area-Status
---------------------------------------------------------------------------------------------------- */
#area-status {
  min-height: 56.7rem;
  margin-top: .5rem;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 0.8fr 1fr 1.1fr 2.115fr;
  grid-template-rows: auto;
  grid-template-areas:
    "PER PER WKS IMG"
    "REN REN REN IMG"
    "EXP STT STT IMG"
    "LFP LFP LFP IMG"
  ;
}
#image-none,
#image      { grid-area: IMG; }
#personal   { grid-area: PER; }
#sub-status { grid-area: STT; }
#works-cover{ grid-area: WKS; }
#renegade   { grid-area: REN; }
#exp        { grid-area: EXP; }
#lifepath   { grid-area: LFP; }

@media screen and (max-width:767px){
  #area-status {
    min-height: 0%;
    grid-gap: .5rem;
    grid-template-columns: 0.7fr 0.7fr 1.5fr 2.1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "PER PER PER WKS"
      "REN REN REN IMG"
      "EXP STT STT IMG"
      "LFP LFP LFP IMG"
    ;
  }
}
@media screen and (max-width:735px){
  #area-status {
    grid-template-areas:
      "PER PER PER WKS"
      "REN REN REN REN"
      "EXP STT STT IMG"
      "LFP LFP LFP IMG"
    ;
  }
}


#area-status dd:empty::before,
#area-status td:empty::before {
  content: '　';
}

/* Image */
.image {
  overflow: hidden;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  border-radius: 5px;
  
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  
  position: relative;
}
.image div[onclick] {
  flex-grow: 1;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.image p.image-copyright {
  padding: 0 5px;
  color: #fff;
  text-shadow: 
    #000  .1rem .1rem, #000 -.1rem -.1rem,
    #000 -.1rem .1rem, #000  .1rem -.1rem,
    #000  .0rem .1rem, #000  .0rem -.1rem,
    #000 -.1rem .0rem, #000  .1rem  .0rem,
    #000 0 0 .3rem, #000 0 0 .3rem, #000 0 0 .3rem;
  word-break: break-all;
}
.image p.image-copyright a {
  color: #fff;
}
.image-none {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,127,127,0.1);
  border-radius: 5px;
  overflow: hidden;
  font-family: "Times New Roman";
}
.image-none::before {
  content: 'no image';
  text-align: center;
  font-size: 2.2rem;
}
.image-none::after {
  content: 'DX\A 3rd';
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  line-height: 0.7;
  font-size: 15rem;
  font-weight: bold;
  letter-spacing: -0.08em;
  text-align: center;
  transform: scale(1, 1.2);
  opacity: 0.1;
  white-space: pre;
}

.image p.words,
.image-none p.words {
  position: absolute;
  padding-top: 1em;
  writing-mode: vertical-rl;
  font-weight: bold;
  font-size: 2rem;
  color: var(--text-color);
  text-shadow:
    var(--bg-color) .2rem  .0rem, var(--bg-color) -.2rem  .0rem,
    var(--bg-color) .0rem -.2rem, var(--bg-color)  .0rem  .2rem,
    var(--bg-color) .2rem  .2rem, var(--bg-color) -.2rem  .2rem,
    var(--bg-color) .2rem -.2rem, var(--bg-color) -.2rem -.2rem,
    var(--bg-color) .1rem  .2rem, var(--bg-color) -.1rem  .2rem,
    var(--bg-color) .1rem -.2rem, var(--bg-color) -.1rem -.2rem,
    var(--bg-color) .2rem  .1rem, var(--bg-color) -.2rem  .1rem,
    var(--bg-color) .2rem -.1rem, var(--bg-color) -.2rem -.1rem;
}
@media screen and (max-width:735px){
  .image p.words,
  .image-none p.words {
    font-size: 1.6rem;
  }
}
.image p.words .d-dash,
.image-none p.words .d-dash {
  display: inline-block;
  font-family: inherit;
  white-space: nowrap;
}
p.words span {
  display: inline-block;
}
p.words span.brackets {
  text-indent: -1em;
}

/* Personal */
#personal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
#personal dl:nth-child(n+4) {
  border-top-width: 1px;
}
#personal dl:not(:nth-child(3n+1)) {
  border-left-width: 1px;
  border-left-style: dotted;
}

/* Works */
#works-cover {
  display: grid;
  grid-template-columns: 1fr;
}
#works-cover dl:last-child {
  border-top-width: 1px;
}


/* Renegade */
#renegade {
  display: grid;
  grid-template-columns: 0.8fr 3fr;
}
#renegade dd {
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#renegade dl:first-child {
}
#renegade dl:last-child {
  border-left-width: 1px;
  border-left-style: dotted;
}
#breed {
  display: grid;
  grid-template-columns: 1fr;
}
#syndrome {
  display: grid;
  grid-gap: 0 1rem;
  grid-template-columns: 1fr 1fr 1fr;
}
#syndrome dt:last-of-type {
  grid-column: 3;
  font-size: 85%;
  line-height: calc(1.5 / .85);
}
#syndrome dd {
  grid-row: 2;
  white-space: nowrap;
}
@media (max-width:860px), (min-width:1400px) and (max-width:1680px) {
  #renegade {
    grid-template-columns: 5em auto;
  }
  #breed dd span {
    display: none;
  }
  #syndrome dd {
    font-size: 0.9em;
    transform: scaleY(calc(1/0.9));
  }
}

/* Sub-Status */
#sub-status {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  white-space:nowrap;
}
#sub-status dl:nth-child(n+4) {
  border-top-width: 1px;
}
#sub-status dl:not(:nth-child(3n+1)) {
  border-left-width: 1px;
  border-left-style: dotted;
}
#sub-status dl dd b {
  display: inline-block;
  font-weight: normal;
  margin-left: .5rem;
  transform: scale(1.3) translateY(-.1rem);
}
@media screen and (max-width:735px){
  #sub-status dl span.shorten {
    display: none;
  }
}

/* EXP */
#exp {
  display: grid;
}
#exp dl {
  display: grid;
  grid-template-columns: 2em 1fr;
  align-items: end;;
  margin: 0 .5rem;
  line-height: 1;
}
#exp dl > * {
}
#exp dl > *:not(:last-of-type) {
  border-width: 0 0 .1rem;
  border-style: solid;
}
#exp dl dt {
  grid-column: 1;
  font-size: 80%;
  padding: 0 0 .3rem;
}
#exp dl dd {
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
  font-size: 120%;
  padding: .3rem 0 .1rem;
}

/* Lifepath */
#lifepath table {
  width: 100%;
  min-height: calc(100% - 1.4rem * 1.5);
  border-style: solid hidden hidden;
  empty-cells: hide;
}
#lifepath table th:first-child {
  width: 6.2em;
}
#lifepath table th.small,
#lifepath table th.left {
  border-width: 1px;
  border-style: solid dotted hidden;
}
#lifepath table th.left {
  padding: .3rem 0 0 .3rem;
  line-height: 1;
}
#lifepath table th.right {
  padding-right: .2rem;
  font-size: 93%;
}
#lifepath table th.right.small {
  font-size: 87%;
}
#lifepath table td {
  border-width: 1px;
  border-style: solid dotted;
}
#lifepath table td:first-child {
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#lifepath table td.center {
  width: 2.2em;
  font-size: 110%;
}
#lifepath table td.center.bold {
  font-size: 130%;
  font-weight: normal;
}
#lifepath table td.left {
  padding: .1rem 0 .1rem .3rem;
  line-height: 1.4;
  font-size: 93%;
}
#lifepath table tr.urge th {
  padding-top: .2rem;
  font-size: 87%;
}
@media screen and (max-width:735px){
  #lifepath table {
    font-size: 95%;
  }
}


/* // Status / Skills
---------------------------------------------------------------------------------------------------- */
#status {
  margin-top: 1rem;
}
#status table {
  width: 100%;
  table-layout: fixed;
}
#status table thead {
  border-width: 0 0 1px;
  border-style: solid;
}
#status table thead td {
  width: 2.8em;
  border-width: 1px;
  border-style: solid;
  font-size: 130%;
}
#status table tbody {
  border-style: none hidden hidden;
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#status table tbody td {
  border-width: 1px 0px;
  border-style: solid;
}
#status table tbody td.left {
  padding-left: .5em;
}
#status table tbody td.right {
  padding-right: .1rem;
  border-right-width: 1px;
  font-size: 120%;
  white-space: nowrap;
}
#status table tbody td.right span.small {
  display: inline-block;
  margin: 0 -8% 0 -10%;
  font-size: 70%;
  transform: scaleX(0.8);
}
#status table tbody td.right::after {
  content: 'Lv';
  margin-left: .1em;
  font-size: 70%;
}
@media screen and (max-width:735px){
  #status table thead td {
    width: 2.2em;
  }
  #status table tbody {
    font-size: 90%;
  }
  #status table tbody td.left {
    font-size: 90%;
  }
  #status table tbody td.right {
    padding-right: .2em;
  }
  #status table tbody td.right::after {
    display: none;
  }
}

/* // Lois / Memory
---------------------------------------------------------------------------------------------------- */
#lois,
#memory {
  margin-top: 1rem;
}
#lois table,
#memory table {
  width: 100%;
}
#lois table thead th,
#memory table thead th {
  padding-left: .5rem;
  text-align: left;
  vertical-align: bottom;
}
#lois table thead th.right {
  padding-right: .3rem;
}
#lois table tbody tr,
#memory table tbody tr {
  border-width: 1px 0 0;
  border-style: solid;
}
#lois table tbody,
#memory table tbody {
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#lois table tbody td:nth-child(1) { width: 6.2em; border-right-width: 1px; } /* 関係 */
#lois table tbody td:nth-child(2) { width: 14em; border-right-width: 1px; }  /* 名前 */
#lois table tbody td:nth-child(3) { width: 4.8em; } /* 感情 */
#lois table tbody td:nth-child(4) { width: 1.2em; }
#lois table tbody td:nth-child(5) { width: 4.8em; border-right-width: 1px; }
#lois table tbody td:nth-child(6) { width: 2.6em; border-right-width: 1px; } /* 属性 */
#lois table tbody td:last-child { width: 3em; } /* 状態 */
@media screen and (max-width:735px){
  #lois table tbody { font-size: 90%; }
  #lois table tbody td:nth-child(1) { width: 5.2em; } 
  #lois table tbody td:nth-child(2) { width: 10em; }
  #lois table tbody td:nth-child(3) { width: 4.8em; }
  #lois table tbody td:nth-child(4) { width: 1.2em; }
  #lois table tbody td:nth-child(5) { width: 4.8em; }
  #lois table tbody td:nth-child(6) { width: 2.6em; }
}
@media screen and (min-width:1400px) and (max-width:1680px) {
  #lois table tbody td:nth-child(2) { width: 12em; }
  #lois table tbody td.left { font-size: 90%; }
}
#lois table tbody td.emo {
  text-align: left;
}
#lois table tbody td.emo::before {
  content: "\f00c";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: .15em;
  border-radius: .3rem;
  line-height: 1.3;
  background-color: var(--bg-color);
  box-shadow: var(--box-inside-border-color) inset 0 0 1px 1px;
  text-align: center;
  color: transparent;
  font-family: "Font Awesome 5 Free";
  font-weight: bold;
}
#lois table tbody td.emo.checked::before {
  color: inherit;
}
#lois table tbody td:nth-child(4) {
  border-style: solid hidden;
}
#lois table tbody td.left {
  padding-left: .5em;
}
#lois table tbody td:last-child {
  border-left: hidden;
}
#lois table tbody td span[data-state] {
  display: inline-block;
  width: calc(100% - .2rem);
  margin: .1rem;
  padding: .2rem 0;
  border-width: .1rem;
  border-style: solid;
  border-radius: .5rem;
  font-size: 73%;
  text-align: center;
  white-space: nowrap;
}
#lois table tbody span[data-state]::before {
  content: attr(data-state);
  display: inline-block;
  transform: scaleY(1.2);
}
#lois table tbody span[data-state="ロイス"]  { background-color: hsla(120,100%,50%,0.05); }
#lois table tbody span[data-state="タイタス"]{ background-color: hsla(200,100%,50%,0.3); font-weight: bold; }
#lois table tbody span[data-state="昇華"]    { background-color: hsla( 50,100%,50%,0.3); font-weight: bold; }

#memory table tbody td:nth-child(1) { width: 6.2em; border-right-width: 1px; } /* 関係 */
#memory table tbody td:nth-child(2) { width:  14em; border-right-width: 1px; } /* 名前 */
#memory table tbody td:nth-child(3) { width: 4.5em; border-right-width: 1px; } /* 感情 */
#memory table tbody td.left {
  padding-left: .5em;
}

/* // Area-Battle
---------------------------------------------------------------------------------------------------- */
#area-battle {
  position: relative;
}
#area-battle > .box {
  margin-top: 1rem;
}
#area-battle > .box > table {
  width: 100%;
  border-style: hidden;
}
#area-battle > .box > table tbody tr {
  border-width: 1px 0 0;
  border-style: solid;
}
#area-battle > .box > table tbody td {
  border-left-width: 1px;
  border-style: dotted;
}

/* Effects */
#effect {
  position: relative;
}
#effect table thead th {
  vertical-align: bottom;
}
#effect table thead th:nth-child(n+4) {
  font-size: 90%;
}
#effect table thead th:nth-child(1) { width: 2.1em; } /* No. */
#effect table thead th:nth-child(2) { width:  auto; } /* 名称 */
#effect table thead th:nth-child(3) { width:   2em; } /* Lv */
#effect table thead th:nth-child(4) { width: 8.4em; } /* タイミング */
#effect table thead th:nth-child(5) { width: 7.0em; } /* 技能 */
#effect table thead th:nth-child(6) { width: 3.8em; } /* 難易度 */
#effect table thead th:nth-child(7) { width: 5.8em; } /* 対象 */
#effect table thead th:nth-child(8) { width: 4.8em; } /* 射程 */
#effect table thead th:nth-child(9) { width: 3.4em; } /* 侵蝕値 */
#effect table thead th:nth-child(10){ width: 4.9em; } /* 制限 */

#effect table tbody td:nth-child(n+2) {
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#effect table tbody td:nth-child(1) {  } /* No. */
#effect table tbody td:nth-child(2) { font-weight: bold; } /* 名称 */
#effect table tbody td:nth-child(3) {  } /* Lv */
#effect table tbody td:nth-child(4) { font-size: 90%; } /* タイミング */
#effect table tbody td:nth-child(5) { font-size: 90%; } /* 技能 */
#effect table tbody td:nth-child(6) { font-size: 90%; } /* 難易度 */
#effect table tbody td:nth-child(7) { font-size: 90%; } /* 対象 */
#effect table tbody td:nth-child(8) { font-size: 90%; } /* 射程 */
#effect table tbody td:nth-child(9) {  } /* 侵蝕値 */
#effect table tbody td:nth-child(10){ font-size: 90%; } /* 制限 */

#effect table tbody td.left {
  padding-left: .5rem;
  display: none;
}
#effect table tbody:hover td.left {
  display: table-cell;
}
.ef-auto {
  display: block;
  transform: scaleY(calc(1/0.66));
  font-size: 0.66em;
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  color: hsl(200,30%,50%);
  white-space: nowrap;
}
.ef-auto::before {
  content: '自動';
}
.ef-dlois {
  display: block;
  margin: -1.5em;
  transform: scale(0.5);
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  color: hsl(0,30%,50%);
}
.ef-dlois::before {
  content: 'D';
  display: block;
  transform: scale(1.1,0.9) translateY(.1em);
  font-size: 3em;
}
.ef-dlois::after {
  display: block;
  content: 'ロイス';
  white-space: nowrap;
  transform: translateY(-.1em);
}
.ef-easy {
  display: block;
  margin: -1em;
  transform: scale(0.8, 0.7) translateY(.25em);
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  color: hsl(100,30%,50%);
}
.ef-easy::before {
  content: 'EA';
  display: block;
}
.ef-easy::after {
  content: 'SY';
  display: block;
}
.ef-enemy {
  display: block;
  margin: -1.5em;
  transform: scale(0.5);
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  color: hsl(270,30%,50%);
}
.ef-enemy::before {
  content: 'E';
  display: block;
  transform: scale(1.1,0.9) translateY(.1em);
  font-size: 3em;
}
.ef-enemy::after {
  display: block;
  content: 'NEMY';
  white-space: nowrap;
  transform: translateY(-.1em);
}
.ef-other::before {
  content: '他';
  color: hsl(0,0%,50%);
  font-size: 1em;
  font-style: normal;
  font-weight: bold;
}
#effect .open-button {
  position: absolute;
  top: .1em;
  right: .3em;
  cursor: pointer;
  font-size: 90%;
}
@media screen and (max-width:735px){
  #effect table thead tr,
  #effect table tbody tr {
    display: grid;
    grid-template-columns: 2.1em 2em 6em auto 4em 5.5em 3em 3em 4.9em;
  }
  #effect table thead th {
    width: auto !important;
  }
  #effect table thead th:nth-child(2) {
    display: none;
  }
  #effect table tbody td[rowspan] {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #effect table tbody td {
    font-size: 100% !important;
  }
  #effect table tbody td.name {
    grid-row: 1; grid-column: 1 / span 9;
    text-align: left;
    padding-left: .5rem;
    border-bottom-width: 1px;
    border-bottom-style: solid;
  }
  #effect table tbody td.left {
    grid-row: 1; grid-column: 1 / span 9;
  }
  #effect table tbody td span.shorten {
    display: none !important;
  }
  #effect table tbody td span.thin,
  #effect table tbody td span.thiner,
  #effect table tbody td span.thinest {
    transform: scaleY(calc(1/0.9)) !important;
    font-size: 90% !important;
  }
  .ef-dlois {
    margin: -1.5em;
  }
}


/* Combos */
#combo table {
  border-top-style: solid !important;
}
#combo table col:nth-child(1) { width:  auto; } /* タイミング */
#combo table col:nth-child(2) { width:   13%; } /* 技能 */
#combo table col:nth-child(3) { width:   4em; } /* 難易度 */
#combo table col:nth-child(4) { width:   5em; } /* 対象 */
#combo table col:nth-child(5) { width:    8%; } /* 射程 */
#combo table col:nth-child(6) { width: 3.2em; } /* 侵蝕値 */
#combo table col:nth-child(7) { width:   5em; } /* 条件 */
#combo table col:nth-child(8) { width:    8%; } /* ダイス */
#combo table col:nth-child(9) { width:    8%; } /* クリティカル */
#combo table col:nth-child(10){ width:    8%; } /* 基準値 */
#combo table col:nth-child(11){ width:    8%; } /* 攻撃力 */
#combo table th {
  padding: .2rem 0 .1rem;
  font-size: 80%;
  white-space: nowrap;
}
#combo table tr td.bold + th,
#combo table tr:nth-child(n+4) th {
  border-left-width: 1px;
  border-left-style: dotted;
}
#combo table tr:nth-child(n+4) th {
  font-size: 80%;
}
#combo table th.left {
  padding-left: .3rem;
}
#combo table td.left {
  padding-left: .5rem;
}
#combo table tr:nth-child(n+5) td:empty {
}
#combo table tr:nth-child(n+5) td:empty::before {
  content:'';
}
#combo table td:not(.bold):not(.note) {
  font-size: 90%;
}
#combo table td:not(.bold):not(.left):not(.note) {
  white-space: nowrap;
}
#combo table td.left span {
  font-size: 90%;
  transform: scaleY(calc(1/0.9))
}
#combo table td.note {
  padding-left: .5rem;
  text-align: left;
}
@media screen and (max-width:735px){
  #combo table tbody {
  }
  #combo table tbody td span.shorten {
    display: none !important;
  }
}

/* Items */
#items {
  margin-top: 1rem;
}
#items table {
  border-width: 0 0 1px;
  border-style: solid hidden !important;
}
#items .box:last-child table {
  border-bottom-style: hidden !important;
}
#items table thead th {
  height: 2em;
  vertical-align: bottom;
}
#items table thead th:nth-child(n+2) {
  font-size: 90%;
}
#items table thead th:nth-child(1) { width:  12em; } /* 名称 */
#items table thead th:nth-child(2) { width: 3.4em; } /* 常備化 */
#items table thead th:nth-child(3) { width: 3.4em; } /* 経験点 */
#items table thead th:nth-child(4) { width: 5.5em; } /* 種別 */
#items table thead th:nth-child(5) { width: 5.9em; } /* 技能 */
#items table thead th:nth-child(6) { width: 3.4em; } /* 命中  ／ドッジ */
#items table thead th:nth-child(7) { width: 3.9em; } /* 攻撃力／行動 */
#items table thead th:nth-child(8) { width: 3.4em; } /* ガード／装甲値 */
#items table thead th:nth-child(9) { width: 3.4em; } /* 射程 */
#items table thead th:last-child   { width: auto; text-align: left; padding-left: 1em; } /* 解説 */

#items table tbody td {
  font-family: var(--font-proportional);
  font-feature-settings: "palt";
}
#items table tbody td:nth-child(1) {  } /* 名称 */
#items table tbody td:nth-child(2) {  } /* 常備化 */
#items table tbody td:nth-child(3) {  } /* 経験点 */
#items table tbody td:nth-child(4) { font-size: 90%; } /* 種別 */
#items table tbody td:nth-child(5) { font-size: 90%; } /* 技能 */
#items table tbody td.range  { font-size: 90%; } /* 射程 */
#items table tbody td span.handle {
  display: block;
  width: 2em;
}
#items table tbody td span.handle::before {
  content: ':::';
}
#items table tbody td.left {
  padding-left: .3rem;
  font-size: 90%;
}
@media screen and (max-width:735px){
  #items table { font-size: 90%; }
  #items table thead th:nth-child(1) { width:   8em; } /* 名称 */
  #items table thead th:nth-child(2) { width: 3.4em; } /* 常備化 */
  #items table thead th:nth-child(3) { width: 3.4em; } /* 経験点 */
  #items table thead th:nth-child(4) { width: 5.5em; } /* 種別 */
  #items table thead th:nth-child(5) { width: 5.9em; } /* 技能 */
  #items table thead th:nth-child(6) { width: 3.4em; } /* 命中  ／ドッジ */
  #items table thead th:nth-child(7) { width: 3.4em; } /* 攻撃力／行動 */
  #items table thead th:nth-child(8) { width: 3.4em; } /* ガード／装甲値 */
  #items table thead th:nth-child(9) { width: 3.4em; } /* 射程 */
  #items table thead th:last-child   { width: auto; } /* 解説 */
}

/* Exps */
#exps table {
  table-layout: fixed;
}

/* Encroach-Bonus
---------------------------------------------------------------------------------------------------- */
#enc-bonus {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  background-image: none;
  background-color: var(--bg-color);
  border-radius: 5px;
}
#enc-bonus p {
  margin: -1.4em 0 0 9em;
}
#enc-bonus p input[type="number"] {
  width: 4em;
  padding: .1em;
  text-align: center;
  font-size: 110%;
  font-weight: bold;
}
#enc-bonus p input[type="checkbox"] {
  margin: 0 .2rem 0 1em;
  transform: scale(1.4);
}
#enc-bonus p input[type="checkbox"] + label {
  user-select: none;
  cursor: pointer;
}
#enc-bonus p input[type="checkbox"]:not(:checked) + label {
  opacity: 0.5;
}
#enc-bonus p input[type="checkbox"] + label:hover {
  opacity: 0.8;
}
#enc-bonus table {
  border-top: 1px;
  border-bottom: hidden;
  table-layout: fixed;
}
#enc-bonus table col.current {
  background-color: hsla(340,100%,50%,0.3);
}
#enc-bonus table th {
  font-size: 80%;
  line-height: 1;
  padding: .2rem;
}
#enc-bonus table td {
  padding: .2rem 0 .1rem;
  line-height: 1;
}
[data-edb] {
  position: relative;
}
[data-edb]:not([data-edb="0"]):not([data-edb=""])::after {
  content: '+'attr(data-edb);
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 80%;
  line-height: 1;
}

/* // Free-Memo
---------------------------------------------------------------------------------------------------- */
#free-note,
#free-history{
  margin-top: 1rem;
}


/* // History
---------------------------------------------------------------------------------------------------- */
#history {
  margin-top: 1rem;
}
#history table{
  width: 100%;
  border: hidden;
}
#history table th {
  padding: 2px 0;
  line-height: 1;
  white-space: nowrap;
}
#history table td {
  font-size: 1.2rem;
}
#history table thead th:nth-child(1) { width:   2em; } /* No. */
#history table thead th:nth-child(2) { width: 5.2em; } /* 日付 */
#history table thead th:nth-child(3) { width:  auto; } /* タイトル */
#history table thead th:nth-child(4) { width: 4.6em; } /* 経験点 */
#history table thead th:nth-child(5) { width:  auto; } /* ＧＭ */
#history table thead th:nth-child(6) { width:  auto; } /* 参加者 */

#history table tbody td.gm span {
  display: block;
  min-width: 5em;
}
#history table tbody td.member {
  padding: 1px 0;
  text-align: left;
}
#history table tbody td.member > span {
  display: inline-block;
  padding: 0 .5em;
}
#history table tbody td.note {
  padding-left: .5rem;
  text-align: left;
}
#history table tbody td.note:empty {
  display: none;
}
#history table tbody td:nth-child(2) a,
#history table tbody td a[data-num] {
  display: block;
  background: none;
}
#history table tbody td a[data-num]:before {
  content:"#"attr(data-num);
  float: left;
  margin: 0 -0.1em;
  font-size: 90%;
  transform: scale(0.8, 0.8);
  opacity: 0.8;
}

