/* モーダル全体 */
.modal {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
}

.modal.active {
  display: flex;
}

/* モーダル本体 */
.modal-content {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  width: 83.3333%;
  max-width: 400px;
}

/* ヘッダー */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
}

.modal-header h3 {
  margin: 0 auto;
  font-weight: 600;
  font-size: 1.25rem;
}

/* 本文 */
.modal-body {
  padding: 2.5rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* フッター */
.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
  gap: 1rem;
}

/* ボタン共通 */
.modal-footer button {
  cursor: pointer;
  border-radius: 100vh;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1;
  padding-bottom: 0.0625rem;
  width: 7rem;
  height: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0rem 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.16);
  border: 0.125rem solid #fff;
}

/* はいボタン */
#yes {
  background-color: #013990;
  color: #ffffff;
}

/* いいえボタン */
#no {
  background-color: #959595;
  color: #ffffff;
}

/* 閉じるボタン */
.modal-header .close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
