@charset "utf-8";

/*****************************************************************/
/*** モノエイド問い合わせフォーム ****/
/*****************************************************************/

.monoaid-contact-form {
  max-width: 860px;
  margin: 30px auto;
  padding: 24px;
  background: #f4f7f8;
  border: 1px solid #d8e1e3;
  border-radius: 8px;
  box-sizing: border-box;
}

.monoaid-contact-form *,
.monoaid-contact-form *::before,
.monoaid-contact-form *::after {
  box-sizing: border-box;
}

.monoaid-contact-lead {
  margin: 0 0 20px;
  padding: 6px 16px 10px;
  background: #eaf4f4;
  border-left: 4px solid #6f9ea3;
  font-size: 15px;
  line-height: 1.9;
  font-weight: bold;
}

.monoaid-contact-box {
  margin-bottom: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dde5e7;
  border-radius: 6px;
}

.monoaid-contact-label {
  display: block;
  margin-bottom: 2px;
  font-weight: bold;
  font-size: 16px;
  color: #2f3b40;
}

.monoaid-contact-help {
  margin: -10px 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #5f6f75;
}

.monoaid-contact-required {
  display: inline-block;
  margin-top: 2px;
  margin-left: 8px;
  padding: 6px 8px 3px 8px;
  background: #d94f4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  vertical-align: top;
}

/* 入力項目 */
.monoaid-contact-input,
.monoaid-contact-textarea,
.monoaid-contact-select-wrap select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d2d6;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
}

.monoaid-contact-input:focus,
.monoaid-contact-textarea:focus,
.monoaid-contact-select-wrap select:focus {
  border-color: #6f9ea3;
  outline: none;
}

.monoaid-contact-textarea {
  min-height: 180px;
  resize: vertical;
}

.monoaid-contact-select-wrap .wpcf7-form-control-wrap {
  display: block;
}

.monoaid-contact-select-wrap select {
  display: block;
  min-height: 48px;
  line-height: 1.4;
  appearance: auto;
  -webkit-appearance: menulist;
}

.monoaid-contact-select-wrap select option {
  font-size: 15px;
  line-height: 1.4;
}

/* 補足説明 */
.monoaid-contact-example {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #e3e7e8;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: #5b666b;
}

.monoaid-contact-example ul li {
  margin-bottom: 5px;
}

.monoaid-contact-example ul li p {
  margin: 0;
  line-height: 1.5;
}

/* 入力画面のチェックリスト */
.monoaid-contact-checklist {
  padding: 20px 14px 4px 14px;
  background: #fcfcfc;
  border: 1px solid #e2e7e9;
  border-radius: 4px;
}

.monoaid-contact-checklist .wpcf7-list-item {
  display: block;
  margin: 0 0 10px;
}

.monoaid-contact-checklist .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.monoaid-contact-checklist label {
  display: inline-block;
  line-height: 1.3;
  cursor: pointer;
  vertical-align: middle;
}

.monoaid-contact-checklist input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

.monoaid-contact-checklist-small .wpcf7-list-item {
  display: inline-block;
  width: 48%;
  margin-right: 2%;
  vertical-align: top;
}

/* 注意書き */
.monoaid-contact-note {
  margin: 24px 0 18px;
  padding: 16px 18px;
  background: #fff8e8;
  border: 1px solid #ecd9a8;
  border-radius: 6px;
}

.monoaid-contact-note-title {
  margin: 0 0 10px;
  font-weight: bold;
  font-size: 16px;
  color: #6a5316;
}

.monoaid-contact-note ul {
  margin: 0;
  padding-left: 10px;
}

.monoaid-contact-form .monoaid-contact-note ul li {
  margin-bottom: 5px;
  line-height: 1.6;
}

.monoaid-contact-note ul li p {
  margin: 0;
  line-height: 1.6;
}

/* 同意欄 */
.monoaid-contact-agree {
  margin: 20px 0;
  padding: 24px 16px 14px 16px;
  background: #ffffff;
  border: 1px solid #dde5e7;
  border-radius: 6px;
}

.monoaid-contact-agree .wpcf7-list-item {
  margin: 0;
}

.monoaid-contact-agree-label {
  font-weight: bold;
  font-size: 16px;
}

/* 送信ボタン共通 */
.monoaid-contact-submit {
  text-align: center;
  margin-top: 24px;
}

.monoaid-contact-submit input[type="submit"],
.monoaid-contact-submit input.wpcf7-previous {
  min-width: 220px;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.monoaid-contact-submit input[type="submit"] {
  background: #3b4a52;
  color: #fff;
}

.monoaid-contact-submit input[type="submit"]:hover,
.monoaid-contact-submit input.wpcf7-previous:hover {
  opacity: 0.9;
}

/* バリデーション等 */
.monoaid-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

.monoaid-contact-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
}

/*****************************************************************/
/*** 確認フォーム専用 ****/
/*****************************************************************/

.monoaid-contact-confirm-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.4;
  color: #2f3b40;
}

.monoaid-contact-confirm-lead {
  margin: 0 0 20px;
  line-height: 1.8;
  color: #5f6f75;
}

/* 確認画面の通常項目 */
.monoaid-contact-confirm-value {
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #e2e7e9;
  border-radius: 4px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.monoaid-contact-confirm-value .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.monoaid-contact-confirm-value input,
.monoaid-contact-confirm-value textarea,
.monoaid-contact-confirm-value select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.8;
  color: #2f3b40;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.monoaid-contact-confirm-value textarea {
  overflow: hidden;
}

/* 確認画面のお問い合わせ内容専用 */
.monoaid-contact-confirm-list {
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #e2e7e9;
  border-radius: 4px;
  line-height: 1.8;
  white-space: normal;
  word-break: break-word;
}

.monoaid-contact-confirm-list .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.monoaid-contact-confirm-list input[type="checkbox"],
.monoaid-contact-confirm-list input[type="radio"] {
  display: none;
}

.monoaid-contact-confirm-list .wpcf7-list-item {
  display: inline;
  margin: 0;
}

.monoaid-contact-confirm-list .wpcf7-list-item-label {
  display: inline;
}

.monoaid-contact-confirm-list .wpcf7-list-item:not(:last-child)::after {
  content: "、";
}

/* 確認画面のボタン */
.monoaid-contact-submit-confirm {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.monoaid-contact-submit-confirm input.wpcf7-previous {
  background: #8a959b;
  color: #fff;
}

.monoaid-contact-submit-confirm input[type="submit"] {
  background: #3b4a52;
  color: #fff;
}

/*****************************************************************/
/*** レスポンシブ ****/
/*****************************************************************/

@media screen and (max-width: 767px) {
  .monoaid-contact-form {
    padding: 16px;
  }

  .monoaid-contact-box {
    padding: 14px;
  }

  .monoaid-contact-checklist-small .wpcf7-list-item {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .monoaid-contact-submit input[type="submit"],
  .monoaid-contact-submit input.wpcf7-previous {
    width: 100%;
    min-width: 0;
  }

  .monoaid-contact-submit-confirm {
    flex-direction: column;
  }
}


/* ===============================
   入力フォームの multistep タグを非表示
=============================== */
.monoaid-contact-submit .wpcf7-form-control-wrap:has(.wpcf7-multistep),
.monoaid-contact-submit .wpcf7-multistep,
.monoaid-contact-submit input[type="hidden"] {
  display: none !important;
}

/* has() が効かない環境向けの保険 */
.monoaid-contact-submit p:empty {
  display: none;
}

/* ===============================
   ボタンの文字位置調整
=============================== */
.monoaid-contact-submit input[type="submit"],
.monoaid-contact-submit input.wpcf7-previous {
  min-width: 220px;
  height: 50px;
  padding: 0 24px;
  line-height: 50px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

/* 確認画面の2ボタンも少し整える */
.monoaid-contact-submit-confirm input[type="submit"],
.monoaid-contact-submit-confirm input.wpcf7-previous {
  min-width: 180px;
  height: 50px;
  padding: 0 24px;
  line-height: 50px;
  text-align: center;
  box-sizing: border-box;
}

/* 空のレスポンス表示を消す */
.monoaid-contact-form + .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output:empty,
.wpcf7-response-output[aria-hidden="true"]:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* 確認画面内で自動挿入された p の余白を消す */
.monoaid-contact-form .monoaid-contact-box > p,
.monoaid-contact-form .monoaid-contact-confirm-value p,
.monoaid-contact-form .monoaid-contact-confirm-list p,
.monoaid-contact-form .monoaid-contact-submit p {
  margin: 0;
}

/* ラベルの下に少しだけ余白 */
.monoaid-contact-form .monoaid-contact-box > p:has(.monoaid-contact-label) {
  margin-bottom: 6px;
}

/* 念のため、label自体の余白も整える */
.monoaid-contact-form .monoaid-contact-label {
  margin-bottom: 0;
}

/* 確認値ボックスを少し締める */
.monoaid-contact-confirm-value,
.monoaid-contact-confirm-list {
  padding: 10px 14px;
  line-height: 1.7;
  min-height: auto;
}

/* 先頭の不要な改行対策 */
.monoaid-contact-lead br:first-child {
  display: none;
}

/* ===============================
   確認画面だけ p の余白を完全除去
=============================== */
.monoaid-confirm-page .monoaid-contact-confirm-value {
  padding: 8px 14px;
  background: #fafafa;
  border-radius: 4px;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;

  border: 1px solid #e2e7e9;
}


/* ボタンを横並びに */
.monoaid-contact-submit-confirm p {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

/* brは不要なので消す */
.monoaid-contact-submit-confirm br {
  display: none;
}

.monoaid-contact-submit-confirm input {
  min-width: 180px;
}

/* 戻るボタン */
.monoaid-contact-submit-confirm .wpcf7-previous {
  background: #8a959b;
  color: #fff;
}

/* 送信ボタン */
.monoaid-contact-submit-confirm .wpcf7-submit {
  background: #000;
  color: #fff;
}


@media screen and (max-width: 767px) {
  .monoaid-contact-submit-confirm p {
    flex-direction: column;
    align-items: center;
  }
}


/*****************************************************************/
/*** モノエイド お問い合わせ完了ページ ****/
/*****************************************************************/

.monoaid-thanks-page {
  max-width: 860px;
  margin: 30px auto;
  padding: 28px 24px;
  background: #f4f7f8;
  border: 1px solid #d8e1e3;
  border-radius: 8px;
  box-sizing: border-box;
  color: #2f3b40;
}

.monoaid-thanks-page *,
.monoaid-thanks-page *::before,
.monoaid-thanks-page *::after {
  box-sizing: border-box;
}

.monoaid-thanks-title {
  margin: 0 0 20px;
  padding: 8px 16px 10px;
  background: #eaf4f4;
  border-left: 4px solid #6f9ea3;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #2f3b40;
}

.monoaid-thanks-page p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}

.monoaid-thanks-box {
  margin: 24px 0;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #dde5e7;
  border-radius: 6px;
}

.monoaid-thanks-box-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2f3b40;
}

.monoaid-thanks-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: #fff8e8;
  border: 1px solid #ecd9a8;
  border-radius: 6px;
}

.monoaid-thanks-note-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #6a5316;
}

.monoaid-thanks-note ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.monoaid-thanks-note li {
  margin-bottom: 6px;
  line-height: 1.8;
}

.monoaid-thanks-page strong {
  font-weight: 700;
  color: #2f3b40;
}

@media screen and (max-width: 767px) {
  .monoaid-thanks-page {
    padding: 20px 16px;
  }

  .monoaid-thanks-title {
    font-size: 24px;
    padding: 8px 12px 10px;
  }

  .monoaid-thanks-box,
  .monoaid-thanks-note {
    padding: 16px 14px;
  }

  .monoaid-thanks-page p,
  .monoaid-thanks-note li {
    font-size: 14px;
    line-height: 1.8;
  }
	.monoaid-thanks-note ul {
  margin: 0 0 14px;
  padding-left: 0.3em;
}

}
	


.monoaid-thanks-highlight {
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: #eef6f6;
  border-left: 4px solid #6f9ea3;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 600;
  color: #2f3b40;
}