@charset "utf-8";

html, body {
  font-size: 3vw;
  padding: 8vw 1vw 1vw 1vw;
}

section.body {
  min-height: 100%;
}

section.fixed {
  width: 96%;
}

div.sub_menu {
  position: fixed;
  display: none;
  z-index: 4;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

div.sub_menu ul {
  position: absolute;
  top: 4em;
  left: 0;
  width: 14em;
  height: calc(100% - 4em);/* 画面全体の高さ - ヘッダーの高さ */
  margin: 0;
  border-left: 1px solid #fff;
  background-color: #E8FBEE;
  color: #6b6756;
}

div.sub_menu li {
  border-bottom: 1px solid #fff;
}

div.sub_menu li * {
  color: #666;
  padding: 1em 1em 1em 1.5em;
  text-decoration: none;
  display: block;
}

div.sub_menu li span {
  font-weight: bold;
  background-color: #FFF;
}

.videos article {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 40.5vw;
  padding: 2vw 1vw;
  margin-bottom: 1vw;
  margin-right: 0;
}

.model_videos article {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 47.4vw;
  padding: 2vw 1vw;
  margin-bottom: 1vw;
  margin-right: 0;
}

.model_tags article {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 40.9vw;
  padding: 2vw 1vw;
  margin-bottom: 1vw;
  margin-right: 0;
}

.contents article {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 47.4vw;
  padding: 2vw 1vw;
  margin-bottom: 1vw;
  margin-right: 0;
}

.categories article {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 40.9vw;
  padding: 2vw 1vw;
  margin-bottom: 1vw;
  margin-right: 0;
}

section.comments textarea {
  margin-top: 0.5em;
  height: 5em;
  font-size: 0.9em;
}

select[name='history'] {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.buttons {
  text-align: center;
  margin: 1em 0;
}

.buttons:LAST-CHILD {
  margin: 1em 0 0 0;
}

button, input[type=file]+label {
  margin-right: 0.5em;
  padding: 0 1em;
  min-width: 5em;
}

body>header>div a:NTH-CHILD(2) {
  display: none;
}

body>header>div.right img {
  margin-right: 2vw;
  width: 8vw;
  height: 8vw;
}

div.date dl>dt {
  display: block;
  clear: left;
  float: left;
}

div.date dl>dd {
  display: block;
}

.grid>*:NOT(:LAST-CHILD) {
  padding-bottom: 0.5em;
}

.grid+.grid {
  margin-top: 0.5em;
}

section.modal>div {
  width: 80%;
  max-height: 80%;
}

section.modal>div>h1 {
  margin-bottom: 1.5vw;
}

div.statistics .value {
  font-size: 2em;
}

.model_videos.modal ul {
  height: 170px;
  padding: 15px 13px 15px 15px;
  margin: 15px 0;
}

.model_videos.modal li label:BEFORE {
  top: 10px;
  left: 187px;
}

.model_videos.modal li label:AFTER {
  top: 6px;
  left: 185px;
}

ul.model_videos li {
  width: 215px;
}

ul.model_videos img {
  height: 215px;
  width: 215px;
}

ul.model_videos span {
  padding: 2px 10px;
  height: 44px;
  width: 215px;
  font-size: 12px;
}

.rating_item>div:NTH-CHILD(1) {
  background-size: 1.3em;
  padding-left: 1.5em;
}

.rating_item>div:NTH-CHILD(2) {
  padding-bottom: 1em;
}

.item_groups ul {
  display: block;
  overflow: scroll;
  max-height: 25em;
}

.item_groups li {
  padding: 1em;
  border-bottom: 1px solid #ccc;
}

.item_groups li:LAST-OF-TYPE {
  border-bottom: none;
}

.item_groups li:HOVER {
  cursor: pointer;
}

.item_groups li div {
  margin-top: 6px;
}

.item_groups li span {
  font-size: 12px;
}

.item_groups li span:AFTER {
  content: " / ";
  color: #ccc;
}

.item_groups li span:LAST-CHILD:AFTER {
  content: none;
}

#itemList {
  border-radius: 5px;
  border: 1px solid #ccc;
  margin: 1em 0;
}

#taskFileThumb {
  max-width: 150px;
  max-height: 150px;
}

#taskFileThumbnail img {
  max-width: 150px;
  max-height: 150px;
}

.selectTaskFile {
  text-align: center;
}

.mfloat-right {
  float: right;
}

.msticky {
  position: -webkit-sticky; /* Safari用 */
  position: sticky; /* 要素をスクロールに応じて固定 */
  top: 45px;
  background-color: #FFF;
  z-index: 3;
}

.m-border {
  border-top: 1px solid #ccc;
  height: 1em;
}

.model_tags_view:before {
  content: "";
  display: block;
  padding-top: 38%;
}

.chart-container {
  display: inline-block;
  width: 95%;
  border: 1px solid #ccc;
  position: relative;
  padding: 0.5em;
}