/* Contact Page Styles */
.contact {
  background: #fff;
}

/* お問い合わせフォームセクション */
.contact-form-section {
  padding: 80px 0;
  background: #fff;
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-form-header {
  background: linear-gradient(135deg, var(--c-accent) 0%, #e8f7fa 100%);
  padding: 60px 40px 40px;
  text-align: center;
}

.contact-form-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 20px;
  line-height: 1.4;
}

.contact-form-description {
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
  margin: 0;
}

.contact-form-content {
  padding: 60px 40px;
}

/* ContactForm7のスタイリング */
.wpcf7 {
  font-family: inherit;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
  font-size: 16px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.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 {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(185, 233, 243, 0.1);
}

.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 11px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  min-width: 200px;
}

.wpcf7-form input[type="submit"]:hover {
  background: #0a84ae;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 233, 243, 0.3);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* 必須項目の表示 */
.wpcf7-form .wpcf7-form-control-wrap {
  position: relative;
}

.wpcf7-form .wpcf7-form-control-wrap.required::after {
  content: '*';
  color: #e74c3c;
  font-weight: 700;
  margin-left: 5px;
}

/* エラーメッセージのスタイリング */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-response-output.wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ContactForm7のスタイリング - 提供されたCSSを適用 */
.contact-container {
  display: block;
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: auto;
  background: #F4F4F4;
  z-index: 1;
  padding: 50px 0px;
}

.wpcf7-form label {
  color: rgb(0, 0, 0);
  font-size: 12px;
  font-weight: bold;
}

.wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0);
  color: #fff;
  border-radius: 30px;
  padding: 10px 30px;
  width: 210px;
  height: 45px;
  margin: 0 auto;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.wpcf7-list-item-label {
  color: rgb(0, 0, 0);
}

.must {
  color: #000;
  margin-right: 10px;
  padding: 6px 10px;
  background: #F92931;
  border-radius: 20px;
}

.free {
  color: #000;
  margin-right: 10px;
  padding: 6px 10px;
  background: #424242;
  border-radius: 20px;
}

form p {
  font-weight: 300;
  color: rgb(0, 0, 0);
}

input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 8px 15px;
  margin: 5px 0px;
  border-radius: 3px;
  background-color: #FFFFFF;
  border: solid 1px #b7e0ea;
}

textarea.wpcf7-form-control.wpcf7-textarea {
  height: 200px;
  border: solid 1px #b7e0ea;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
  background: #FFFFFF;
  border: solid 1px #b7e0ea;
}

input.sub-btn {
  display: block;
  margin: auto;
  width: 210px;
  height: 45px;
  background: rgb(0, 0, 0);
  color: #FFF;
  font-size: 0.8em;
  font-weight: bold;
  letter-spacing: 0.2em;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  -ms-transition: 0.3s;
  transition: 0.3s;
}

input.sub-btn:hover {
  transition: .5s;
}

.wpcf7-submit:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

span.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
  color: red;
  font-weight: 300;
}

form table {
  width: 90%;
  margin: 0 auto;
}

.contact-front {
  height: 300px;
}

table.company {
  width: 510px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 15px;
  font-size: 12px;
}

table.company th,
table.company td {
  padding: 10px;
}

table.company th {
  vertical-align: middle;
  text-align: left;
  width: 120px;
  overflow: visible;
  position: relative;
  color: #000;
  font-weight: normal;
  font-size: 15px;
}

@-moz-document url-prefix() {
  table.company th::after {
    float: right;
    padding: 0;
    left: 30px;
    top: 10px;
    content: " ";
    height: 0;
    width: 0;
    position: relative;
    pointer-events: none;
    border: 10px solid transparent;
    border-left: #295890 10px solid;
    margin-top: -10px;
  }
}

table.company td {
  width: 375px;
  padding-left: 20px;
}

.company-map {
  padding: 50px 0;
  width: 600px;
  margin: 0 auto;
}

p.error, span.error {
  color: red;
}

.form-control {
  border-radius: 0;
  background-color: #FFFFFF;
  font-size: 14px;
}

.form-control:focus {
  border-color: #FFFFFF;
  outline: 0;
  -webkit-box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.4);
  box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.4);
  background-color: #fff;
}

::-webkit-input-placeholder {
  font-size: 13px;
}

:-moz-placeholder {
  font-size: 13px;
}

::-moz-placeholder {
  font-size: 13px;
}

:-ms-input-placeholder {
  font-size: 13px;
}

::placeholder {
  font-size: 13px;
}

textarea.form-control {
  height: 200px;
}

.confirm_table {
  margin: 30px 0;
}

.confirm_table table caption {
  caption-side: top;
}

.confirm {
  float: left;
  margin-right: 20px;
}

div.wpforms-container-full .wpforms-form input[type=submit], 
div.wpforms-container-full .wpforms-form button[type=submit], 
div.wpforms-container-full .wpforms-form .wpforms-page-button {
  background-color: #E26B79;
  border: 1px solid #ddd;
  font-size: 1em;
  padding: 10px 15px;
  color: #000;
  width: 200px;
  margin: auto;
  display: block;
  border-radius: 160px;
}

.wpcf7-list-item {
  margin: 10px auto !important;
  display: block !important;
  width: 190px;
}

.wpcf7-list-item label {
  display: flex;
}

.wpcf7-list-item label input {
  margin: 2px 2px 0 0;
}

#tabBox1 {
  font-size: 18px;
  color: #6E5F64;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  border: solid 1px #b7e0ea;
  overflow-y: scroll;
  height: 100px;
  padding: 5px;
  background-color: #FFFFFF;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 60px 0;
  }
  
  .contact-form-header {
    padding: 40px 25px 30px;
  }
  
  .contact-form-title {
    font-size: 28px;
  }
  
  .contact-form-description {
    font-size: 16px;
  }
  
  .contact-form-content {
    padding: 40px 25px;
  }
  
  .wpcf7-form {
    gap: 20px;
  }
  
  .contact-container {
    padding: 30px 0px;
  }
  
  form {
    width: 95%;
    margin: auto;
  }
  
  form p {
    margin: 0;
    font-size: 12px;
  }
  
  input.wpcf7-form-control.wpcf7-text,
  textarea.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 8px 15px;
    margin: 5px 0 20px 0;
    border-radius: 3px;
    background-color: #FFFFFF;
  }
  
  div.wpforms-container-full .wpforms-form input[type=submit], 
  div.wpforms-container-full .wpforms-form button[type=submit], 
  div.wpforms-container-full .wpforms-form .wpforms-page-button {
    background-color: #FF9108;
    border: 1px solid #ddd;
    font-size: 1em;
    padding: 10px 15px;
    color: #000;
    width: 200px;
    margin: auto;
    display: block;
    border-radius: 160px;
  }
}

@media (max-width: 480px) {
  .contact-form-header {
    padding: 30px 20px 25px;
  }
  
  .contact-form-title {
    font-size: 24px;
  }
  
  .contact-form-description {
    font-size: 15px;
  }
  
  .contact-form-content {
    padding: 30px 20px;
  }
  
  .contact-content {
    margin: 20px 20px;
  }
}

@media (max-width: 425px) {
  form {
    width: 95%;
    margin: auto;
  }

  .company-content-text {
    padding: 0px 30px;
  }

  .company-text {
    text-align: left;
  }

  .company-text p {
    font-size: 14px;
    padding: 0px 10px;
    font-weight: 500;
  }

  .company-map-sp h3 {
    padding: 0 30px;
  }

  .company-map-sp iframe {
    width: 350px;
    position: relative;
    display: block;
    margin: auto;
    border: 1px solid #000;
  }

  form p {
    margin: 0;
    font-size: 12px;
  }

  input.wpcf7-form-control.wpcf7-text,
  textarea.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 8px 15px;
    margin: 5px 0 20px 0;
    border-radius: 3px;
    background-color: #FFFFFF;
  }

  div.wpforms-container-full .wpforms-form input[type=submit], 
  div.wpforms-container-full .wpforms-form button[type=submit], 
  div.wpforms-container-full .wpforms-form .wpforms-page-button {
    background-color: #FF9108;
    border: 1px solid #ddd;
    font-size: 1em;
    padding: 10px 15px;
    color: #000;
    width: 200px;
    margin: auto;
    display: block;
    border-radius: 160px;
  }
}
