.wp-block {
  max-width: 1200px;

}

/* CONTACT */
.wpcf7-form .checkbox-box {
  display: block;
}
.wpcf7-form .checkbox-box .wpcf7-list-item {
  display: table;
  margin-bottom: 9px;
  margin-left: 0;
}
.wpcf7-form .checkbox-box .wpcf7-list-item.first {
  /*margin-top: -5px;*/
}
.wpcf7-form .checkbox-box .wpcf7-list-item.last {
  margin-bottom: 0;
}
.wpcf7-form span.wpcf7-not-valid-tip {
  margin-left: 1em;
  font-size: 14px;
  color: #ff3939;
}
.form-block .submit-box {
  position: relative;
}
.form-block .submit-box .ajax-loader{
  position: absolute;
  top: calc(100% + 1em);
}
.form-block .submit-box .submit-button {
  transition: opacity .2s;
}
body.page-contact .contents-wrapper .form-block,
body.page-download .contents-wrapper .form-block,
body.page-contact-dev .contents-wrapper .form-block,
body.page-download-dev .contents-wrapper .form-block{
  position: relative;
}
body.page-contact .contents-wrapper .form-block .wpcf7-custom-error,
body.page-download .contents-wrapper .form-block .wpcf7-custom-error,
body.page-contact-dev .contents-wrapper .form-block .wpcf7-custom-error,
body.page-download-dev .contents-wrapper .form-block .wpcf7-custom-error {
  position: absolute;
  top: -3em;
  left: 0;
  font-size: 14px;
  font-weight: bold;
  color: #ff3939;
}

@media screen and (max-width: 800px){
  body.page-contact .contents-wrapper .form-block .wpcf7-custom-error,
  body.page-download .contents-wrapper .form-block .wpcf7-custom-error,
  body.page-contact-dev .contents-wrapper .form-block .wpcf7-custom-error,
  body.page-download-dev .contents-wrapper .form-block .wpcf7-custom-error {
    top: -4.5em;
  }
}

div.wpcf7-response-output {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
div.wpcf7-response-output.wpcf7-validation-errors {
  display: none!important;
}
.wpcf7-custom-item-error {
  float: right;
}
@media screen and (max-width: 800px){
  .wpcf7-custom-item-error {
    /*margin-top: -2px;*/
  }
}
div.wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: #1C439E;
  font-weight: bold;
  color: #1C439E;
  text-align: center;
  padding: 10px;
}


/* 送信後 */
.wpcf7-mail-sent-ok {
  display: none!important;
}
body.page-thanks-contact .contents-wrapper .standard-button,
body.page-thanks-download .contents-wrapper .standard-button {
  margin-top: .5em;
  margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
  body.page-thanks-download .contents-wrapper p {
    letter-spacing: -0.005em;
  }
  body.page-thanks-download .contents-wrapper strong {
    letter-spacing: 0.035em;
  }

}

/* 添付ファイル */
.form-block legend .is-weight-normal {
  font-weight: normal;
}
.ua-firefox .form-block legend {
  display: block;
}
.wpcf7 .item-attachment legend {
  display: block;
}
.wpcf7 .item-attachment legend .is-weight-normal {
  display: block;
  font-size: 13px;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap {
  overflow: hidden;
}

.wpcf7 .item-attachment .wpcf7-form-control-wrap input {
  display: none;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap label,
.wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
  position: relative;
  display: block;
  height: 46px;
  padding: 10px 20px 0;
  border-radius: 2px;
  float: left;
  border: 1px solid transparent;
  z-index: 2;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap.file-01 label,
.wpcf7 .item-attachment .wpcf7-form-control-wrap.file-01 .filename {
  margin-bottom: 10px;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap label {
  width: 160px;
  background-color: #f4f4f4;
  border: 1px solid #dadada;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease-out, border .2s ease-out;
}
.ua-desktop .wpcf7 .item-attachment .wpcf7-form-control-wrap label:hover {
  background-color: #e6e6e6;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap.is-selected label {
  background-color: #fcfcfc;
  border: 1px solid #dfdfdf;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
  position: relative;
  width: calc(100% - 160px - 10px);
  margin-left: 10px;
  padding-left: 10px;
  padding-right: 50px;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap .filename .closeicon {
  display: block;
  width: 48px;
  height: 100%;
  background: url(./img/icon-close.png?10) center center / 11px 10px no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  transition: opacity .2s ease-out;
  display: none;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap.is-selected .filename .closeicon {
  display: block;
}
.ua-desktop .wpcf7 .item-attachment .wpcf7-form-control-wrap .filename .closeicon:hover {
  opacity: .6;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap .filename .inner {
  display: block;
}
.wpcf7 .item-attachment .wpcf7-form-control-wrap .filename .text {
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}
.wpcf7-form .item-attachment .wpcf7-form-control-wrap span.wpcf7-not-valid-tip {
  margin-left: 0;
  position: relative;
  top: -18px;
  z-index: 0;
}


@media screen and (max-width: 767px) {
  .wpcf7 .item-attachment legend .is-weight-normal {
    display: inline;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap label,
  .wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
    height: 44px;
    padding: 10px 10px 0;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap.file-01 label,
  .wpcf7 .item-attachment .wpcf7-form-control-wrap.file-01 .filename {
    margin-bottom: 14px;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap label {
    width: 120px;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
    width: calc(100% - 120px - 10px);
    width: calc(100vw - 120px - 40px - 10px);
    padding-right: 30px;
  }
  .wpcf7-form .item-attachment .wpcf7-form-control-wrap span.wpcf7-not-valid-tip {
    top: -14px;
    font-size: 12px;
  }
}
@media screen and (max-width: 350px) {
  .wpcf7 .item-attachment .wpcf7-form-control-wrap label,
  .wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
    padding: 14px 10px 0;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap label {
    width: 100px;
  }
  .wpcf7 .item-attachment .wpcf7-form-control-wrap .filename {
    width: calc(100% - 100px - 10px);
  }
}

body.single-download-pre .wpcf7-custom-item-error.your-email-dl,
body.single-download .wpcf7-custom-item-error.your-email-dl {
  flex-basis: auto;
  min-width: 185px;
  max-width: calc(100% - 175px);
  line-height: 1.4;
}


@media screen and (max-width: 767px) {
  body.single-download-pre .wpcf7-custom-item-error.your-email-dl,
  body.single-download .wpcf7-custom-item-error.your-email-dl,
  .wpcf7-custom-item-error.your-email,
  .wpcf7-custom-item-error.your-email {
    flex-basis: auto;
    max-width: calc(100% - 150px);
    min-width: initial;
    line-height: 1.4;
  }
}
@media screen and (max-width: 767px) {
  .wpcf7-form span.wpcf7-not-valid-tip {
    font-size: 11px;
  }
}




/*DOWNLOAD BTN*/
body.page-download div.wpcf7-response-output.wpcf7-mail-sent-ok {
  padding: 0;
  border: none;
}
body.page-download div.wpcf7-response-output.wpcf7-mail-sent-ok a{
  display: block;
  border: 2px solid #1C439E;
  padding: 10px;
  text-decoration: none;
}


/* LEGAL */
.page-legal .legal-table {
  margin: 0;
}

.grecaptcha-badge {
  visibility: hidden;
}

/* ReDeck Contact Form Styles */
.front-page .wpcf7 .form-input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.front-page .wpcf7 .flex {
    display: flex;
    gap: 20px;
}

.front-page .wpcf7 .input-wrapper {
    flex: 1;
}

.front-page .wpcf7 .input-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.front-page .wpcf7 .asterisk {
    color: #e74c3c;
    margin-left: 4px;
}

.front-page .wpcf7 input[type="text"],
.front-page .wpcf7 input[type="email"],
.front-page .wpcf7 input[type="tel"],
.front-page .wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
}

.front-page .wpcf7 input[type="text"]:focus,
.front-page .wpcf7 input[type="email"]:focus,
.front-page .wpcf7 input[type="tel"]:focus,
.front-page .wpcf7 select:focus {
    outline: none;
    border-color: #0034e0;
    box-shadow: 0 0 0 3px rgba(0, 52, 224, 0.1);
}

.front-page .wpcf7 .agreement-wrapper {
    margin: 20px 0;
}

.front-page .wpcf7 label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.front-page .wpcf7 label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.front-page .wpcf7 .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    background-color: #fff;
}

.front-page .wpcf7 label input[type="checkbox"]:checked + .checkmark {
    background-color: #0034e0;
    border-color: #0034e0;
}

.front-page .wpcf7 label input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.front-page .wpcf7 input[type="submit"] {
    background: linear-gradient(45deg, #399cff, #1938de);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.front-page .wpcf7 input[type="submit"]:hover {
    opacity: 0.7;
}

@media (max-width: 640px) {
    .front-page .wpcf7 .flex {
        flex-direction: column;
        gap: 20px;
    }
}
