@charset "utf-8";

:root{
  --main_col0: #060064;
  --main_col1: #0037ff;
  --grad: linear-gradient(45deg, var(--main_col0), var(--main_col1));
  --allow_path: polygon(0% 100%, 20% 100%, 50% 40%, 80% 100%, 100% 100%, 50% 0%);
}

@media (orientation: landscape){
  :root{
    --menu_width: 50%;
  }
}

@media (orientation: portrait){
  :root{
    --menu_width: 80%;
  }
}


html{
  touch-action: manipulation;
  width: 100vw;
  height: 0px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body{
  -webkit-text-size-adjust: 100%;
  font-family: sans-serif;
  width: 100%;
  height: 0px;
  margin: 0;
  overflow: hidden;
}
#main{
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100vw - 10px);
  height: 100%;
  overflow-wrap: break-word;
  overflow-y: auto;
  font-size: 16px;
  padding: 5px;
}
#copyright{
  font-size: 0.8em;
  text-align: center;
  margin: 3em 0 1em 0;
}

h1, h2, h3{
  background: var(--grad);
  background-origin: border-box;
  background-repeat: no-repeat;
  background-position: bottom;
}
h2, h3{
  width: fit-content;
}

h1{
  font-size: 2em;
  padding-bottom: 0.08em;
  background-size: 100% 0.25em;
}

h2{
  max-width: calc(100% - 1em);
  font-size: 1.5em;
  margin-top: 2em;
  padding-left: 1em;
  background-size: 100% 0.2em;
}

h2::before{
  content: "";
  display: block;
  width: 0.8em;
  height: 0.8em;
  background: var(--grad);
  background-origin: content_box;
  background-position: bottom;
  clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 100%, 50% 100%);
//  clip-path: polygon(50% 0%, 0% 0%, 0% 50%, 100% 50%, 100% 100%, 50% 100%);
  transform: translate(-0.9em, 1.15em);
}

h3{
  font-size: 1.25em;
  margin: 1.5em 0 1em 0;
  background-size: 100% 0.1em;
}

button{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  border: none;
  background: none;
}
button:not(#menu_btn):active{
  background-color: rgba(6, 0, 100, 0.2);
}

.hidden{
  display: none !important;
}

#header{
  width: 100%;
  height: 100px;
}
.logo_grad{
  width: 100%;
  max-width: 252px;
  height: 100%;
  background: url('../logo_grad.gif') no-repeat center/contain;
  margin: auto;
}

#dummy_win{
  touch-action: none;
  overscroll-behavior: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

#create_time{
  font-size: 0.9em;
}

#menu_box{
  position: absolute;
  top: 0;
  right: 0;
  z-index: 200;
  width: var(--menu_width);
  max-height: 70vh;
  border: 4px var(--main_col0) solid;
  background-color: white;
  overflow: scroll;
}

#menu_btn{
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: calc(100% - 60px);
  z-index: 255;
  width: 50px;
  height: 50px;
  border: none;
}

#menu_icon, #menu_icon::before, #menu_icon::after{
  width: 40px;
  height: 5px;
  background-color: var(--main_col0);
  margin: 0;
  border: none;
  transition: 0.5s;
  transform-origin: center;
}
#menu_icon{
  opacity: 0.5;
}
#menu_icon::before, #menu_icon::after{
  content: '';
  display: block;
}
#menu_icon::before{
  transform: translate(0, -15px);
}
#menu_icon::after{
  transform: translate(0, 10px);
}

.menu_close{
  width: 0 !important;
  opacity: 1 !important;
}
.menu_close::before{
  transform: translate(-20px, 0) rotate(315deg) !important;
}
.menu_close::after{
  transform: translate(-20px, -5px) rotate(-315deg) !important;
}

#fsb_box{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 200px;
  height: 50px;
  margin-bottom: 10px;
}
.font_size_btn{
  width: 25%;
  border: 4px var(--main_col0) solid;
  box-sizing: border-box;
  background: none;
}
#fsb_label, #fsb_label::before, #fsb_label::after{
  width: 50px;
  height: 50px;
}
#fsb_label::before, #fsb_label::after{
  content: '';
  display: block;
  background-color: var(--main_col0);
}
#fsb_label::before{
  clip-path: polygon(43.75% 0%, 43.75% 12.5%, 6.25% 12.5%, 6.25% 37.5%, 18.75% 37.5%, 18.75% 25%, 81.25% 25%, 81.25% 37.5%, 93.75% 37.5%, 93.75% 12.5%, 56.25% 12.5%, 56.25% 0%);
}
#fsb_label::after{
  clip-path: polygon(25% 31.25%, 25% 43.75%, 50% 43.75%, 50% 50%, 43.75% 50%, 43.75% 62.5%, 12.5% 62.5%, 12.5% 75%, 43.75% 75%, 43.75% 87.5%, 31.25% 87.5%, 31.25% 100%, 56.25% 100%, 56.25% 75%, 87.75% 75%, 87.75% 62.5%, 56.25% 62.5%, 56.25% 56.25%, 62.5% 56.25%, 62.5% 50%, 68.75% 50%, 68.75% 43.75%, 75% 43.75%, 75% 31.25%);
  transform: translate(0, -50px);
}
.font_size_btn:nth-child(2){
  height: 50%;
}
.font_size_btn:nth-child(3){
  height: 75%;
}
.font_size_btn:nth-child(4){
  height: 100%;
}
.fsb_active{
  background-color: var(--main_col0);
}

.allow_btn{
  width: 100%;
  height: 50px;
  border: 1px var(--main_col0) solid;
  border-top: none;
  border-left: none;
  box-sizing: border-box;
}

#allow_u, #allow_d{
  width: 40px;
  height: 20px;
  border: none;
  margin: auto;
  background-color: var(--main_col0);
  clip-path: var(--allow_path);
  transform-origin: center;
}
#allow_d{
  transform: rotate(180deg);
}

#index_box{
  display: flex;
  flex-direction: column;
}
#index_tops{
  display: flex;
  width: 100%;
  height: 60px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border-top: 4px var(--main_col0) solid;
  border-bottom: 4px var(--main_col0) solid;
}
button:disabled{
  color: #7f7f7f;
}
.page_mv_btn:nth-child(-n+2){
  border-right: 2px var(--main_col0) solid;
}
.index_btn, .page_mv_btn{
  width: 100%;
  padding: 8px;
  font-size: 24px;
  color: black;
}
.index_btn{
  margin: 3px 0 0 0;
  border-bottom: 2px var(--main_col0) solid;
}
.index_btn:last-child{
  border: none;
  margin-bottom: 20px;
}

#tags_box{
  margin-top: 8em;
  padding-top: 2em;
  background: var(--grad);
  background-origin: border-box;
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 0.2em;
}


.bold{
  font-weight: 600;
}
.small{
  font-size: 0.9em;
}
.large{
  font-size: 1.1em;
}
.icode, .bcode{
  color: #e0e0e0;
  font-family: monospace;
  background-color: #202020;
}
.icode{
  padding: 0 0.2em;
  border-radius: 0.2em;
}

.bcode{
  width: calc(100% - 40px);
  height: fit-content;
  padding: 20px;
  overflow-x: scroll;
}
.bcode p{
  position: relative;
  width: fit-content;
  margin: 3px;
}
.bcode p::before{
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 20px;
  height: 1px;
}

.tag_figure{
  margin: 0 0 10px 5px;
}
