.ProseMirror blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid #3498db;
  background-color: #f0f8ff;
  color: #333;
  font-style: italic;
}

.ProseMirror blockquote p {
  margin: 0;
}

.tiptap code {
  caret-color: white;
  background-color: #374151;
  color: white;
  border-radius: 0.125rem;
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1);
  font-family: 'Courier New', Courier, monospace;
}

.tiptap code::selection {
  background-color: rgba(255, 255, 255, 0.3);
}

.tiptap pre {
  caret-color: white;
  background-color: #374151;
  color: white;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding: 1rem;
  border: 1px solid #111827;
}

.tiptap ul,
.tiptap ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

/* 第一階層 */
.tiptap ul {
  list-style-type: disc;
  color: #111827;
}
.tiptap ol {
  list-style-type: decimal;
  color: #111827;
}

/* 第二階層 */
.tiptap ul ul {
  list-style-type: circle;
  color: #1f2937;
}
.tiptap ol ol {
  list-style-type: lower-alpha;
  color: #1f2937;
}

/* 第三階層 */
.tiptap ul ul ul {
  list-style-type: square;
  color: #374151;
}
.tiptap ol ol ol {
  list-style-type: lower-roman;
  color: #374151;
}

/* 第四階層以降（同じスタイルを継承）*/
.tiptap ul ul ul ul,
.tiptap ul ul ul ul ul {
  list-style-type: disc;
  color: #4b5563;
}
.tiptap ol ol ol ol,
.tiptap ol ol ol ol ol {
  list-style-type: decimal;
  color: #4b5563;
}

.tiptap ul li,
.tiptap ol li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.tiptap p {
  line-height: 1.75;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.tiptap h1 {
  font-size: 2rem;
}

.tiptap h2 {
  font-size: 1.5rem;
}

.tiptap h3 {
  font-size: 1.25rem;
}

.tiptap h4 {
  font-size: 1rem;
}

.tiptap h5 {
  font-size: 0.85rem;
}

.tiptap h6 {
  font-size: 0.65rem;
}

.tiptap h1,
.tiptap h2,
.tiptap h3,
.tiptap h4,
.tiptap h5,
.tiptap h6 {
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.tiptap a.link {
  color: #3b82f6;
  font-weight: 800;
}

.tiptap mark {
  background-color: #f87171;
  border-radius: 0.125rem;
  padding: 0.25rem;
}

/* Give a remote user a caret */
.tiptap .collaboration-cursor__caret {
  border-left: 1px solid #0d0d0d;
  border-right: 1px solid #0d0d0d;
  margin-left: -1px;
  margin-right: -1px;
  pointer-events: none;
  position: relative;
  word-break: normal;
}

/* Render the username above the caret */
.tiptap .collaboration-cursor__label {
  border-radius: 3px 3px 3px 0;
  color: #0d0d0d;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  left: -1px;
  line-height: normal;
  padding: 0.1rem 0.3rem;
  position: absolute;
  top: -1.4em;
  user-select: none;
  white-space: nowrap;
}

