/* lt-form-page.css v1  フォームの公開ページ（/form/…）の新しい形（#565、見本「フォーム見本 v1」）
   front/form/input.php が読む。#ltFormPage に .lt-mform が付くのは全体の雰囲気が「今までの形」以外のときだけ（html[data-lt-mood]）。
   今までの形では、進み具合と「いくつでも選べます」を隠すだけで、ほかは何も変えない。
   会員登録ページ（lt-member-form.css）と同じ決まり：項目名の下に入力欄の1列・最大640px・高さ48px・文字16px・
   テーマの色はボタン・選んだ枠・必須の印だけ・カードや色面は使わない。角は --lt-r-input（四角 0 / 丸 12px）。 */

/* 今までの形：足したものを出さない */
.lt-ff-steps, .lt-ff-multi { display: none; }

/* ---- 土台 ---- */
#main #ltFormPage.lt-mform {
  --mf-ac: var(--lt-m-accent, #333);
  --mf-ink: var(--lt-m-ink, #222);
  --mf-sub: color-mix(in srgb, var(--mf-ink) 62%, transparent);
  --mf-line: color-mix(in srgb, var(--mf-ink) 22%, transparent);
  --mf-line-soft: color-mix(in srgb, var(--mf-ink) 10%, transparent);
  --mf-r: var(--lt-r-input, 0px);
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 16px;
  color: var(--mf-ink);
  font-size: 16px;
  line-height: 1.6;
}

/* 進み具合：入力 › 確認 › 送信完了 */
#main #ltFormPage.lt-mform .lt-ff-steps { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0 0 32px; padding: 0; font-size: 14px; color: color-mix(in srgb, var(--mf-ink) 45%, transparent); }
#main #ltFormPage.lt-mform .lt-ff-steps li { position: relative; padding: 0 14px; margin: 0; list-style: none; }
#main #ltFormPage.lt-mform .lt-ff-steps li + li::before { content: "›"; position: absolute; left: -4px; color: color-mix(in srgb, var(--mf-ink) 30%, transparent); }
#main #ltFormPage.lt-mform .lt-ff-steps li.now { color: var(--mf-ink); font-weight: 700; }
/* 「入力画面」「確認画面」の見出しは進み具合で分かるので出さない */
#main #ltFormPage.lt-mform > h2.ttl_specs02 { display: none !important; }

/* 枠 */
#main #ltFormPage.lt-mform .formArea01 { width: auto !important; max-width: none; margin: 0 !important; padding: 0; overflow: visible; line-height: 1.6; }

/* 最初の案内文：箱にせず、ふつうの文章 */
#main #ltFormPage.lt-mform .formMessage { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 0 32px !important; color: var(--mf-ink) !important; text-align: left !important; font-weight: 400 !important; font-size: 16px; line-height: 1.8; }
/* 送った後のエラーの一覧（サーバーで見つけたもの）：赤い線の囲みだけ */
#main #ltFormPage.lt-mform .formArea01 > p[style*="FF0000"] { font-size: 14px; margin: 0 0 8px; }
#main #ltFormPage.lt-mform .formArea01 > .formMessage[style*="FF0000"] { border: 1px solid #c62828 !important; background: none !important; padding: 12px 16px !important; margin-bottom: 32px !important; font-size: 14px; }

/* まとまりの見出し（項目の「見出し」で入れた h2〜h4） */
#main #ltFormPage.lt-mform .formArea01 form > :is(h2, h3, h4) { font-size: 18px !important; line-height: 1.4; font-weight: 700 !important; margin: 40px 0 0 !important; padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid var(--mf-ink) !important; background: none !important; color: var(--mf-ink) !important; text-align: left !important; letter-spacing: .04em; }
#main #ltFormPage.lt-mform .formArea01 form > :is(h2, h3, h4)::before, #main #ltFormPage.lt-mform .formArea01 form > :is(h2, h3, h4)::after { display: none !important; }
/* 前に項目が無い見出し（いちばん上）は上を空けない */
#main #ltFormPage.lt-mform .formArea01 form > :is(h2, h3, h4):not(dl.form-field ~ *) { margin-top: 0 !important; }
html[data-lt-mood="wa"] #main #ltFormPage.lt-mform .formArea01 form > :is(h2, h3, h4) { font-family: var(--lt-m-mincho); font-weight: 600; letter-spacing: .1em; }

/* 1項目ずつ：項目名の下に入力欄 */
#main #ltFormPage.lt-mform dl.form-field { display: block !important; width: auto !important; margin: 0 !important; padding: 20px 0 !important; border: 0 !important; border-bottom: 1px solid var(--mf-line-soft) !important; table-layout: auto !important; }
#main #ltFormPage.lt-mform dl.form-field > dt { text-spacing-trim: trim-start; display: block !important; width: auto !important; padding: 0 !important; margin: 0 0 10px !important; background: none !important; border: 0 !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.5; text-align: left; }
#main #ltFormPage.lt-mform dl.form-field > dt label { display: inline; font-weight: inherit; font-size: inherit; }
#main #ltFormPage.lt-mform dl.form-field > dd { display: block !important; width: auto !important; max-width: 100%; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; overflow: visible; font-size: 16px; }

/* 必須の印（label.required::after を lt-mood.css が線の印にしている）。項目名とのすき間だけそろえる */
#main #ltFormPage.lt-mform dl.form-field > dt label.required::after { margin-left: 8px; font-size: 12px !important; font-weight: 700; position: relative; top: -1px; }
/* 任意の印：入力画面で必須でない項目 */
#main #ltFormPage.lt-mform.lt-ff-step1 dl.form-field > dt label:not(.required)::after { content: "任意"; display: inline-block; margin-left: 8px; padding: 1px 6px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--mf-sub); border: 1px solid var(--mf-line); vertical-align: middle; position: relative; top: -1px; }
html[data-lt-mood="round"] #main #ltFormPage.lt-mform.lt-ff-step1 dl.form-field > dt label:not(.required)::after { border-radius: 999px; padding: 1px 8px; }

/* 補足（項目の説明）：灰色の箱をやめ、項目名のすぐ下に小さな文字 */
#main #ltFormPage.lt-mform .form-description-before { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: -2px 0 10px !important; font-size: 13px !important; line-height: 1.6; color: var(--mf-sub) !important; }
#main #ltFormPage.lt-mform .lt-ff-multi { display: block; margin: -2px 0 10px; font-size: 13px; line-height: 1.6; color: var(--mf-sub); }
#main #ltFormPage.lt-mform .form-description-before + .lt-ff-multi { margin-top: -6px; }

/* 入力欄・選ぶ欄：高さ48px・文字16px */
#main #ltFormPage.lt-mform input[type="text"], #main #ltFormPage.lt-mform input[type="email"], #main #ltFormPage.lt-mform input[type="tel"], #main #ltFormPage.lt-mform input[type="number"],
#main #ltFormPage.lt-mform input[type="date"], #main #ltFormPage.lt-mform select, #main #ltFormPage.lt-mform textarea {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important;
  font-size: 16px !important; line-height: 1.5; color: var(--mf-ink);
  background-color: #fff; border: 1px solid var(--mf-line) !important; border-radius: var(--mf-r) !important; box-shadow: none !important; transition: none;
}
#main #ltFormPage.lt-mform input[type="text"], #main #ltFormPage.lt-mform input[type="email"], #main #ltFormPage.lt-mform input[type="tel"], #main #ltFormPage.lt-mform input[type="number"], #main #ltFormPage.lt-mform input[type="date"], #main #ltFormPage.lt-mform select { height: 48px !important; padding: 0 14px !important; }
#main #ltFormPage.lt-mform textarea { min-height: 140px; padding: 12px 14px !important; resize: vertical; }
#main #ltFormPage.lt-mform select { -webkit-appearance: none; appearance: none; padding-right: 40px !important; cursor: pointer; white-space: nowrap; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 12px 8px !important; }
#main #ltFormPage.lt-mform input::placeholder, #main #ltFormPage.lt-mform textarea::placeholder { color: color-mix(in srgb, var(--mf-ink) 38%, transparent); }
#main #ltFormPage.lt-mform :is(input, select, textarea):hover { border-color: var(--mf-line) !important; }
#main #ltFormPage.lt-mform :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea):focus { outline: none; border-color: var(--mf-ac) !important; box-shadow: 0 0 0 1px var(--mf-ac) inset !important; }
#main #ltFormPage.lt-mform input[readonly] { background: color-mix(in srgb, var(--mf-ink) 4%, #fff); }

/* 生年月日：年・月・日 */
#main #ltFormPage.lt-mform dl.form-field-member_birth .form-inline { display: flex; align-items: center; gap: 8px; }
#main #ltFormPage.lt-mform dl.form-field-member_birth select { width: auto !important; flex: 1 1 0; min-width: 0 !important; max-width: 120px !important; }
#main #ltFormPage.lt-mform dl.form-field-member_birth select:first-child { flex-grow: 1.4; max-width: 150px !important; }
#main #ltFormPage.lt-mform dl.form-field-member_birth .form-label { padding: 0; font-size: 16px; }

/* 郵便番号 */
#main #ltFormPage.lt-mform dl.form-field-member_zip dd > div { display: flex; align-items: center; gap: 6px; }
#main #ltFormPage.lt-mform dl.form-field-member_zip dd > div > input:first-child { width: 90px !important; }
#main #ltFormPage.lt-mform dl.form-field-member_zip dd > div > input:last-child { width: 110px !important; }
/* 住所：都道府県・市区町村・建物 */
#main #ltFormPage.lt-mform dl.form-field-member_addr select { max-width: 240px !important; }
#main #ltFormPage.lt-mform dl.form-field-member_addr input[type="text"] { margin-top: 10px !important; }
/* メニューの一覧 */
#main #ltFormPage.lt-mform dl.form-field-menu_list select { max-width: 100% !important; }

/* 選ぶ項目（ラジオ・チェック・性別）：枠つきの行。選ぶとテーマ色の枠。PC は 2 列、スマホは 1 列 */
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 12px; padding: 0 !important; border: 0 !important; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) > br { display: none; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) > label {
  display: flex !important; align-items: center; gap: 10px; box-sizing: border-box; width: auto !important; min-height: 48px; margin: 0 !important; padding: 10px 14px !important;
  border: 1px solid var(--mf-line) !important; border-radius: var(--mf-r) !important; background: #fff !important; color: var(--mf-ink) !important; font-size: 16px !important; font-weight: 400; line-height: 1.4; cursor: pointer; transition: none;
}
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) > label:hover { background: #fff !important; border-color: color-mix(in srgb, var(--mf-ink) 40%, transparent) !important; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) > label:has(input:checked) { border-color: var(--mf-ac) !important; box-shadow: 0 0 0 1px var(--mf-ac) inset; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="radio"],
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 20px; height: 20px; margin: 0 !important; border: 1px solid #999; background: #fff; cursor: pointer; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="radio"] { width: 18px; height: 18px; border-radius: 50%; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="checkbox"] { border-radius: 2px; }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input:checked { border-color: var(--mf-ac); }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="radio"]:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--mf-ac); }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="checkbox"]:checked { background: var(--mf-ac); }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) input:focus-visible { outline: 2px solid var(--mf-ac); outline-offset: 2px; }

/* 日付の入力：右のカレンダーの印 */
#main #ltFormPage.lt-mform .input-group { display: flex; align-items: stretch; }
#main #ltFormPage.lt-mform .input-group > input { flex: 1 1 auto; }
#main #ltFormPage.lt-mform .input-group-text { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--mf-line); border-left: 0; background: #fff; border-radius: 0 var(--mf-r) var(--mf-r) 0; }

/* ファイルの添付：「ファイルを選ぶ」のボタン */
#main #ltFormPage.lt-mform dl.form-field-file dd > div[style*="font-size"] { font-size: 13px !important; line-height: 1.6; color: var(--mf-sub); margin-bottom: 10px; }
#main #ltFormPage.lt-mform dl.form-field-file dd > div[style*="font-size"] + br { display: none; }
#main #ltFormPage.lt-mform dl.form-field-file dd ul { background: none !important; border: 0 !important; padding: 0 0 0 1.2em !important; margin: 4px 0 0 !important; font-size: 13px !important; }
#main #ltFormPage.lt-mform dl.form-field-file dd ul li { color: var(--mf-sub) !important; }
#main #ltFormPage.lt-mform input[type="file"] { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px; color: var(--mf-sub); }
#main #ltFormPage.lt-mform input[type="file"]::file-selector-button { height: 48px; margin: 0 12px 0 0; padding: 0 18px; border: 1px solid var(--mf-ink); border-radius: var(--mf-r); background: #fff; color: var(--mf-ink); font-size: 15px; cursor: pointer; }
#main #ltFormPage.lt-mform .upload-preview .delete-btn, #main #ltFormPage.lt-mform .upload-preview .btn-danger { background: none !important; color: #c62828 !important; border: 1px solid #c62828 !important; border-radius: var(--mf-r) !important; font-size: 13px !important; padding: 6px 12px !important; }

/* 入力のエラー（サーバーで見つけたもの）：入力欄のすぐ下に赤い文字 */
#main #ltFormPage.lt-mform dl.form-field .error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: #c62828 !important; }
#main #ltFormPage.lt-mform dl.form-field div[style*="border: 1px solid"] { padding: 0 !important; border: 0 !important; }

/* 確認画面：答えを本文の大きさで */
#main #ltFormPage.lt-mform.lt-ff-step2 dl.form-field > dd { font-size: 16px; line-height: 1.7; word-break: break-word; }

/* 文字認証（確認画面） */
#main #ltFormPage.lt-mform .formArea01 .formArea01 { margin-top: 24px !important; }
#main #ltFormPage.lt-mform .formArea01 .formArea01 dl { border: 0 !important; }
#main #ltFormPage.lt-mform .formArea01 .formArea01 input[name="captchaKey"] { width: 10em !important; display: inline-block !important; }

/* ボタン：主のボタン1つ（幅360px）と、文字のリンクの戻る */
#main #ltFormPage.lt-mform .btn-box { display: flex !important; flex-direction: column; align-items: center; gap: 20px; max-width: none !important; width: auto !important; height: auto !important; margin: 36px auto 48px !important; }
#main #ltFormPage.lt-mform .btn-box > .btn_specs03 { order: 1 !important; flex: none !important; width: 360px !important; max-width: 100%; height: 56px; min-height: 56px; margin: 0 !important; padding: 0 16px; font-size: 17px !important; font-weight: 700; line-height: 1; }
#main #ltFormPage.lt-mform .btn-box > .btn_specs02_ { order: 2 !important; flex: none !important; width: auto !important; height: auto; min-height: 0; margin: 0 !important; padding: 4px 2px !important; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--mf-ink) !important; font-size: 14px !important; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#main #ltFormPage.lt-mform .btn-box > .btn_specs02_:hover { background: none !important; opacity: .7; }

/* スマホ：外側（#main）の 14px と合わせて左右 20px。選ぶ項目は 1 列 */
@media screen and (max-width: 767px) {
  #main #ltFormPage.lt-mform { padding: 28px 6px 8px; box-sizing: border-box; }
  #main #ltFormPage.lt-mform dd > :is(.form-check, .form-check-inline) { grid-template-columns: 1fr; }
  #main #ltFormPage.lt-mform dl.form-field-member_sex dd > .form-check-inline { grid-template-columns: 1fr 1fr; }
  #main #ltFormPage.lt-mform dl.form-field-member_birth .form-inline { gap: 6px; }
  #main #ltFormPage.lt-mform dl.form-field-member_birth select { padding-left: 8px !important; padding-right: 24px !important; background-position: right 8px center !important; max-width: none !important; }
}

/* 送信完了：お礼の文は真ん中、トップへ戻るは枠線のボタン */
#main #ltFormPage.lt-mform.lt-ff-step3 .formMessage { text-align: center !important; margin-bottom: 8px !important; }
#main #ltFormPage.lt-mform.lt-ff-step3 .btn-box > .btn_specs02_ { width: 360px !important; max-width: 100%; height: 56px; padding: 0 16px !important; border: 1px solid var(--mf-ink) !important; border-radius: var(--lt-btn-radius, 0px) !important; text-decoration: none; font-size: 16px !important; display: block !important; float: none !important; }

/* 日付の入力：欄を 240px にそろえ、右の印の枠を入力欄と同じ高さに（スマホで印が消えて欄が細くなっていた） */
#main #ltFormPage.lt-mform .input-group { width: 100%; max-width: 240px; }
#main #ltFormPage.lt-mform .input-group > input { width: auto !important; min-width: 0 !important; border-right: 0 !important; border-radius: var(--mf-r) 0 0 var(--mf-r) !important; }
#main #ltFormPage.lt-mform .input-group-text { flex: 0 0 48px; justify-content: center; padding: 0; height: 48px; box-sizing: border-box; }
/* 確認画面では、項目の補足（「当てはまるものを…」など）は出さない */
#main #ltFormPage.lt-mform.lt-ff-step2 .form-description-before { display: none !important; }
