@charset "utf-8";

@font-face {
  font-family: "Title";
  src: url("./fonts/title.woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Body";
  src: url("./fonts/body.woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Body";
  src: url("./fonts/body-bold.woff2");
  font-weight: 900;
  font-style: normal;
}

@keyframes bg-scroll {
  from {
    background-position: 0px 0px;
  }
  to {
    background-position: -40px -40px;
  }
}

html {
  background: #fff3f7;
  background-image: linear-gradient(45deg, #ffe0ea 25%, transparent 25%),
    linear-gradient(135deg, #ffe0ea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ffe0ea 75%),
    linear-gradient(135deg, transparent 75%, #ffe0ea 75%);
  background-size: 40px 40px;
  background-attachment: fixed;
  animation: bg-scroll 5s infinite linear;
}

body {
  margin: 0;
  padding: 0 1rem;
  overscroll-behavior: none;
  color: #2f2f2f;
  overflow-wrap: anywhere;
  font-family: "Body", sans-serif;
}

.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  min-height: 50px;
}

.header .title a {
  text-decoration: none;
}

.header h1 {
  margin: 0;
  font-weight: normal;
  font-family: "Title";
  letter-spacing: 0.05em;
}

.header .menu_wrap a {
  margin-left: 0.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container.container--dialog {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: space-between;
  min-height: 100vh;
}

.container.container--dialog .dialog {
  max-width: 400px;
  margin: 1rem auto;
}

.dialog {
  background: #fff3f7;
  border: 1px solid #f76999;
  box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.15);
  border-radius: 0.25em;
  padding: 1rem;
  text-align: center;
}

.dialog .dialogtitle {
  font-family: "Title";
  letter-spacing: 0.05em;
  margin-bottom: 0.25em;
  color: #f76999;
  text-align: left;
  position: relative;
  user-select: none;
  top: -4px;
}

.dialog .dialogtitle::after {
  content: "\22EF";
}

a {
  color: #555;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-style: solid;
}

a.block {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

a.block .block_icon {
  font-size: 1.5em;
  line-height: 1px;
}

a.block .block_link {
  text-decoration: underline;
  text-decoration-style: dotted;
}

a.block:hover {
  text-decoration: none;
}

a.block:hover .block_link {
  text-decoration-style: solid;
}

a.button,
.button {
  display: inline-block;
  padding: 0.5em 1em;
  border: 1px solid transparent;
  appearance: none;
  border-radius: 0.25em;
  background: #fff3f7;
  text-decoration: none;
  line-height: 1.5;
  vertical-align: middle;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
}

.button:hover,
.button:focus {
  border-color: #f76999;
}

.button.primary {
  background: #f76999;
  color: #fff3f7;
}

.button.lets_draw {
  background: #f76999;
  color: #fff3f7;
  font-family: "Title";
  font-weight: normal;
  position: relative;
  padding-left: 3em;
}

.button.lets_draw .drawyen {
  position: absolute;
  left: -1.5em;
  top: -3em;
  width: 7em;
  pointer-events: none;
}

.button.lets_draw .lets_draw_content {
  letter-spacing: 0.05em;
  font-size: 1.1em;
  line-height: 0;
  position: relative;
  top: 2px;
}

.article {
  margin: 0 auto 1rem;
}

.article_title {
  margin: 0 auto 1rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.article_title h2 {
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

.article_title .article_title_counter {
  font-size: 3.5em;
  font-weight: normal;
  margin: 0 1rem;
  position: relative;
  font-family: "Title";
  line-height: 0.8;
  top: 0.15em;
}

.article_title .article_title_counter::after {
  content: "#";
  pointer-events: none;
  position: absolute;
  left: -0.55em;
  top: 0.2em;
  z-index: -1;
  transform: rotate(-7deg);
  font-size: 0.5em;
}

.article_title .article_title_name {
  display: block;
  font-size: 1.75rem;
}

.article_title .article_title_author {
  color: #f76999;
}

.gallery_view {
  display: grid;
  grid-template-columns: [frame] fit-content(60%) [description] 1fr;
  grid-template-rows: min-content;
  grid-auto-rows: 1fr;
  gap: 1em 1em;
}

.gallery_view .gallery_view__frame {
  position: relative;
  grid-column: 1;
}

.gallery_view .gallery_view__description {
  position: relative;
  grid-column: 2;
}

.article_content .article_content_image {
  grid-row: span 2;
}

.article_content_image .article_image {
  position: sticky;
  top: 1rem;
}

.article_content_image .article_image_wrapper {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.article_content_image .article_image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  vertical-align: bottom;
}

.article_content .article_content_sidebar_skipped_posts {
  margin: 0 auto 1rem;
}

.article_content .article_content_sidebar_post {
  margin: 0 auto 1rem;
}

.article_content .article_content_sidebar_post:last-child {
  margin-bottom: 0;
}

.chekki {
  background: #fffbfc;
  padding: 1rem;
  border: 1px solid #f76999;
  box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.15);
  border-radius: 0.25em;
  text-align: center;
}

.chekki .chekki_frame {
  border: 1px solid #f76999;
  display: block;
  margin: 0 auto 1rem;
}

.chekki img.chekki_frame {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.post_bubble {
  display: inline-flex;
  flex-flow: column nowrap;
  justify-content: stretch;
  align-items: stretch;
}

.post_bubble .post_bubble_user {
  order: 2;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  min-height: 30px;
  gap: 0.5em;
  padding: 0 1em;
}

.post_bubble .post_bubble_user_name {
  color: #f76999;
  font-weight: bold;
}

.post_bubble .post_bubble_user_badge {
  line-height: 1;
}

.post_bubble .post_bubble_user_tail {
  display: block;
  margin-right: -0.5em;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 19px 0 5px;
  border-color: #fffbfc transparent transparent transparent;
  align-self: flex-start;
  filter: drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.15));
}

.post_bubble .post_bubble_content {
  padding: 0.5em 1em;
  line-height: 1.5;
  background: #fffbfc;
  border-radius: 0.25em;
  order: 1;
  min-width: 60px;
  box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.15);
}

/* forms */
textarea,
select,
input {
  font-family: inherit;
  padding: 0 1em 0 0;
  margin: 0;
  border: 1px solid #f76999;
  border-radius: 0.25em;
  padding: 0.4em 0.8em;
  font-size: 1em;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
}

select {
  cursor: pointer;
}

.fieldgroup {
  display: flex;
  flex-flow: row nowrwap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
}

.fieldgroup input {
  box-sizing: border-box;
  width: 100%;
}

.field {
  margin: 0 auto 1rem;
}

.field img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.field .label {
  display: block;
  font-size: 1.2em;
  margin-bottom: 0.3rem;
}

.field .helptext {
  font-size: 0.8em;
  margin: 0.3rem 0 0.5rem;
}

.buttonrow {
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

.buttonrow .button {
  margin: 0 0.5em;
  font-size: 1em;
}

/* Post image screen */
.post_image .post_image__image {
  margin: 0 auto 1rem;
}

.post_image .post_image__dialog {
  position: sticky;
  top: 1rem;
}

/* フォーム入力 */
textarea.post_com {
  box-sizing: border-box;
  width: 100%;
  height: 3rem;
  font-family: inherit;
}
textarea.post_cw {
  width: 300px;
  height: 2.5rem;
  font-family: inherit;
  display: inline-block;
}

input.input_txt,
textarea {
  font-size: inherit;
}

/* Misskeyノートフォームのアイコン位置 */
span.misskey_form_misskey_icon {
  margin: 0 5px 0 0;
}
input.form_button {
  margin: 10px 0 0 2px;
  padding: 1px 12px;
}
input.pchup_button {
  margin: 0 0 10px;
}
input.paint_button {
  padding: 1px 10px;
}

/* 投稿者名から検索文字列にリンク */

span.info_name {
  display: inline-block;
  border: 1px solid #ffcfcf;
  border-radius: 5px;
  line-height: 1;
  margin: 0 2px 2px 0px;
}
span.info_name:hover a {
  background-color: #fff7f7;
}
span.info_name a,
span.info_name > span {
  display: block;
  padding: 5px;
  text-decoration: none;
  font-weight: 600;
}

/* 記事 */

.imginfo_wrap {
  margin: 3px 0 10px;
}
.imginfo_wrap span {
  display: inline-block;
}
.res_wrap {
  display: table;
}
.continue_img {
  overflow: hidden;
  display: inline-block;
}

.continue_img img {
  max-width: 100%;
  height: auto;
}

.article_info {
  margin: 5px 0;
}
.posted_image {
  max-width: 100%;
  height: auto;
  margin: 0 10px 10px 0;
  float: left;
  overflow: hidden;
  position: relative;
}

.posted_image p,
.catalog_image p {
  position: absolute;
  top: 0;
  left: 13px;
  display: inline-block;
  background-color: #555;
  color: white;
  padding: 3px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  opacity: 0.6;
}

.posted_image img {
  max-width: 100%;
  height: auto;
}
.comment {
  display: table;
  min-width: 350px;
}
.clear {
  clear: both;
}

.pagetop {
  display: inline-block;
  vertical-align: bottom;
}
/* ツイートボタン */
span.share_button {
  vertical-align: bottom;
  margin: 0 0 0 8px;
}
.icon-twitter {
  display: inline-block;
  padding: 0 2px;
}

.catalog_pagetop {
  display: block;
  text-align: right;
}
/* 投稿者名をコピー */
button.copy_button {
  background-color: transparent;
  border-radius: 6px;
  border: 1px solid #ffcfcf;
  color: #555;
}

button.copy_button:hover {
  background-color: #fff7f7;
}
/* 編集･削除ボタン */
div.edit_button {
  margin: 8px 0 0;
}

/* メニューのラップ */
.menu_pr {
  float: right;
  line-height: 1.8;
  margin: 7px 0 10px;
}

.form_radio_sns_server label:hover {
  background-color: #ffe6e6;
}

input[type="checkbox"]:checked + label {
  background-color: #ffe6e6;
  font-weight: 600;
}
input[type="radio"]:checked + label {
  background-color: #ffe6e6;
  font-weight: 600;
}
/* チェックボックスが選択された場合のスタイル */
input[type="checkbox"]:checked + label .info_name {
  border: none;
}

span.txtnon {
  display: initial;
}
.non {
  display: none;
}

/* 返信ボタン */

.res_button_wrap {
  text-align: right;
  margin: 16px 0 0;
}
.res_notice_wrap {
  text-align: right;
}
form.res_button {
  text-align: right;
  margin: 0;
  display: inline-block;
}
form.res_button input {
  padding: 1px 12px;
  margin: 12px 0 0 8px;
}
/* 返信フォーム */
form.res_form {
  text-align: right;
  margin: 16px 0 5px;
}
table.resform {
  margin: 0 0 0 auto;
}

/* 改ページ */
.pagelink {
  text-align: center;
  margin: 12px 0 15px;
}
span.next {
  display: inline-block;
  text-align: left;
}

span.prev {
  display: inline-block;
  text-align: right;
}
span.res_next {
  display: inline-block;
  text-align: left;
}

span.res_prev {
  display: inline-block;
  text-align: right;
}

/* レス画面に前後のスレッドの画像を配置 */
.view_other_works div {
  width: 16.1%;
  height: auto;
  margin-right: 0.6%;
  display: inline-block;
  max-height: 200px;
  overflow: hidden;
  vertical-align: top;
}
.view_other_works img {
  max-width: 100%;
  height: auto;
}
.view_other_works div:nth-of-type(6n) {
  margin-right: 0;
}

/* アップロード途中の画像 */
.post_table_title {
  margin: 0px 0 12px;
}
.posted_img_form img {
  max-width: 100%;
  height: auto;
}

form.aikotoba {
  text-align: right;
  margin: 2px 0;
  display: inline-block;
}
form#set_nsfw_show_hide {
  display: inline-block;
}

/* コンティニュー */
span.continue_menu {
  display: inline-block;
}

#span_cont_paint_same_thread {
  display: none;
}
/* エラー画面 */
.error {
  font-size: 18px;
  line-height: 2;
}

/* カタログ */

.catalog_wrap span:nth-of-type(5n) {
  margin-right: 0;
}

.catalog_image {
  width: 19.3%;
  max-height: 300px;
  margin: 0 0.8% 0.8% 0;
  overflow: hidden;
  vertical-align: text-top;
  display: inline-block;
  position: relative;
}

.catalog_image img {
  max-width: 100%;
  vertical-align: text-top;
  border: none;
  height: auto;
}

/* お絵かき画面 */
.appstage {
  word-break: initial;
  overflow-wrap: initial;
}
.app_toolleft {
  margin: 16px auto;
}
/* 描画アニメ再生画面 */
.pch_download {
  line-height: 1.8;
  margin: 8px 0 0;
}
/* 下段著作権表示 */
.copy {
  text-align: right;
  margin: 12px 0 0;
}
.copy span {
  display: inline-block;
}
.left_wrap {
  float: left;
}

.righit_wrap {
  text-align: right;
  line-height: 1.5;
}

/* NSFW表示ボタン */
.view_nsfw {
  background-color: #ffe6e6;
  padding: 10px;
  line-height: 2;
}

.view_nsfw span {
  font-size: 18px;
  font-weight: 600;
}
/* メディアクエリ */
.pcdisp {
  display: block;
}

.mobiledisp {
  display: none;
}

@media screen and (max-width: 767px) {
  textarea.post_com,
  textarea.post_cw {
    max-width: 276px;
  }
  .posted_image {
    float: none;
    margin-right: 0;
  }
  .comment {
    min-width: initial;
  }
  .mobiledisp {
    display: block;
    margin: 10px 0;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pcdisp {
    display: none;
  }

  .catalog_image {
    width: 24.2%;
    max-height: 220px;
    margin: 0 1.0666% 1.0666% 0;
  }
  .catalog_wrap span:nth-of-type(5n) {
    margin-right: 1.0666%;
  }

  .catalog_wrap span:nth-of-type(4n) {
    margin-right: 0;
  }
}

@media screen and (max-width: 610px) {
  .catalog_image p {
    display: none;
  }

  span.txtnon {
    display: none;
  }

  .menu_pr {
    display: none;
  }
}

@media screen and (max-width: 389px) {
  /* 閲覧注意のlabel */
  form.resform span {
    margin: 0 1px;
  }
}
/* スクロールすると出てくる「トップへ戻る」ボタン */
/* https://cotodama.co/pagetop/ */
#page_top {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 0;
  bottom: 50px;
  background: #ffcfcf;
  opacity: 0.6;
  border-radius: 50%;
}

#page_top a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}

#page_top a::before {
  font-weight: 900;
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -5px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
/* ページネーション */
.pagination a,
.pagination strong {
  margin: 0 2px;
}
/* 閲覧注意 */
.hide_thumbnail img {
  filter: blur(15px);
}
/* エラーメッセージ */
div#error_message,
div#error_message_imgrep,
div#error_message_paintform,
div#error_message_download,
div#error_message_beforedelete {
  line-height: initial;
  background-color: hsl(60 100% 88% / 1);
  font-size: 20px;
  padding: 1px 4px 1px;
  margin: 5px 0 5px;
}
div#error_message:empty,
div#error_message_imgrep:empty,
div#error_message_paintform:empty,
div#error_message_download:empty,
div#error_message_beforedelete:empty {
  display: none;
}

.pagination {
  margin: 1rem auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

.footer {
  margin: 1rem auto;
  text-align: center;
  font-size: 0.8em;
}
