/* エラーメッセージの上部を消去 */
div.screen-reader-response{
  display: none;
}
span.wpcf7-not-valid-tip{
  font-size:1.6rem;
  font-weight:700;
  color:#BE1D1D;
}
div.wpcf7-response-output{
  font-size:1.6rem;
  font-weight:700;
  color:#BE1D1D;
  margin:20px 0 20px;
}



/* contact form7 */
.cf7{
  box-sizing: border-box;
}

.cf7__list {
  display: grid;
  font-size: 1.8rem;
}
.cf7__list dt{
  font-weight: 700;
  color: #003D71;
  margin-bottom:0.5em;
}
.cf7__list dd{
  margin-bottom:2em;
}
.cf7__list.userinfo dd{
  margin-bottom:1em;
}
@media (min-width: 768px) {
  .cf7__list{
    display: grid;
    font-size: 1.8rem;
    grid-template-columns: 10em auto;
    column-gap: 2.0em;
  }

  .cf7__list dt{
    font-size: 1.8rem;
    font-weight: 700;
    color: #003D71;
  }
  .cf7__list dt{
    margin-bottom:0;
  }
  .cf7__list.userinfo{
    align-items:center;
    row-gap: 0.5em;
    border-bottom:1px solid #a5a5a5;
    margin-bottom:2.0em;
    padding-bottom:0.5em;
  }
  .cf7__list.userinfo dd{
    margin-bottom:0;
  }
}


/* 必須・任意 */
.cf7__required,
.cf7__optional {
  font-size:1.2rem;
  margin-left: 1em;
  padding:0 1em;
  vertical-align: 1px;
  border-radius:9999px;
}

.cf7__required {
  color:#FFF;
  background: #BE1D1D;
}
.cf7__optional {
  color:#FFF;
  background: #878D8E;
}

/* input・textarea */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd textarea {
  width: 100%;
  padding: 15px 20px;
  background: #F4F4F4;
  box-sizing: border-box;
}

/* ドロップダウンメニュー */
.cf7__select {
  position: relative;
}

.cf7__select:before {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 10;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid #000;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  pointer-events: none;
  content: '';
}

.cf7__select select {
  width: 100%;
  padding: 19px 20px;
  background: #F4F4F4;
  color: #000;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* チェックボックス・ラジオボタン */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

/* 縦並び（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
  margin-top: 18px;
}

/* マウスカーソル（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item label {
  cursor: pointer;
}

.cf7__list dd input[readonly="readonly"]{
  border:none;
  background:none;
  pointer-events : none;
}


.cf7__button input[type="submit"]{
  font-size: 2.0rem;
  background: #ED1C24;
  color: #fff;
  font-weight: bold;
  margin-top: 20px;
  margin: 0 auto;
  display: block;
  width: 200px;
  padding: 1% 2%;
  border-radius: 5px;
  cursor : pointer;
  border: 2px #000 solid;
}
.cf7__button input[type="submit"]:hover{
  opacity: 0.5;
}
.cf7__button input[type="submit"].disabled{
  pointer-events: none; /* クリックできなくする */
  background: #878D8E;
}