/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Yu Gothic UI", "Meiryo", "MS PGothic", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #faf5d3 0%, #f8f4c8 100%);
  min-height: 100vh;
  padding: 20px 0;
  font-size: 16px;
}

/* メインコンテナ */
#base {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 2px solid rgba(187, 215, 98, 0.3);
}

/* ヘッダー */
#base > p {
  text-align: center;
  padding: 30px 20px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin: 0;
  border-bottom: 2px solid rgba(187, 215, 98, 0.3);
}

#base > p img {
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* メインエリア */
#main {
  padding: 40px;
}

/* トップメッセージ */
.top_mes {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 35px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #91b222;
}

/* エラーエリア */
#error_area {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ffb3ba;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.attention {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e91e63;
  font-weight: 600;
  margin-bottom: 15px;
}

.attention img {
  width: 24px;
  height: 24px;
}

#error_mes {
  list-style: none;
  padding-left: 0;
}

#error_mes li {
  background: #ffeef2;
  color: #e91e63;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 4px solid #ff9a9e;
}

/* フォームエリア */
#form_area {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 40px 40px 50px 40px;
  border: 1px solid rgba(187, 215, 98, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 必須項目マーク */
.hissu {
  color: #91b222;
  font-weight: bold;
}

/* テーブルスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 35px;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(187, 215, 98, 0.2);
}

th {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-weight: 600;
  width: 25%;
  border-radius: 12px 0 0 12px;
  border-left: 5px solid #91b222;
}

td {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 12px 12px 0;
}

/* 入力フィールド */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid rgba(187, 215, 98, 0.3);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #91b222;
  box-shadow: 0 0 0 3px rgba(145, 178, 34, 0.1);
  transform: translateY(-2px);
}

/* ラジオボタンとチェックボックス */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: #91b222;
}

label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

/* ダンスクラス選択エリア内のlabelは左揃え */
td label {
  display: block;
  text-align: left;
  margin: 8px 0;
  padding: 5px 0;
  width: 100%;
}

/* ポイント表示 */
.point {
  color: #91b222;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

/* ダンスクラス選択エリア */
td p {
  text-align: left;
  margin: 0;
  padding: 0;
}

td p br {
  display: block;
  content: "";
  margin: 8px 0;
}

/* チェックボックスとラジオボタンのコンテナ */
td label {
  display: block;
  text-align: left;
  margin: 8px 0;
  padding: 5px 0;
}

/* ボタン */
input[type="submit"],
input[type="button"] {
  background: linear-gradient(135deg, #91b222 0%, #6b8a1a 100%);
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(145, 178, 34, 0.3);
}

input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(145, 178, 34, 0.4);
  background: linear-gradient(135deg, #6b8a1a 0%, #91b222 100%);
}

input[type="button"] {
  background: linear-gradient(135deg, #a8edea 0%, #91b222 100%);
}

input[type="button"]:hover {
  background: linear-gradient(135deg, #91b222 0%, #a8edea 100%);
}

/* ボタンエリア */
div[style*="float:left"],
div[style*="float:right"] {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
  margin-bottom: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  #base {
    max-width: 900px;
    margin: 10px;
  }

  #main {
    padding: 30px;
  }

  #form_area {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  #base {
    margin: 10px;
    border-radius: 15px;
  }

  #main {
    padding: 20px;
  }

  #form_area {
    padding: 20px;
  }

  th,
  td {
    display: block;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  th {
    border-radius: 12px 12px 0 0;
  }

  td {
    border-radius: 0 0 12px 12px;
  }

  div[style*="float:left"],
  div[style*="float:right"] {
    flex-direction: column;
    gap: 10px;
  }

  input[type="submit"],
  input[type="button"] {
    width: 100%;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#form_area {
  animation: fadeIn 0.6s ease-out;
}

/* 完了画面スタイル */
#main p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

#main a {
  display: inline-block;
  background: linear-gradient(135deg, #91b222 0%, #6b8a1a 100%);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(145, 178, 34, 0.3);
}

#main a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(145, 178, 34, 0.4);
  background: linear-gradient(135deg, #6b8a1a 0%, #91b222 100%);
}
