ul.p-comparison-mode-list {
  display: none;
  list-style: none;
  margin-bottom: 16px;
  font-size: 0;
  text-align: center;
}

ul.p-comparison-mode-list li {
  display: inline-block;
  width: 32%;
  margin-left: 2%;
  vertical-align: middle;
}

ul.p-comparison-mode-list li:first-child {
  margin-left: 0;
}

ul.p-comparison-mode-list li span {
  display: block;
  padding: .5em 0;
  border: 1px solid #005D89;
  color: #005D89;
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
}

ul.p-comparison-mode-list li:hover span {
  background-color: #005D89;
  color: #FFFFFF;
}

ul.p-comparison-mode-list li.active span {
  border-color: #0070A3;
  background-color: #0070A3;
  color: #FFFFFF;
}

#chart-table {
  display: block;
  line-height: 1.75;
}

.chart-head {
  display: block;
  border-top: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
}

.chart-head.fixed {
  position: fixed;
  top: 44px;
  z-index: 10;
  width: 94%;
  width: -webkit-calc(100% - 20px);
  width:         calc(100% - 20px);
  min-width: 300px;
}

.chart-head .chart-head-search {
  display: block;
  border-bottom: 1px solid #CCCCCC;
  background-color: #666666;
}

.chart-head .chart-head-search .chart-head-search-content {
  display: block;
  padding: 8px 4px;
  color: #FFFFFF;
  font-weight: normal;
  text-align: center;
}

.chart-head .chart-head-search .chart-head-search-content select {
  max-width: 96%;
  max-width: calc(100% - 14px);
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 16px;
}

.chart-head .chart-head-list {
  display: flex;
  list-style: none;
  position: relative;
  margin-bottom: 0;
  border-left: 1px solid #CCCCCC;
  background-color: #666666;
}

.chart-head .chart-head-list:before {
  display: block;
  flex-grow: 1;
  border-right: 1px solid #CCCCCC;
  content: "";
}

.chart-head .chart-head-list .chart-head-item {
  display: none;
  flex-shrink: 0;
  position: relative;
  width: 91px;
  margin-left: 0;
  padding: 5px 3px;
  border-right: 1px solid #CCCCCC;
  background-color: #666666;
  color: #FFFFFF;
  font-weight: normal;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.chart-head .chart-head-list .chart-head-item.dsp11 {
  background-color: #D9BA1A;
}

.chart-head .chart-head-list .chart-head-item.ds11 {
  background-color: #650E7F;
}

.chart-head .chart-head-list .chart-head-item.jp11 {
  background-color: #107A36;
}

.chart-head .chart-head-list .chart-head-item .chart-ui {
  margin: 0 2px 5px;
}

.chart-head .chart-head-list .chart-head-item .chart-ui .change {
  display: block;
  padding: 4px 8px;
}

.chart-head .chart-head-list .chart-head-item .chart-ui .move-left,
.chart-head .chart-head-list .chart-head-item .chart-ui .del,
.chart-head .chart-head-list .chart-head-item .chart-ui .move-right,
.chart-head .add-button {
  display: none;
}

.chart-head .chart-head-list .chart-head-item .chart-ui .move-left,
.chart-head .chart-head-list .chart-head-item .chart-ui .del,
.chart-head .chart-head-list .chart-head-item .chart-ui .move-right,
.chart-head .chart-head-list .chart-head-item .chart-ui .change {
  background-color: #333333;
  background-color: rgba(0, 0, 0, .5);
  cursor: pointer;
}

.chart-head .chart-head-list .chart-head-item .chart-ui .move-left:hover,
.chart-head .chart-head-list .chart-head-item .chart-ui .del:hover,
.chart-head .chart-head-list .chart-head-item .chart-ui .move-right:hover,
.chart-head .chart-head-list .chart-head-item .chart-ui .change:hover {
  background-color: #F0F0F0;
  color: #333333;
}

.chart-head .chart-head-list .chart-head-item .plink {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 10px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  background-color: #F0F0F0;
  color: #333333;
  text-decoration: none;
}

.chart-head .chart-head-list .chart-head-item .plink:hover {
  background-color: #FFFFFF;
  color: #202020;
}

.chart-body .chart-body-heading {
  display: block;
  padding: 8px 3px;
  border-width: 0 1px 1px;
  border-style: solid;
  border-color: #CCCCCC;
  background-color: #D8D8D8;
  color: #484848;
  font-weight: normal;
  font-size: 13px;
  line-height: 1.75;
}

.chart-body .chart-body-row {
  display: flex;
  border-bottom: 1px solid #CCCCCC;
  background-color: #CCCCCC;
}

.chart-body .chart-body-row .chart-body-title {
  display: block;
  flex-grow: 1;
  flex-basis: 100%;
  max-width: 322px;
  padding: 8px 3px;
  border-right: 1px solid #CCCCCC;
  border-left: 1px solid #CCCCCC;
  background-color: #EDEDED;
  color: #484848;
  font-weight: normal;
  font-size: 13px;
  line-height: 1.75;
}

.chart-body .chart-body-row .chart-body-item {
  display: none;
  flex-shrink: 0;
  width: 91px;
  margin-bottom: 0;
  padding: 8px 3px;
  border-right: 1px solid #CCCCCC;
  border-top-width: 0;
  background-color: #FFFFFF;
  color: #019644;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.chart-body .chart-body-row .chart-body-item .u-txt-black {
  font-weight: normal;
}

.chart-body .chart-body-note {
  display: block;
  max-width: 100%;
  margin: 10px 0;
  padding: 0;
  border-top-width: 0;
  color: #484848;
  font-size: 13px;
}

.chart-head .chart-head-list .chart-head-item.shown-cell,
.chart-body .chart-body-row .chart-body-item.shown-cell {
  display: block;
}

#add-window-bg,
#add-window {
  display: none;
}

#add-window-bg,
#change-window-bg {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
  background-color: #333333;
  background-color: rgba(0, 0, 0, .25);
  transition: opacity .2s ease;
}

#add-window-bg.shown,
#change-window-bg.shown {
  visibility: visible;
  opacity: 1;
}

#change-window {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 12;
  width: 100%;
  background-color: #FFFFFF;
  transition: top .4s ease;
}

#change-window.shown {
  top: 44px;
}

#model-change-select {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 10px;
  border-top: 1px solid #F0F0F0;
  font-size: 0;
  text-align: left;
}

#model-change-select li {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 40%;
  margin-left: 0;
  padding: 12px 8px;
  border-bottom: 1px solid #F0F0F0;
  color: #0070A3;
  font-size: 12px;
  cursor: pointer;
}

#model-change-select li:nth-child(2n) {
  border-left: 1px solid #F0F0F0;
}

#model-change-select li:hover {
  background-color: #0070A3;
  color: #FFFFFF;
}

#model-change-select li:empty {
  background-color: #F0F0F0;
  cursor: default;
}

#model-change-select li.selected-item {
  background-color: #F7F7F7;
  color: #666666;
  font-weight: bold;
  cursor: default;
}

#model-change-cancel {
  width: 80%;
  margin-bottom: 10px;
}

@media screen and (min-width: 600px) {
  @-ms-viewport {
    width: auto;
  }
  ul.p-comparison-mode-list {
    display: block;
  }
  .chart-head.fixed {
    top: 0;
    width: 90%;
    min-width: 920px;
    max-width: 1080px;
  }
  .chart-head .chart-head-list .chart-head-item.move-left {
    z-index: 10;
    transform: translateX(-150px);
    transition: transform .4s ease;
  }
  .chart-head .chart-head-list .chart-head-item.move-right {
    z-index: 10;
    transform: translateX(150px);
    transition: transform .4s ease;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui {
    display: flex;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .change {
    display: none;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-left,
  .chart-head .chart-head-list .chart-head-item .chart-ui .del,
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-right {
    display: block;
    padding: 8px 0;
    font-size: 12px;
    line-height: 1;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-left,
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-right {
    width: 28px;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-left {
    margin-right: 5px;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .del {
    flex-grow: 1;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-right {
    margin-left: 5px;
  }
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-left.disabled,
  .chart-head .chart-head-list .chart-head-item .chart-ui .del.disabled,
  .chart-head .chart-head-list .chart-head-item .chart-ui .move-right.disabled {
    opacity: .2;
    background-color: #000000;
    color: #808080;
    cursor: default;
  }
  .chart-head .add-button {
    position: absolute;
    top: 15px;
    width: 40px;
    color: #FFFFFF;
    font-size: 13px;
    text-align: center;
    cursor: pointer;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .chart-head.cell-space-1 .add-button {
    display: block;
    right: 100px;
  }
  .chart-head.cell-space-2 .add-button {
    display: block;
    right: 250px;
  }
  .chart-head.cell-space-3 .add-button {
    display: block;
    right: 400px;
  }
  .chart-head .add-button div {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
    border-radius: 20px;
    background-color: #333333;
    transition: background-color .15s ease;
  }
  .chart-head .add-button div:before {
    display: block;
    position: absolute;
    top: 19px;
    left: 10px;
    width: 20px;
    height: 2px;
    background-color: #FFFFFF;
    content: "";
    transition: background-color .15s ease;
  }
  .chart-head .add-button div:after {
    display: block;
    position: absolute;
    top: 10px;
    left: 19px;
    width: 2px;
    height: 20px;
    background-color: #FFFFFF;
    content: "";
    transition: background-color .15s ease;
  }
  .chart-head .add-button:hover div {
    background-color: #F0F0F0;
  }
  .chart-head .add-button:hover div:before,
  .chart-head .add-button:hover div:after {
    background-color: #333333;
  }
  .chart-head .add-button span {
    display: block;
  }
  .chart-head .chart-head-list .chart-head-item {
    width: 143px;
  }
  .chart-body .chart-body-row .chart-body-item {
    width: 143px;
  }
  .chart-body .chart-body-row .chart-body-item.move-left {
    z-index: 9;
    transform: translateX(-150px);
    transition: transform .4s ease;
  }
  .chart-body .chart-body-row .chart-body-item.move-right {
    z-index: 9;
    transform: translateX(150px);
    transition: transform .4s ease;
  }
  .chart-head.cell-space-1 .chart-head-list:after,
  .chart-head.cell-space-2 .chart-head-list:after,
  .chart-head.cell-space-3 .chart-head-list:after,
  .chart-body.cell-space-1 .chart-body-row:after,
  .chart-body.cell-space-2 .chart-body-row:after,
  .chart-body.cell-space-3 .chart-body-row:after {
    display: block;
    flex-shrink: 0;
    order: 99;
    content: "";
  }
  .chart-head.cell-space-1 .chart-head-list:after,
  .chart-body.cell-space-1 .chart-body-row:after {
    width: 150px;
  }
  .chart-head.cell-space-2 .chart-head-list:after,
  .chart-body.cell-space-2 .chart-body-row:after {
    width: 300px;
  }
  .chart-head.cell-space-3 .chart-head-list:after,
  .chart-body.cell-space-3 .chart-body-row:after {
    width: 450px;
  }
  #change-window-bg,
  #change-window {
    display: none;
  }
  #add-window-bg {
    display: block;
  }
  #add-window {
    display: block;
    position: fixed;
    top: 0;
    right: -300px;
    z-index: 12;
    width: 300px;
    height: 100%;
    overflow: auto;
    background-color: #FFFFFF;
    transition: right .2s ease;
  }
  #add-window.shown {
    right: 0;
  }
  #add-window h2 {
    margin: 0;
    padding: 16px 12px;
    background-color: #333333;
    color: #FFFFFF;
    font-weight: normal;
    font-size: 16px;
  }
  #model-add-select {
    list-style: none;
    margin-bottom: 10px;
    border-top: 1px solid #F0F0F0;
    text-align: left;
    cursor: pointer;
  }
  #model-add-select li {
    margin-left: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #F0F0F0;
    color: #0070A3;
    font-size: 14px;
  }
  #model-add-select li:hover {
    background-color: #0070A3;
    color: #FFFFFF;
  }
  #model-add-select li.selected-item {
    background-color: #F7F7F7;
    color: #666666;
    font-weight: bold;
    cursor: default;
  }
  #model-add-cancel {
    width: 80%;
  }
}