
.chart-agent-max-height {
  max-height: 340px;
}

.chart-doughnut {
  max-height: 160px;
  max-width: 160px;
}

.chart-doughnut-label {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
@media (max-width: 391px) {
  .chart-doughnut-label {
    width: 140px;
    height: 140px;
  }
}

.post-image {
  min-width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}
@media (max-width: 600px) {
  .post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
}

.scrollbar::-webkit-scrollbar {
  width: 6px;
}

.scrollbar::-webkit-scrollbar-track {
  border-radius: 8px;
}

.scrollbar::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
  background-color: #D1D5DB;
}

.btn-gradient {
  background-image: linear-gradient(to right, #FFBB4F, #FC6C44, #AB30BD);
  cursor: pointer;
}

.text-gradient {
  background: linear-gradient(to right, #FFBB4F, #FC6C44, #AB30BD);
  background-clip: text;
  color: transparent;
}

.chat-gradient {
  background-image: linear-gradient(to right, #f5f2ee, #f3eaea, #f8f0f0);
}

.post-gradient {
  background-image: linear-gradient(to right, #FFE4D2 0%, #FFEEFF 100%, #E8F3FF 100%);
  cursor: pointer;
}

.border-gradient {
  position: relative;
  z-index: 0;
}

.border-gradient::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(90deg, #FFE4D2 0%, #FFEEFF 50%, #E8F3FF 100%);
  border-radius: inherit;
  padding: 2px;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.border-gradient:hover::before {
  opacity: 1;
}

.bg-rate-1 {
  background-color: #FC6C44;
}

.bg-rate-2 {
  background-color: #FCBF50;
}

.bg-rate-3 {
  background-color: #DA4283;
}

.bg-rate-4 {
  background-color: #6B4ACC;
}

.shadow-left {
  box-shadow: -3px 0 6px -6px rgba(0, 0, 0, 0.3);
}

.outline-none {
  outline: none;
}

.pagy a {
  padding: 10px 12px 10px 12px;
  margin: 5px;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.current {
  color: #ffffff;
  background-image: linear-gradient(to right, #7362CB, #A665CB) !important;
}

.modal-background {
  background-color: rgba(108, 114, 129, 0.3843137255);
}

.index-1 {
  z-index: -1;
}

.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-fixed {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.pre_line {
  white-space: pre-line;
}

.base-shadow {
  box-shadow: 0px 0px 12px 1px rgba(18, 24, 40, 0.0509803922);
}

.preview-shadow {
  box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.4784313725);
}

.input-none-focus input:focus {
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 1000px) {
  .button_to {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.dropdown-header {
  cursor: pointer;
}

.dropdown-header span {
  transition: transform 0.3s;
}

.dropdown-header span.rotate {
  transform: rotate(-90deg);
}

.icon-down {
  transform: rotate(-270deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-content.open {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

.input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 5px;
}

.textInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.input-none-outline {
  outline: none;
}

.rectangle-container {
  display: flex;
  flex-wrap: wrap;
}

.rectangle {
  display: inline-flex;
  align-items: center;
  background-color: #5c5cf3;
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
  position: relative;
  font-size: 14px;
}

.rectangle .close {
  background-color: rgb(236, 59, 59);
  border: none;
  color: white;
  font-size: 12px;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
  cursor: pointer;
  padding: 0;
}

audio {
  max-height: 100%;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}

.bg-loading {
  background: linear-gradient(90deg, #FFE6D8 25%, #FFD0B8 50%, #FFE6D8 75%);
  background-size: 200% 100%;
  animation: gradientAnimation 1.5s infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
input[type=range]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background-color: #545454; /* グレー色 */
  border-radius: 50%; /* 丸くする */
  cursor: pointer;
}

.vertical-text {
  writing-mode: vertical-rl;
}

.custom-color-picker {
  -webkit-appearance: none; /* Remove default styles for WebKit browsers */
  appearance: none; /* Remove default styles for other browsers */
  border: 1px solid #d1d5db; /* Border color and thickness */
  border-radius: 10px; /* Make the border rounded */
  background: transparent; /* Make background transparent */
  padding: 0; /* Remove padding */
  width: 12rem; /* Adjust width if needed */
  height: 2.7rem; /* Adjust height if needed */
}

.custom-color-picker::-webkit-color-swatch-wrapper {
  padding: 0; /* Remove padding in WebKit browsers */
}

.custom-color-picker::-webkit-color-swatch {
  border: none; /* Remove border in WebKit browsers */
}

.custom-color-picker::-moz-color-swatch {
  border: none; /* Remove border in Firefox */
}

#price-range-input-start::-webkit-slider-thumb {
  background-color: #ff7f0e; /* Orange color for the thumb */
}

#price-range-input-start::-moz-range-thumb {
  background-color: #ff7f0e; /* Orange color for the thumb */
}

#price-range-input-end::-webkit-slider-thumb {
  background-color: #ff7f0e; /* Orange color for the thumb */
}

#price-range-input-end::-moz-range-thumb {
  background-color: #ff7f0e; /* Orange color for the thumb */
}

.horizontal-position {
  display: flex;
  top: auto !important;
  bottom: 33%;
  position: absolute;
  max-width: 350px;
  font-weight: 800;
}

.second-horizontal-position {
  display: flex;
  top: auto !important;
  bottom: 25%;
  position: absolute;
  max-width: 350px;
  font-weight: 800;
}

.vertical-position {
  position: absolute;
  width: 40px !important;
  display: block;
  overflow: hidden;
  height: auto;
  max-height: 350px !important;
  text-align: center;
}

.first-vertical-position {
  right: 8%;
  top: 22% !important;
}

.second-vertical-position {
  right: 20%;
  top: 35% !important;
}

.vertical-center-position {
  left: 40% !important;
}

.first-left-vertical-position {
  left: 8%;
  top: 22% !important;
}

.second-left-vertical-position {
  left: 30%;
  top: 35% !important;
}

.scale-in {
  animation: 0.5s scale-in;
  display: inline-block;
  position: absolute;
  left: 50%;
  bottom: 24%;
  top: auto !important;
  font-size: 30px !important;
  transform: translateX(-50%) rotate(-6deg);
}

@keyframes scale-in {
  from {
    opacity: 0;
    scale: 2;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
.scale-in-with-bg {
  animation: 0.5s scale-in;
  display: flex;
  position: absolute;
  overflow: hidden;
  left: 5%;
  top: auto !important;
  font-size: 30px !important;
  bottom: 40% !important;
}

.white-bg-with-teal-green-border {
  background-color: white;
  border-right: 2px solid #4bd3d3;
  border-bottom: 2px solid #4bd3d3;
}

.gradient-purple {
  background-image: linear-gradient(to right, #99229D, #E146B3);
  padding: 0px 5px;
  display: flex;
  align-items: center; /* 縦方向の中央揃え */
}

.white-text {
  color: white !important;
}

.text-deep-red {
  color: #8A1312 !important;
}

.block-display {
  display: block !important;
}

.vertical-bg-white {
  background: white !important;
  display: block !important;
  top: 0;
  bottom: 0;
  padding: 10px 0;
  height: auto !important;
}

.vertical-bg-deep-red {
  background: #b1302e !important;
  display: block !important;
  top: 0;
  bottom: 0;
  padding: 10px 0;
  height: auto !important;
}

.vertical-bg-gray-dark {
  top: 0;
  bottom: 0;
  padding: 10px 0;
  height: auto !important;
  display: block !important;
  background-color: #6e6e6e !important;
}

.darker-bg {
  background: rgba(0, 0, 0, 0.3);
}

.monochrome-filter {
  filter: grayscale(80%);
}

.large-font {
  font-size: 30px !important;
  font-weight: bold !important;
}

@keyframes scale-in-texture {
  from {
    opacity: 0;
    scale: 2;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
.gradient-teal-green {
  background: linear-gradient(to right, #4bd3d3, #21A076);
  border-right: 4px solid white;
  border-bottom: 4px solid white;
}

.ml1 {
  font-weight: 500;
  font-size: 1em;
}

.ml1 .letter {
  display: inline-block;
  line-height: 1em;
  z-index: 1;
}

.ml1 .text-wrapper {
  position: relative;
  display: inline-block;
  padding: 1em 0.5em;
  color: white;
  z-index: 1;
}

.ml1 .line {
  opacity: 0;
  position: absolute;
  left: 0;
  height: 30px;
  width: 100%;
  transform-origin: 0 0;
  z-index: -1;
}

.display-none {
  display: none !important;
}

.text-style-1 {
  /* font-size: calc(10%);  */
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
}

.text-style-1-accent-1 {
  color: #076DF2;
}

.text-style-1-accent-2 {
  color: #FFC800; /* テキスト自体は透明にする */
}

.text-style-2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
}

.text-style-2-accent-1 {
  color: #FFC800;
}

.text-style-2-accent-2 {
  color: #FF5154;
}

.text-style-3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-stroke: 1px #000000;
}

.text-style-3-accent-1 {
  color: #FF5154;
  -webkit-text-stroke: 1px #ffffff;
}

.text-style-3-accent-2 {
  color: #FFC800;
  -webkit-text-stroke: 1px #ffffff;
}

.text-style-4 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  color: rgb(255, 255, 255);
  color-scheme: light;
  display: inline-flex;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 8px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.3);
}

.text-style-4-accent-1 {
  color: #9CFFFA;
  /* Glowエフェクト */
  text-shadow: 0 0 4px rgba(156, 255, 250, 0.8), 0 0 8px rgba(156, 255, 250, 0.6), 0 0 16px rgba(156, 255, 250, 0.4);
}

.text-style-4-accent-2 {
  color: #FF88DC;
  /* Glowエフェクト */
  text-shadow: 0 0 4px rgba(255, 136, 220, 0.8), 0 0 8px rgba(255, 136, 220, 0.6), 0 0 16px rgba(255, 136, 220, 0.4);
}

.text-style-5 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #545454;
  letter-spacing: 1px;
  background-color: rgb(255, 255, 255); /* 背景色 */
  padding: 5px 10px 5px 10px;
  border-radius: 2rem;
}

.text-style-5-accent-1 {
  color: #000000;
}

.text-style-5-accent-2 {
  color: #FF5154;
}

.text-style-6 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: black;
  letter-spacing: 1px;
  background-color: white; /* 背景色 */
  padding: 0.2rem;
  box-shadow: 3px 3px 0px rgb(0, 0, 0);
}

.text-style-7 {
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(to bottom, #ff3b3b, #ffae34);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0px 0px 4px rgba(255, 51, 51, 0.5);
}

.text-style-6-accent-1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  color: black;
  letter-spacing: 1px;
  background-color: white;
  padding: 0.2rem;
  box-shadow: 3px 3px 0px rgb(0, 0, 0);
}

.text-style-6-accent-2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  color: #FF5154;
  letter-spacing: 1px;
  background-color: white;
  padding: 0.2rem;
  box-shadow: 3px 3px 0px rgb(0, 0, 0);
}

.text-style-7-accent-1 {
  font-weight: 700;
  background: linear-gradient(to bottom, #0751ff, #3195ff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 4px #3195ff;
}

.text-style-7-accent-2 {
  font-weight: bold;
  background: linear-gradient(to bottom, #F7AD19, #F27F0C);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 4px #F27F0C;
}

.title-style-1 {
  font-size: 1rem;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 10px 0px;
}

.title-style-2 {
  font-size: 1rem;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif;
  color: #000000;
  background-color: rgba(255, 255, 255, 0.6);
  width: 100%;
  padding: 10px 0px;
}

.title-style-3 {
  font-size: 1rem;
  font-weight: bold;
  font-family: "ChampagneAndLimousines", serif;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 10px 0px;
}

/* about fonts */
@font-face {
  font-family: "ChampagneAndLimousines";
  src: font_url(/fonts/ChampagneAndLimousines-7KRB.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ChampagneAndLimousines";
  src: font_url(/fonts/ChampagneAndLimousinesBold-myr2.ttf) format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "ChampagneAndLimousines";
  src: font_url(/fonts/ChampagneAndLimousinesBoldItalic-dqex.ttf) format("truetype");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: "ChampagneAndLimousines";
  src: font_url(/fonts/ChampagneAndLimousinesItalic-PIRZ.ttf) format("truetype");
  font-weight: normal;
  font-style: italic;
}
.ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}

/* Streaming content styles */
.prose-heading {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #18181b; /* zinc-900 */
}

h1.prose-heading {
  font-size: 1.5rem;
}

h2.prose-heading {
  font-size: 1.25rem;
}

h3.prose-heading {
  font-size: 1.125rem;
}

h4.prose-heading {
  font-size: 1rem;
}

h5.prose-heading {
  font-size: 0.875rem;
}

h6.prose-heading {
  font-size: 0.75rem;
}

.prose-p {
  font-weight: 400; /* normal weight */
  margin-bottom: 0.75rem;
  line-height: 1.625;
  color: #3f3f46; /* zinc-700 */
}

.prose-ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-li {
  font-weight: 400; /* normal weight */
  margin-bottom: 0.25rem;
  line-height: 1.625;
  color: #3f3f46; /* zinc-700 */
}

@font-face {
  font-family: "Onryou";
  src: url(asset_path("onryou.woff2")) format("woff2"), url(asset_path("onryou.woff")) format("woff"), url(asset_path("onryou.ttf")) format("truetype");
  font-weight: normal;
  font-style: normal;
}
/* Custom styles for emoji picker and file upload */
.emoji-picker-container {
  position: relative;
}

.emoji-picker-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  z-index: 50;
  width: 20rem;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
}

.emoji-button {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-button:hover {
  background-color: #f3f4f6;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-preview .file-icon {
  font-size: 1.125rem;
}

.file-preview .file-name {
  font-size: 0.875rem;
  color: #374151;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview .file-size {
  font-size: 0.75rem;
  color: #6b7280;
}

.file-preview .file-category {
  font-size: 0.75rem;
  color: #059669;
  background-color: #d1fae5;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.file-preview .remove-button {
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.file-preview .remove-button:hover {
  background-color: #fee2e2;
}
