﻿@charset "UTF-8";
html {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

body {
  height: 100%;
  width: 900px;
  margin: 0 auto;
  line-height: 1.3em;
  font-family: sans-serif;
  font-size: 14px;
}

p {
  margin: 0.5em 0;
}

pre {
  white-space: pre-wrap;
}

pre.line {
  white-space: pre-line;
}

button {
  width: fit-content;
  min-width: 100px;
  margin: 4px;
}

img {
  max-width: 100%;
  padding: 8px;
  border: 1px darkgrey solid;
  background: lightgray;
  box-sizing: border-box;
}

dialog {
  position: absolute;
  width: 860px;
  top: 75px;
  margin-top: 0;
  border: 0;
  padding: .5em;
  background-color: white;
}

dialog form > :last-child {
  margin-bottom: 0;
}

dialog input[type="text"] {
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  font-family: inherit;
}

dialog textarea {
  resize: none;
  box-sizing: border-box;
  width: 100%;
  height: 8em;
  font-family: inherit;
}

dialog textarea.height-auto {
  height: auto;
}

dialog textarea.height-half {
  height: 4em;
}

dialog textarea.height-x2 {
  height: 16em;
}

dialog textarea.height-x4 {
  height: 32em;
}

dialog textarea.height-x8 {
  height: 64em;
}

form,
div {
  background-color: inherit;
}

table {
  border-collapse: collapse;
  border: 2px solid black;
}

table td {
  border: 1px solid #111;
  padding: .1em .3em;
}

div.grid {
  display: grid;
  align-items: center;
}

div.grid.yoko-1fr-1fr {
  grid-template-columns: 1fr 1fr;
}

div.grid.yoko-auto-1fr {
  grid-template-columns: auto 1fr;
}

div.grid.yoko-1fr-auto {
  grid-template-columns: 1fr auto;
}

div.grid.yoko-1fr-1fr-1fr {
  grid-template-columns: 1fr 1fr 1fr;
}

div.grid.yoko-1fr-1fr-1fr-1fr {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

div.grid.align-item-start {
  align-items: start;
}

div.padding-4px {
  padding: 4px;
}

div.inline-block {
  display: inline-block;
}

label {
  display: inline-block;
  margin-right: 1em;
}

h1 {
  margin: 0;
  padding: 10px;
  background-color: pink;
  line-height: 1em;
  text-align: center;
}

h2,
h3 {
  margin: .5em 0 0 0;
}

dd {
  margin-left: 1em;
}

strong {
  color: orangered;
  font-weight: bolder;
  margin: 0 .25em;
}

strong.most {
  color: red;
  font-size: 120%;
}

span.button {
  background-color: #EEE;
  color: black;
  padding: 4px 8px 2px;
  font-weight: normal;
  border: 1px solid black;
  border-radius: 4px;
  display: inline-block;
  transform: scale(0.9);
  text-indent: 0;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

span.tab {
  background-color: #FFF;
  color: black;
  padding: 4px 8px 2px;
  font-weight: normal;
  border: 1px solid #111;
  border-radius: 8px 8px 0 0;
  display: inline-block;
  transform: scale(0.9);
  text-indent: 0;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

div.rpg-window {
  padding: .5em;
  margin: .5em 0;
  border: 2px solid #333;
  border-radius: 4px;
  position: relative;
  background-color: inherit;
}

div.rpg-window > :first-child {
  margin-top: 0.5em;
}

div.rpg-window > :last-child {
  margin-bottom: 0;
}

div.rpg-window::before {
  position: absolute;
  top: -.5em;
  left: .5em;
  background-color: inherit;
  content: " " attr(data-title) " ";
  white-space: pre-wrap;
}

div.rpg-window + div.rpg-window {
  margin-top: 1em;
}

div.tab-window {
  background-color: inherit;
  margin: .5em 0em;
}

div.tab-window div.tab-button-list {
  display: flex;
  flex-flow: row wrap;
  margin-bottom: 0;
  background-color: #EEE;
}

div.tab-window div.tab-button-list > div {
  padding: 4px 8px 0px 8px;
  border-radius: 6px 6px 0 0;
  margin: 0 2px 0 0;
  background-color: #888;
  color: orange;
  font-weight: bolder;
  min-width: 5em;
}

div.tab-window div.tab-button-list > div:hover {
  background-color: #CCC;
  color: orangered;
  font-weight: normal;
}

div.tab-window div.tab-button-list > div.tab-active {
  background-color: white;
  color: black;
  border: 1px #888 solid;
  border-bottom: 0;
}

div.tab-window div.tab-contents-list {
  margin-top: 0;
  padding: .5em;
  border: 1px #888 solid;
  border-top: 0;
}

div.tab-window div.tab-contents-list > div {
  display: none;
}

div.tab-window div.tab-contents-list > div.tab-show {
  display: block;
}

div.flame1 {
  border: 2px #333 solid;
  border-radius: 4px;
  padding: .5em .5em;
  background-color: inherit;
  margin: .5em 0em;
}

div.flame1 > :first-child {
  margin-top: 0;
}

div.flame1 > :last-child {
  margin-bottom: 0;
}

.hidden_data {
  display: none;
}

.note {
  display: inline-block;
  background-color: red;
  color: white;
  padding: .2em 1em;
  border-radius: 1em;
  margin: .5em .2em 0;
  text-indent: 0;
}

.leave_before {
  margin-top: .5em;
}

.container {
  display: grid;
  grid-template: "h1   h1" auto "menu viewer" 1fr / 180px 1fr;
  margin: 0;
  height: 100%;
}

.container h1 {
  grid-area: h1;
  user-select: none;
}

.container .menu {
  grid-area: menu;
  display: flex;
  flex-direction: column;
  user-select: none;
  background-color: lightyellow;
  padding: 0 .5em 1em;
  overflow-y: auto;
}

.container .menu a {
  margin: 0.2em 0 0.1em 0.5em;
}

.container .menu a[data-tag="H3"] {
  margin-left: 1em;
}

.container .menu a[data-tag="H3"]::before {
  content: "◇";
}

.container .menu details {
  display: flex;
  flex-direction: column;
}

.container .menu details summary {
  list-style: none;
}

.container .menu details summary::after {
  content: " ▼";
}

.container .menu details[open] summary::after {
  content: " ▲";
}

.container .viewer {
  grid-area: viewer;
  padding: 0 .5em;
  overflow-y: scroll;
  background-color: white;
}

.container .viewer.manual p {
  text-indent: 1em;
}

.container .viewer.manual p.note {
  text-indent: 0;
}

.container .viewer.manual p.withnote[data-note] {
  text-indent: 0;
}

.container .viewer.manual p.withnote[data-note]::before {
  display: inline-block;
  background-color: red;
  color: white;
  padding: .1em .5em;
  border-radius: 1em;
  text-indent: 0;
  margin: .2em .5em .2em 0;
  content: attr(data-note);
}

.container .viewer.manual p.menu-item {
  text-indent: 0;
  font-weight: bold;
}

.container .viewer.manual p.menu-item::before {
  content: "■";
}

.container .viewer.manual h2 {
  line-height: 2em;
  padding-left: .5em;
  margin-bottom: .5em;
  background: #048;
  color: lightyellow;
}

.container .viewer.manual h3 {
  border-top: 2px #048 solid;
  border-bottom: 2px #048 solid;
  color: #048;
  padding: 0.3em;
}

.container .viewer.manual h3::before {
  content: "◇ ";
}

.container .viewer.manual h3::after {
  content: " ◇";
}

.container .viewer.manual dl {
  margin-left: 1em;
}

.container .viewer.manual dt {
  font-weight: bold;
}

div.itemlist1 {
  background-color: white;
  border: 4px black solid;
  width: fit-content;
  font-size: 12px;
  margin: .5em .25em;
}

div.itemlist1 .item {
  background-color: white;
  color: white;
  display: grid;
  grid-template: "name comp1 comp2 comp3 effect" 20px / 120px 150px 150px 150px 80px;
  gap: 2px;
  margin: 2px;
  padding: 0;
  height: fit-content;
}

div.itemlist1 .item * {
  padding: 2px 2px 2px 6px;
  background-color: black;
  margin: 0px;
}

div.itemlist1 .item .name {
  grid-area: name;
  color: yellow;
}

div.itemlist1 .item .component.main {
  grid-area: comp1;
}

div.itemlist1 .item .component.sub1 {
  grid-area: comp2;
}

div.itemlist1 .item .component.sub2 {
  grid-area: comp3;
}

div.itemlist1 .item .component[data-type]::before {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 1px transparent solid;
  border-radius: 4px;
  color: transparent;
  content: "";
  text-align: center;
  padding: 0px 0px 0px 0px;
  font-weight: bold;
  margin-right: 4px;
  transform: scale(0.8);
}

div.itemlist1 .item .component[data-type="R"]::before {
  background-color: white;
  color: red;
  border-color: red;
  content: "R";
}

div.itemlist1 .item .component[data-type="U"]::before {
  background-color: white;
  color: green;
  border-color: green;
  content: "U";
}

div.itemlist1 .item .component[data-type="C"]::before {
  background-color: white;
  color: darkcyan;
  border-color: darkcyan;
  content: "C";
}

div.itemlist1 .item .effect {
  grid-area: effect;
  color: #08E;
  font-weight: bold;
}

div.itemlist1 .item .effect[data-effect="なし"] {
  color: white;
}

div.itemlist1 .item.header * {
  color: orangered;
  font-size: 14px;
  font-weight: normal;
}

#information {
  padding: .5em;
  margin: 0.5em;
  overflow-y: hidden;
  border: 1px solid navy;
  border-radius: 4px;
  user-select: none;
}

#information:empty {
  display: none;
}

#ManageCategoryRules {
  border: 2px solid #062;
  background-color: #084;
}

#ManageCategoryRules .NoCategoryRule {
  background-color: #CFC;
  padding: 1em;
  margin: 2px;
}

#ManageCategoryRules .CategoryRule {
  background-color: #CFC;
  border-radius: 8px;
  display: grid;
  grid-template: "up down edit name delete" auto / 24px 24px auto 1fr auto;
  gap: 2px;
  margin: 2px;
  padding: 2px 8px;
}

#ManageCategoryRules .CategoryRule button {
  margin: auto 0;
  min-width: 0;
  min-height: 24px;
  transform: scale(0.8);
}

#ManageCategoryRules .CategoryRule .name {
  grid-area: name;
  margin: auto 4px;
}

#ManageCategoryRules .CategoryRule .edit {
  grid-area: edit;
}

#ManageCategoryRules .CategoryRule .up {
  grid-area: up;
}

#ManageCategoryRules .CategoryRule .down {
  grid-area: down;
}

#ManageCategoryRules .CategoryRule .delete {
  grid-area: delete;
}

#SaveDataStorage {
  display: flex;
  flex-direction: column;
  margin-left: 1em;
}
