@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&family=Shippori+Mincho:wght@400;500;600;700&display=swap");

*{
  padding: 0;
  margin: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  color: black;
  text-decoration: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
.file-input {
  display: none;
}
.hidden {
  display: none !important;
}

/* ヘッダー全体 */
header {
  padding-top: 10px;
}

/* ヘッダーのロゴとボタンの位置 */
.container {
  min-width: 700px;
  max-width: 1170px;
  margin: 0 auto;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(255, 255, 255);
}

/* 文字ロゴ */
.logo {
  margin-bottom: 10px;
  font-size: 35px;
  font-family: "Potta One", serif;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

/* 右側メニュー全体（作品を保存 + アカウント） */
.menu-right {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 25px;
}

/* ドロップダウンメニュー */
.dropdown {
  position: relative;
}

.dropdown input[type="checkbox"] {
  display: none;
}

/* "作品を保存"の部分の設定↓ */
.dropdown label {
  cursor: pointer;
  background: #d3d3d3;
  padding: 13px 20px;
  border-radius: 25px;
  font-family: "Potta One", serif;
  font-size: 14px;
  line-height: 14px;
}

/* 作品を保存に触れたときの色を変える↓ */
.dropdown label:hover {
  color: #696969; 
}

.dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 20px;
  background: #d3d3d3;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  min-width: 110px;
  z-index: 10;
  border-radius: 15px;
}

/* ドロップダウンメニュー内の設定 ↓*/
.dropdown .submenu li a {
  display: block;
  margin: 8px 0px;
  padding: 0px 10px;
  color: black;
  text-decoration: none;
  background: #d3d3d3;
  font-family: "Potta One", serif;
}

/* ドロップダウンのリンクにマウスが触れたら文字色が変わる */
.dropdown .submenu li a:hover {
  color: #696969;
}

.dropdown input[type="checkbox"]:checked ~ .submenu {
  display: block;
}

/* アカウントボタン設定 ↓*/
.btn.account {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  text-align: center;
  line-height: 40px;
  color: #000000;
  font-family: "Potta One", serif;
}

.btn.account img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ↑ここまでヘッダー↑*/

main .container {
  background-color: #ad9eb9;
}

/* ⇊タブメニューの設定⇊ */
.tab-menu {
  display: flex;
  justify-content: center;
  gap: 90px;
  margin-bottom: 20px;
  background-color: #544f58;
}
.tab {
  padding: 0px 10px;
  background-color: #544f58;
  color: #d3d3d3;
  font-family: "Potta One", serif;
  font-size: 22px;
}
.tab:hover {
  color: #ffffff;
}
.tab.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff; 
}

/* ⇊アップロード部分⇊ */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.tab-content form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tab-content input[type="file"] {
  border: 2px dashed #aaa;
  padding: 40px;
  text-align: center;
  background-color: #fafafa;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.tab-content input[type="file"]:hover {
  border-color: #a677af;
}

/* "アップロード"ボタンの設定 */
.tab-content button {
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  background-color: #a677af;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "cherry bomb", serif;
}
.tab-content button:hover {
  background-color: #8d8d8d;
}

.custom-file {
  display: inline-block;
  margin: 15px 0;
  padding: 15px 20px;
  background-color: #d3d3d3;
  border-radius: 20px;
  border: #a3a3a3 1px solid;
  cursor: pointer;
  font-family: "Potta One", serif;
  font-size: 20px;
}
.custom-file:hover {
  color: #7e7e7e;
}

.novel-file-help {
  width: 100%;
  margin: -4px 0 12px;
  color: #6f7f8d;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.novel-file-message,
.illust-file-message,
.manga-file-message {
  width: min(80%, 760px);
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1px solid rgba(132, 158, 181, 0.3);
  border-radius: 12px;
  color: #41627f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 250, 0.9));
  box-shadow: 0 8px 18px rgba(58, 86, 112, 0.08);
  font-family: "Kiwi Maru", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.novel-file-message.loading,
.illust-file-message.loading,
.manga-file-message.loading {
  border-color: rgba(111, 152, 187, 0.42);
  color: #315779;
}

.novel-file-message.success,
.illust-file-message.success,
.manga-file-message.success {
  border-color: rgba(96, 150, 127, 0.32);
  color: #356b59;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 238, 0.9));
}

.novel-file-message.error,
.illust-file-message.error,
.manga-file-message.error {
  border-color: rgba(191, 118, 118, 0.3);
  color: #7e3c3c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 222, 222, 0.88));
}

/* タグ選択部分のスタイル */
.custom-zentai {
  width: 80%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* タグを一覧で選択するボックス */
.tag-check-list {
  width: 100%;
  min-height: 130px;
  max-height: 260px;
  margin: 0 auto 40px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid rgb(156, 156, 156);
  border-radius: 8px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

/* タグが未登録のとき */
.tag-empty-message {
  width: 100%;
  color: #777777;
  font-family: "Kiwi Maru", serif;
  font-size: 15px;
}

/* タグ1個分 */
.tag-check-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* 本物のチェックボックスは隠す */
.tag-check-item input {
  display: none;
}

/* 見た目用のタグ */
.tag-check-text {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #b8b8b8;
  border-radius: 999px;
  background-color: #f1f1f1;
  color: #333333;
  font-family: "Kiwi Maru", serif;
  font-size: 15px;
  line-height: 1.2;
}

/* 子タグは少しだけ小さく */
.tag-check-item.child .tag-check-text {
  font-size: 14px;
  background-color: #fafafa;
}
/* 親タグ＋子タグを横並びのまま扱う */
.tag-parent-group {
  display: contents;
}

/* 子タグも親タグの右横にそのまま並べる */
.tag-child-wrap {
  display: contents;
}

/* 子タグを閉じる */
.tag-child-wrap.hidden {
  display: none;
}

/* 選択中 */
.tag-check-item input:checked + .tag-check-text {
  background-color: #a677af;
  border-color: #8f6298;
  color: #ffffff;
}

/* ホバー */
.tag-check-text:hover {
  background-color: #e5d8e8;
}

/* 選択中のホバー */
.tag-check-item input:checked + .tag-check-text:hover {
  background-color: #95639f;
}

.novel-editor {
  width: 80%;
  max-width: 760px;
  margin: 10px auto 30px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.novel-title-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #dddddd;
  padding: 12px 4px;
  font-size: 22px;
  font-family: "Noto Sans JP", serif;
  outline: none;
}

.novel-title-input::placeholder {
  color: #aaaaaa;
}

.novel-body-textarea {
  width: 100%;
  min-height: 520px;
  margin-top: 24px;
  border: none;
  resize: vertical;
  font-size: 15px;
  line-height: 2;
  font-family: "Noto Sans JP", serif !important;
  outline: none;
}

.novel-body-textarea::placeholder {
  color: #aaaaaa;
}

.novel-caption-textarea {
  width: 100%;
  min-height: 70px;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid #dddddd;
  resize: vertical;
  font-size: 14px;
  line-height: 1.8;
  font-family: "Noto Sans JP", serif;
  outline: none;
}

.novel-caption-textarea::placeholder {
  color: #aaaaaa;
}

.manga-save-top-btn {
  width: 100%;
  min-height: 48px;
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.manga-save-top-btn.hidden {
  display: none;
}

.manga-preview-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.manga-preview-item {
  position: relative;
  margin: 0;
}

.manga-preview-image {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.manga-preview-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 66, 88, 0.16);
  border-radius: 50%;
  color: #19324f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(42, 66, 88, 0.14);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.manga-preview-remove-btn:hover {
  background: #fff;
  box-shadow: 0 12px 24px rgba(42, 66, 88, 0.18);
  transform: translateY(-1px);
}

.manga-preview-remove-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.manga-preview-page-label {
  margin-top: 8px;
  color: #60778d;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.manga-save-status-bottom {
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid rgba(181, 154, 126, 0.24);
  border-radius: 12px;
  color: #7a5635;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(248, 244, 238, 0.92)),
    #fff;
  box-shadow: 0 10px 22px rgba(86, 70, 54, 0.06);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.manga-save-status-bottom.hidden {
  display: none;
}

.manga-save-status-bottom.loading {
  color: #7a5635;
  border-color: rgba(181, 154, 126, 0.28);
}

.manga-save-status-bottom.success {
  color: #2f6758;
  border-color: rgba(84, 137, 117, 0.24);
  background: rgba(246, 252, 249, 0.94);
}

.manga-save-status-bottom.error {
  color: #9b4f35;
  border-color: rgba(169, 101, 52, 0.28);
  background: rgba(255, 249, 244, 0.96);
}
/* =========================
ドラッグ＆ドロップエリア
========================= */
.drop-area {
  width: 100%;
  min-height: 320px;
  margin-top: 24px;
  padding: 40px 20px;
  border: 5px dashed #b8bec4;
  border-radius: 12px;
  background-color: #f3f3f3;
  color: #9aa0a6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-family: "Kiwi Maru", serif;
}

/* ドラッグ中 */
.drop-area.dragover {
  background-color: #ece1ef;
  border-color: #a677af;
  color: #8d5a96;
}

.format-help {
  max-width: 560px;
  color: #6f7f8d;
  font-size: 14px;
  line-height: 1.7;
}

#illust-drop-area.loaded {
  display: none;
}

#illust-drop-area.loaded p,
#illust-drop-area.loaded .drop-file-button {
  display: none;
}

/* 選択ボタン */
.drop-file-button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  background-color: #ffffff;
  color: #555555;
  cursor: pointer;
  font-family: "Kiwi Maru", serif;
  font-size: 15px;
  transition: 0.2s;
}

.drop-file-button:hover {
  background-color: #ececec;
}

/* イラストプレビュー */
#illust-preview {
  width: 100%;
  display: block;
  max-height: 600px;
  margin: 24px auto 0;
  object-fit: contain;
}

#illust-preview.hidden {
  display: none;
}

/* マンガプレビュー */
#manga-preview-list {
  width: 100%;
  margin-top: 20px;
}
.novel-detail-body {
  font-family: "kiwi maru", serif;
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
}

/* サイト共通デザインへの調整 */
:root {
  --navy: #19324f;
  --ink: #253f5b;
  --soft-ink: #5b748d;
  --muted-ink: #7890a6;
  --blue: #4d789f;
  --blue-deep: #3f668d;
  --blue-light: #8faec8;
  --line: rgba(129, 157, 181, 0.26);
  --panel: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 42px rgba(58, 86, 112, 0.11);
  --shadow-soft: 0 10px 26px rgba(58, 86, 112, 0.1);
  --serif: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html {
  min-height: 100%;
  background: #f3f7fa;
}

body,
input,
textarea,
label,
button,
a {
  font-family: var(--serif);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(250, 252, 253, 0.98) 0 68px, rgba(238, 244, 248, 0.96) 68px 100%),
    linear-gradient(135deg, rgba(222, 234, 242, 0.5), rgba(255, 255, 255, 0) 30%),
    linear-gradient(225deg, rgba(230, 239, 246, 0.58), rgba(255, 255, 255, 0) 34%),
    #f4f8fb;
  font-feature-settings: "palt";
}

a {
  color: inherit;
}

header {
  height: 72px;
  padding-top: 0;
  background: rgba(252, 254, 255, 0.94);
  box-shadow: 0 8px 28px rgba(62, 91, 118, 0.08);
}

.container {
  width: min(95vw, 1170px);
  min-width: 700px;
  max-width: none;
}

header .container {
  height: 66px;
  background: transparent;
}

.logo {
  margin-bottom: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 7px rgba(77, 120, 159, 0.1);
}

.menu-right {
  margin-bottom: 0;
  gap: 22px;
}

.dropdown label {
  min-width: 120px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 0 17px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #5b86ad 0%, #456f97 100%);
  box-shadow: 0 10px 24px rgba(45, 76, 104, 0.18);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dropdown label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown label:hover {
  color: #fff;
  background: linear-gradient(180deg, #537da2 0%, #3f668d 100%);
  box-shadow: 0 12px 26px rgba(45, 76, 104, 0.22);
  transform: translateY(-1px);
}

.dropdown .submenu {
  top: calc(100% + 8px);
  left: 50%;
  min-width: 150px;
  margin-top: 0;
  padding: 6px 0;
  border: 1px solid rgba(132, 158, 181, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 36px rgba(45, 70, 94, 0.16);
  transform: translateX(-50%);
}

.dropdown .submenu li a {
  margin: 0;
  padding: 9px 17px;
  color: var(--navy);
  background: transparent;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.dropdown .submenu li a:hover {
  color: #3e688f;
  background: rgba(232, 239, 245, 0.8);
}

.btn.account {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 158, 181, 0.42);
  color: var(--navy);
  background: linear-gradient(180deg, #ffffff 0%, #edf4f8 100%);
  box-shadow: 0 10px 24px rgba(45, 76, 104, 0.12);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

main .container {
  min-height: 750px;
  background: transparent;
}

.tab-menu {
  background: transparent;
}

.tab {
  position: relative;
  padding: 13px 4px 12px;
  color: var(--muted-ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(77, 120, 159, 0.08);
  transition: color 0.18s ease;
}

.tab:hover,
.tab.active {
  color: var(--navy);
}

.tab.active {
  border-bottom: 0;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #789bb8 0%, #b6c9d8 100%);
  box-shadow: 0 2px 8px rgba(80, 118, 150, 0.14);
  transform: translateX(-50%);
}

.custom-file,
.drop-file-button,
.tab-content button {
  color: #fff;
  background: linear-gradient(180deg, #5b86ad 0%, #456f97 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(45, 76, 104, 0.16);
  font-family: var(--serif);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.custom-file:hover,
.drop-file-button:hover,
.tab-content button:hover {
  color: #fff;
  background: linear-gradient(180deg, #537da2 0%, #3f668d 100%);
  box-shadow: 0 10px 22px rgba(45, 76, 104, 0.2);
  transform: translateY(-1px);
}

.tab-content button:disabled,
.tab-content button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.52;
  background: linear-gradient(180deg, #9fb7cc 0%, #7d9ab4 100%);
  box-shadow: none;
  transform: none;
}

.novel-editor {
  border: 1px solid rgba(133, 160, 183, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 253, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
}

.novel-title-input {
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  background: transparent;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.novel-caption-textarea {
  border-bottom: 1px solid var(--line);
  color: var(--soft-ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.novel-body-textarea,
.novel-detail-body {
  color: #243d58;
  background: transparent;
  font-family: var(--serif) !important;
  font-size: 16px;
  line-height: 2.1;
}

.novel-title-input::placeholder,
.novel-caption-textarea::placeholder,
.novel-body-textarea::placeholder {
  color: rgba(91, 116, 141, 0.58);
}

.novel-title-input:focus,
.novel-caption-textarea:focus,
.novel-body-textarea:focus {
  border-color: #8faec8;
  box-shadow: 0 0 0 3px rgba(143, 174, 200, 0.14);
}

.tag-check-list {
  border: 1px solid rgba(132, 158, 181, 0.3);
  border-radius: 12px;
  background: rgba(251, 253, 255, 0.86);
  box-shadow: inset 0 1px 8px rgba(58, 86, 112, 0.04);
}

.tag-empty-message {
  color: var(--muted-ink);
  font-family: var(--serif);
}

.tag-check-text {
  border: 1px solid rgba(132, 158, 181, 0.32);
  color: #41627f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 247, 0.88));
  box-shadow: 0 5px 14px rgba(58, 86, 112, 0.08);
  font-family: var(--serif);
  font-weight: 600;
}

.tag-check-item.child .tag-check-text {
  color: #58738b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 250, 0.9));
}

.tag-check-item input:checked + .tag-check-text {
  border-color: rgba(81, 123, 158, 0.56);
  color: #fff;
  background: linear-gradient(180deg, #6f98bb 0%, #4f789e 100%);
  box-shadow: 0 8px 18px rgba(45, 76, 104, 0.16);
}

.tag-check-text:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(221, 235, 244, 0.95));
}

.tag-check-item input:checked + .tag-check-text:hover {
  background: linear-gradient(180deg, #638fb3 0%, #456f97 100%);
}

.drop-area {
  border: 2px dashed rgba(132, 158, 181, 0.62);
  border-radius: 14px;
  color: var(--muted-ink);
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.88), rgba(238, 245, 250, 0.9));
  font-family: var(--serif);
}

.drop-area.dragover {
  border-color: #6f98bb;
  color: #41627f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 237, 246, 0.96));
}

.format-help {
  color: var(--soft-ink);
}

.novel-file-help {
  color: var(--soft-ink);
}

.novel-file-message,
.illust-file-message,
.manga-file-message {
  color: #41627f;
  font-family: var(--serif);
}

.manga-preview-image,
#illust-preview {
  border-radius: 12px;
  background: rgba(244, 248, 251, 0.9);
  box-shadow: var(--shadow-soft);
}

html::-webkit-scrollbar,
.tag-check-list::-webkit-scrollbar,
.novel-body-textarea::-webkit-scrollbar,
.novel-caption-textarea::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track,
.tag-check-list::-webkit-scrollbar-track,
.novel-body-textarea::-webkit-scrollbar-track,
.novel-caption-textarea::-webkit-scrollbar-track {
  background: rgba(238, 244, 248, 0.72);
}

html::-webkit-scrollbar-thumb,
.tag-check-list::-webkit-scrollbar-thumb,
.novel-body-textarea::-webkit-scrollbar-thumb,
.novel-caption-textarea::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(143, 174, 200, 0.48);
}

@media (max-width: 1024px) {
  .container {
    width: min(94vw, 1170px);
    min-width: 0;
  }

  .tab-menu {
    gap: 56px;
  }

  .novel-editor,
  .custom-zentai {
    width: min(100%, 760px);
  }

  .novel-file-message,
  .illust-file-message,
  .manga-file-message {
    width: min(100%, 760px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(94vw, 1170px);
    min-width: 0;
  }

  header {
    height: auto;
  }

  header .container {
    min-height: 62px;
    height: auto;
    padding: 10px 0;
  }

  .logo {
    font-size: 28px;
  }

  .menu-right {
    gap: 12px;
  }

  .dropdown label {
    min-width: auto;
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .dropdown .submenu {
    left: auto;
    right: 0;
    transform: none;
  }

  main .container {
    min-height: 0;
  }

  .tab-menu {
    justify-content: space-between;
    gap: 0;
  }

  .tab {
    flex: 1;
    padding: 13px 2px 12px;
    font-size: 18px;
  }

  .novel-editor,
  .custom-zentai {
    width: 100%;
  }

  .novel-file-message,
  .illust-file-message,
  .manga-file-message {
    width: 100%;
  }

  .novel-editor {
    padding: 24px 20px 28px;
  }

  .novel-title-input {
    font-size: 25px;
  }

  .novel-body-textarea {
    font-size: 15px;
    line-height: 2;
  }

  .drop-area {
    min-height: 240px;
    padding: 28px 14px;
  }

  .manga-save-top-btn {
    min-height: 50px;
    margin-top: 14px;
    font-size: 16px;
  }

  .manga-preview-remove-btn {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .tag-check-list {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 25px;
  }

  .menu-right {
    gap: 8px;
  }

  .dropdown label {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .btn.account {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .tab {
    font-size: 16px;
  }

  .custom-file,
  .drop-file-button,
  .tab-content button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .novel-editor {
    padding: 22px 16px 24px;
  }

  .novel-title-input {
    font-size: 22px;
  }

  .novel-body-textarea {
    min-height: 420px;
  }

  .manga-file-message {
    position: sticky;
    top: 8px;
    z-index: 2;
  }
}
