/* === フォーム全体 === */
form {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
}

/* === 囲み枠（ラジオボタンエリア） === */
.box-kakomi {
  padding: 1.5em;
  border: 2px solid #1d568e;
  border-radius: 8px;
  margin-bottom: 1.5em;
  background: #f9fafc;
}
.box-kakomi p {
  font-weight: 500;
  margin-bottom: 0.8em;
}
.box-kakomi label {
  display: inline-block;
  margin-right: 7px;
  cursor: pointer;
}
.box-kakomi label:last-child {
  margin-right: 0;
}

.box-kakomi input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #1d568e;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .4em;
  position: relative;
  transition: all 0.2s ease;
  background-color: #fff;
}
.box-kakomi input[type="radio"]:checked {
  background-color: #1d568e;
  box-shadow: inset 0 0 0 3px #fff;
}

/* === フォームテーブル（dt, dd揃え） === */
.form-table {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 1em;
  column-gap: 1em;
  align-items: start;
  margin-bottom: 1.5em;
}
.form-table dt {
  font-weight: 500;
  line-height: 2.2;
}
.form-table dd {
  margin: 0;
}

/* テキスト入力・テキストエリア（ライト固定＋ダークモード対策） */
.form-table input,
.form-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s;
  background-color: #fff;
  color: #111;
  -webkit-text-fill-color: #111; /* Chrome/Safari ダークモード対策 */
}
.form-table input:focus,
.form-table textarea:focus {
  border-color: #1d568e;
  box-shadow: 0 0 5px rgba(29, 86, 142, 0.3);
  outline: none;
}
textarea {
  min-height: 100px;
  resize: vertical;
}

/* プレースホルダーも薄いグレーに固定 */
.form-table input::placeholder,
.form-table textarea::placeholder {
  color: #9ca3af;
}

/* === セレクト（dl内の通常のselect） === */
.form-table select {
  width: 100%;
  padding: 10px 44px 10px 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s;
  background-color: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  appearance: none;
  -webkit-appearance: none;
  /* 丸背景＋ブランドカラー矢印 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23f2f5f9'/><path d='M7 10l5 5 5-5z' fill='%231d568e'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px 24px;
}
.form-table select:focus {
  border-color: #1d568e;
  box-shadow: 0 0 5px rgba(29, 86, 142, 0.3);
  outline: none;
}

/* === 生年月日（年・月・日）を横並びにする === */

.birth-selects {
  display: flex;
  gap: 0.6em;
  align-items: center;
  flex-wrap: wrap;
}
.birth-selects label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.birth-selects select {
  min-width: 90px;
  padding: 8px 32px 8px 10px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23f2f5f9'/><path d='M7 10l5 5 5-5z' fill='%231d568e'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px 18px;
}
.birth-selects span {
  font-size: 0.9rem;
  color: #333;
}

/* === 送信ボタン === */
.form-submit {
  text-align: center;
  margin-top: 2em;
}
.form-submit button,
.form-submit input[type="button"],
.form-submit input[type="submit"] {
  display: inline-block;
  background: #1d568e;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.9em 2.4em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(29, 86, 142, 0.25);
  transition: all 0.25s ease;
}
.form-submit button:hover,
.form-submit input[type="button"]:hover,
.form-submit input[type="submit"]:hover{
  background: #174774;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 86, 142, 0.35);
}
.form-submit button:active,
.form-submit input[type="button"]:active
.form-submit input[type="submit"]:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(29, 86, 142, 0.25);
}


#formWrap p{text-align:center;}


/* 必須マーク */
.form-table .riqure::before {
  content: "*";
  color: #e63946;
  font-weight: 900;
  margin-right: 0.25em;
  vertical-align: middle;
}

/* === ダークモード時に強制ライト維持（Android対策） === */
@media (prefers-color-scheme: dark) {
  .form-table input,
  .form-table textarea,
  .form-table select,
  .birth-selects select {
    background-color: #fff !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* === スマホ対応 === */
@media (max-width: 600px) {
  .form-table {
    grid-template-columns: 1fr;
  }
  .form-table dt {
    margin-bottom: 0.2em;
  }
  .birth-selects {
    gap: 0.4em;
  }
  .birth-selects select {
    min-width: 85px;
  }
}
