/* マニュアル依頼フォーム専用。既存フォーム・共通スタイルには適用しない。 */
body.tsmr-shell { background: #f5f5f3 url("../../images/bk.jpg") repeat; }
.tsmr-page {
  --tsmr-navy: #043452;
  --tsmr-blue: #1b80b3;
  --tsmr-orange: #ee520d;
  color: #737373;
  font-size: 16px;
  line-height: 1.7;
  padding: 56px 0 108px;
}
.tsmr-page *, .tsmr-page *::before, .tsmr-page *::after { box-sizing: border-box; }
.tsmr-layout { width: calc(100% - 64px); max-width: 1200px; margin: 0 auto; }
.tsmr-page [hidden] { display: none !important; }
.tsmr-title {
  margin: 0 0 32px;
  color: var(--tsmr-navy);
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
}
.tsmr-progress { margin: 0 auto 24px; }
.tsmr-progress ol { display: flex; justify-content: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.tsmr-progress li {
  position: relative;
  width: 157px;
  padding: 3px 8px;
  background: #8fc2db;
  color: var(--tsmr-navy);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
}
.tsmr-progress li:first-child::after { content: ""; position: absolute; left: 100%; top: 50%; width: 36px; border-top: 1px solid #64849a; }
.tsmr-progress li[aria-current="step"] { background: var(--tsmr-navy); color: #fff; }
.tsmr-lead { margin: 0 0 12px; color: var(--tsmr-blue); font-size: 21px; font-weight: 700; text-align: center; letter-spacing: .09em; line-height: 1.65; scroll-margin-top: 125px; }
.tsmr-lead:focus { outline: none; }
.tsmr-intro { margin: 0 0 24px; text-align: center; line-height: 1.9; }
.tsmr-intro--optional { margin-bottom: 14px; }
.tsmr-required-guide { margin: 24px 0 8px; }
.tsmr-required { display: inline-block; margin-left: 5px; padding: 0 4px; background: #ca450c; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; white-space: nowrap; }
.tsmr-required-guide .tsmr-required { margin: 0 8px 0 0; }
.tsmr-row { display: grid; grid-template-columns: 24% minmax(0, 1fr); align-items: center; padding: 16px 0; border-bottom: 1px dotted #b1b1b1; }
.tsmr-label { padding-right: 22px; color: var(--tsmr-navy); font-size: 16px; font-weight: 700; line-height: 1.7; }
.tsmr-control { min-width: 0; }
.tsmr-kana { margin-top: 10px; }
.tsmr-page .wpcf7-form-control-wrap { display: block; }
.tsmr-page input[type="text"], .tsmr-page input[type="email"], .tsmr-page input[type="tel"], .tsmr-page textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #426983;
  border-radius: 5px;
  padding: 8px 14px;
  background: #fff;
  color: #404040;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  box-shadow: inset 0 1px 1px #0000000d;
}
.tsmr-page textarea { min-height: 164px; resize: vertical; }
.tsmr-page input::placeholder, .tsmr-page textarea::placeholder { color: #a7a7a7; opacity: 1; }
.tsmr-page .wpcf7-list-item { display: block; margin: 0; }
.tsmr-page .wpcf7-list-item label { display: flex; align-items: center; gap: 11px; min-height: 30px; cursor: pointer; font-weight: 400; line-height: 1.65; }
.tsmr-page input[type="checkbox"], .tsmr-page input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #315e78;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.tsmr-page input[type="radio"], .tsmr-page .tsmr-single input { border-radius: 50%; }
.tsmr-page input[type="checkbox"]:checked { background: var(--tsmr-navy); }
.tsmr-page input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tsmr-page input[type="radio"]:checked, .tsmr-page .tsmr-single input:checked { background: radial-gradient(circle, #043452 0 43%, #fff 47%); }
.tsmr-page .tsmr-single input:checked::after { content: none; }
.tsmr-page input:focus-visible, .tsmr-page textarea:focus-visible, .tsmr-page button:focus-visible, .tsmr-page a:focus-visible { outline: 3px solid #1b80b3; outline-offset: 3px; }
.tsmr-note { margin: 0 0 5px; color: #c74712; font-size: 13px; line-height: 1.7; }
.tsmr-page input[type="file"] { display: block; width: min(430px, 100%); max-width: 100%; min-height: 44px; margin: 0; padding: 7px; border: 1px solid #426983; border-radius: 5px; background: transparent; color: #666; font: inherit; font-size: 14px; }
.tsmr-page input[type="file"]::file-selector-button { margin-right: 8px; font: inherit; }
.tsmr-file-help { margin: 3px 0 0; font-size: 12px; color: #777; }
.tsmr-actions { position: relative; margin-top: 44px; text-align: center; }
.tsmr-page .tsmr-button { display: inline-flex; justify-content: center; align-items: center; width: 216px; min-height: 56px; margin: 0; padding: 12px 24px; border: 0; border-radius: 5px; background: var(--tsmr-blue); color: #fff; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.tsmr-page .tsmr-button:hover { background: #116893; color: #fff; }
.tsmr-page .tsmr-button--submit { width: 216px; min-height: 56px; padding: 12px 20px; border-radius: 4px; background: var(--tsmr-orange); font-size: 18px; line-height: 1.6; letter-spacing: normal; }
.tsmr-page .tsmr-button--submit:hover { background: #cc4307; }
.tsmr-page .tsmr-button:disabled { cursor: wait; opacity: .65; }
.tsmr-actions--submit { display: flex; align-items: stretch; justify-content: center; gap: 48px; margin-top: 28px; }
/* PCは会社サイトと同じ左配置・寸法にし、色は既存ボタンに合わせる。 */
.tsmr-page .tsmr-back {
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(216px, 100%);
  min-height: 56px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--tsmr-blue);
  border-radius: 4px;
  background: var(--tsmr-blue);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tsmr-page .tsmr-back:hover { background: #116893; border-color: #116893; color: #fff; }
.tsmr-page .tsmr-back:focus-visible { outline-color: var(--tsmr-blue); }
.tsmr-page .tsmr-back:disabled { opacity: .6; cursor: not-allowed; }
/* ボタン内に送信中インジケーターが重ならないようにする。 */
.tsmr-page .tsmr-actions--submit .wpcf7-spinner { top: calc(100% + 8px); left: calc(50% - 12px); }
.tsmr-page .wpcf7 form.submitting .tsmr-actions--submit { margin-bottom: 40px; }
.tsmr-reassurance { width: fit-content; max-width: 100%; margin: 26px auto 0; color: #555; font-size: 15px; font-weight: 700; }
.tsmr-reassurance h3 { margin: 0 0 12px; color: var(--tsmr-navy); font-size: 21px; text-align: center; letter-spacing: .14em; }
.tsmr-reassurance li { position: relative; margin: 5px 0; padding-left: 25px; }
.tsmr-reassurance li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 13px; height: 7px; border: solid var(--tsmr-navy); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.tsmr-error { margin: 5px 0 0; color: #b93216; font-size: 14px; font-weight: 700; line-height: 1.6; }
/* CF7の逐次検証による重複表示・クリック中のレイアウト移動を防ぐ。 */
.tsmr-page .wpcf7-not-valid-tip { display: none !important; }
.tsmr-page [aria-invalid="true"]:not(.wpcf7-form-control-wrap) { border-color: #b93216; }
.tsmr-status { margin: 24px auto 0; color: #b93216; text-align: center; font-weight: 700; }
.tsmr-page .wpcf7 form .wpcf7-response-output { margin: 20px auto 0; padding: 8px; color: #b93216 !important; }
.tsmr-page .wpcf7-spinner { position: absolute; margin: 0; top: 20px; left: calc(50% + 170px); }
.tsmr-page .tsmr-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* プレビューの案内は入力欄に重ならない通常フローに置く。 */
.tsmr-preview-banner { border-top: 1px solid #537991; background: #f0f7fb; padding: 12px 18px; color: #043452; font-size: 12px; line-height: 1.5; text-align: center; }
.tsmr-thanks { min-height: calc(100svh - 310px); padding-top: 60px; text-align: center; }
.tsmr-thanks h1 { margin: 0 0 22px; color: var(--tsmr-navy); font-size: 21px; font-weight: 700; line-height: 1.8; }
.tsmr-thanks p { margin: 0 0 40px; }
.tsmr-noscript { margin: 24px 0; color: #b93216; }

@media (max-width: 900px) {
  .tsmr-layout { width: calc(100% - 48px); }
  .tsmr-row { grid-template-columns: 28% minmax(0, 1fr); }
  .tsmr-label { padding-right: 16px; }
}
@media (max-width: 768px) {
  .tsmr-page { padding: 94px 0 70px; font-size: 15px; }
  .tsmr-layout { width: calc(100% - 36px); }
  .tsmr-title { margin-bottom: 26px; font-size: 22px; letter-spacing: .08em; }
  .tsmr-progress { margin-bottom: 22px; }
  .tsmr-progress ol { gap: 26px; }
  .tsmr-progress li { width: 124px; font-size: 18px; }
  .tsmr-progress li:first-child::after { width: 26px; }
  .tsmr-lead { font-size: 18px; letter-spacing: .03em; scroll-margin-top: 86px; }
  .tsmr-intro { margin-bottom: 22px; font-size: 14px; text-align: left; }
  .tsmr-intro br { display: none; }
  .tsmr-intro--optional { text-align: center; }
  .tsmr-required-guide { margin: 22px 0 4px; font-size: 14px; }
  .tsmr-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 17px 0; }
  .tsmr-label { padding-right: 0; font-size: 16px; }
  .tsmr-page input[type="text"], .tsmr-page input[type="email"], .tsmr-page input[type="tel"], .tsmr-page textarea { font-size: 16px; min-height: 44px; padding: 10px 12px; }
  .tsmr-page textarea { min-height: 178px; }
  .tsmr-page .wpcf7-list-item label { min-height: 40px; gap: 12px; }
  .tsmr-page input[type="checkbox"], .tsmr-page input[type="radio"] { flex-basis: 16px; width: 16px; height: 16px; }
  .tsmr-page input[type="checkbox"]:checked::after { left: 5px; top: 2px; }
  .tsmr-actions { margin-top: 30px; }
  .tsmr-actions--submit { gap: 16px; margin-top: 28px; }
  .tsmr-page .tsmr-actions--submit > .tsmr-back,
  .tsmr-page .tsmr-actions--submit > .tsmr-button--submit { flex: 1 1 calc(50% - 8px); width: auto; max-width: 216px; min-width: 0; padding: 12px 8px; font-size: 16px; white-space: nowrap; }
  .tsmr-note { font-size: 12px; }
  .tsmr-reassurance { font-size: 13px; }
  .tsmr-reassurance h3 { font-size: 19px; }
  .tsmr-reassurance li { margin: 9px 0; }
  .tsmr-page .wpcf7-spinner { top: 72px; left: calc(50% + 45px); }
  .tsmr-thanks { min-height: calc(100svh - 220px); padding-top: 110px; }
  .tsmr-thanks h1 { font-size: 18px; }
  .tsmr-thanks p { text-align: left; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tsmr-page * { scroll-behavior: auto; transition: none !important; } }
