/*
Theme Name: omoio2023
Author: tieel
Version: 1.0
*/

/********test*******/
/* --------- 💻 PC（デフォルト） --------- */

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.form-description {
  font-size: 14px;
  text-align: center;
  margin-bottom: 30px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.required {
  color: red;
  font-size: 12px;
  margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="submit"] {
  background-color: #3c6;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  width: 100%;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

input[type="submit"]:hover {
  background-color: #2a5;
}

.checkbox-group label,
.radio-group label {
  display: block;
  margin-bottom: 8px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  width: 48%;
}
@media screen and (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-col {
    width: 100%;
  }

  input[type="submit"] {
    font-size: 16px;
  }
}
@media screen and (max-width: 480px) {
  .form-wrapper {
    padding: 20px 10px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-description {
    font-size: 13px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 15px;
    padding: 8px;
  }

  input[type="submit"] {
    font-size: 16px;
    padding: 12px;
  }
}
body,
input,
textarea,
select,
button {
  font-family: 'Noto Sans JP', sans-serif;
}
/* 見た目だけチェックボックス風のラジオボタン */
.custom-radio {
  position: relative;
  display: block;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.6; /* ← テキストの高さ調整 */
  user-select: none;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio-box {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* ← 中央に揃える */
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #999;
  border-radius: 2px;
}

.custom-radio input:checked ~ .custom-radio-box {
  background-color: #4caf50;
  border-color: #4caf50;
}

.custom-radio-box::after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio input:checked ~ .custom-radio-box::after {
  display: block;
}

.custom-radio-box::after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* 全ラベルの上に余白をつけて間隔を確保 */
label {
  margin-top: 16px; /* 適度な値に調整可能 */
  display: block;
  font-weight: bold;
}

/* フォーム冒頭のラベルだけは margin-top をゼロにしたい場合 */
label:first-of-type {
  margin-top: 0;
}
.checkbox-group {
	margin-left:20px;
}
.custom-radio-group {
	margin-left:20px;
}

/* === 全体レイアウト === */
.confirm-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
}

/* === 見出し === */
.confirm-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.confirm-heading span {
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

/* === サブ説明文 === */
.confirm-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* === 確認テーブル === */
.confirm-table {
  width: 100%;
  border: 1px solid #a7a7a7; /* 枠線を黒に */
  border-collapse: collapse;
  margin-bottom: 40px;
  text-align: left;
}

.confirm-table th,
.confirm-table td {
  padding: 16px;
  border-top: 1px solid #a7a7a7;     /* 横線のみ */
  border-bottom: 1px solid #a7a7a7;  /* 横線のみ */
  border-left: none;
  border-right: none;
}

.confirm-table tr:first-child th,
.confirm-table tr:first-child td {
  border-top: none; /* 最上部の行には横線なし */
}

.confirm-table th {
  background-color: #fafafa;
  width: 30%;
  white-space: nowrap;
  font-weight: 600;
}

/* === ボタンエリア === */
.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary,
.btn-secondary {
  width: 300px;
  height: 60px;
  padding: 0;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  line-height: 60px; /* ← 高さに合わせて中央寄せ */
  box-sizing: border-box;
}

/* 戻るボタン */
.btn-secondary {
  background-color: #fff;
  border: 1px solid #aaa;
  color: #333;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #f2f2f2;
}

/* 送信ボタン */
.btn-primary {
  background-color: #77A6AA;
  border: none;
  color: #fff;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #4aa290;
}

@media screen and (max-width: 640px) {
  .confirm-table,
  .confirm-table tbody,
  .confirm-table tr,
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
  }

  .confirm-table tr:not(:last-child) {
    margin: 0;            /* ← 空白の原因対策 */
    padding: 0;
    border-bottom: 1px solid #ddd;
  }

  .confirm-table th {
    background-color: transparent;
    font-weight: bold;
    padding: 12px 16px 4px;
    border: none;
  }

  .confirm-table td {
    padding: 0 16px 16px;
    border: none;
  }
}

/* === レスポンシブ対応 === */
@media screen and (max-width: 600px) {
  .confirm-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .confirm-heading span {
    font-size: 20px;
  }
}