@charset "UTF-8";

/*----------------------------------------メールフォームプロ改ざん----------------------------------------*/
body {
  overflow-x: initial;
}

div.mfp_ok {
  display: none !important;
}

.mfp_err {
  padding: 3px 0px 5px var(--sub-width);
  background-image: url(../mail/mailformpro/_images/mfp_error.gif);
}

.mfp_ng {
  background-color: #fff;
}

.problem {
  background-color: #fff;
}

#wrapper {
  width: 100% !important;
  max-width: 960px;
  margin: 0 auto;
  padding: 2em;
}

#mfp_phase_stat {
  display: none;
}

/* フォーム全体のスタイル */
form#mailformpro {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2.5em;
  margin: 2em auto;
  max-width: 800px;
}

/* フォーム項目のスタイル */
form .box {
  margin: 0 auto 2em;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1.5em;
}

form .box:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

form .box .text {
  width: 100%;
  margin: 0 auto 0.5em;
}

form .box .text label {
  font-weight: 600;
}

form .box .text .must {
  background: #dc3545;
  color: #fff;
  font-size: 0.725em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

form .box .text .must::after {
  content: "必須";
}

form .box .line {
  width: 100%;
}

/* 入力フィールドの基本スタイル */
form .box .line .sub_title input[type="text"],
form .box .line .sub_title input[type="email"],
form .box .line .sub_title input[type="tel"],
form .box .line .sub_title input[type="number"],
form .box .line .sub_title input[type="password"],
form .box .line .sub_title textarea {
  width: 100%;
  padding: 0.5em 1em;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

form .box .line .sub_title textarea {
  width: 100% !important;
  min-height: 12em;
}

form .box .line .sub_title select {
  transition: all 0.3s ease;
}

/* フォーカス時（選択時）のスタイル */
form .box .line .sub_title input[type="text"]:focus,
form .box .line .sub_title input[type="email"]:focus,
form .box .line .sub_title input[type="tel"]:focus,
form .box .line .sub_title input[type="number"]:focus,
form .box .line .sub_title input[type="password"]:focus,
form .box .line .sub_title textarea:focus {
  outline: none;
  border-color: var(--theme-color);
  background-color: #f8f9ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

/* 入力があった時のスタイル */
form .box .line .sub_title input[type="text"].has-content,
form .box .line .sub_title input[type="email"].has-content,
form .box .line .sub_title input[type="tel"].has-content,
form .box .line .sub_title input[type="number"].has-content,
form .box .line .sub_title input[type="password"].has-content,
form .box .line .sub_title textarea.has-content,
form .box .line .sub_title select.has-content {
  color: #000;
  background-color: #f8f9fa;
  border-color: #6c757d;
}

/* プレースホルダーのスタイル */
form .box .line .sub_title input::placeholder,
form .box .line .sub_title textarea::placeholder {
  color: #6c757d;
  font-style: italic;
  opacity: 0.8;
}

/* メール確認用の説明文 */
form .box .line .sub_title p {
  font-size: 0.9em;
  color: #6c757d;
  margin: 0.5em 0;
  font-style: italic;
}

/* チェックボックスが選択された時のスタイル */
form .box .line .sub_title .checkbox.has-selection {
  /* チェックボックスのスタイルは必要に応じて追加 */
}

/* エラー時（無効な入力）のスタイル */
/* form .box .line .sub_title input[type="text"]:invalid:not(:placeholder-shown),
form .box .line .sub_title input[type="email"]:invalid:not(:placeholder-shown),
form .box .line .sub_title input[type="tel"]:invalid:not(:placeholder-shown),
form .box .line .sub_title input[type="number"]:invalid:not(:placeholder-shown),
form .box .line .sub_title input[type="password"]:invalid:not(:placeholder-shown),
form .box .line .sub_title textarea:invalid:not(:placeholder-shown) {
  color: var(--theme-color);
  border: 2px solid #dc3545;
  background-color: #eeeeee;
} */

/*  */
#mfp_overlay_inner {
  color: #000;
}

/* ファイルアップロードプレビュー機能 */
.file-list {
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.file-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list li {
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  color: #495057;
}

.file-list li:last-child {
  border-bottom: none;
}

.image-preview {
  margin-top: 10px;
}

.image-preview ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview li {
  margin: 0;
  padding: 0;
}

.image-preview a {
  display: block;
  text-decoration: none;
}

.image-preview img {
  max-width: 300px;
  border-radius: 5px;
  border: 2px solid #dee2e6;
  transition: border-color 0.3s ease;
}

.image-preview img:hover {
  border-color: var(--theme-color);
}

/* ファイルタイプ別のアイコン */
.mfp_filelist_jpg,
.mfp_filelist_jpeg,
.mfp_filelist_png,
.mfp_filelist_gif {
  color: #28a745;
}

.mfp_filelist_pdf {
  color: #dc3545;
}

/* ドラッグ&ドロップエリア */
.drag-drop-area {
  transition: all 0.3s ease;
}

.drag-drop-area p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.mfp_dragover {
  background-color: #e3f2fd !important;
  border: 2px dashed #2196f3 !important;
}

/* 確認画面での画像プレビュー */
.confirm-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.confirm-image-preview img {
  max-width: 300px;
  border-radius: 5px;
  border: 2px solid #dee2e6;
  transition: border-color 0.3s ease;
}

.confirm-image-preview img:hover {
  border-color: var(--theme-color);
}

/* 送信ボタンのスタイル */
form .btn {
  text-align: center;
  margin: 0 auto;
}

form .btn button[type="submit"] {
  color: #fff;
  font-weight: 600;
  background: rgb(from var(--font-color) r g b / 75%);
  width: 10em;
  padding: 0.5em 3em;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;

}

form .btn button[type="submit"]:hover {
  background: rgb(from var(--font-color) r g b / 100%);
  transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #wrapper {
    padding: 1em;
  }

  form#mailformpro {
    padding: 1.5em;
    margin: 1em auto;
    border-radius: 8px;
  }

  form .box {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
  }

  form .box .text label {
    font-size: 1em;
  }

  form .box .line .sub_title input[type="text"],
  form .box .line .sub_title input[type="email"],
  form .box .line .sub_title input[type="tel"],
  form .box .line .sub_title input[type="number"],
  form .box .line .sub_title input[type="password"],
  form .box .line .sub_title textarea {
    padding: 0.8em 1em;
    font-size: 16px;
    /* iOS でズームを防ぐ */
  }

  form .box .line .sub_title textarea {
    min-height: 100px;
  }
}

@media screen and (max-width: 480px) {
  form#mailformpro {
    padding: 1em;
  }

  form .box .text .must {
    font-size: 0.7em;
    padding: 0.15em 0.4em;
  }
}
