/* 会社サイトの2ステップ依頼フォームだけに適用する。共用ヘッダー・フッターは変更しない。 */
.tscm-page {
  --tscm-blue: #305a92;
  --tscm-accent: #5d97c4;
  --tscm-error: #ae3023;
  color: #777;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 44px;
}
.tscm-page *, .tscm-page *::before, .tscm-page *::after { box-sizing: border-box; }
.tscm-page [hidden] { display: none !important; }
.tscm-progress { margin: 0 auto 42px; }
.tscm-progress ol { display: flex; justify-content: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.tscm-progress li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--tscm-blue);
  border-radius: 4px;
  color: var(--tscm-blue);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.tscm-progress li:first-child::after { content: ""; position: absolute; left: 100%; top: 50%; width: 35px; border-top: 1px solid var(--tscm-blue); }
.tscm-progress li[aria-current="step"] { background: var(--tscm-blue); color: #fff; }
.tscm-page .tscm-lead { margin: 0 0 12px; padding: 0; color: var(--tscm-blue); font-size: 22px; font-weight: 700; line-height: 1.6; text-align: center; scroll-margin-top: 155px; }
.tscm-lead:focus { outline: none; }
.tscm-intro { margin: 0 auto 32px; padding: 0; text-align: center; font-size: 16px; line-height: 1.8; }
.tscm-fields { width: 100%; max-width: 800px; margin: 0 auto; }
.tscm-row { margin: 0 0 32px; padding: 0; }
.tscm-row:last-child { margin-bottom: 0; }
.tscm-label { margin: 0 0 8px; padding: 0; color: #444; font-size: 16px; font-weight: 700; line-height: 1.5; }
.tscm-required { display: inline-block; margin-left: 4px; padding: 0 4px; background: var(--tscm-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; white-space: nowrap; }
.tscm-kana { margin-top: 10px; }
.tscm-control { min-width: 0; }
.tscm-page .wpcf7-form-control-wrap { display: block; }
.tscm-page input[type="text"], .tscm-page input[type="email"], .tscm-page input[type="tel"], .tscm-page textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #fff;
  color: #444;
  font: inherit;
  font-size: 15px;
  line-height: 26px;
  box-shadow: none;
}
.tscm-page textarea { height: 190px; resize: vertical; }
.tscm-page input::placeholder, .tscm-page textarea::placeholder { color: #a5a5a5; opacity: 1; }
.tscm-page .wpcf7-list-item { display: block; margin: 0 !important; }
.tscm-page .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; min-height: 30px; margin: 0; cursor: pointer; font-weight: 400; font-size: 16px; line-height: 30px; }
.tscm-page .wpcf7-list-item-label { min-width: 0; overflow-wrap: anywhere; }
.tscm-page input[type="checkbox"], .tscm-page input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 7px 0 0;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.tscm-page input[type="radio"], .tscm-page .tscm-single input { border-radius: 50%; }
/* 共用CSSの選択マークとは重ねず、専用マークを1個だけ表示する。 */
.tscm-page input[type="checkbox"]::before, .tscm-page input[type="radio"]::before { content: none; }
.tscm-page input[type="checkbox"]:checked { background: var(--tscm-blue); border-color: var(--tscm-blue); }
.tscm-page input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tscm-page input[type="radio"]:checked, .tscm-page .tscm-single input:checked { background: radial-gradient(circle, #305a92 0 43%, #fff 47%); border-color: var(--tscm-blue); }
.tscm-page .tscm-single input:checked::after { content: none; }
.tscm-page input:focus-visible, .tscm-page textarea:focus-visible, .tscm-page button:focus-visible, .tscm-page a:focus-visible { outline: 3px solid var(--tscm-blue); outline-offset: 3px; }
.tscm-page input[type="file"] { display: block; width: 292px; max-width: 100%; min-height: 58px; margin: 0; padding: 10px 8px; border: 1px solid #aaa; border-radius: 5px; background: #fff; color: #666; font: inherit; font-size: 13px; }
.tscm-page input[type="file"]::file-selector-button { margin-right: 8px; padding: 2px 8px; border: 1px solid #aaa; border-radius: 3px; background: #f8f8f8; color: #555; font: inherit; }
.tscm-note { margin: 5px 0 0; color: var(--tscm-accent); font-size: 13px; line-height: 1.65; }
.tscm-file-help { margin: 3px 0 0; color: #777; font-size: 12px; line-height: 1.65; }
.tscm-actions { margin-top: 48px; text-align: center; }
.tscm-page .tscm-button {
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  min-height: 56px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--tscm-blue);
  border-radius: 4px;
  background: #fff;
  color: var(--tscm-blue);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tscm-page .tscm-button:hover { background: #eef4f9; color: var(--tscm-blue); }
.tscm-page .tscm-button--submit { background: var(--tscm-accent); border-color: var(--tscm-accent); color: #fff; }
.tscm-page .tscm-button--submit:hover { background: #437ea9; color: #fff; }
.tscm-page .tscm-button:disabled { opacity: .6; cursor: not-allowed; }
.tscm-actions--submit { display: flex; justify-content: center; gap: 48px; margin-top: 28px; }
.tscm-reassurance { width: fit-content; max-width: 100%; margin: 36px auto 0; color: #666; font-size: 14px; font-weight: 700; }
.tscm-page .tscm-reassurance h3 { margin: 0 0 12px; color: var(--tscm-blue); font-size: 20px; font-weight: 700; text-align: center; }
.tscm-reassurance ul { margin: 0; padding: 0; list-style: none; }
.tscm-reassurance li { position: relative; margin: 4px 0; padding-left: 28px; line-height: 1.7; }
.tscm-reassurance li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border: solid var(--tscm-blue); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.tscm-error { margin: 6px 0 0; color: var(--tscm-error); font-size: 14px; font-weight: 700; line-height: 1.6; }
.tscm-page .wpcf7-not-valid-tip { display: none !important; }
.tscm-page [aria-invalid="true"]:not(.wpcf7-form-control-wrap) { border-color: var(--tscm-error); }
.tscm-status { max-width: 800px; margin: 24px auto 0; padding: 14px 18px; border: 1px solid #e3b9b4; border-radius: 4px; color: var(--tscm-error); background: #fff8f7; font-size: 15px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.tscm-status[data-kind="progress"] { color: var(--tscm-blue); background: #f4f8fc; border-color: #c7d8e8; }
.tscm-page .tscm-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tscm-preview-note { margin: 28px auto 0; color: #67778b; font-size: 12px; line-height: 1.6; text-align: center; }
.tscm-thanks { padding: 20px 0 35px; text-align: center; }
.tscm-page .tscm-thanks-title { margin: 0 0 24px; color: var(--tscm-blue); font-size: 26px; font-weight: 700; line-height: 1.65; }
.tscm-thanks > p:not(.tscm-preview-note) { margin: 0 0 46px; font-size: 16px; }

@media (max-width: 798px) {
  .tscm-page { margin-top: 36px; }
  .tscm-progress { margin-bottom: 32px; }
  .tscm-progress ol { gap: 24px; }
  .tscm-progress li { width: 120px; min-height: 48px; font-size: 18px; }
  .tscm-progress li:first-child::after { width: 25px; }
  .tscm-page .tscm-lead { font-size: 19px; line-height: 1.7; scroll-margin-top: 120px; }
  .tscm-intro { margin-bottom: 30px; font-size: 14px; text-align: left; }
  .tscm-intro br { display: none; }
  [data-tscm-step="2"] .tscm-intro { text-align: center; }
  .tscm-label { font-size: 16px; }
  .tscm-row { margin-bottom: 28px; }
  .tscm-page input[type="text"], .tscm-page input[type="email"], .tscm-page input[type="tel"], .tscm-page textarea { padding: 11px 14px; font-size: 16px; }
  .tscm-page textarea { height: 210px; }
  .tscm-page .wpcf7-list-item label { align-items: flex-start; min-height: 42px; padding: 6px 0; gap: 11px; font-size: 15px; line-height: 28px; }
  .tscm-page input[type="checkbox"], .tscm-page input[type="radio"] { width: 16px; height: 16px; flex-basis: 16px; margin-top: 6px; }
  .tscm-actions { margin-top: 32px; }
  .tscm-actions--submit { gap: 16px; margin-top: 28px; }
  .tscm-actions--submit .tscm-button { flex: 1 1 0; width: auto; max-width: 216px; min-width: 0; padding: 12px 8px; font-size: 16px; }
  .tscm-reassurance { font-size: 13px; }
  .tscm-reassurance li { margin: 9px 0; padding-left: 26px; }
  .tscm-note { font-size: 12px; }
  .tscm-page .tscm-thanks-title { font-size: 21px; }
  .tscm-thanks > p:not(.tscm-preview-note) { font-size: 14px; text-align: left; }
  .tscm-thanks { padding-top: 0; }
}
/* 320px付近で共用ロゴと右側アイコンが重ならないよう、新ページだけで幅を補正する。 */
@media (max-width: 360px) {
  .tscm-shell header .logo { width: 155px; }
}
@media (prefers-reduced-motion: reduce) { .tscm-page * { scroll-behavior: auto; transition: none !important; } }
