﻿/* ── 全体の背景とフォント ── */
body {
  margin: 0;
  padding: 20px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2ff 100%);
  color: #000000;
}

/* 見出しにゴルフ旗アイコン */
h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 1em;
  position: relative;
}
h2::before {
  content: " ";
  display: inline-block;
  font-size: 1em;
  margin-right: .3em;
}
h2::after {
  content: " ";
  display: inline-block;
  font-size: 1em;
  margin-left: .3em;
}

/* フォームラッパー */
form {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border: 2px solid #4a7023;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* テーブル装飾 */
table.formTable {
  width: 100%;
  border-collapse: collapse;
}
table.formTable th,
table.formTable td {
  padding: 10px;
  border: 1px solid #f2f2ff;
}
table.formTable th {
  background: #f2f2ff;
  color: #33691e;
  width: 50%;
  font-weight: 600;
}
table.formTable td {
  background: #ffffff;
}

/* 入力欄スタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #4a7023;
  border-radius: 4px;
  font-size: 1em;
  color: #2f4f2f;
  background: #FFEFFE;
  transition: border-color .2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #81c784;
}

/* ラジオ・チェックボックス */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #4a7023;
}

/* ボタン */
.submit-btn {
  text-align: center;
  margin-top: 1.5em;
}
.submit-btn input[type="submit"],
.submit-btn input[type="reset"] {
  background: #000080;
  color: #fff;
  padding: 10px 24px;
  margin: 0 5px;
  border: none;
  border-radius: 4px;
  font-size: 1.05em;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.submit-btn input[type="submit"]:hover,
.submit-btn input[type="reset"]:hover {
  background: #81c784;
  transform: translateY(-1px);
}
.submit-btn input[type="submit"]:active,
.submit-btn input[type="reset"]:active {
  transform: translateY(1px);
}

/* 小さい画面でのレスポンシブ */
@media screen and (max-width: 600px) {
  body {
    padding: 10px;
  }
  form {
    padding: 15px;
  }
  table.formTable th {
    display: block !important;
  width: 95% !important;
    margin-top: 10px;
  }
  table.formTable td {
    display: block;
    width: 95%;
  }
}