/* ==============================================================
 * ds-form.css — 新サイト上のフォーム（/contact/ /recruit-contact/ /entry/）
 * 2026-10-15 新設。送信先は cms の Contact Form 7（REST）＝ /js/ds-form.js
 * 色テーマ：.fm-orange（一般）／.fm-blue（採用系）
 * 🔴 カード上辺・左辺のカラー線は使わない（デザイン標準）
 * ============================================================== */
.fm-orange { --fm-c: #F0831E; --fm-ring: rgba(240, 131, 30, .18); --fm-tint: #FFF3E6; --fm-btn: #F0831E; --fm-shadow: rgba(140, 100, 50, .10); }
.fm-blue   { --fm-c: #3171C3; --fm-ring: rgba(49, 113, 195, .18); --fm-tint: #EAF3FF; --fm-btn: linear-gradient(90deg, #56A1FF 0%, #54B3F3 100%); --fm-shadow: rgba(85, 140, 195, .14); }

/* ---------- PC（.stage 1440px 内・フロー配置） ---------- */
.fm-pc {
  position: relative; z-index: 3;
  width: 1000px; margin: 0 auto 110px; padding-top: 640px;
  font-family: 'Zen Maru Gothic', sans-serif; color: #423C36;
}
.fm-lead p { margin: 0 0 16px; font-size: 19px; font-weight: 500; line-height: 1.9; letter-spacing: .04em; }
.fm-lead b { font-weight: 700; }
.fm-lead a { color: var(--fm-c); text-decoration: underline; text-underline-offset: 3px; }
.fm-lead .fm-note { font-size: 16px; color: #5A524A; }

.fm-box {
  margin: 26px 0 0; padding: 22px 28px; border-radius: 16px; background: #fff;
  border: 1px solid #EADFCB; font-size: 17px; line-height: 1.85;
}
.fm-box .t { font-weight: 700; margin: 0 0 6px; }
.fm-box p { margin: 0; }

.fm-card {
  margin-top: 40px; padding: 56px 72px 60px; border-radius: 24px; background: #fff;
  box-shadow: 0 8px 26px var(--fm-shadow);
}
.fm-sec { margin: 52px 0 0; padding-bottom: 12px; border-bottom: 1px solid #EADFCB; font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.fm-sec:first-child { margin-top: 0; }

.fm-f { margin-top: 30px; }
.fm-sec + .fm-f { margin-top: 24px; }
.fm-lb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: .03em; }
.fm-req, .fm-opt { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; }
.fm-req { background: var(--fm-c); color: #fff; }
.fm-opt { background: #EFEAE4; color: #6B625B; }
.fm-help { margin: -4px 0 12px; font-size: 15px; color: #6B625B; line-height: 1.7; }

.fm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fm-sl { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; color: #6B625B; }

.fm-form input[type=text], .fm-form input[type=email], .fm-form input[type=tel],
.fm-form input[type=date], .fm-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0;
  padding: 14px 16px; border: 1.5px solid #DCD3C6; border-radius: 12px; background: #FFFDF9;
  font-family: inherit; font-size: 18px; color: #423C36; line-height: 1.6;
  -webkit-appearance: none; appearance: none;
}
.fm-form input[type=date] { max-width: 280px; min-height: 56px; }
.fm-form textarea { min-height: 190px; resize: vertical; }
.fm-form input::placeholder, .fm-form textarea::placeholder { color: #A89F95; }
.fm-form input:focus, .fm-form textarea:focus { outline: none; border-color: var(--fm-c); box-shadow: 0 0 0 3px var(--fm-ring); }
.fm-form input[type=file] { font-family: inherit; font-size: 16px; color: #423C36; }

.fm-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-opts label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1.5px solid #DCD3C6; border-radius: 999px; background: #fff;
  font-size: 16px; font-weight: 500; line-height: 1.5; cursor: pointer;
}
.fm-opts label:has(input:checked) { border-color: var(--fm-c); background: var(--fm-tint); }
.fm-opts input { width: 18px; height: 18px; margin: 0; accent-color: var(--fm-c); flex: none; }

.fm-accept { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; font-size: 16px; }
.fm-accept input { width: 20px; height: 20px; margin: 0; accent-color: var(--fm-c); }
.fm-accept a, .fm-pp a { color: var(--fm-c); text-decoration: underline; text-underline-offset: 3px; }
.fm-pp { margin: 40px 0 0; text-align: center; font-size: 15px; color: #6B625B; }
.fm-accept + .fm-pp { margin-top: 12px; }

.fm-i.is-err input[type=text], .fm-i.is-err input[type=email], .fm-i.is-err input[type=tel],
.fm-i.is-err input[type=date], .fm-i.is-err textarea { border-color: #D45B52; }
.fm-err { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #C8423B; }
.fm-opts .fm-err { flex-basis: 100%; margin-top: 2px; }

.fm-submit { display: flex; justify-content: center; margin-top: 26px; }
.fm-btn {
  width: 340px; height: 66px; border: 0; border-radius: 33px; background: var(--fm-btn); color: #fff; cursor: pointer;
  font-family: 'Zen Maru Gothic', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .08em;
  box-shadow: 0 4px 12px var(--fm-shadow), 0 4px 12px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fm-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px var(--fm-shadow), 0 6px 14px rgba(0, 0, 0, .08); }
.fm-btn:disabled { opacity: .6; cursor: default; transform: none; }

.fm-msg { margin: 22px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 16px; line-height: 1.75; text-align: center; }
.fm-msg[hidden] { display: none; }
.fm-msg.is-ng { background: #FFF4F2; border: 1px solid #F1C9C4; color: #A8372F; }
.fm-rc { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: #8A8077; line-height: 1.7; }
.fm-rc a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }  /* 表記は .fm-rc に記載（Google規約の代替表示） */

.fm-thanks { padding: 24px 0; text-align: center; }
.fm-thanks .t { margin: 0 0 18px; font-size: 26px; font-weight: 700; letter-spacing: .05em; color: var(--fm-c); }
.fm-thanks p { margin: 0 0 12px; font-size: 18px; line-height: 1.9; }
.fm-thanks .fm-back { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-width: 260px; height: 56px; padding: 0 28px; border-radius: 28px; background: var(--fm-btn); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .06em; }

/* ---------- SP（.m 内） ---------- */
@media (max-width: 900px) {
  .m .fm-sp { padding: 30px 16px 46px; font-family: 'Zen Maru Gothic', sans-serif; color: #423C36; }
  .m .fm-sp.fm-blue { background: #E6F4FF; }
  .m .fm-lead p { font-size: 16px; line-height: 1.85; margin-bottom: 14px; letter-spacing: .02em; }
  .m .fm-lead .fm-note { font-size: 14px; }
  .m .fm-box { padding: 16px 18px; font-size: 15px; }
  .m .fm-card { margin-top: 24px; padding: 26px 18px 30px; border-radius: 18px; }
  .m .fm-sec { margin-top: 38px; font-size: 18px; }
  .m .fm-f { margin-top: 24px; }
  .m .fm-lb { font-size: 16px; margin-bottom: 10px; }
  .m .fm-help { font-size: 14px; }
  .m .fm-two { grid-template-columns: 1fr; gap: 14px; }
  .m .fm-sl { font-size: 14px; }
  .m .fm-form input[type=text], .m .fm-form input[type=email], .m .fm-form input[type=tel],
  .m .fm-form input[type=date], .m .fm-form textarea { font-size: 16px; padding: 12px 14px; }
  .m .fm-form input[type=date] { max-width: none; min-height: 50px; }
  .m .fm-form textarea { min-height: 150px; }
  .m .fm-opts { gap: 8px; }
  .m .fm-opts label { padding: 9px 14px; font-size: 15px; border-radius: 14px; }  /* 長い選択肢が2行になっても枠がいびつにならないように */
  .m .fm-form input[type=file] { font-size: 14px; max-width: 100%; }
  .m .fm-accept { margin-top: 30px; font-size: 15px; }
  .m .fm-pp { margin-top: 30px; font-size: 14px; }
  .m .fm-btn { width: 100%; max-width: 320px; height: 58px; font-size: 18px; }
  .m .fm-msg { font-size: 14.5px; }
  .m .fm-thanks .t { font-size: 21px; }
  .m .fm-thanks p { font-size: 16px; text-align: left; }
  .m .fm-thanks .fm-back { min-width: 0; width: 100%; max-width: 300px; }
}
