@charset "UTF-8";

.p-content {
    border-bottom: solid 1px #CCCCCC;
    padding: 0 0 80px;
}


.p-form {
  padding: 100px 20px 0;
}

.p-form .block dt {
    font-size: 1.4rem;
    padding: 0 0 20px;
    line-height: 1;
}

.p-form .block {
    margin-top: 40px;
}



.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"] {
    width: 100%;
    background: #EEEEEE;
    height: 50px;
    border: solid 1px #CCCCCC;
    padding: 0 20px;
    font-size: 1.4rem;
}

.p-form input[type="text"]:focus,
.p-form input[type="email"]:focus,
.p-form input[type="tel"]:focus {
  background: #FFFFFF;
  outline: none; /* デフォルトの青いアウトラインを消す（任意） */
}


.p-form textarea {
  padding: 20px;
  width: 100%;
  background: #EEEEEE;
  height: 200px;
  border: solid 1px #CCCCCC;
  font-size: 1.4rem;
  resize: none;
}

.p-form textarea:focus {
  background: #FFFFFF;
  outline: none; /* デフォルトの青いアウトラインを消す（任意） */
}

.submit-btn {
    margin: 80px 0 0;
}

input.wpcf7-submit {
  display: block;
  width: 100%;
    font-size: 1.4rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: solid 1px #000;
    height: 70px;
    transition: .3s;
}

/* チェック項目を縦並びに */
.wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin-bottom: 10px;
  position: relative;
}

/* チェックボックスを非表示（Contact Form 7 の base.css と同じ） */
.wpcf7-checkbox input[type="checkbox"] {
  display: none;
}

/* ラベルをチェックボックスっぽく見せる */
.wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px; /* チェックマークの余白 */
  font-size: 16px;
  color: #333;
}

/* カスタムチェックボックス本体 */
.wpcf7-checkbox label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #EEEEEE;
  border: 1px solid #CCCCCC;
  box-sizing: border-box;
}

/* チェック状態（黒いチェックマーク） */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


@media screen and (min-width: 768px) {
  input.wpcf7-submit:hover {
      background: #000;
      color: #fff;
    }

}

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

  .p-content {
      padding: 0 20px 60px;
  }

  .p-form {
    padding: 60px 0 0;
  }

  .submit-btn {
        margin: 60px 0 0;
    }

    input.wpcf7-submit {
      height: 60px;
    }

    .p-form .block + .block {
        margin-top: 30px;
    }

    .p-form input[type="text"] {
        height: 45px;
        padding: 0 10px;
    }

    .p-form textarea {
        padding: 10px;
    }

}
