@charset "UTF-8";
/*
 * Contact Form 7 フォーム
 * サイトのオレンジ（#f67800 / #fbf4e8）に合わせる。th はべた塗りにせず罫線で区切る。
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* リード文・注意書き */
.contact-form .contact-form-lead {
  margin: 0 0 30px;
}

.contact-form .contact-form-note {
  margin: 0 0 40px;
}

.contact-form .contact-form-lead p,
.contact-form .contact-form-note p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.contact-form .contact-form-note a,
.contact-form .contact-form-lead a {
  color: #0000ff;
  text-decoration: underline;
}

/* テーブル */
.contact-form table {
  border-top: 2px solid #f67800;
  border-collapse: collapse;
  margin: 0 0 50px;
  width: 100%;
}

.contact-form table tr {
  border-bottom: 1px solid #f9c99a;
}

.contact-form table th {
  padding: 20px 30px 20px 0;
  vertical-align: middle;
  font-weight: bold;
  text-align: left;
  width: 35%;
  line-height: 1.6;
}

.contact-form table td {
  padding: 20px 0;
  width: 65%;
  line-height: 1.6;
}

.contact-form table .hissu {
  display: inline-block;
  background: #f67800;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.6;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 1px;
}

.contact-form .th-note {
  display: inline-block;
  font-weight: normal;
  margin-top: 5px;
}

.contact-form .td-note {
  font-size: 13px;
  margin: 8px 0 0;
}

/* 入力欄 */
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=number],
.contact-form select,
.contact-form textarea {
  -webkit-appearance: none;
  appearance: none;
  background: #f5f5f5;
  border: none;
  border-radius: 2px;
  color: #333;
  font-size: 16px;
  padding: 10px;
  margin: 0;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
}

.contact-form input[type=text]:focus,
.contact-form input[type=email]:focus,
.contact-form input[type=tel]:focus,
.contact-form input[type=number]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid #f67800;
}

.contact-form textarea {
  height: 200px;
  resize: vertical;
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* 金額・部数など単位つきの欄 */
.contact-form .wpcf7-form-control-wrap[data-name="donate-fee"],
.contact-form .wpcf7-form-control-wrap[data-name="your-order"] {
  display: inline-block;
  width: 200px;
  max-width: 70%;
  margin-right: 8px;
}

/* radio */
.contact-form .wpcf7-radio .wpcf7-list-item {
  display: inline-block;
  margin: 0 20px 5px 0;
}

.contact-form .wpcf7-radio label {
  display: flex;
  align-items: flex-start;
  position: relative;
  font-size: 16px;
  cursor: pointer;
}

.contact-form .wpcf7-radio input[type=radio] {
  flex: 0 0 18px;
  display: inline-block;
  background-color: #fff;
  border: 1px solid #f67800;
  width: 18px;
  height: 18px;
  border-radius: 50px;
  -webkit-appearance: none;
  appearance: none;
  margin: 4px 10px 0 0;
}

.contact-form .wpcf7-radio input[type=radio]:checked+span::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #f67800;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 4px;
  z-index: 0;
}

.contact-form .wpcf7-radio input[type=radio]:focus-visible {
  outline: 2px solid #f67800;
}

/* checkbox */
.contact-form .wpcf7-checkbox .wpcf7-list-item {
  display: inline-block;
  margin: 0 20px 5px 0;
}

.contact-form .wpcf7-checkbox label {
  display: flex;
  align-items: flex-start;
  position: relative;
  font-size: 16px;
  cursor: pointer;
}

.contact-form .wpcf7-checkbox input[type=checkbox] {
  flex: 0 0 18px;
  display: inline-block;
  background-color: #fff;
  border: 1px solid #f67800;
  border-radius: 0;
  width: 18px;
  height: 18px;
  -webkit-appearance: none;
  appearance: none;
  margin: 4px 10px 0 0;
}

.contact-form .wpcf7-checkbox input[type=checkbox]:checked {
  background-color: #f67800;
}

.contact-form .wpcf7-checkbox input[type=checkbox]:checked+span::before {
  content: "";
  display: block;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  width: 6px;
  height: 10px;
  position: absolute;
  top: 6px;
  left: 6px;
  transform: rotate(45deg);
  z-index: 0;
}

.contact-form .wpcf7-checkbox input[type=checkbox]:focus-visible {
  outline: 2px solid #f67800;
}

/* select */
.contact-form .select-wrap {
  position: relative;
}

.contact-form .select-wrap select {
  padding-right: 35px;
}

.contact-form .select-wrap::after {
  content: "";
  border-style: solid;
  border-width: 8px 5px 0 5px;
  border-color: #f67800 transparent transparent transparent;
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 22px;
}

/* file */
.contact-form .file-label {
  display: inline-block;
  background-color: #fbf4e8;
  border: 1px solid #f67800;
  cursor: pointer;
  color: #333;
  font-size: 13px;
  padding: 10px 25px;
  transition: 0.3s;
}

.contact-form .file-label:hover {
  background-color: #f67800;
  color: #fff;
}

.contact-form .file-label input[type=file] {
  display: none;
}

.contact-form .file-message {
  margin-top: 5px;
  font-size: 13px;
}

/* 生年月日 */
.contact-form .birth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form .birth .item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-form .birth .select-wrap {
  width: 110px;
}

.contact-form .birth .unit {
  margin: 0;
}

/* 郵便番号 */
.contact-form .zipcode {
  display: grid;
  grid-template-columns: 1fr 140px;
  grid-gap: 10px;
}

.contact-form .zipcode input {
  width: 100%;
}

.contact-form .btn-zipcode {
  background-color: #f67800;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  padding: 5px;
  text-align: center;
  height: 50px;
  transition: opacity 0.3s;
}

.contact-form .btn-zipcode:hover {
  opacity: 0.7;
}

/* 送信ボタン */
.contact-form .submit-btn {
  display: flex;
  justify-content: center;
}

.contact-form .submit-btn [type=submit] {
  -webkit-appearance: none;
  background: #f67800;
  border: 1px solid #f67800;
  border-radius: 0;
  outline: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 22px 40px;
  letter-spacing: 3px;
  transition: 0.3s;
  width: 280px;
}

.contact-form .submit-btn [type=submit]:hover {
  opacity: 0.7;
}

/* エラー表示（エラーは赤のまま） */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background-color: #e35c5c;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: bold;
  margin: 30px 0 0;
}

.contact-form .wpcf7-not-valid-tip {
  color: #e35c5c;
  font-size: 12px;
  font-weight: bold;
  margin: 5px 0 0 0;
}

div.wpcf7-response-output.wpcf7-validation-errors {
  display: none !important;
}

.contact-form .wpcf7-spinner {
  display: none;
}

/* 送信ローダー */
.loading-wrapper {
  display: none;
  background-color: rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 10000;
}

.loading-send {
  background: #fff;
  padding: 35px 70px;
  box-shadow: 0 0.4rem 0.8rem -0.1rem rgba(0, 32, 128, 0.1), 0 0 0 1px #f0f2f7;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.loading-send-dot,
.loading-send-dot::before,
.loading-send-dot::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #f67800;
  position: absolute;
  top: 0;
  -webkit-animation: dot-flashing 1s infinite alternate;
  animation: dot-flashing 1s infinite alternate;
}

.loading-send-dot {
  margin-top: 5px;
  position: relative;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

.loading-send-dot::before {
  left: -15px;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

.loading-send-dot::after {
  left: 15px;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}

@-webkit-keyframes dot-flashing {
  0% {
    background-color: #f67800;
  }

  50%,
  100% {
    background-color: #fbd9b5;
  }
}

@keyframes dot-flashing {
  0% {
    background-color: #f67800;
  }

  50%,
  100% {
    background-color: #fbd9b5;
  }
}

/* メールアドレスチェック */
.mail-check {
  background-color: #fbf4e8;
  padding: 35px;
  margin-bottom: 50px;
}

.mail-check-txt {
  border-bottom: 1px solid #f67800;
  font-size: 15px;
  font-weight: bold;
  width: fit-content;
  margin: 0 auto 5px;
}

#mailoutput {
  font-size: 22px;
  word-break: break-all;
  text-align: center;
  margin-top: 0;
}

@media (max-width: 800px) {
  .contact-form table {
    margin: 0 0 30px;
  }

  .contact-form table th,
  .contact-form table td {
    display: block;
    width: 100%;
  }

  .contact-form table th {
    padding: 15px 0 10px;
  }

  .contact-form table td {
    padding: 0 0 15px;
  }

  /* sp.css の旧 MW WP Form 用の幅指定（#birth-year 等 20%）を打ち消す */
  .contact-form .birth select,
  .contact-form .wpcf7-form-control-wrap input,
  .contact-form .wpcf7-form-control-wrap select,
  .contact-form .wpcf7-form-control-wrap textarea {
    width: 100%;
  }

  .contact-form .birth .select-wrap {
    width: 90px;
  }

  .contact-form .zipcode {
    grid-template-columns: 1fr 120px;
  }

  .contact-form .submit-btn [type=submit] {
    padding: 15px;
    width: 250px;
  }

  .mail-check {
    padding: 15px;
    margin-bottom: 30px;
  }

  #mailoutput {
    font-size: 18px;
  }
}
