/* ===== form_request2 フォームスタイル ===== */
#fm_form dl {
  width: 100%;
}

@media (min-width: 768px) {
  #fm_form dl {
    width: 80%;
  }
}

#fm_form dt {
  background: #FFD600;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#fm_form dd {
  margin: 0 0 20px 0;
  padding: 0 4px;
}

/* 必須バッジ */
#fm_form .required {
  background: #e00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}

/* 必須項目はピンク */
#fm_form input[required],
#fm_form textarea[required] {
  background: #FFF0F0;
  border: 1px solid #f5c0c0;
}

/* 任意項目は白 */
#fm_form input:not([required]),
#fm_form textarea:not([required]),
#fm_form select {
  background: #fff;
  border: 1px solid #ccc;
}

/* input / select / textarea 共通 */
#fm_form input[type="text"],
#fm_form input[type="email"],
#fm_form input[type="tel"],
#fm_form select,
#fm_form textarea {
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #c00;
  width: 100%;
  box-sizing: border-box;
}

#fm_form input::placeholder,
#fm_form textarea::placeholder {
  color: #e08080;
}

#fm_form textarea {
  height: 120px;
  resize: vertical;
}

/* 姓・名 などの横並び */
#fm_form dd > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#fm_form .before_text {
  font-size: 13px;
  white-space: nowrap;
  min-width: 4em;
  color: #333;
}

#fm_form .after_text {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* エラー */
#fm_form p.err {
  color: #c00;
  font-size: 16px;
  margin: 4px 0 0;
font-family: "FOT-セザンヌ Pro M","FOT-筑紫A丸ゴシック Std D", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
    font-weight: bold;
}

/* 同意エリア */
#agreebox {
  border: none;
  margin: 10px 0 16px;
  padding: 0;
  background: none;
  font-size: 120%;
}

#agreebox .require {
  background: #e00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

/* 送信ボタン */
#fm_form .submit {
  list-style: none;
  text-align: center;
  margin-top: 24px;
  padding: 0;
}

#fm_form .submit button {
  background: #990000;
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

#fm_form .submit button:hover {
  background: #e6c000;
}

/* ===== PC：左右レイアウト ===== */
@media (min-width: 768px) {
  #fm_form dl {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px 24px;
    align-items: stretch;
  }

  #fm_form dt {
    height: 100%;
    margin-bottom: 0;
  }

  #fm_form input[type="text"],
  #fm_form input[type="email"],
  #fm_form input[type="tel"],
  #fm_form select {
    max-width: none;
  }

  #fm_form dd > div input {
    max-width: none;
  }
}

p#contact-attention2{
    color:#666;
    font-size: 90%;
}
dd[type="fm_check_box"] > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  align-items: flex-start !important;
  width: 100%;
}
dd[type="fm_check_box"] label {
  margin-left: 6px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.error-triangle {
  display: inline;  /* ← これを追加 */
  animation: blink 0.8s ease-in-out infinite;
}

#fm_form input[required]::placeholder,
#fm_form textarea[required]::placeholder {
  color: #e08080;
}

#fm_form input:not([required])::placeholder,
#fm_form textarea:not([required])::placeholder,
#fm_form select::placeholder {
  color: #666;
}
#fm_form input[type="text"],
#fm_form input[type="email"],
#fm_form input[type="tel"],
#fm_form select,
#fm_form textarea {
  color: #333; 
}
#fm_form input[required]:not(:placeholder-shown),
#fm_form textarea[required]:not(:placeholder-shown) {
  background: #fff;
  border-color: #ccc;
}
button.back,
button.sendmail {
  background: #FFD600;
  color: #333;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

button.back:hover,
button.sendmail:hover {
  background: #e6c000;
}
button.back {
  margin-right: 24px; 
}
#fm_form .submit button.back {
  background: #FFD600; 
    color: #111;
}
#fm_form .submit button.sendmail {
  background: #e00;
    color: #fff;
}



/*このフォームにだけ適応　物件だけ*/
#fm_form dd:nth-of-type(1) > div{
  display: block;
}

#fm_form dd:nth-of-type(1) > div> span{
  display: block;
  line-height: 1.6em;
}