/* ========================================
   画像選択
======================================== */

.image-upload-field {
  margin-top: 18px;
}


.image-upload-label {
  display: block;

  margin-bottom: 8px;

  color: #34463a;

  font-size: 12px;

  font-weight: 900;
}


.image-upload-input {
  width: 100%;

  padding: 11px;

  border: 1px solid #dce5df;

  border-radius: 10px;

  background: #ffffff;

  font-size: 11px;
}


.image-upload-note {
  display: block;

  margin-top: 6px;

  color: #8a958e;

  font-size: 9px;
}



/* ========================================
   選択プレビュー
======================================== */

.image-preview {
  position: relative;

  width: 100%;

  max-width: 360px;

  margin-top: 12px;

  padding: 8px;

  border: 1px solid #e0e7e2;

  border-radius: 12px;

  background: #f7faf8;
}


.image-preview img {
  width: 100%;

  max-height: 300px;

  display: block;

  object-fit: contain;

  border-radius: 8px;
}


.image-clear-btn {
  position: absolute;

  top: 14px;

  right: 14px;

  width: 34px;

  height: 34px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 0;

  border-radius: 50%;

  color: #ffffff;

  background: rgba(0, 0, 0, 0.65);

  font-size: 18px;

  cursor: pointer;
}



/* ========================================
   投稿内画像
======================================== */

.attached-image-link {
  width: 100%;

  max-width: 520px;

  margin-top: 13px;

  display: block;
}


.attached-image {
  width: 100%;

  max-height: 520px;

  display: block;

  object-fit: contain;

  border: 1px solid #e1e6e2;

  border-radius: 10px;

  background: #f5f7f5;
}



/* ========================================
   返信画像
======================================== */

.reply-image-picker {
  margin-top: 12px;
}


.reply-image-picker input {
  width: 100%;

  padding: 9px;

  border: 1px solid #d7e1da;

  border-radius: 9px;

  background: #ffffff;

  font-size: 10px;
}


.reply-image-preview {
  max-width: 300px;

  margin-top: 9px;
}


.reply-image-preview img {
  width: 100%;

  max-height: 260px;

  object-fit: contain;

  border-radius: 8px;
}



/* ========================================
   スマホ
======================================== */

@media (max-width: 640px) {

  .attached-image-link {
    max-width: 100%;
  }


  .attached-image {
    max-height: 420px;
  }

}