@charset "utf-8";
/*============
フォームメーラーの各サイト共有CSS
工場
==============*/

#contents {
  width: 100%;
}
#powered{
  font-size: 10px;
}


#contents form {
  width: 95%;
  margin: 0 auto;
}
.contact-form-wrap h1 {
  font-size: 2rem;
  font-weight: bolder;
}

.contact-form-wrap p {
  margin-bottom: 1rem;
  font-weight: bolder;
}

.contact-form-wrap aside {
  font-size: 90%;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* フォーム全体 */
.contact-form-wrap {
  width: 100%;
  padding: 50px 20px;
  background: #f8f9fa;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  color: #333;
  line-height: 1.7;
}

/* リセットCSS対策 */
.contact-form-wrap,
.contact-form-wrap * {
  box-sizing: border-box;
}

.contact-form-wrap .contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 55px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
}

/* ===================================
   ヘッダー
=================================== */

.contact-form-wrap .contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-wrap .contact-form-header h1 {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  font-size: 26px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.contact-form-wrap .contact-form-header>p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #666;
}

.contact-form-wrap .contact-form-required-note {
  font-size: 12px;
  color: #888;
}

/* ===================================
   入力項目
=================================== */

.contact-form-wrap .form-group {
  margin-bottom: 30px;
}

/* ラベル */
.contact-form-wrap .form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
}

/* 必須 */
.contact-form-wrap .required {
  display: inline-block;
  color: #e56b55;

}

/* 任意 */
.contact-form-wrap .optional {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f3f5;
  color: #888;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===================================
   入力欄
=================================== */

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  box-shadow: none;
  outline: none;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form-wrap input[type="text"]:read-only {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #666;
    padding: 1%;
    height: auto;
    margin-bottom: 1.5rem;
}

/* プレースホルダー */
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

/* フォーカス */
.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap input[type="tel"]:focus,
.contact-form-wrap textarea:focus {
  border-color: #f4a261;
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.12);
}

/* テキストエリア */
.contact-form-wrap textarea {
  height: auto;
  min-height: 160px;
  padding: 15px 16px;
  resize: vertical;
}

/* ===================================
   姓名
=================================== */

.contact-form-wrap .name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-wrap .name-field {
  min-width: 0;
}

.contact-form-wrap .name-field>span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

/* ===================================
   補足テキスト
=================================== */

.contact-form-wrap .form-help {
  margin: 9px 0 12px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: #888;
}

/* ===================================
   送信ボタン
=================================== */

.contact-form-wrap .form-submit {
  margin-top: 45px;
  text-align: center;
}

.contact-form-wrap .form-submit p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #777;
}

.contact-form-wrap input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 58px;
  margin: 0 auto;
  padding: 15px 25px;
  background: #f39845;
  border: 2px solid #f39845;
  border-radius: 50px;
  box-shadow: 0 5px 12px rgba(243, 152, 69, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background .2s,
    border-color .2s,
    transform .2s,
    box-shadow .2s;
}

.contact-form-wrap input[type="submit"]:hover {
  background: #e88732;
  border-color: #e88732;
  box-shadow: 0 7px 16px rgba(243, 152, 69, 0.25);
  transform: translateY(-2px);
}

.contact-form-wrap input[type="submit"]:active {
  transform: translateY(0);
}

.contact-form-wrap input[type="submit"]:focus-visible {
  outline: 3px solid #333;
  outline-offset: 3px;
}

/* ===================================
   Powered by
=================================== */

.contact-form-wrap .form-powered {
  margin-top: 35px;
  text-align: center;
}

.contact-form-wrap .form-powered a {
  color: #aaa;
  font-size: 11px;
  text-decoration: none;
}

.contact-form-wrap .form-powered a:hover {
  text-decoration: underline;
}

/* ===================================
   スマホ対応
=================================== */

@media screen and (max-width: 767px) {

  .contact-form-wrap {
    padding: 25px 15px;
  }

  .contact-form-wrap .contact-form {
    padding: 35px 22px;
    border-radius: 12px;
  }

  .contact-form-wrap .contact-form-header {
    margin-bottom: 35px;
  }

  .contact-form-wrap .contact-form-header h1 {
    font-size: 22px;
  }

  .contact-form-wrap .contact-form-header>p {
    font-size: 13px;
  }

  .contact-form-wrap .pc-only {
    display: none;
  }

  .contact-form-wrap .form-group {
    margin-bottom: 26px;
  }

  .contact-form-wrap .form-label {
    font-size: 14px;
  }

  .contact-form-wrap .name-fields {
    gap: 12px;
  }

  .contact-form-wrap input[type="text"],
  .contact-form-wrap input[type="email"],
  .contact-form-wrap input[type="tel"],
  .contact-form-wrap textarea {
    font-size: 16px;
  }

  .contact-form-wrap .form-submit {
    margin-top: 35px;
  }

  .contact-form-wrap input[type="submit"] {
    max-width: 100%;
    min-height: 56px;
    font-size: 15px;
  }

}

/* 動きを抑える設定への対応 */
@media (prefers-reduced-motion: reduce) {

  .contact-form-wrap input,
  .contact-form-wrap textarea {
    transition: none;
  }
}