@import url("https://fonts.googleapis.com/css2?family=M+Plus+Rounded+1c:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
}

body,
button,
input,
select,
textarea,
label {
  font-family: "Noto Sans JP", sans-serif;
}

em {
  font-style: normal;
}

body {
  background-color: #ffffff !important;
}

#header2 {
  height: 10rem;
  position: static;
}

.ttl {
  text-align: center;
  font-size: 4.2rem;
  font-weight: bold;
  margin: 5rem 0 3rem;
  line-height: 1.2;
  position: relative;
}

.ttl em {
  color: #C89932;
}

.lead {
  text-align: center;
  font-size: 1.8rem;
  color: #ff0000;
  font-weight: bold;
  margin: 3rem 0;
}

@media screen and (min-width: 768px) {
  .head .lead {
    width: 100%;
    text-align: center;
  }
}

main.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-control::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C89932;
  opacity: 1;
  font-weight: 400;
}

h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.form-note {
  margin-top: 8px;
  margin-bottom: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 必須・任意バッジ */
.required,
.optional {
  display: inline-block;
  margin-left: 8px;
  margin-bottom: 5px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  vertical-align: middle;
  font-weight: 600;
}

.required {
  background-color: #d61518;
}

.optional {
  background-color: #607d8b;
}

/* 入力欄共通 */
.form-control,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #F8F6EF;
  border-radius: 8px;
  background: #F8F6EF;
  font-size: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 16px;
  border: 1px solid #F8F6EF;
  border-radius: 8px;
  background-color: #F8F6EF;
  font-size: 18px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* フォーカス時 */
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f1c06b;
  box-shadow: 0 0 0 3px rgba(241, 192, 107, 0.2);
}

/* エラー表示 */
[data-formrun-show-if-error] {
  display: block;
  margin-top: 6px;
  color: #ef4444;
  font-size: 14px;
}

/* Formrunの成功・エラー状態 */
.form-control-danger {
  border-color: #ef4444 !important;
}

.form-control-success {
  border-color: #22c55e !important;
}

/* ボタン */
button,
.btn-primary {
  width: 100%;
  padding: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #33ED33 0%, #1DCC1D 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 12px rgba(29, 204, 29, 0.3);
  margin: 30px 0 80px;
}

button:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #40F540 0%, #24D824 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 204, 29, 0.4);
}

button:active,
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(29, 204, 29, 0.3);
}

.row {
  display: flex;
  gap: 16px;
}

.col-6 {
  width: calc(50% - 8px);
}

.mt-3 {
  margin-top: 16px;
}

/* チェックボックス */
.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.form-check-input {
  margin-top: 4px;
}

/* 同意ボックス全体 */
.consent-box {
  margin-top: 32px;
}

/* チェックボックスを非表示 */
.consent-box .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* カード全体 */
.consent-box .form-check-label {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #F8F6EF;
  background: #F8F6EF;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.consent-box .form-check-label:hover {
  background: #F5F2EA;
}

/* チェックマーク枠 */
.consent-check {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid #D8CBB7;
  border-radius: 6px;
  background: #fff;
}

/* チェック時 */
.form-check-input:checked+.form-check-label .consent-check {
  background: #84531A;
  border-color: #84531A;
}

.form-check-input:checked+.form-check-label .consent-check::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transform: translate(-50%, -55%);
}

/* リンク */
.consent-text a {
  color: #C89932;
  text-decoration: underline;
}

/* 必須バッジ */
.consent-box .required {
  margin-left: auto;
}

.privacy-link {
  padding: 0;
  border: none;
  background: none;
  color: #C89932;
  font-weight: 300;
  text-decoration: underline;
  cursor: pointer;
}


[data-formrun-back-button] {
  display: none;
}

.formrun-confirm [data-formrun-back-button] {
  display: inline-flex;
}

.confirm-message {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff8e8;
  border: 1px solid #f1c06b;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.confirm-label {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 700;
}

.confirm-value:empty::before {
  content: "未入力";
  color: #666;
}

.confirm-value {
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 18px;
  word-break: break-all;
}

.thanks_body {
  margin: 10rem auto 10rem !important;
}

/* スマホ対応 */
@media (max-width: 767px) {

  /* フォーム全体 */
  main.form-container {
    padding: 0 20px 40px;
  }

  .ttl {
    font-size: 5.2rem;
  }

  .lead {
    width: 100%;
    font-size: 2rem !important;
  }

  .form-heading__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .h_logo2 img {
    width: 20rem;
  }

  /* 項目ごとの余白 */
  .form-group {
    margin-bottom: 32px;
  }

  /* ラベル */
  .form-group label {
    margin-bottom: 12px;
    line-height: 1.5;
  }

  /* 必須・任意 */
  .required,
  .optional {
    font-size: 12px;
    padding: 2px 8px;
    margin-left: 6px;
  }

  /* 入力欄 */
  .form-control,
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select {
    height: 56px;
    font-size: 18px;
  }

  .form-group textarea {
    min-height: 140px;
    font-size: 18px;
  }

  .consent-check {
    width: 24px;
    height: 24px;
  }

  .consent-box .form-check-label {
    font-size: 16px;
  }

  .form-check-input:checked+.form-check-label .consent-check::after {
    font-size: 16px;
  }

  /* 住所は縦並び */
  .row {
    display: block;
  }

  .col-6 {
    width: 100%;
    margin-bottom: 20px;
  }

  /* 同意ボックス */
  .consent-box .form-check-label {
    padding: 18px;
    min-height: 72px;
  }

  /* 送信ボタン */
  .btn-primary,
  button {
    height: 64px;
    font-size: 20px;
    margin: 30px 0 40px;
  }

  .thanks_body {
    margin: 3rem auto !important;
  }

}