/* ===============================
   php_form 専用フォームCSS
   =============================== */

#php_form {
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

#php_form *,
#php_form *::before,
#php_form *::after {
  box-sizing: border-box;
}

#php_form table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
}

#php_form tr {
  border-bottom: 1px solid #eee;
}

#php_form th,
#php_form td {
  padding: 20px 0;
  vertical-align: top;
  border: none;
}

#php_form th {
  width: 230px;
  padding-right: 24px;
  text-align: left;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

#php_form th em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  background: #c62828;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

#php_form input[type="text"],
#php_form input[type="phone"],
#php_form input[type="tel"],
#php_form input[type="email"],
#php_form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  color: #333;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

#php_form textarea {
  min-height: 180px;
  resize: vertical;
}

#php_form input[type="text"]:focus,
#php_form input[type="phone"]:focus,
#php_form input[type="tel"]:focus,
#php_form input[type="email"]:focus,
#php_form textarea:focus {
  border-color: #666;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

#php_form .bot {
  margin: 32px 0 0;
  padding: 0;
  text-align: center;
  background: none;
}

#php_form .bot span {
  display: inline-block;
}

#php_form input[type="submit"] {
  display: inline-block;
  min-width: 260px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  appearance: none;
}

#php_form input[type="submit"]:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

#php_form input[type="submit"]:active {
  transform: translateY(0);
}

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

@media screen and (max-width: 767px) {
  #php_form {
    margin: 24px 0px;
    padding: 20px;
    border-radius: 10px;
    font-size: 15px;
  }

  #php_form table,
  #php_form tbody,
  #php_form tr,
  #php_form th,
  #php_form td {
    display: block;
    width: 100%;
  }

  #php_form tr {
    padding: 16px 0;
  }

  #php_form th,
  #php_form td {
    padding: 0;
  }

  #php_form th {
    margin-bottom: 8px;
    padding-right: 0;
    white-space: normal;
  }

  #php_form th em {
    margin-left: 4px;
    font-size: 11px;
  }

  #php_form input[type="text"],
  #php_form input[type="phone"],
  #php_form input[type="tel"],
  #php_form input[type="email"],
  #php_form textarea {
    padding: 11px 12px;
    font-size: 16px;
  }

  #php_form textarea {
    min-height: 150px;
  }

  #php_form .bot {
    margin-top: 28px;
  }

  #php_form .bot span {
    display: block;
  }

  #php_form input[type="submit"] {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
  }
}

/* ===============================
   プレビュー画面：戻るボタン
   =============================== */

#php_form .bot.bg02 {
  margin: 20px 0 0;
  padding: 0;
  text-align: center;
  background: none;
}

#php_form .bot.bg02 span {
  display: inline-block;
}

#php_form input[type="button"] {
  display: inline-block;
  min-width: 220px;
  padding: 13px 28px;
  border: 1px solid #999;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  appearance: none;
}

#php_form input[type="button"]:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

#php_form input[type="button"]:active {
  transform: translateY(0);
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
  #php_form .bot.bg02 {
    margin-top: 16px;
  }

  #php_form .bot.bg02 span {
    display: block;
  }

  #php_form input[type="button"] {
    width: 100%;
    min-width: 0;
    padding: 13px 20px;
  }
}
