:root {
  --box-color: #666666;
  --title-color: #666666;
}

.formNotice{
    margin-bottom: 20px;
    text-align: center;
    padding: 0 10px;
}
/* タイトル付きボックス（ラベル） */
.formInfomation {
  position: relative;
  /* タイトル配置の基準 */
  margin: 2em 10px;
  /* 外側余白（上下・中央寄せ） */
  border: 2px solid var(--box-color);
  /* 枠線 */
  border-radius: 2px;
  /* 角丸 */
  width: auto;
  box-sizing: border-box;
}

.formInfomation ul li{
    list-style-type: disc;
    list-style-position: inside;
}
@media screen and (min-width: 900px) {
  .formInfomation {
    width: 900px;
    margin: 0 auto 50px auto;
  }
}

.formInfomation .infomationTitle {
  position: absolute;
  /* タイトル位置指定 */
  top: -0.5em;
  /* 上に少し移動 */
  left: 1em;
  /* 左端からの距離 */
  background-color: #fff;
  /* タイトル背景色 */
  color: var(--box-color);
  /* タイトル文字色 */
  padding: 0 .5em;
  /* 内側余白 */
  font-weight: bold;
  /* 太字 */
  line-height: 1;
  /* 行の高さ */
  display: inline-block;
  /* 幅を内容に合わせる */
  width: auto;
  /* 幅自動調整 */
  max-width: calc(100% - 2em);
  /* 左右の余白を考慮 */
  white-space: nowrap;
  /* 折り返さない */
  overflow: hidden;
  /* はみ出し非表示 */
  text-overflow: ellipsis;
  /* 省略記号表示 */
}

.formInfomation .infomationContent {
  padding: 2em;
  /* 内側余白 */
}

/* 段落の余白リセット */
.formInfomation p {
  margin: 0;
}



.formTitle {
  font-size: 1.2em;
  font-weight: 900;
  margin-top: 40px;
  padding: 0.25em 0.5em;
  /*上下 左右の余白*/
  margin-bottom: 40px;
  color: #494949;
  /*文字色*/
  background: transparent;
  /*背景透明に*/
  border-left: solid 5px var(--title-color);
  /*左線*/
}

/* テーブル全体 */
.wpcf7 form table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
}

.wpcf7 form table th {
  margin-top: 40px;
  line-height: 1.4;
}

.wpcf7 form table tr:last-child {
  padding-bottom: 40px;
}

/* 見出しセル */
.wpcf7 form table th {
  display: block;
  width: auto;
  text-align: left;
  font-weight: bold;
  padding: 0 16px 4px;
  background: #fff;
  color: #333;
  font-size: 1.3em;
}

.wpcf7 form dl {
  margin-bottom: 20px;
}

.wpcf7 form dt {
  display: block;
  width: auto;
  text-align: left;
  font-weight: bold;
  padding: 12px 0 4px;
  background: #fff;
  color: #333;
  font-size: 1em;
}

/* 入力セル */
.wpcf7 form table td {
  display: block;
  width: auto;
  margin-top: 10px;
  padding: 0 16px 12px;
  background: #fff;
}


/* inputやtextarea */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea,
.wpcf7 form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  font-size: 14px;
  box-sizing: border-box;
  margin: 0;
  resize:vertical;
}

.wpcf7 form input[type="text"]:focus,
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="tel"]:focus,
.wpcf7 form textarea:focus,
.wpcf7 form select:focus {
  border-color: #999;
  background: #fff;
  outline: none;
}

.wpcf7 form textarea {
  margin-top: 20px;
}

/* 送信ボタン */
.wpcf7 form input[type="submit"] {
  background: #333;
  color: #fff;
  margin-top: 40px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7 form input[type="submit"]:hover {
  background: #555;
}

.wpcf7 form .wpcf7-list-item{
    display: block;
    margin: 0;
}

.wpcf7 form .wpcf7-list-item label{
    display: block;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.wpcf7 form .wpcf7-list-item label:hover{
    background: #cccccc;
}

.wpcf7 form .required{
    color: red;
    margin-right: 5px
}

.thankText{
    width: 100%;
    text-align: center;
    margin: 100px 0;
}

.wpcf7 form .small{
    font-size: 0.8em;
}