@font-face {
    font-family: "kkm_analogtv";
    src: url("/font/kkm_analogtv.woff2") format("woff2"),
    url("/font/kkm_analogtv.woff") format("woff"),
    url("/font/kkm_analogtv.ttf") format("ttf")
;
}
@font-face {
    font-family: "marukkanas";
    src: url("/font/marukkanas/PtO-MarukkanaS-W9_20140407.woff2") format("woff2"),
    url("/font/marukkanas/PtO-MarukkanaS-W9_20140407.woff") format("woff"),
    url("/font/marukkanas/PtO-MarukkanaS-W9_20140407.otf") format("otf")
;
}

p, span, th, td, li {
    font-size: medium;
    -o-transform: rotate(0.028deg);
    -ms-transform: rotate(0.028deg);
    -moz-transform: rotate(0.028deg);
    -webkit-transform: rotate(0.028deg);
    transform: rotate(0.028deg);
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    word-wrap:break-word;
}
@media screen and (min-width: 1024px) {
    html {
        overflow-y: scroll;
    }
}

*::placeholder {
    color: #ccc;
}
* {
    font-family: "M PLUS Rounded 1c", "sans-serif", "メイリオ";
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
}
#bg img {
    filter: drop-shadow(0 0 3px #fff);
    width: 300px;
}

input[type=text],
textarea {
    font-size: 16px;
}

img {
    display: inline;
}

input[type=checkbox] {
    vertical-align: middle;
}

.center {
    text-align: center;
}
.center table {
    margin-left: auto;
    margin-right: auto;
}

h1 {
    position: relative;
    text-align: center;
}
h1, h2 {
    margin: 10px 0;
    font-size: large;
}

table {
    border-collapse: collapse;
    margin: 0 0 10px 0;
}
table.box,
table.box th,
table.box td
{
    border : solid 1px gainsboro;
    text-align: left;
    background-color: #fff;
}

th, td {
    padding: 10px;
}

div {
    margin: 0 0 10px 0;
}

p {
  margin: 0 0 15px 0;
}
p:last-child {
    margin: 0;
}

div.content {
    position: relative;
    width: calc(100vw - 20px);
    height: 100vh;
    max-width: 640px;
    /*margin: 0 auto;*/
    margin: 10px auto;
    padding: 65px 0 0 0;
}
div.header {
    position: absolute;
    top: 0;
    width: 100%;
}

div.warning {
    border: solid 1px red;
    padding: 1em;
}
p.warning {
    margin: 0.5em 0 0 0;
}
.warning {
    color: red;
}

ul.menu {
    margin: 15px 0;
    padding: 0;
}
ul.menu li {
    display: inline;
    margin: 0 1em 0 0;
}

ul li {
    line-height: 1.5em;
}

form {
    margin: 1em 0;
}
form:first-child { margin-top: 0; }
form:last-child { margin-bottom: 0; }

div.box {
    background-color: #fff;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 10px;
}

.footer {
    margin: 1em 0 0 0;
    padding: 0 0 5em 0;
}
.footer p {
    text-align: center;
}

div.nowloading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 0.5;
    width: 100%;
    text-align: center;
    padding: 50vh 0 0 0;
}

p.img-preview {
    line-height: 0;
}

.header {
    min-height: 32px;
    margin: 0;
    text-align:center;
}
.header .logo {
    margin: 0 auto;
}
.header .logo img {
    height:45px;
}
div.logo h1 a {
    font-family: "kkm_analogtv", "M PLUS Rounded 1c", "sans-serif", "メイリオ";
    font-size: 45px;
    line-height: 1em;
    text-decoration: none;
    color: black;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #fff);
}

.icon {
    width: 45px;
    height: 45px;
    background-color: #fff;
    background-size: 100%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
}
#meows div.icon {
    width: 50px;
    height: 50px;
}
.icon img {
    width: 100%;
    height: 100%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

#header-left-icons {
    position: absolute;
    top: 0;
    left: 0;
}
#header-right-icons {
    position: absolute;
    top: 0;
    right: 0;
}
#header-right-icons .icon {
    float:right;
    margin: 0 0 0 10px;
}
.meow-start-icon {
    background: #fff url('/img/heartbleed.svg?4') no-repeat;
    background-size: 100%;
}
@media screen and (max-width: 480px) {
    #header-search-icon {
        display: none;
    }
}
#menu-icon {
    background: #fff url('/img/menu02.svg') no-repeat 5px 5px;
    background-size: 80%;
}


div.meow-box {
    position: relative;
    margin: 0 0 10px 0;
}
div.meow-box.mute {
    display: none;
}
p.meow-head {
    margin: 0 0 15px 60px;
}
div.meow-box .insert-image {
    margin: 0 5px 5px 0;
    position: relative;
    max-width: 100%;
    filter: drop-shadow(0 0 5px lightgrey);
}
div.meow-box .insert-image.multi-img {
    float: left;
    width: calc((100vw - 115px) / 2);
    height: calc((100vw - 115px) / 2 * 0.618);
    max-width: 270px;
    max-height: 200px;
    object-fit: cover;
    overflow: hidden;
}

@media screen and (min-width: 640px) {
    div.meow-box .insert-image.multi-img {
        float: left;
        width: calc((640px - 115px) / 2);
        height: calc((640px - 115px) / 2 * 0.618);
        max-width: 270px;
        max-height: 200px;
        object-fit: cover;
        overflow: hidden;
    }
}

span.meow-identify {
    font-size: small;
    color: gray;
}

div.meow-box .insert-image a {
    line-height: 0;
}
div.meow-box .insert-image img {
    max-width: 100%;
    max-height: 40vh;
    margin: 0;
    border-radius: 10px;
}
div.meow-box .insert-image.multi-img img {
    width: 100%;
}

div.insert-midi {
    overflow-x: scroll;
}
div.insert-midi::-webkit-scrollbar {
    height: 10px;
}
div.insert-midi::-webkit-scrollbar-track {
    margin: 0 2px;
    background: #ccc;
    border-radius: 5px;
}
div.insert-midi::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #666;
}

.meow-paint-tool {
    font-size:x-small;
    margin: 0;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #fff;
}

div.meow-box div.icon {
    position: absolute;
    float: left;
    margin: 0 10px 0 0;
}
.meow-text {
    word-break: break-all;
}
.meow-text img.dm-icon {
    margin: 0 0.5em 0 0;
    height:1.5em;
    vertical-align: middle;
}
div.meow-body {
    float:left;
    margin: 0 0 0 60px;
    width: calc(100% - 60px);
    word-break: break-all;
    line-height: 1.4em;
}
div.meow-is-sensitive div.meow-body {
    display: none;
}

div.sensitive-cussion {
    display: none;
    float: left;
    margin: 0 0 0 60px;
    width: calc(100% - 60px);
}
div.meow-is-sensitive div.sensitive-cussion {
    display: block;
}
.show-sensitive {
    margin: 0;
    text-align: right;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 2em;
    height: 2em;
    margin: 0.5em;
    padding: 5px;
    background: #fff url('/img/cross_circle_02.svg') no-repeat;
    background-size: 100% 100%;
    -webkit-background-size: 100% 100%;
    -moz-background-size: 100% 100%;
    -o-background-size: 100% 100%;
    cursor: pointer;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

#user-menu {
    position: fixed;
    width: calc(60% - 20px);
    height: calc(100% - 20px);
    top: 10px;
    right: 10px;
    padding: 20px;
    overflow-y: scroll;
}
#user-menu p {
    font-size: large;
}
#user-menu a {
    text-decoration: none;
    font-size: large;
}
@media screen and (max-width: 640px) {
    #user-menu {
        width: 80%;
    }
}
@media screen and (min-width: 1200px) {
    #user-menu-wrapper {
        display: block;
        width: auto;
        height: auto;
    }
    #user-menu-wrapper .curtain {
        display: none;
    }
    #user-menu {
        display: block;
        width: calc((100vw - 640px) / 2 - 30px);
        height: auto;
        top: 65px;
        overflow-y: scroll;
        max-height: calc(100vh - 65px);
    }
}

#user-menu p.prof-account {
    font-size: small;
    color: #666;
}
.user-menu-item {
    padding: 0 0 0 1.5em;
}
.user-menu-follow {
    background: url('/img/each_follow.svg') no-repeat 0 0.25em;
    background-size: 1em 1em;
}
.user-menu-dm {
    background: url('/img/dm_cat.svg') no-repeat 0 0.25em;
    background-size: 1em 1em;
}
.user-menu-chat {
    background: url('/img/friends.png') no-repeat 0 0.25em;
    background-size: 1em 1em;
}
.user-menu-bookmark {
    background: url('/img/bookmark_01.svg') no-repeat 0 0.25em;
    background-size: 1em 1em;
}
.user-menu-settings {
    background: url('/img/gear.svg') no-repeat 0 0.25em;
    background-size: 1em 1em;
}



.meow-foot {
    margin: 0;
}
.meow-foot * {
    font-size: large;
}
.meow-foot div {
    margin-bottom: 0;
}
.meow-foot a {
    text-decoration: none;
}
.meow-foot-item {
    float:left;
    width:20%;
    height: 1em;
}
.meow-foot-item div {
    display: inline-block;
    width: 1em;
    height: 1em;
    cursor: pointer;
}
.meow-foot-item div:hover {
    filter: drop-shadow(0 0 3px gold);
}
.meow-foot-item div.meow-foot-reply-count {
    width: 3em;
}
.meow-foot-reply-count {
    padding: 0 0 0 1em;
    background: url('/img/reply_icon_01_off.svg') no-repeat;
    background-size: 1em 1em;
    color: gainsboro;
}
.meow-foot-reply-dm {
    padding: 0 0 0 1em;
    background: url('/img/reply_icon_01_off.svg') no-repeat;
    background-size: 1em 1em;
    color: gainsboro;
    cursor: pointer;
}
.fav {
    text-decoration: none;
    padding: 0 0 0 1em;
    background: url('/img/star_02_off.svg') no-repeat;
    background-size: 1em 1em;
    color: gainsboro;
}
.meow-foot-item div.fav {
    width: auto;
}
.fav-on {
    background: url('/img/star_02_on.svg') no-repeat;
    background-size: 1em 1em;
    color: gold;
}
.bookmark {
    background: url('/img/bookmark_01_off.svg') no-repeat;
    background-size: 100%;
}
.bookmark-on {
    background-image: url('/img/bookmark_01_on.svg');
}
.meow-foot-only-each-follow img {
    height: 1em;
}
.meow-foot-share div {
    background: url('/img/share.svg?3') no-repeat;
    background-size: 1em 1em;
}
.meow-foot-menu div {
    width: 1em;
    height: 1em;
    background: url('/img/menu02.svg') no-repeat;
    background-size: 100%;
}

#meow-box-template {
    display: none;
}

.meow-post-box {
    display: none;
    position: relative;
    padding: 10px;
    margin: 0 0 10px 0;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.meow-post-box form {
    margin: 0;
}
.meow-post-box p {
    margin: 0;
}
.meow-post-box input.submit {
    padding: 0.5em 2em;
}
.meow-post-box #img1 {
    display: none;
}
@media screen and (min-width: 1200px) {
    #meow-post-box {
        display: block;
    }
}

.meow-form-icon {
    width: 2.5em;
    height: 2.5em;
    border-radius: 5px;
    margin: 3px 0 0 0;
    background-color: #fff;
    padding: 0.25em;
    border: solid 1px gainsboro;
}
.meow-form-icon:hover {
    background-color: lemonchiffon;
    cursor: pointer;
}

.reply {
    margin: 0 0 0 20px;
}

#meow-post-text {
    width: calc(100% - 2em);
    height: 5em;
    border: 0;
    outline: none;
    background-color: whitesmoke;
}

#meow-submit-button,
.meow-post-box .img_button
{
    display: inline-block;
    border: solid 1px lightgrey;
    padding: 0.5em 1em;
    margin: 3px 0;
    cursor: pointer;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background: linear-gradient(whitesmoke, gainsboro);
}

#meow-submit-button {
    float:left;
    margin: 3px 5px 0 0;
    width:30%;
}
input[type="checkbox"]:checked + label img {
    background-color: gold;
}


#tl {
    width: 100%;
    height: 54px;
    margin: 0 auto 10px auto;
}
#tl td {
    width: 20%;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}
#tl td:hover {
    background-color: #fff;
}
#tl td.current {
    background-color: #fff;
}
#tl td > div {
    width: 32px;
    height: 32px;
    margin: auto;
    background-size: 32px 32px;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #fff);
}
#tl td a img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #fff);
}
#tl-public > div {
    background: url('/img/global.png') no-repeat center;
}
#tl-follow > div {
    background: url('/img/friends.png') no-repeat center;
}
#tl-each-follow > div {
    background: url('/img/each_follow.png') no-repeat center;
}
#tl-reply > div {
    background: url('/img/tl_reply.png') no-repeat center;
}
#tl div.badge {
    display:none;
    float: right;
    width: 10px;
    height: 10px;
    background: url('/img/badge.png') no-repeat;
    background-size: 100%;
}
#tl td.has-latest div.badge {
    display: block;
}

input[type=submit].wide {
    padding: 0.5em 1em;
}

iframe.youtube {
    max-width: 100%;
    max-height: 480px;
    border: 0;
    width: 560px;
    height: 315px;
}
#youtube-viewer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 640px;
    max-width: 100%;
    text-align: center;
}
.insert-youtube {
    position: relative;
    width: 320px;
    max-width: 100%;
}
.youtube-play-icon {
    position: absolute;
    width: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}
.popup-menu {
    position: fixed;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#transfer-bbspaintneo-form,
#transfer-8bitpaint-form{
    display: none;
}

.top-info {
    font-size:small;
    background-color:#fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}


#new-previews {
    margin: 0;
}
#new-previews div.new-preview {
    position: relative;
    float:left;
    width: 150px;
    height: 150px;
}
#new-previews img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.prof .icon {
    width: 90px;
    height: 90px;
    float: none;
    margin: 0;
}
.prof .icon img {
    border: solid 5px whitesmoke;
    width: 100%;
    height: 100%;
}


#image-viewer-image {
    background: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}
#image-viewer img {
    display: block;
    width: 100%;
    height: 100%;
    margin: auto auto;
    object-fit: contain;
}
#image-viewer-prev,
#image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    width: 32px;
    height: 32px;
    background-size: 100%;
    filter: drop-shadow(0 0 3px #fff);
    cursor: pointer;
}
#image-viewer-prev {
    left: 0;
    background: url('/img/icon_prev_01.svg') no-repeat;
}
#image-viewer-next {
    right: 0;
    background: url('/img/icon_next_01.svg') no-repeat;
}



#foot-control {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0 10px 0 0;
    margin: 0;
}
#foot-control .icon {
    filter: drop-shadow(0px 0px 4px #333);
}
#foot-search {
    background-color: white;
    border-radius: 25px;
}
.search-icon {
    background: #fff url('/img/search.svg') 5px 5px no-repeat;
    background-size: 80%;
}
#foot-meow-open {
    display:none;
    float:right;
}
@media screen and (min-width: 1200px) {
    #foot-control {
        display: none;
    }
}



#search-box .search-icon {
    float: left;
}
#search-form {
    margin: 0;
}
#search-text {
    width: calc(100% - 120px);
    float:left;
    margin: 10px 0 0 0;
    border: solid 2px white;
    border-bottom: solid 2px gainsboro;
}
.search-box-close * {
    display: none;
}


#screen-locker {
    background-color: white;
    opacity: 1;
}
#screen-locker * {
    font-family: marukkanas;
    text-align: center;
    font-size: xxx-large;
}
#screen-locker .buttons span {
    font-size: xxx-large;
    transform: scale(2, 1);
    cursor: pointer;
}
#unlock-password {
    border: solid 1px gray;
}



/* これは一番最後に置きたい */
.clear {
    clear:both;
    margin: 0;
    padding: 0;
    line-height: 0;
}