@charset "utf-8";

/* Common
----------------------------------------------- */
* {
  box-sizing: border-box;
}
a {
  color: #222;
}
html {
  font-size: 14px;
}
body {
  color: #222;
  background: #f5f5f5;
  font-family: 'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'ＭＳ Ｐゴシック',sans-serif;
  line-height: 1.5;
  word-break: break-all;
  margin: 15px 0;
  margin: 0;
}
.hide {
  display: none !important;
}
.error-message {
  color: #f33;
  margin-bottom: 20px;
}
.error-message a {
  color: #f33;
}

/* Form
----------------------------------------------- */
input[type="text"] {
  margin-bottom: 10px;
  padding: 0 1rem;
  line-height: 2.3rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: none;
  font-size: 1rem;
}
input[type="submit"], button {
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  -webkit-appearance: none;
  color: #222;
  padding: 0 20px;
  min-width: 100px;
  height: 30px;
}
input[type="submit"]:hover, button:hover {
  cursor: pointer;
  border: 1px solid #999;
}
select {
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  color: #111;
  outline: none;
  -webkit-appearance: none;
}
textarea {
  margin: 0;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 106px;
  padding: 10px;
  line-height: 1.5;
  overflow: hidden;
  resize: none;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  height: 12px;
  width: 100%;
  background: #ddd;
  border-radius: 10px;
  vertical-align: middle;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #bbb;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
}
input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  background: #bbb;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
}

/* Layout
----------------------------------------------- */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background: #444;
}
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background: #444;
}
#main {
  background: #fff;
  max-width: 700px;
  margin: 50px auto 20px;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 3px;
}

/* Header
----------------------------------------------- */
.navi {
  width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
  overflow: hidden;
  padding: 0;
  list-style-type: none;
}
.navi li {
  float: left;
}
.navi li a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
}
.navi li a:hover {
  color: #ffc;
}

.page-title {
  margin: 0 0 30px;
  padding: 0;
  font-size: 1.3rem;
}
.page-sub-title {
  margin: -10px 0 20px;
  padding: 0;
  font-size: 1.1rem;
}
.page-edit-link {
  margin: -30px 0 30px;
  text-align: right;
}
.page-edit-link a {
  color: #888;
  font-size: 0.9rem;
}
.page-head {
  margin: 40px 0 20px;
  padding: 3px;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: dotted 1px #ccc;
}
.page-head-text {
  margin-left: 10px;
  font-size: 0.9rem;
  font-weight: normal;
}
.page-head-text a {
  color: #888;
}
.toggle-button {
  cursor: pointer;
  user-select: none;
}
.toggle-button-text {
  margin-left: 10px;
  font-size: 12px;
  font-weight: normal;
  color: #333;
  background: url(../img/plus.png?20230707) no-repeat 0 center;
  background-size: 12px;
  padding-left: 16px;
}
.toggle-button-text-open {
  background: url(../img/minus.png?20230707) no-repeat 0 center;
  background-size: 12px;
}
.page-form,
.item-form {
  margin: 0 auto 30px;
  max-width: 500px;
}
.page-form input[type="text"],
.item-form input[type="text"] {
  width: 100%;
}
.form-label {
  font-weight: bold;
  margin-bottom: 5px;
}
.form-label-description {
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #888;
}
.form-label-field {
  margin-bottom: 10px;
}
.text-countdown {
  margin-left: 10px;
  color: #555;
  font-size: 0.8rem;
}
.text-countdown-over {
  color: #f33;
}

.page-delete {
  text-align: right;
}
.webcomics-links {
  margin-bottom: 20px;
}
.webcomics-link {
  margin-bottom: 10px;
}
.webcomics-link-edit-link {
  text-align: right;
}
.webcomics-link-edit-link a {
  color: #888;
  font-size: 0.9rem;
}
.webcomics-link-delete-url {
  margin-bottom: 20px;
}
.webcomics-link-delete button {
  margin: auto;
  display: block;
}

.character-index-link,
.term-index-link,
.episode-index-link {
  margin: 0 5px 0;
  text-align: center;
}
.episode-index-link {
  margin: 20px 5px 0;
}
.character-index-link a,
.term-index-link a,
.episode-index-link a {
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: inline-block;
  width: 280px;
  line-height: 30px
}
.character-sort-link,
.term-sort-link {
  text-align: right;
  margin-top: -10px;
}
.character-index-link + .character-sort-link,
.term-index-link + .term-sort-link {
  margin: 10px 0 -20px;
}
.character-sort-link a,
.term-sort-link a {
  color: #888;
  font-size: 0.9rem;
}
.character-sort-notice,
.term-sort-notice {
  font-size: 0.8rem;
}
.characters,
.terms {
  margin: 0 5px 20px;
}
.character,
.term {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f3f3;
}
.character-name,
.term-name {
  font-weight: bold;
  margin-bottom: 5px;
}
.character-group,
.term-group {
  margin-bottom: 5px;
  display: inline-block;
  color: #555;
}
.character-footer,
.term-footer {
  color: #888;
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: -5px;
}
.character-footer span,
.term-footer span {
  margin-left: 5px;
}
.character-footer a,
.term-footer a {
  color: #888;
  text-align: right;
}
.character-delete,
.term-delete {
  text-align: right;
}

.episode-index-order-link {
  text-align: right;
  margin-bottom: 10px;
}
.episode-index-order-link a {
  color: #888;
}
.episodes {
  margin: 0 5px;
}
.episode {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f3f3f3;
}
.episode-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.episode-text {
}
.episode-footer {
  color: #888;
  text-align: right;
  font-size: 0.9rem;
}
.episode-footer span {
  margin-left: 5px;
}
.episode-footer a {
  color: #888;
  text-align: right;
}
.episode-delete {
  text-align: right;
}
.item-index .page-head {
  margin-top: 0;
}
.item-search-form {
  position: relative;
  margin-bottom: 20px;
}
.item-search-form input {
  padding-right: 40px;
}
.item-search-form button {
  position: absolute;
  top: 6px;
  left: 200px;
  height: 25px;
  width: 22px;
  min-width: auto;
  background: url(/img/search.png) no-repeat center 5px;
  background-size: 14px;
  padding: 0;
  border: none;
  outline: none;
  cursor: pointer;
}
.episode-search-chapter-title {
  margin-right: 5px;
}
.episode-search-chapter input {
  padding: 0 0.5rem;
  width: 4rem;
  line-height: 2rem;
}
.item-search-empty {
  margin: 20px 0;
}

/* Sort
----------------------------------------------- */
.sort-list {
  margin: 0 0 20px;
}
.sort-list > div {
  background: #fff;
}

/* Restore
----------------------------------------------- */
.page-restore {
  margin-bottom: 20px;
}

/* History
----------------------------------------------- */
.history-filter {
  margin-bottom: 20px;
  /* font-size: 0.9rem; */
}
.history-filter input[type="radio"] {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
}
.history-filter-type label,
.history-filter-action label {
  display: inline-block;
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px 5px;
  cursor: pointer;
}
.history-filter-type label:has(input:checked),
.history-filter-action label:has(input:checked) {
  background: #f3f3f3;
  font-weight: bold;
}
.history-filter-type {
  margin-bottom: 10px;
}
.history-filter-action {
  margin-bottom: 20px;
}
.history-filter-search label {
  display: inline-block;
  min-width: 70px;
}
.history-filter-search input[type="text"] {
  width: 120px;
}
.history-filter-button {
  margin-top: 5px;
}
.history-notice {
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.history {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f3f3f3;
}
.history-action {
  margin-bottom: 5px;
  padding: 0 10px;
  line-height: 18px;
  border: 1px solid #555;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.8rem;
}
.history-action a {
  text-decoration: none;
}
.history-action-create, .history-action-restore_delete {
  border: 1px solid #1976d2;
}
.history-action-create a, .history-action-restore_delete a {
  color: #1976d2;
}
.history-action-update, .history-action-sort {
  border: 1px solid #388e3c;
}
.history-action-update a, .history-action-sort a {
  color: #388e3c;
}
.history-action-delete {
  border: 1px solid #d32f2f;
}
.history-action-delete a {
  color: #d32f2f;
}
.history-page {
  margin-bottom: 5px;
  font-weight: bold;
}
.history-page-episode-title,
.history-page-character-name,
.history-page-term-name {
  font-weight: bold;
}
.history-content {
  margin-bottom: 5px;
}
.history-footer {
  color: #888;
  text-align: right;
  font-size: 0.9rem;
}
.history-footer > span {
  margin-left: 10px;
}
.history-footer a {
  color: #888;
  text-align: right;
}
.history-menu {
  border-bottom: dotted 1px #ccc;
}
.history-menu a {
  text-decoration: none;
}
.history-menu .hover-tip-popup-block span {
  margin: 0 5px;
}
.history-user-container {
  width: 6.3em;
  text-align: left;
  display: inline-block;
}
.text-diff-added {
  background: #ddffdd;
}
.text-diff-removed {
  background: #ffdddd;
}

/* Guide
----------------------------------------------- */
.guide .guide-section-title:first-child {
  margin-top: 0;
}
.guide .guide-section-title {
  margin: 20px 0;
  font-weight: bold;
}
.guide p {
  font-size: 0.9rem;
}
.guide table {
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}
.guide table th, .guide table td {
  padding: 5px;
  border: 1px solid #ccc;
}
.guide table th {
  background: #f3f3f3;
  font-weight: bold;
}
.guide-table-num {
  text-align: right;
}

/* Setting
----------------------------------------------- */
.setting-point {
  margin-bottom: 20px;
}

/* Pager
----------------------------------------------- */
.pager {
  text-align: center;
  margin: 20px 0 15px;
}
.pager a {
  text-decoration: none;
  color: #333;
}
.pager-next {
  width: 280px;
  display: inline-block;
  line-height: 30px
}
.pager-next a {
  display: block;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.pager-next a:hover {
  border: 1px #999 solid;
}
.paer-next-nolink {
  border: 1px solid transparent;
  color: #aaa;
}
.pager-range {
  margin-top: 20px;
}
.pager-range input {
  width: 200px;
}
.pager-range-current, .pager-range-max {
  width: 30px;
  display: inline-block;
}

/* Hover Tip
----------------------------------------------- */
.hover-tip {
  position: relative;
  cursor: default;
  user-select: none;
}
.hover-tip-popup {
  opacity: 0;
  visibility: hidden;
  display: block;
  z-index: 5;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.1s ease-in;
}
.hover-tip-popup-top-right {
  left: -5px;
  transform: translateX(0);
}
.hover-tip-popup-block {
  display: block;
  margin-bottom: 7px;
  background: #fff;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 1px 1px 3px #ccc;
  line-height: 1.5;
  width: max-content;
  max-width: 100%;
}
.hover-tip-popup-block:before, .hover-tip-popup-block:after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: auto;
}
.hover-tip-popup-block:before {
  bottom: -12px;
  border: 10px solid transparent;
  border-top: 10px solid #ccc;
  filter: drop-shadow(0px 3px 2px #ddd);
}
.hover-tip-popup-block:after {
  bottom: -10px;
  border-style: solid;
  border: 9px solid transparent;
  border-top: 9px solid #fff;
  z-index: 10;
}
.hover-tip-popup-top-right .hover-tip-popup-block:before {
  left: 5px;
  right: auto;
}
.hover-tip-popup-top-right .hover-tip-popup-block:after {
  left: 5px;
  right: auto;
}
.hover-tip:hover .hover-tip-popup {
  opacity: 1;
  visibility: visible;
}

/* Overflow Block
----------------------------------------------- */
.overflow-block {
  max-height: 7.5em;
  overflow: hidden;
}
.overflow-block-open {
	max-height: none;
}
.overflow-block-button {
  margin: 10px 0px;
  font-size: 0.8rem;
  color: #555;
  border: none;
  cursor: pointer;
  display: inline-block;
  border-bottom: dotted 1px #ccc;
}

/* Media Queries
----------------------------------------------- */
@media screen and (max-width: 700px) {
  #main {
    border-left: none;
    border-right: none;
  }
  .sort-list {
    margin: 0 20px 20px;
  }
}
@media screen and (max-width: 480px) {
  #main {
    padding: 10px;
  }
  .history-footer {
    font-size: 0.8rem;
  }
}
