/* モーダルの基本スタイル */
.terms-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* モーダルコンテンツのスタイル */
.terms-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 5px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* モーダルヘッダーのスタイル */
.terms-modal-header {
  padding: 15px 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terms-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
}

/* モーダル本文のスタイル */
.terms-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* モーダルフッターのスタイル */
.terms-modal-footer {
  padding: 15px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* 閉じるボタンのスタイル */
.terms-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  appearance: none;
  border: none;
  background: none;
}

.terms-close:hover,
.terms-close:focus {
  color: black;
  text-decoration: none;
}

.terms-confirm-btn{
  width: 196px;
  color: #fff;
  background-color: #7990bc;
  font-size: 15px;
  border: none;
  padding: 8.5px 18px;
  border-radius: 5px;
  transition: 0.3s;
}
.terms-confirm-btn:disabled{
  background-color: #8e8e8e;
}
.confirm-terms p {
  font-size: 15px;
}
.confirm-terms a {
  color: #003F97;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: opacity .3s;
}
.confirm-terms a:hover {
  opacity: .7;
}