/* モーダル用のCSS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 半透明の黒背景 */
  background-color: transparent;
  z-index: 10000;
  justify-content: center;
  align-items: end;
}
/* モーダルを表示するときのクラス */
.modal-overlay.show {
  display: flex;
}

/* モーダルの基本スタイル */
.modal-content {
  position: relative;
  background-color: white;
  width: 100%;
  border-radius: 8px;
  padding: 8px;
  margin: 0 24px 24px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.modal-head {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.close-button {
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  cursor: pointer;
}

.batsu {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
}

.batsu::before,
.batsu::after {
  /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  /* 棒の幅（太さ） */
  height: 24px;
  /* 棒の高さ */
  background: #333;
}

.batsu::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.batsu::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-body {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textarea-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#commentTextarea {
  width: 100%;
  height: 300px;
  resize: none;
  font-size: 16px;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.modal-foot {
  width: 100%;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-button-container {
  text-align: center;
  cursor: pointer;
  background-color: rgba(248, 252, 30, 0.842);
  border: none;
  border-radius: 4px;
  padding: 4px 0;
  width: 100%;
}

.submit-button {
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-button:hover {
  transform: scale(1.05);
}

/* プルダウンのスタイル */
.comment-type-select {
  padding: 8px 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  min-width: 100px;
  width: 100%;
  margin-bottom: 8px;
  /* コンテナの幅を100%に */
}

.comment-type-select:focus {
  outline: none;
  border-color: #007bff;
}

/* レスポンシブ調整 */
@media (max-width: 480px) {
  .modal-content {
    margin: 0 8px 8px 8px;
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  #commentTextarea {
    width: 100%;
    height: 150px;
    resize: none;
    font-size: 16px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
  }
}

/* End custom radio design */
