@charset "utf-8";
/* 
CSS カスタムプロパティ（変数）の使用 - CSS: カスケーディングスタイルシート | MDN
https://developer.mozilla.org/ja/docs/Web/CSS/Using_CSS_custom_properties
*/
:root {
  /* ライトモードの配色 */

  /* 文字色 */
  --text-color: hsl(208 1% 23% / 1);
  /* リンクの色 */
  --a-color: var(--text-color);
  /* リンクホバー */
  --a-hover-color: var(--text-color);
  /* SNS共有 */
  --sns-share-text-color: hsl(208 1% 36% / 1);
  /* いいね */
  --clap-text-color: var(--sns-share-text-color);
  /* 背景色 */
  --background-color: #fff;
  /* 掲示板タイトルの文字色 */
  --title-a-color: hsl(208 1% 33% / 1);
  /* 記事タイトルの文字色 */
  --article-title-color: var(--title-a-color);
  /* 記事タイトルの背景色 */
  --accent-background-color: hsl(1 100% 96.3% / 1);
  /* 記事タイトル背景色のアクセント */
  --strong-accent-background-color: hsl(1 100% 93.8% / 1);
  /* チェック済みのフォームのラベルの色 */
  --checked-color: var(--title-a-color);
  /* チェック済みのフォームのラベルの背景色 */
  --checked-background-color: hsl(1 100% 95.5% / 1);
  /* ボーダー */
  --border-color: hsl(1 89% 87% / 1);
  /* 点線 */
  --border-dashed-color: #888;
  /* ラベルのボーダー */
  --border-label-color: var(--checked-background-color);
  /* ダイナミックパレットのボーダー */
  --border-dynamic-palette-color: hsl(208 1% 35% / 1);
  /* 名前のリンクの色 */
  --name-a-color: var(--title-a-color);
  /* 名前のリンクのホバー */
  --soft-hover-color: #fff7f7;
  /* 閲覧注意の文字色 */
  --posted-image-span-color: #fff;
  /* 閲覧注意の背景色 */
  --posted-image-span-background-color: #555;
  /* 上に戻るボタンの矢印の色 */
  --page-top-color: #fff;
  /* 上に戻るボタンの背景色 */
  --page-top-background-color: hsl(1 100% 91% / 1);
  /* エラーメッセージの背景色 */
  --error-message-background-color: hsl(60 100% 88% / 1);
  /* 注意が必要な項目の背景色 */
  --warning-color: #fff;
  /* 注意が必要な項目のボーダー */
  --warning-border-color: rgb(255, 170, 192);
  /* フォーム入力欄の背景色 */
  --form-input-background-color: #fff;
  /* ボタン以外のフォーム要素の枠線色 */
  --form-input-border-color: rgb(118, 118, 118);
}

.darkmode {
  /* ダークモードの配色 */

  /* 文字色 */
  --text-color: hsl(211 10% 80% / 1);
  /* リンクの色 */
  --a-color: hsl(211 10% 78% / 1);
  /* リンクホバー */
  --a-hover-color: var(--a-color);
  /* SNS共有 */
  --sns-share-text-color: hsl(208 10% 62% / 1);
  /* いいね */
  --clap-text-color: var(--sns-share-text-color);
  /* 背景色 */
  --background-color: hsl(208 23% 15% / 1);
  /* 掲示板タイトルの文字色 */
  --title-a-color: var(--a-color);
  /* 記事タイトルの文字色 */
  --article-title-color: var(--a-color);
  /* 記事タイトルの背景色 */
  --accent-background-color: hsl(208 24% 24.6% / 1);
  /* 記事タイトル背景色のアクセント */
  --strong-accent-background-color: hsl(208 27% 33.6% / 1);
  /* チェック済みのフォームのラベルの色 */
  --checked-color: var(--title-a-color);
  /* チェック済みのフォームの背景色 */
    --checked-background-color: var(--accent-background-color);
  /* ボーダー */
  --border-color: hsl(215 19% 40% / 1);
  /* 点線 */
  --border-dashed-color: var(--border-color);
  /* ラベルのボーダー */
  --border-label-color: var(--checked-background-color);
  /* ダイナミックパレットのボーダー */
  --border-dynamic-palette-color: hsl(208 30% 38% / 1);
  /* 名前のリンクの色 */
  --name-a-color: var(--title-a-color);
  /* 名前のリンクのホバー */
  --soft-hover-color: hsl(208 20% 18% / 1);
  /* 閲覧注意の文字色 */
  --posted-image-span-color: #fff;
  /* 閲覧注意の背景色 */
  --posted-image-span-background-color: #555;
  /* 上に戻るボタンの矢印の色 */
  --page-top-color: #fff;
  /* 上に戻るボタンの背景色 */
  --page-top-background-color: var(--strong-accent-background-color);
  /* エラーメッセージの背景色 */
  --error-message-background-color: var(--accent-background-color);
  /* 注意が必要な項目のボーダー */
  --warning-border-color: rgb(255, 170, 192);
  /* フォーム入力欄の背景色 */
  --form-input-background-color: #e5eaeb;
  /* ボタン以外のフォーム要素の枠線色 */
  --form-input-border-color: rgb(133, 133, 133);
}

/* フォーム要素の背景色と枠線 */
input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--form-input-border-color);
  border-style: solid;
  border-width: 1px;
  padding: 1px;
  /* フォーム入力欄の背景色 */
  background-color: var(--form-input-background-color);
}
textarea {
  padding: 2px;
}

/* 全体 */
body {
  margin: 10px;
}
body,
td {
  color: var(--text-color);
  overflow-wrap: anywhere;
  font-family: sans-serif;
  background-color: var(--background-color);
}

.container {
  max-width: 980px;
  margin: 0 auto 12px;
}
hr {
  border: none;
  border-bottom: 1px dashed var(--border-dashed-color);
}

ul {
  padding: 0 0 0 10px;
  list-style-position: inside;
}
.description {
  margin: 0 0 1em 0;
}
.description ul {
  margin: 0;
}
.form_set_nsfw_show_hide {
  margin: 0 0 1em;
}

/* リンク */
a {
  color: var(--a-color);
}

a:hover {
  text-decoration: none;
  color: var(--a-hover-color);
}

/* SNSで共有する */
span[data-shareurl] {
  text-decoration: none;
  cursor: pointer;
  color: var(--sns-share-text-color);
}

span[data-shareurl]:hover {
  text-decoration: none;
  color: var(--sns-share-text-color);
}
span[data-downloadurl],
span#pch_close {
  text-decoration: underline;
  cursor: pointer;
  color: var(--a-color);
}

span[data-downloadurl]:hover,
span#pch_close:hover {
  text-decoration: none;
  color: var(--a-hover-color);
}

/* 見出し */
h1 {
  font-size: 26px;
  margin: 16px 0 0 0;
  padding: 0;
}

h1.title a {
  text-decoration: none;
  display: block;
  color: var(--title-a-color);
}

h2 {
  font-size: 18px;
  background-color: var(--accent-background-color);
  border-left: 8px solid var(--strong-accent-background-color);
  border-bottom: 1px dashed var(--border-dashed-color);
  padding: 2px 6px 2px;
  margin: 8px 0;
}
h2.article_title a {
  text-decoration: none;
  display: block;
  color: var(--article-title-color);
}
h2.article_title {
  color: var(--article-title-color);
}
/* フォーム入力 */
textarea.post_com {
  width: 300px;
  height: 120px;
  margin: 8px 0 6px;
  font-family: inherit;
}
textarea.post_cw {
  width: 300px;
  height: 60px;
  margin: 8px 0 5px 0;
  font-family: inherit;
}

input.input_txt,
textarea {
  font-size: inherit;
}
input.input_txt,
select {
  margin: 3px 0;
}
select {
  font-size: inherit;
}
textarea.rescom {
  width: 300px;
  height: 60px;
  margin: 10px 0;
}
form.postform span {
  margin: 5px 10px 8px 0;
  display: inline-block;
}
span#check_nsfw {
  display: none;
}
form.postform .nsfw {
  margin: 6px 10px 8px 0;
  display: inline-block;
}
form.resform,
form.misskey_form {
  text-align: right;
}
form.resform > span {
  margin: 0 10px 0 0;
  display: inline-block;
}
form.misskey_form > span {
  display: inline-block;
  margin: 10px 0px 10px;
}
input.res_pwd {
  margin: 6px 0 6px;
}
form#image_rep,
form#res_form {
  margin-top: 8px;
}

/* コメント投稿欄のボーダーを消して、ラップにボーダーをつける */
.attach_preview_wrap textarea.post_com {
  /* ボーダー非表示 */
  border: none;
  outline: none;
  box-shadow: none;
  margin: 0;
}
.attach_preview_wrap {
  display: inline-flex;
  align-items: stretch; /* 高さをそろえる */
  /* ラップに枠線をつける */
  border: 1px solid var(--form-input-border-color);
  border-radius: 1px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  background-color: var(--form-input-background-color);
}

/* Misskeyノートフォームのアイコン位置 */
span.misskey_form_misskey_icon {
  margin: 0 5px 0 0;
}
input.form_button {
  margin: 8px 0 8px 2px;
  padding: 1px 12px;
}
input.pchup_button {
  margin: 0 0 16px;
}
input.paint_button {
  padding: 1px 10px;
}
input.delete_button {
  border: 2px solid var(--warning-border-color);
  background-color: var(--warning-color);
  border-radius: 3px;
}

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

span.info_name {
  display: inline-block;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  line-height: 1;
  margin: 0 2px 2px 0px;
}
span.info_name:hover a {
  background-color: var(--soft-hover-color);
}
span.info_name a,
span.info_name > span {
  display: block;
  padding: 4.2px 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--name-a-color);
}

/* 記事 */

.imginfo_wrap {
  margin: 3px 0 6px;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.8;
}
.imginfo_wrap span {
  display: inline-block;
}
.imginfo_wrap span.ref-target-do-submission span {
  display: inline;
}
.continue_anime_wrap {
  margin: 0px 0 1.1em;
}
.continue_anime_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 span,
.catalog_image span {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-block;
  background-color: var(--posted-image-span-background-color);
  color: var(--posted-image-span-color);
  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: 365px;
  margin: 0 0 3px;
  line-height: 1.8;
}
.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 var(--border-color);
  color: var(--text-color);
  margin-top: 1em;
}

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

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

nav.menu_wrap {
  margin: 5px 0 10px;
  display: inline-block;
  line-height: 1.8;
}

nav.menu_wrap_catalog {
  margin: 0 0 8px;
  text-align: right;
  display: block;
  line-height: 1.8;
}
.menu_wrap > span {
  display: inline-block;
  margin: 2px 0;
}
span.canvas_size_wrap {
  display: inline-block;
}
label {
  cursor: pointer;
  margin: 0 3px;
  padding: 2px;
  border-radius: 5px;
}
.form_radio_sns_server label:hover {
  background-color: var(--checked-background-color);
}

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

select.post_select_image {
  margin: 10px 6px 5px;
}
span.txtnon {
  display: initial;
}
.non {
  display: none;
}

/* 返信ボタン */

.res_button_wrap {
  text-align: right;
}
.res_button_wrap > span {
  display: inline-block;
  margin: 10px 0 0 12px;
  color: var(--clap-text-color);
}
.res_button_wrap.clap_wrap {
  margin: 10px 0 0;
}
.clap_wrap {
  .ref-target-do-submission {
    text-decoration: none;
  }
  .ref-target-do-submission:hover {
    color: var(--clap-text-color);
  }
}
.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: 1.2em 0 0.8em;
}
/* 返信フォーム */
form.res_form {
  text-align: right;
  margin: 1em 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: 0 0 5px;
}
.posted_img_form img {
  max-width: 180px;
  max-height: 200px;
  height: auto;
  width: auto;
}

/* フォーム */
.mainform {
  margin: 0 0 8px;
}
form.admin {
  text-align: right;
  margin: 5px 0 0 0;
}
form.paint_form {
  margin: 3px 0 5px;
}
form#download_forme span.pch_kb {
  display: inline-block;
  margin: 0 0 0 8px;
}
form.aikotoba {
  text-align: right;
  margin: 2px 0;
  display: inline-block;
}
form#aikotoba_form {
  margin: 8px 0 0 0;
}
form#set_nsfw_show_hide {
  display: inline-block;
}
select {
  font-size: inherit;
  margin-bottom: 5px;
}

/* コンティニュー */
span.continue_menu {
  display: inline-block;
}
.continue_post_form {
  line-height: 2.2;
}
#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 {
  width: 100%;
  vertical-align: text-top;
  border: none;
  height: auto;
}

/* お絵かき画面 */
.appstage {
  word-break: initial;
  overflow-wrap: initial;
}
.app_toolleft {
  margin: 16px auto;
}
/* お絵かき画面の時計 */
input.input_count_timer {
  vertical-align: middle;
}
/* 描画アニメ再生画面 */
.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: var(--accent-background-color);
  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) {
  .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: 380px;
    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;
  }
  body {
    font-size: 1.12rem;
  }
  .imginfo_wrap {
    font-size: 1.12rem;
    margin: 3px 0 1rem;
  }
  .continue_anime_wrap {
    font-size: 1.12rem;
    margin: 0px 0 1.6em;
  }
}

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

  span.txtnon {
    display: none;
  }

  .menu_pr {
    display: none;
  }
}
@media screen and (max-width: 599px) {
  .catalog_image {
    width: 32.6%;
    overflow: hidden;
    vertical-align: text-top;
    margin: 0 1.1% 1.1% 0;
  }
  .catalog_wrap span:nth-of-type(4n),
  .catalog_wrap span:nth-of-type(5n) {
    margin-right: 1.1%;
  }
  .catalog_wrap span:nth-of-type(3n) {
    margin-right: 0;
  }
}
@media screen and (max-width: 499px) {
  .catalog_image {
    max-height: 280px;
  }
}

@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: 6px;
  bottom: 50px;
  background: var(--page-top-background-color);
  opacity: 0.6;
  visibility: hidden;
  border-radius: 50%;
}

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

#page_top a::before,
#page_top span::before,
#page_top button {
  font-weight: 900;
  font-size: 25px;
  color: var(--page-top-color);
  position: absolute;
  width: 25px;
  height: 25px;
  top: -5px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
}
/* ページネーション */
.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,
div#error_message_aikotobaform {
  line-height: initial;
  background-color: var(--error-message-background-color);
  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,
div#error_message_aikotobaform:empty {
  display: none;
}

/* リンクでPOST */
.ref-target-do-submission {
  cursor: pointer;
  /* リンクのaタグと同じ見た目になるように装飾 */
  text-decoration: underline;
  color: var(--a-color);
}
.ref-target-do-submission:hover {
  /* リンクのaタグと同じ見た目になるように装飾 */
  text-decoration: none;
  color: var(--a-hover-color);
}

/* =========================================================
   59UShop.party / Petit Note
   ichigo theme - COMPLETE
   Windows ME × Strawberry Milk
   ---------------------------------------------------------
   basic テンプレート本体のCSSは上に残し、ここから下で
   ichigo用の見た目だけを上書きしています。
   ========================================================= */

:root {
  --ichigo-pink: #f4a9bd;
  --ichigo-pink-light: #ffe8ef;
  --ichigo-pink-deep: #d96f93;
  --ichigo-cream: #fffaf4;
  --ichigo-white: #fffefe;

  --win-face: #ece7e8;
  --win-face-light: #fffdfd;
  --win-shadow: #9b898f;
  --win-dark-shadow: #5c5155;
  --win-blue: #7fa9d8;
  --win-blue-dark: #4f7faf;
  --win-pink: #e394b3;

  --text-color: #51454a;
  --a-color: #b95675;
  --a-hover-color: #df7897;
  --background-color: #fff7f8;
  --title-a-color: #ffffff;
  --article-title-color: #ffffff;
  --accent-background-color: #ffe7ed;
  --strong-accent-background-color: #f4a9bd;
  --checked-color: #984b63;
  --checked-background-color: #ffe4eb;
  --border-color: #e8a8ba;
  --border-dashed-color: #d799aa;
  --border-label-color: #f1b4c5;
  --name-a-color: #a94f6a;
  --soft-hover-color: #fff0f4;
  --page-top-background-color: #ef94ae;
  --form-input-background-color: #fffefe;
  --form-input-border-color: #8e7d83;
}

/* ---------- 全体：いちごミルク市松 ---------- */

html {
  min-height: 100%;
  background-color: #fff2f6;
  background-image:
    conic-gradient(
      #ffe0e9 25%,
      #fff3f7 0 50%,
      #ffe0e9 0 75%,
      #fff3f7 0
    );
  background-size: 24px 24px;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 16px 12px 56px;
  color: var(--text-color);

  /* html と body の両方に敷くと、ブラウザ差で背景が消えにくい */
  background-color: transparent;
  background-image:
    conic-gradient(
      rgba(255, 224, 233, .88) 25%,
      rgba(255, 243, 247, .88) 0 50%,
      rgba(255, 224, 233, .88) 0 75%,
      rgba(255, 243, 247, .88) 0
    );
  background-size: 24px 24px;
  background-attachment: fixed;

  font-family: "MS UI Gothic", "MS PGothic", "Yu Gothic", sans-serif;
}

/* 表のセルだけは透明。body まで透明指定で上書きしない */
td {
  background-color: transparent;
}

.container {
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 12px 16px 24px;
  box-sizing: border-box;
  background: var(--ichigo-cream);

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);

  box-shadow:
    0 0 0 2px #e3a9ba,
    7px 9px 0 rgba(139, 82, 100, .12);
}

/* ---------- メインタイトルバー：実HTMLのWin9x/ME風 ---------- */

h1.title.win-titlebar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 26px;
  margin: 0;
  padding: 2px;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(90deg, var(--win-blue-dark) 0%, var(--win-blue) 48%, var(--win-pink) 100%);
  border-top: 1px solid #dfeeff;
  border-left: 1px solid #dfeeff;
  border-right: 1px solid #4f6680;
  border-bottom: 1px solid #4f6680;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 14px;
  line-height: 1;
}

h1.title .win-title-link {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  height: 20px;
  padding: 0 4px;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(43, 68, 94, .65);
  overflow: hidden;
}

.win-app-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 13px;
  line-height: 16px;
  text-shadow: none;
}

.win-title-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-controls {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 2px;
  margin-left: 5px;
}

.window-btn {
  position: relative;
  display: block;
  width: 18px;
  height: 16px;
  box-sizing: border-box;
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #efefef;
}

.window-minimize::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 7px;
  height: 2px;
  background: #111;
}

.window-maximize::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 #111;
}

.window-close::before,
.window-close::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 2px;
  height: 9px;
  background: #111;
  transform-origin: center;
}
.window-close::before { transform: rotate(45deg); }
.window-close::after  { transform: rotate(-45deg); }

/* ---------- Windows風メニューバー＋ツールバー ---------- */

.win-menubar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 22px;
  box-sizing: border-box;
  padding: 1px 4px 2px;
  margin: 0;
  background: #d4d0c8;
  color: #211f20;
  border-left: 1px solid #fff;
  border-right: 1px solid var(--win-shadow);
  border-bottom: 1px solid #8d8789;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
  line-height: 1;
}

.win-menubar span {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  box-sizing: border-box;
}

.win-menubar span:hover {
  color: #fff;
  background: var(--win-blue-dark);
}

nav.menu_wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 6px;
  font-size: 0;
  line-height: 1.4;
  background: var(--win-face);
  border-left: 1px solid #fff;
  border-right: 1px solid var(--win-shadow);
  border-bottom: 1px solid var(--win-shadow);
}

nav.menu_wrap > span { margin: 0; font-size: 0; }
nav.menu_wrap a,
nav.menu_wrap button,
nav.menu_wrap input,
nav.menu_wrap select { font-size: 13px; }

nav.menu_wrap a {
  display: inline-block;
  box-sizing: border-box;
  padding: 3px 9px;
  color: #3f383b;
  text-decoration: none;
  background: var(--win-face);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
}
nav.menu_wrap a:hover { color: #a64868; background: #fff6f8; }
nav.menu_wrap a:active {
  padding: 4px 8px 2px 10px;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* ---------- 説明・注意欄 ---------- */

.description {
  margin: 8px 0 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px dashed #dfa0b3;
  box-shadow: inset 0 0 0 3px #fff3f6;
}

/* ---------- Paintフォーム：ツールパネル風 ---------- */

.mainform {
  margin: 10px 0 18px;
  padding: 12px 14px;
  background: #fffdfd;

  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  box-shadow: 0 0 0 1px #d8b5c0;
}

form.paint_form {
  margin: 0 0 4px;
  padding: 8px 10px;
  background: #fff6f8;
  border: 1px solid #efb7c7;
}

/* ---------- 入力欄：Windowsのへこんだ枠 ---------- */

input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
  box-sizing: border-box;
  color: #413a3d;
  background: #fff;
  border-top: 2px solid #7e7377;
  border-left: 2px solid #7e7377;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0;
}

textarea.post_com {
  width: min(460px, 100%);
}

/* ---------- ボタン：Win9x/ME風 ---------- */

input[type="submit"],
input[type="button"],
button,
input.form_button,
input.paint_button {
  box-sizing: border-box;
  padding: 3px 11px;
  color: #3f383b;
  background: linear-gradient(#fff 0%, #f2ecee 48%, #dfd7da 100%);

  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  border-radius: 0;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background: linear-gradient(#fffafb, #f8dce5);
}

input[type="submit"]:active,
input[type="button"]:active,
button:active {
  padding: 4px 10px 2px 12px;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* ---------- 点線の区切り ---------- */

.container > hr {
  border: 0;
  height: 7px;
  margin: 16px 0;
  background:
    radial-gradient(circle, #e88ba8 2px, transparent 2.5px)
    0 0 / 18px 7px repeat-x;
}

/* ---------- 投稿1件＝Windows小窓 ---------- */

article {
  position: relative;
  margin: 18px 0 28px;
  padding: 0 12px 14px;
  box-sizing: border-box;
  background: #fffdfd;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  box-shadow: 0 0 0 1px #dfb0be, 4px 5px 0 rgba(112, 70, 84, .08);
}
article::after { content: ""; display: block; clear: both; }

h2.article_title.win-titlebar {
  display: flex;
  align-items: center;
  min-height: 24px;
  box-sizing: border-box;
  margin: 0 -12px 10px;
  padding: 2px 3px;
  color: #fff;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 13px;
  line-height: 1;
  background: linear-gradient(90deg, #5f8fbe 0%, #83abd4 50%, #e39ab5 100%);
  border: 0;
  border-bottom: 1px solid #61778d;
}

.thread-window-icon {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0 4px 0 2px;
  box-sizing: border-box;
  background: #f8f8f8;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px #5a7da0;
}
.thread-window-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 2px;
  background: #5f8fbe;
}

h2.article_title .thread-title-link {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(44, 62, 82, .55);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-controls-thread { gap: 1px; margin-left: 6px; }
.window-controls-thread .window-btn { width: 17px; height: 15px; }
.window-controls-thread .window-minimize::before { left: 4px; bottom: 3px; width: 6px; }
.window-controls-thread .window-maximize::before { left: 4px; top: 3px; width: 6px; height: 6px; }
.window-controls-thread .window-close::before,
.window-controls-thread .window-close::after { left: 6px; top: 2px; height: 8px; }

/* ---------- 投稿情報 ---------- */

.imginfo_wrap {
  margin: 4px 0 7px;
  color: #77646b;
  font-size: .9rem;
  line-height: 1.55;
}

span.info_name {
  display: inline-block;
  margin: 0 3px 2px 0;
  background: #fff2f6;
  border: 1px solid #e2a2b5;
  border-radius: 0;
}

span.info_name a,
span.info_name > span {
  padding: 3px 5px;
  color: #a84e69;
}

/* ---------- 投稿画像：300×300の実寸を崩さないWindows風フレーム ---------- */

/*
 * Petit Note側で画像ラッパーに画像サイズ相当の寸法が入る場合があるため、
 * ラッパー自身には padding / border を足さない。
 * フレームは実画像そのものに付けることで、下辺だけはみ出す現象を防ぐ。
 */
.posted_image {
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;

  margin: 8px 0 14px !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative;
  vertical-align: top;
  line-height: 0 !important;
  box-sizing: content-box !important;
}

.posted_image a {
  display: block !important;
  width: fit-content !important;
  height: fit-content !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}

.posted_image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 8px) !important;
  margin: 0 !important;
  padding: 0 !important;

  /* 枠は全方向に同じ厚みで付ける。オフセット影は使わない。 */
  background: #fff;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #808080 #ffffff #ffffff #808080 !important;
  outline: 2px solid #d4d0c8 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* ---------- コメント：画像の下へ縦積み ---------- */

.comment {
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  padding: 7px 9px;
  box-sizing: border-box;

  line-height: 1.7;
  background: #fff8fa;
  border-left: 3px solid #efadc0;
}

article > hr {
  margin: 9px 0;
  border: 0;
  border-bottom: 1px dashed #dfa5b6;
}

/* ---------- いいね・SNS・返信 ---------- */

.res_button_wrap {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed #e5b1c0;
}

.res_button_wrap > span {
  margin-left: 10px;
}

/* 返信フォームはPetit Note本来の右寄せを維持しつつ、はみ出させない */
form.res_form,
form.misskey_form {
  max-width: 100%;
}

table.resform {
  max-width: 100%;
}

textarea.rescom {
  max-width: 100%;
}

/* ---------- ページ送り ---------- */

.pagelink a,
span.next a,
span.prev a,
.pagination a,
.pagination strong {
  display: inline-block;
  padding: 2px 8px;
  background: #fff5f8;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #b38f9a;
  border-bottom: 1px solid #b38f9a;
  text-decoration: none;
}

/* ---------- カタログ ---------- */

.catalog_image {
  box-sizing: border-box;
  padding: 4px;
  background: var(--win-face);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
}

/* ---------- フッター ---------- */

.copy {
  margin-top: 12px;
  padding-top: 8px;
  color: #8d727b;
  font-size: .82rem;
}

#page_top {
  border-radius: 0;
  background: #ef97b2;
  border-top: 2px solid #ffdce7;
  border-left: 2px solid #ffdce7;
  border-right: 2px solid #a75f75;
  border-bottom: 2px solid #a75f75;
}

/* ---------- ダークモードもいちご系で最低限対応 ---------- */

.darkmode {
  --text-color: #eadde1;
  --a-color: #f1b3c7;
  --a-hover-color: #ffd7e4;
  --background-color: #2c2729;
  --title-a-color: #fff;
  --article-title-color: #fff;
  --accent-background-color: #49343d;
  --strong-accent-background-color: #7f4a5e;
  --checked-color: #ffe0ea;
  --checked-background-color: #513542;
  --border-color: #745360;
  --border-dashed-color: #8f6574;
  --name-a-color: #f1b3c7;
  --soft-hover-color: #3a2b31;
  --form-input-background-color: #ece7e8;
  --form-input-border-color: #8d7f83;
}

/* ---------- スマホ ---------- */

@media screen and (max-width: 767px) {
  body {
    padding: 8px 6px 36px;
  }

  .container {
    padding: 8px 9px 18px;
  }

  h1.title .win-title-link {
    font-size: 14px;
  }

  .window-btn {
    width: 17px;
  }

  .win-menubar {
    overflow-x: auto;
    white-space: nowrap;
  }

  .win-menubar span {
    padding-left: 5px;
    padding-right: 5px;
  }

  nav.menu_wrap {
    padding-left: 4px;
    padding-right: 4px;
    gap: 3px;
  }

  nav.menu_wrap a {
    padding: 4px 6px;
  }

  .mainform {
    padding: 8px;
  }

  article {
    padding-left: 8px;
    padding-right: 8px;
  }

  h2.article_title {
    margin-left: -8px;
    margin-right: -8px;
  }

  .posted_image {
    max-width: 100% !important;
    line-height: 0;
  }

  textarea.post_com,
  textarea.rescom {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   ichigo v8 - Paint toolbar / Windows ME style
   画像枠・投稿タイトルバーはv7のまま維持
   ========================================================= */

/* ----- Paint領域を小さなWindowsツールウィンドウに ----- */
.paint-window {
  margin: 0;
  padding: 2px;
  background: #d4d0c8;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #7f7f7f;
  border-bottom: 2px solid #7f7f7f;

  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #a0a0a0;
}

.paint-window-title {
  display: flex;
  align-items: center;
  gap: 5px;

  height: 22px;
  box-sizing: border-box;
  padding: 2px 6px;

  color: #ffffff;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;

  background: linear-gradient(90deg, #6f99c4 0%, #8eacd0 58%, #e2a0bb 100%);
  text-shadow: 1px 1px 0 rgba(44, 73, 103, .55);
}

/* 16pxの昔のアプリ風アイコン。画像ファイル不要 */
.paint-window-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  background: #fff7fa;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px #d47898;
}

.paint-window-icon::before,
.paint-window-icon::after {
  content: "";
  position: absolute;
  display: block;
}

/* ピンクの鉛筆っぽい斜線 */
.paint-window-icon::before {
  width: 9px;
  height: 2px;
  left: 1px;
  top: 5px;
  background: #d65f87;
  transform: rotate(-42deg);
  transform-origin: center;
}

.paint-window-icon::after {
  width: 3px;
  height: 3px;
  right: 1px;
  top: 1px;
  background: #ffd0df;
  border: 1px solid #b84e70;
  box-sizing: border-box;
}

.paint-window-title-text {
  display: block;
  transform: translateY(.2px);
}

/* Petit Note本来のmainformの中で、paintだけ別ウィンドウに見せる */
.paint-window .paint_form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;

  margin: 0 !important;
  padding: 8px 8px 7px !important;

  color: #2d2d2d;
  background: #d4d0c8 !important;
  border: 0 !important;
  box-shadow: none !important;

  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

/* Tool / Size の一塊をWindowsツールバーっぽく */
.paint-window .paint_form > span,
.paint-window .canvas_size_wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  margin: 0 !important;
  white-space: nowrap;
}

/* Paintボタンを少し存在感ある実行ボタンに */
.paint-window input.paint_button {
  min-width: 58px;
  height: 25px;
  margin: 0 3px 0 0 !important;
  padding: 1px 10px !important;

  color: #202020;
  background: #d4d0c8;

  border-top: 2px solid #ffffff !important;
  border-left: 2px solid #ffffff !important;
  border-right: 2px solid #666666 !important;
  border-bottom: 2px solid #666666 !important;

  box-shadow: inset -1px -1px 0 #a0a0a0;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.paint-window input.paint_button:active {
  padding: 2px 9px 0 11px !important;
  border-top-color: #666666 !important;
  border-left-color: #666666 !important;
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  box-shadow: inset 1px 1px 0 #9f9f9f;
}

/* セレクトは昔の白い入力欄の見た目 */
.paint-window select {
  height: 24px;
  margin: 0 !important;
  padding: 1px 22px 1px 4px;

  color: #1f1f1f;
  background-color: #ffffff;

  border-top: 2px solid #7f7f7f !important;
  border-left: 2px solid #7f7f7f !important;
  border-right: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;

  border-radius: 0;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
}

/* × の文字だけ少し間隔を確保 */
.paint-window .canvas_size_wrap {
  gap: 4px;
}

/* 小さなステータスバー */
.paint-window-status {
  display: flex;
  justify-content: space-between;
  gap: 6px;

  margin-top: 2px;
  padding: 2px 3px 1px;

  color: #555;
  background: #d4d0c8;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 10px;
  line-height: 1.2;

  border-top: 1px solid #808080;
}

.paint-window-status span {
  display: block;
  min-height: 13px;
  padding: 1px 5px;
  box-sizing: border-box;

  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* ----- 上部ナビも「ツールバー」感を少し強化 ----- */
nav.menu_wrap {
  position: relative;
  align-items: center;
  min-height: 30px;
}

nav.menu_wrap::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 23px;
  margin-right: 2px;
  vertical-align: middle;

  border-left: 1px solid #ffffff;
  border-right: 1px solid #8a8a8a;
}

nav.menu_wrap a {
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
}

/* ----- New Drawing周辺は外枠を外してシンプルに ----- */
.mainform {
  position: relative;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media screen and (max-width: 767px) {
  .paint-window .paint_form {
    gap: 6px 4px;
  }

  .paint-window input.paint_button {
    min-width: 54px;
  }

  .paint-window-status {
    display: none;
  }
}


/* v9 tweaks: remove extra wrapper look */
.paint-window {
  margin: 0 0 12px;
}

.mainform > .postform,
.mainform > form.postform {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fffdfd;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  box-shadow: 0 0 0 1px #d8b5c0;
}

/* =========================================================
   ichigo v10 - Thread status bar
   いいね / Note / SNS / 返信をWindows風ステータスバーへ
   ========================================================= */

/* 投稿ウィンドウ下部の操作列 */
article .res_button_wrap.clap_wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;

  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 0 !important;
  padding: 3px !important;

  color: #454145;
  background: #d4d0c8;
  border-top: 2px solid #858585;
  border-left: 2px solid #858585;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;

  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

/* 各ステータス項目を小さな区画に */
article .res_button_wrap.clap_wrap > span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 2px 7px;

  color: #454145;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

article .res_button_wrap.clap_wrap > span:hover {
  color: #a54b68;
  background: #eee6e9;
}

/* 返信ボタンは右端へ */
article .thread-reply-inline {
  display: inline-flex !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: right !important;
}

article .thread-reply-inline input[type="submit"] {
  min-height: 22px;
  margin: 0 !important;
  padding: 2px 12px !important;

  color: #292629;
  background: #d4d0c8;
  border-top: 2px solid #ffffff !important;
  border-left: 2px solid #ffffff !important;
  border-right: 2px solid #666666 !important;
  border-bottom: 2px solid #666666 !important;
  box-shadow: inset -1px -1px 0 #a0a0a0;

  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  font-size: 12px;
}

article .thread-reply-inline input[type="submit"]:active {
  padding: 3px 11px 1px 13px !important;
  border-top-color: #666666 !important;
  border-left-color: #666666 !important;
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  box-shadow: inset 1px 1px 0 #9f9f9f;
}

/* statusbar直前の余計な点線を弱める */
article .comment + .res_button_wrap.clap_wrap,
article .clear + .res_button_wrap.clap_wrap {
  border-top-color: #858585;
}

/* 以前の投稿下部指定を上書き */
article .res_button_wrap.clap_wrap {
  border-top-style: solid !important;
}

@media screen and (max-width: 767px) {
  article .res_button_wrap.clap_wrap {
    gap: 4px;
  }

  article .thread-reply-inline {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-end;
  }
}
