/* フォーム全体のコンテナ */
form[name="form1"] {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* ラベル（項目名）のスタイル */
form[name="form1"] p:nth-of-type(odd) {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* 入力エリアのスタイル */
form[name="form1"] p:nth-of-type(even) {
  margin-top: 0;
  margin-bottom: 24px;
}

/* テキスト入力、メール、電話、テキストエリアの共通設定 */
input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* 幅にパディングを含める */
  font-size: 16px; /* モバイルでのズーム防止 */
  transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* 姓名を横並びにする（PCサイズ） */
input[name$="_sei"],
input[name$="_mei"] {
  width: calc(48% - 5px);
  display: inline-block;
}

/* チェックボックスの並び */
input[type="checkbox"] {
  margin-right: 5px;
  margin-left: 10px;
}
input[type="checkbox"]:first-child {
  margin-left: 0;
}

/* 確認ボタン */
input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 30px auto 0;
  padding: 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Powered by のリンク */
#powered {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #999;
  text-decoration: none;
  margin-top: 20px;}

  /* タイトルを真ん中に配置 */
.form-title {
  
  text-align: center;
  margin-top: 0;         /* コンテナ内の上余白 */
  margin-bottom: 15px;   /* タイトルと説明文の間の余白 */
  font-size: 1.6rem;
}

/* 補足説明を真ん中に配置 */
.form-note {
  text-align: center;   /* 文字列を中央へ */
  font-size: 0.9rem;    /* 少し小さめに */
  color: #666;          /* 少し薄めの色にして見出しと差をつける */
  margin-bottom: 30px;  /* フォームの最初の項目との間隔 */
  line-height: 1.6;     /* 行間を広げて読みやすく */
}

/* 必須マークの赤色 */
.required {
  color: #e74c3c;
  font-weight: bold;
  margin: 0 2px;
}
