@charset "utf-8";

@import url("/files/util/common/media/component/theme/font-bauhaus.css");
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/cc-icons/1.2.1/css/cc-icons.min.css");

/*
    SCP Sigma 9
    [2014 Wikidot Theme]
    Created for the SCP Foundation by Aelanna
    Edited for SCP財団 by Dr Devan, NanimonoDemonai

*/

/* for Ruby size */

body {
  text-size-adjust: 110%;
}

#interwiki body {
	background-color: transparent;
}

/* COMMON */

#content-wrap {
  position: relative;
  margin: 2em auto 0;
  max-width: 1040px;
  min-height: 2100px;
  height: auto !important;
  height: 1850px;
}

h1,
#page-title {
  color: #990011;
  padding: 0 0 0.25em;
  margin: 0 0 0.6em;
  font-weight: normal;
}

h1 {
  margin-top: 0.7em;
  padding: 0;
  font-weight: bold;
}

h2,
h3,
h4,
h5,
h6,
h7 {
  margin: 0.5em 0 0.4em;
  padding: 0;
  letter-spacing: 1px;
}

#page-title {
  border-color: #bbbbbb;
}

ul {
  /* list-style-image: url(http://d3g0gp89917ko0.cloudfront.net/v--3b8418686296/common--theme/shiny/images/bullet.gif); */
  list-style: square;
}

#top-bar ul {
  /* list-style-image: none; /* IE ONLY! IF list-style-image IS SET */
}

li,
p {
  line-height: 141%;
}

a {
  color: #bb0011;
  text-decoration: none;
  background: transparent;
}

a.newpage {
  color: #dd6611;
  text-decoration: none;
  background: transparent;
}

a:hover {
  text-decoration: underline;
  background-color: transparent;
}

.form-control {
  width: 95%;
}

/* GLOBAL WIDTH */

#header,
#top-bar {
  width: 90%;
  max-width: 980px;
  margin: 0 auto;
}

#top-bar {
  width: 100%;
  margin: 0 auto;
}

.mobile-top-bar {
  display: none;
  position: absolute;
  left: 1em;
  bottom: 0;
  z-index: 0;
}

body {
  background-color: #ffffff;
  font-size: 0.8em;
  color: #333333;
}

div#container-wrap {
  background: url(/files/util/common/media/component/theme//body_bg.png) top left repeat-x;
}

/* HEADER */

#header {
  height: 140px;
  position: relative;
  z-index: 10;
  padding-bottom: 22px; /* FOR MENU */
  background: url(/files/util/common/media/component/theme//logo.png) 10px 40px no-repeat;
}

#search-top-box {
  position: absolute;
  top: 79px;
  right: 9px;
  width: 250px;
  text-align: right;
}

#search-top-box-input {
  border: solid 1px #999999;
  border-radius: 5px;
  color: #cccccc;
  background-color: #330000;
  box-shadow: inset 1px 1px 3px rgb(0 0 0 / 50%);
}

#search-top-box-input:hover,
#search-top-box-input:focus {
  border: solid 1px #ffffff;
  color: #ffffff;
  background-color: #663333;
  box-shadow: inset 1px 1px 3px rgb(0 0 0 / 80%);
}

#search-top-box-form input[type = "submit"] {
  border: solid 1px #999999;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 90%;
  font-weight: bold;
  color: #cccccc;
  background-color: #663333;
  background: linear-gradient(to bottom, #996666, #663333, #330000);
  box-shadow: 0 1px 3px rgb(0 0 0 / 50%);
  cursor: pointer;
}

#search-top-box-form input[type = "submit"]:hover,
#search-top-box-form input[type = "submit"]:focus {
  border: solid 1px #ffffff;
  color: #ffffff;
  text-shadow: 0 0 1px rgb(255 255 255 / 25%);
  background-color: #996666;
  background: linear-gradient(to bottom, #cc9999, #996666, #663333);
  box-shadow: 0 1px 3px rgb(0 0 0 / 80%);
}

#login-status {
  color: #aaaaaa;
  font-size: 90%;
  z-index: 30;
}

#login-status a {
  background: transparent;
  color: #dddddd;
}

#login-status ul a {
  color: #770000;
  background: transparent;
}

#account-topbutton {
  background: #cccccc;
  color: #770000;
}

.printuser img.small {
  margin-right: 1px;
}

#header h1 {
  margin-left: 120px;
  padding: 0;
  float: left;
  max-height: 95px;
}

#header h2 {
  margin-left: 120px;
  padding: 0;
  clear: left;
  float: left;
  font-size: 105%;
  max-height: 38px;
}

#header h1 a {
  display: block;
  margin: 0;
  padding: 80px 0 25px;
  line-height: 0px;
  max-height: 0;
  color: #eeeeee;
  background: transparent;
  font-family: "BauhausLTDemi", "Arial", sans-serif;
  font-size: 180%;
  text-decoration: none;
  text-shadow: 3px 3px 5px #000000;
  letter-spacing: 0.9px;
}

#header h2 span {
  display: block;
  margin: 0;
  padding: 19px 0;
  line-height: 0px;
  max-height: 0;
  font-weight: bold;
  color: #f0f0c0;
  text-shadow: 1px 1px 1px #000000;
  text-shadow: 1px 1px 1px rgb(0 0 0 / 80%);
}

/* TOP MENU */

#top-bar {
  position: absolute;
  top: 140px;
  height: 21px;
  line-height: 18px;
  padding: 0;
  z-index: 20;
  font-size: 90%;
}

#top-bar ul {
  float: right;
}

#top-bar li {
  margin: 0;
}

#top-bar a {
  color: #ffffff;
  background: transparent;
}

#top-bar ul li {
  border: 0;
  position: relative;
}

#top-bar ul li ul {
  border: solid 1px #666666;
  box-shadow: 0 2px 6px rgb(0 0 0 / 50%);
  border-top: 0;
}

#top-bar ul li a {
  border-left: solid 1px rgb(64 64 64 / 10%);
  border-right: solid 1px rgb(64 64 64 / 10%);
  text-decoration: none;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1px;
  max-height: 1px;
  overflow: hidden;
}

#top-bar ul li.sfhover a,
#top-bar ul li:hover a {
  background: #eeeeee;
  color: #aa0011;
  border-left: solid 1px rgb(64 64 64 / 100%);
  border-right: solid 1px rgb(64 64 64 / 100%);
}

#top-bar ul li.sfhover ul li a,
#top-bar ul li:hover ul li a {
  border-width: 0;
  width: 150px;
  border-top: 1px solid #dddddd;
  line-height: 160%;
  height: auto;
  max-height: none;
  padding-top: 0;
  padding-bottom: 0;
}

#top-bar ul li.sfhover a:hover,
#top-bar ul li:hover a:hover {
  background: #ffffff;
  text-decoration: none;
}

#top-bar ul li ul {
  border-width: 0 1px 1px;
  width: auto;
}

#top-bar ul li ul li,
#top-bar ul li ul li.sfhover,
#top-bar ul li ul li,
#top-bar ul li ul li:hover {
  border-width: 0;
}

#top-bar ul li ul li a {
  border-width: 0;
}

#top-bar ul li ul a,
#top-bar a:hover {
  color: #aa0011;
}

.top-bar ul li:last-of-type ul {
  right: 0;
}

/* IE7 HACK */

#top-bar ul > li > ul {
  *margin-top: -4px;
}

/* SIDE MENU */

#side-bar {
  margin: 0 0 0 2em;
  clear: none;
  float: none;
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 17em;
  padding: 0;
  border: none;
  display: block;
}

#interwiki .side-block {
  margin: 5px;
}

#side-bar .side-block,
#interwiki .side-block {
  padding: 10px;
  border: 1px solid #660000;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgb(102 0 0 / 50%);
  background: #ffffff;
  margin-bottom: 15px;
}

#side-bar .side-area {
  padding: 10px;
}

#side-bar .heading,
#interwiki .heading {
  color: #660000;
  border-bottom: solid 1px #660000;
  padding-left: 15px;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 8pt;
  font-weight: bold;
}

#side-bar p,
#interwiki p {
  margin: 0;
}

#side-bar div.menu-item,
#interwiki .menu-item {
  margin: 2px 0;
}

#side-bar div.menu-item img,
#interwiki .menu-item img {
  width: 13px;
  height: 13px;
  border: 0;
  margin-right: 2px;
  position: relative;
  bottom: -2px;
}

#side-bar div.menu-item a,
#interwiki .menu-item a {
  font-weight: bold;
}

#side-bar div.menu-item.inactive img {
  opacity: 0.25;
}

#side-bar div.menu-item.inactive a {
  color: #999999;
}

#side-bar div.menu-item .sub-text {
  font-size: 80%;
  color: #666666;
}

#side-bar div.menu-item.sub-item {
}

#side-bar .collapsible-block-folded {
  background: url(/files/util/common/media/nav/side/expand.png) 0 2px no-repeat;
}

#side-bar .collapsible-block-link {
  margin-left: 15px;
  font-weight: bold;
}

#side-bar .collapsible-block-unfolded-link {
  border-bottom: solid 1px #660000;
}

#side-bar .collapsible-block-unfolded-link .collapsible-block-link {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 8pt;
  color: #660000;
}

#side-bar .collapsible-block-unfolded-link .collapsible-block-link:hover {
  color: #bb0011;
  text-decoration: none;
}

#side-bar ul {
  list-style-type: none;
  padding: 0 5px;
}

/* CONTENT */

#main-content {
  margin: 0 4em 0 20em;
  padding: 1em;
  position: relative;
}

/* ACTUALLY HIDE HIDDEN TAGS */

#main-content .page-tags a[href ^= "/system:page-tags/tag/_"] {
  display: none;
}

#breadcrumbs {
  margin: -1em 0 1em;
  font-size: 85%;
}

/* YUI-TABS */

.yui-navset .yui-content {
  background-color: #f5f5f5;
}

.yui-navset .yui-nav a,
.yui-navset .yui-navset-top .yui-nav a {
  background-color: #d8d8d8;
  background-image: url(http://d3g0gp89917ko0.cloudfront.net/v--3b8418686296/common--theme/shiny/images/yuitabs.png);
}

.yui-navset .yui-nav .selected a,
.yui-navset .yui-nav .selected a:focus, /* no focus effect for selected */
.yui-navset .yui-nav .selected a:hover { /* no hover effect for selected */
  background: #770000 url(http://d3g0gp89917ko0.cloudfront.net/v--3b8418686296/common--theme/shiny/images/yuitabs.png) repeat-x left -1400px; /* selected tab background */
  color: #ffffff;
}

.yui-navset .yui-nav a:hover,
.yui-navset .yui-nav a:focus {
  background: #dd8888 url(http://d3g0gp89917ko0.cloudfront.net/v--3b8418686296/common--theme/shiny/images/yuitabs.png) repeat-x left -1300px;
  text-decoration: none;
}

.yui-navset .yui-nav,
.yui-navset .yui-navset-top .yui-nav {
  border-color: #444444;
}

.yui-navset .yui-nav,
.yui-navset .yui-navset-top .yui-nav {
  border-color: #444444;
}

.yui-navset li {
  line-height: 141%;
  word-break: break-all;
}

/* FOOTER */

#footer {
  clear: both;
  font-size: 77%;
  background: #444444;
  color: #bbbbbb;
  margin-top: 15px;
  padding: 3px 10px;
}

#footer .options {
  visibility: visible;
  display: block;
  float: right;
  width: 50%;
  font-size: 100%;
  text-align: right;
}

#footer a {
  color: #ffffff;
  background: transparent;
}

/* SOME NICE BOXES */

div.sexy-box {
  background: #eeeeee;
  border: 1px solid #cccccc;
  padding: 0 10px 12px;
  margin: 7px 4px 12px;
  overflow: hidden;
}

div.sexy-box div.image-container img {
  margin: 5px;
  padding: 2px;
  border: 1px solid #999999;
}

/* Custom page content classes */

#page-content {
  min-height: 720px;
}

.unmargined > p {
  margin: 0;
  line-height: 100%;
}

.content-panel {
  border: solid 1px #888880;
  border-radius: 10px;
  background-color: #999990;
  margin: 10px 0 15px;
  box-shadow: 3px 3px 6px #bbbbbb;
  box-shadow: 0 2px 6px rgb(0 0 0 / 50%), inset 0 1px rgb(255 255 255 / 30%), inset 0 10px rgb(255 255 255 / 20%), inset 0 10px 20px rgb(255 255 255 / 25%), inset 0 -15px 30px rgb(0 0 0 / 10%);
}

.content-panel.standalone {
  background: #fcfdfb;
}

.content-panel.series {
  padding: 0 20px;
  margin-bottom: 20px;
}

.content-panel.centered {
  text-align: center;
}

.content-panel.left-column {
  float: left;
  width: 48%;
}

.content-panel.right-column {
  float: right;
  width: 48%;
}

.content-panel .panel-heading {
  padding: 2px 10px;
  color: #ffffff;
  font-size: 90%;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgb(0 0 0 / 35%);
}

.content-panel .panel-heading > p,
.content-panel .panel-footer > p {
  margin: 0;
}

.content-panel .panel-body {
  padding: 5px 10px;
  background: #fff9f0 url(/files/util/common/media/component/theme//panel-bg-gradient-reverse.png) bottom repeat-x;

  /* box-shadow: 1px 2px 3px rgba(0,0,0,.2) inset */
}

.content-panel .panel-footer {
  padding: 1px 10px;
  color: #fffff0;
  font-size: 80%;
  font-weight: bold;
  text-align: right;
  text-shadow: 1px 1px 2px rgb(0 0 0 / 50%);
}

.content-panel .panel-footer a {
  color: #ffffff;
}

.content-panel .content-toc {
  float: right;
  padding: 0 20px;
  background-color: #ffffff;
  border: solid 1px #cccccc;
  border-radius: 10px;
  margin: 20px 0 5px 5px;
  white-space: nowrap;
  box-shadow: inset 1px 2px 6px rgb(0 0 0 / 15%);
}

.alternate:nth-child(even) {
  background-color: rgb(255 255 255 / 90%);
}

/* Page Rating Module Customizations */

.page-rate-widget-box {
  display: inline;
  border-radius: 5px;
  box-shadow: 1px 1px 3px rgb(0 0 0 / 50%);
  margin-bottom: 10px;
  margin: 0;
  padding: 0;
}

div.page-rate-widget-box .rate-points {
  background-color: #663333;
  border: solid 1px #663333;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  color: #ffffff;
  font-weight: bold;
  padding: 0 10px;
}

.page-rate-widget-box .rateup,
.page-rate-widget-box .ratedown {
  background-color: #fff6f0;
  border-top: solid 1px #663333;
  border-bottom: solid 1px #663333;
  font-weight: bold;
}

.page-rate-widget-box .rateup a,
.page-rate-widget-box .ratedown a {
  background: transparent;
  color: #663333;
  padding: 0 4px;
  margin: 0 1px;
}

.page-rate-widget-box .rateup a:hover,
.page-rate-widget-box .ratedown a:hover {
  background: #663333;
  color: #fffff0;
  text-decoration: none;
}

.page-rate-widget-box .cancel {
  background-color: #663333;
  border: solid 1px #663333;
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.page-rate-widget-box .cancel a {
  background: transparent;
  text-transform: uppercase;
  color: #996666;
  padding: 0 5px;
}

.page-rate-widget-box .cancel a:hover {
  border-radius: 0 3px 3px 0;
  background: #663333;
  color: #fffff0;
  text-decoration: none;
}

/* Heritage Collection Rating Module */

.heritage-rating-module {
  float: right;
  display: inline-flex;
  flex-direction: row-reverse;
  vertical-align: top;
  background-color: #663333;
  padding: 0 8px 0 5px;
  border: solid 1px #ccc066;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  margin: 0;
  margin-bottom: 10px;
}

.heritage-rating-module .page-rate-widget-box {
  box-shadow: none;
  margin: 0;
}

.heritage-rating-module .heritage-emblem {
  float: right;
  position: relative;
  top: -1px;
  left: 2px;
  height: 16px;
  width: 16px;
  overflow: visible;
  margin-right: 2px;
}

.heritage-rating-module .heritage-emblem img {
  width: 20px;
  height: 20px;
  border: 0;
}

.rateBox {
  display: inline-block;
}

.rateBox p {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Fixes for multi-line page tags */

#main-content .page-tags {
  margin: 1em 0 0;
  padding: 0;
}

#main-content .page-tags span {
  display: inline-block;
  padding: 0;
  max-width: 60%;
}

#main-content .page-tags a {
  display: inline-block;
  white-space: nowrap;
}

/* Standard Image Block */

.scp-image-block {
  border: solid 1px #666666;
  box-shadow: 0 1px 6px rgb(0 0 0 / 25%);
  width: 300px;
}

.scp-image-block.block-right {
  float: right;
  clear: right;
  margin: 0 2em 1em;
}

.scp-image-block.block-left {
  float: left;
  clear: left;
  margin: 0 2em 1em 0;
}

.scp-image-block.block-center {
  margin-right: auto;
  margin-left: auto;
}

.scp-image-block img {
  border: 0;
  width: 300px;
}

.scp-image-block .scp-image-caption {
  background-color: #eeeeee;
  border-top: solid 1px #666666;
  padding: 2px 0;
  font-size: 80%;
  font-weight: bold;
  text-align: center;
  width: 300px;
}

.scp-image-block > p {
  margin: 0;
}

.scp-image-block .scp-image-caption > p {
  margin: 0;
  padding: 0 10px;
}

@media (max-width: 768px) {

  .scp-clear-true.scp-image-block {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Forum Customizations */

.forum-thread-box .description-block {
  padding: 0.5em 1em;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgb(0 0 0 / 15%),
    inset 0 1px 0 rgb(255 255 255 / 80%),
    inset 0 10px 5px rgb(255 255 255 / 25%),
    inset 0 -15px 30px rgb(0 0 0 / 10%);
}

.thread-container .post .head {
  padding: 0.5em 1em;
  background-color: #eeeeee;
  background: linear-gradient(to right, #eeeeee, #eeecec);
  box-shadow: inset 2px 3px 6px rgb(0 0 0 / 15%);
  border-radius: 5px 5px 0 0;
}

/* Hide Forum Signatures */

.signature {
  display: none !important;
}

/* Ruby by Nanimono Demonai */

.ruby,
ruby {
  display: inline-table;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  height: 1em;
  vertical-align: text-bottom;
}

.rt,
rt {
  display: table-header-group;
  font-size: 0.6em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

/* Keycap */

.keycap {
  border: 1px solid;
  border-color: #dddddd #bbbbbb #bbbbbb #dddddd;
  border-bottom-width: 2px;
  border-radius: 3px;
  border-radius: 3px;
  background-color: #f9f9f9;
  padding: 1px 3px;
  font-family: inherit;
  font-size: 0.85em;
  white-space: nowrap;
}

/* tag style */

.tags {
  display: inline-block;
  margin: 0 0 0 5px;
  padding: 3px 5px 3px 0;
  height: 13px;
  line-height: 13px;
  font-size: 11px;
  background: #666666;
  color: #ffffff;
  text-decoration: none;
  -moz-border-radius-bottomright: 4px;
  border-bottom-right-radius: 4px;
  -moz-border-radius-topright: 4px;
  border-top-right-radius: 4px;
}

.tags::before {
  content: "";
  padding: 0 1px 3px;
  float: left;
  position: relative;
  top: -3px;
  left: -10px;
  width: 0;
  height: 0;
  border-color: transparent #666666 transparent transparent;
  border-style: solid;
  border-width: 8px 8px 8px 0;
}

.tags::after {
  content: "";
  position: relative;
  top: 4.5px;
  left: -8px;
  float: left;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: -1px -1px 2px #004977;
  box-shadow: -1px -1px 2px #333333;
  box-shadow: -1px -1px 2px #333333;
}

/* Display Black Block by Nanimono Demonai */

.bblock {
  color: #000000;
  background-color: #000000;
  transition: 2s;
  text-decoration: none;
}

.bblock:hover {
  background-color: #000000;
  color: #006600;
  text-decoration: none;
}

.dblock {
  color: #000000;
  background-color: #000000;
  transition: 2s;
  text-decoration: none;
}

.dblock:hover {
  background-color: transparent;
  text-decoration: none;
}

/* Blockquote Mimic Dic */

div.blockquote {
  border: 1px dashed #999999;
  background-color: #f4f4f4;
  padding: 0 1em;
  margin: 1em 3em;
}

@media (max-width: 479px) {

  div.blockquote {
    margin: 1em 0;
  }
}

@media (min-width: 480px) and (max-width: 580px) {

  div.blockquote {
    margin: 0.5em;
  }
}

/*
    2011-11-13 Minobe Hiroyuki @ Marguerite Site
    www.marguerite.jp/Nihongo/WWW/CSSTips/EmphasizeDots-CSS3.html
    Edited for the SCP Foundation by Nanimono_Demonai
*/

.emph {
  text-emphasis-style: dot;
}

/* viewport */

@viewport {
  width: device-width;
  zoom: 1;
}

/* IE viewport */
@viewport {
  width: device-width;
  zoom: 1;
}

/* opera viewport */
@viewport {
  width: device-width;
  zoom: 1;
}

/* chrome viewport - maybe it isn't work... */
@-webkit-viewport {
  width: device-width;
  zoom: 1;
}

/* firefox viewport - maybe it isn't work too... */
@-moz-viewport {
  width: device-width;
  zoom: 1;
}

/* webkit scrollbar */

::-webkit-scrollbar {
  width: 9px;    /* for vertical scrollbars */
  height: 9px; /* for horizontal scrollbars */
  border: solid 1px rgb(0 0 0 / 10%);
}

::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 10%);
}

::-webkit-scrollbar-thumb {
  background: rgb(50 50 50 / 30%);
}

.page-source {
  word-break: break-all;
}

/* Responsive Web Design */

img,
embed,
video,
object,
iframe,
table {
  max-width: 100%;
}

#page-content div,
#page-content div table {
  max-width: 100%;
}

#edit-page-comments {
  width: 100%;
}

/* basic Query for mobile devices */

@media (max-width: 767px) {

  .owindow {
    min-width: 80%;
    max-width: 99%;
  }

  .modal-body .table,
  .modal-body .table ~ div {
    float: left;
  }

  .owindow .button-bar {
    float: right;
  }

  .owindow div a.btn-primary {
    width: 100%;
    float: left;
  }
}

/* Mobile Media Query */
@media (max-width: 479px) {

  #search-top-box-input {
    width: 5em;
  }

  #page-content {
    font-size: 0.9em;
  }

  #main-content {
    margin: 0;
  }

  #recent-posts-category {
    width: 100%;
  }

  #header,
  .mobile-top-bar {
    max-width: 90%;
  }

  #side-bar {
    width: 80%;
    position: relative;
  }

  .top-bar {
    display: none;
  }

  .mobile-top-bar {
    display: block;
    padding: 0;
  }

  .page-options-bottom a {
    padding: 0 4px;
  }

  #header h1 a {
    font-size: 100%;
  }

  blockquote {
    margin: 1em 0;
  }

  .license-area {
    font-size: 0.8em;
  }

  #header {
    background-position: 0 5.5em;
    background-size: 55px 55px;
  }

  #header h1,
  #header h2 {
    margin-left: 66px;
  }

  table.form td,
  table.form th {
    float: left;
  }

  td.title {
    width: 30%;
  }

  table.form td,
  table.form th {
    padding: 0;
  }

  #edit-page-title {
    max-width: 90%;
  }

  .content-panel.left-column,
  .content-panel.right-column {
    width: 99%;
    float: left;
  }

  #page-content div,
  #page-content div table {
    clear: both;
  }

  .heritage-rating-module {
    padding: 1px 8px 1px 5px;
  }

  .heritage-rating-module .heritage-emblem {
    top: -2px;
  }
}

/* Note Media Query */
@media (min-width: 480px) and (max-width: 580px) {

  #search-top-box-input {
    width: 7em;
  }

  #main-content {
    margin: 0 2em;
  }

  #header,
  .mobile-top-bar {
    max-width: 90%;
  }

  #side-bar {
    width: 80%;
    position: relative;
  }

  .top-bar {
    display: none;
  }

  .mobile-top-bar {
    display: block;
  }

  .page-options-bottom a {
    padding: 0 5px;
  }

  #header h1 a {
    font-size: 120%;
  }

  blockquote {
    margin: 0.5em;
  }

  .license-area {
    font-size: 0.85em;
  }

  #header {
    background-position: 0.5em 4.5em;
    background-size: 66px 66px;
  }

  #header h1,
  #header h2 {
    margin-left: 80px;
  }

  td.title {
    width: 30%;
  }

  .content-panel.left-column,
  .content-panel.right-column {
    width: 99%;
    float: left;
  }

  #page-content div,
  #page-content div table {
    clear: both;
  }
}

/* Mini Tablet Media Query */
@media (min-width: 581px) and (max-width: 767px) {

  #search-top-box-input {
    width: 8em;
  }

  #side-bar {
    width: 80%;
    position: relative;
  }

  #main-content {
    margin: 0 3em 0 2em;
  }

  #header,
  .mobile-top-bar {
    max-width: 90%;
  }

  .top-bar {
    display: none;
  }

  .mobile-top-bar {
    display: block;
  }

  .page-options-bottom a {
    padding: 0 6px;
  }

  #header h1 a {
    font-size: 140%;
  }

  .license-area {
    font-size: 0.9em;
  }

  #header {
    background-position: 1em 4em;
    background-size: 77px 77px;
  }

  #header h1,
  #header h2 {
    margin-left: 93px;
  }
}

/* Tablet Media Query */
@media (min-width: 768px) and (max-width: 979px) {

  #main-content {
    margin: 0 4em 0 20em;
  }

  #header,
  #top-bar #side-bar {
    max-width: 100%;
  }

  .top-bar li {
    margin: 0;
  }

  #top-bar ul li.sfhover ul li a,
  #top-bar ul li:hover ul li a {
    width: 110px;
  }

  .page-options-bottom a {
    padding: 0 7px;
  }

  #header h1 a {
    font-size: 160%;
  }

  .license-area {
    font-size: 0.95em;
  }

  #header {
    background-position: 1em 4em;
    background-size: 88px 88px;
  }

  #header h1,
  #header h2 {
    margin-left: 106px;
  }

  .content-panel.left-column,
  .content-panel.right-column {
    width: 99%;
    float: left;
  }

  #page-content div,
  #page-content div table {
    clear: both;
  }
}

/* Desktop Media Query -----------
@media (min-width: 980px) and (max-width: 1399px) {

}
------------------------------------------ */

/* Wide Monitor Media Query -----
@media (min-width: 1400px) {

}
------------------------------------------ */

/* off-canvas */

.close-menu {
  display: none;
}

@media (max-width: 767px) {

  .page-history tbody tr td:last-child {
    width: 35%;
  }

  .owindow {
    min-width: 80%;
    max-width: 99%;
  }

  .modal-body .table,
  .modal-body .table ~ div {
    float: left;
  }

  .owindow .button-bar {
    float: right;
  }

  .owindow div .btn-primary {
    width: 100%;
    float: left;
  }

  .owindow div .btn-primary ~ div {
    width: 100%;
  }

  .yui-navset {
    z-index: 1;
  }

  #navi-bar,
  #navi-bar-shadow {
    display: none;
  }

  .open-menu a {
    position: fixed;
    bottom: 0.5em;
    left: 0.5em;
    z-index: 15;
    font-family: "san-serif";
    font-size: 30px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    line-height: 0.9em;
    text-align: center;
    border: 0.2em solid #888888 !important;
    background-color: #ffffff !important;
    border-radius: 3em;
    color: #888888 !important;
  }

  .open-menu a:hover {
    text-decoration: none !important;
    box-shadow: 0 0 20px 3px rgb(153 153 153 / 100%);
    box-shadow: 0 0 20px 3px rgb(153 153 153 / 100%);
    box-shadow: 0 0 20px 3px rgb(153 153 153 / 100%);
    box-shadow: 0 0 20px 3px rgb(153 153 153 / 100%);
  }

  #main-content {
    max-width: 90%;
    margin: 0 5%;
    padding: 0;
    transition: 0.5s ease-in-out 0.1s;
    transition: 0.5s ease-in-out 0.1s;
    transition: 0.5s ease-in-out 0.1s;
    transition: 0.5s ease-in-out 0.1s;
  }

  #side-bar {
    display: block;
    position: fixed;
    top: 0;
    left: -25em;
    width: 17em;
    height: 100%;
    background-color: rgb(184 134 134);
    overflow-y: auto;
    z-index: 10;
    padding: 1em 1em 0;
    transition: left 0.5s ease-in-out 0.1s;
    transition: left 0.5s ease-in-out 0.1s;
    transition: left 0.5s ease-in-out 0.1s;
    transition: left 0.5s ease-in-out 0.1s;
  }

  #side-bar::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgb(0 0 0 / 20%);
  }

  #side-bar:target {
    display: block;
    left: 0;
    width: 17em;
    margin: 0;
    border: 1px solid #dedede;
    z-index: 10;
  }

  #side-bar:target + #main-content {
    left: 0;
  }

  #side-bar:target .close-menu {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0 0 0 / 30%) 1px 1px repeat;
    z-index: -1;
  }
}

.post .content a {
  word-wrap: break-word;
}

.colmod-block > ul,
.colmod-block > ul > li {
  display: block;
  line-height: normal;
  list-style: none;
  margin: 0;
  padding: 0;
}

.colmod-block > ul > li > ul,
li.folded > .colmod-link-top a + a,
li.folded > .colmod-content,
li.folded > .colmod-link-end a,
li.unfolded > .colmod-link-top a:first-child {
  display: none;
}

.colmod-content {
  animation: colmod-fade-in 0.2s ease-in-out;
  animation: colmod-fade-in 0.2s ease-in-out;
  animation-timing-function: cubic-bezier(0.3649610494, 0, 0.6350389506, 1);
  animation-timing-function: cubic-bezier(0.3649610494, 0, 0.6350389506, 1);
}

li.folded > .colmod-content {
  animation-name: none;
  animation-name: none;
}

@keyframes colmod-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes colmod-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes colmod-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

[class |= "colmod-link"] div.foldable-list-container {
  display: inline;
}

.colmod-collapsiblealt > [class |= "colmod-link"] {
  margin: 0.5em 0;
  text-align: center;
}

.colmod-collapsiblealt > [class |= "colmod-link"],
.collapsiblealt > .colmod-block > ul > li > [class |= "colmod-link"] {
  margin: 0.5em 0;
  text-align: center;
}

.colmod-collapsiblealt > [class |= "colmod-link"] a,
.collapsiblealt > .colmod-block > ul > li > [class |= "colmod-link"] a {
  padding: 0.1em 0.5em;
  text-decoration: none;
  background-color: #f4f4f4;
  border: 1px solid #aaaaaa;
  color: #000000;
}

.colmod-collapsiblealt > [class |= "colmod-link"] a:hover,
.colmod-collapsiblealt > [class |= "colmod-link"] a:active,
.collapsiblealt > .colmod-block > ul > li > [class |= "colmod-link"] a:hover,
.collapsiblealt > .colmod-block > ul > li > [class |= "colmod-link"] a:active {
  background: #dddddd;
  text-decoration: none;
}

.hovertip {
  cursor: pointer;
}

/* メタタイトル折りたたみ用CSS */

.content-panel.scp ul {
  padding: 0 0 0 1.5em;
}

.content-panel.scp ul li {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS  3D touch 不具合修正 */
}

.content-panel.scp ul li:hover {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.content-panel.scp ul li::before {
  background: #333333;
  content: "";
  display: inline-block;
  height: 4px;
  margin: 0 1em 0 0;
  vertical-align: middle;
  width: 4px;
}

@media (max-width: 767px) {

  .content-panel.scp .content-toc {
    float: unset;
  }
}

/* nav:topでPageOptionsが操作できない問題の修正 */

#page-content .top-bar,
#page-content .mobile-top-bar {
  position: static;
}

/* _404, _template用CommonCSS */

#page-content .wikisys--template-dialog {
  width: 90%;
  max-width: 500px;
  margin: 2em auto;
  padding: 2em;
  background: #f9f9f9;
  border-radius: 2em;
  color: #330011 !important;
  border: solid 1px #b7b7b7;
}

#page-content .wikisys--template-dialog > .wikisys--template-dialog-header {
  position: relative;
  line-height: 1.5;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 5px 0 5px 12px;
}

#page-content .wikisys--template-dialog > .wikisys--template-dialog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  opacity: 0.2;
  border-radius: 3px;
  background: #aaaaaa;
}

#page-content .wikisys--template-dialog > .wikisys--template-dialog-content {
  line-height: 1.75;
  margin: 1em 0;
}

#page-content .wikisys--template-dialog > .wikisys--template-dialog-footer {
  font-size: 90%;
  margin-top: 2em;
}

#page-content .wikisys--template-dialog > .wikisys--template-dialog-infoarea {
  margin-top: 2em;
}

/* Show-Changes Highlights from SCP-CN */

.inline-diff ins:first-of-type::before,
.inline-diff del:first-of-type::before,
.inline-diff br + ins::before,
.inline-diff br + del::before {
  display: inline-block;
  font: normal normal normal 14px/1 "FontAwesome";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f111";
  position: absolute;
  left: 0.75em;
}

.inline-diff ins::before {
  color: #ddddff;
}

.inline-diff del::before {
  color: #ffcccc;
}

.inline-diff ins + del::before,
.inline-diff del + ins::before {
  color: transparent;
}

/* printuser avaterhover非選択 */

.printuser.avatarhover > a > img {
  user-select: none;
}

#avatar-hover-container {
  display: none;
}
