/* ページ全体の背景 */
body {
  background-image: url('/static/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Arial', sans-serif;
  padding: 2rem 0; /* 上下の余白 */
  box-sizing: border-box;
}

/* 中央のコンテナ */
.terms-container {
  width: 75%; /* 横幅 */
  background-color: rgba(19, 41, 61, 0.9);
  border: 2px solid #6dd5ed;
  border-radius: 15px;
  padding: 2rem 3rem;
  color: #f0f0f0;
  box-sizing: border-box;
}
.terms-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* 利用規約のテキストを表示するボックス */
.terms-box {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 1rem 2rem;
  border-radius: 8px;
  height: 50vh; /* 高さを画面の50%に */
  overflow-y: scroll; /* 内容がはみ出たらスクロールさせる */
  font-size: 0.9rem;
  line-height: 1.6;
}
.terms-box h4 {
  margin-top: 1.5rem;
}

/* 同意フォームのスタイル */
.agree-form {
  margin-top: 2rem;
  text-align: center;
}
.agree-checkbox {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.agree-checkbox input {
  margin-right: 0.5rem;
}

/* 送信ボタンのスタイル */
.submit-btn {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background-color: #28a745;
  border: none;
  padding: 0.8rem 3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
}

/* 「ホームに戻る」リンクのスタイル */
.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #f0f0f0;
  text-decoration: underline;
  transition: color 0.3s;
}
.back-link:hover {
  color: #fff;
}
/* 画面幅が768px以下（スマートフォンなど）の場合に適用 */
@media (max-width: 768px) {
  .terms-container {
    width: 90%;
    padding: 1.5rem 1rem;
  }
  .terms-container h2 {
    font-size: 1.5rem;
  }
  .terms-box {
    padding: 1rem;
    height: 60vh; /* スマホでは高さを少し確保 */
  }
  .agree-checkbox {
    font-size: 1rem;
  }
}