@charset "UTF-8";
/* 見積フォーム：入力不備の強調 */
.contactform .wpcf7-not-valid {
  border: 2px solid #b42318;
  background-color: #fff4f2;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
  scroll-margin-top: 120px;
}

.contactform .wpcf7-form-control-wrap:has(.wpcf7-not-valid) {
  display: block;
}

.contactform .wpcf7-not-valid-tip {
  line-height: 1.6;
  font-weight: 700;
}

/* 添付欄：説明・容量・対応形式 */
.contactform .estimate-upload {
  padding: 28px;
  border: 1px solid #ccdcd9;
  border-radius: 8px;
  background: #fff;
  color: #303b3a;
  font-size: 16px;
  line-height: 1.7;
}
@media screen and (max-width: 767px) {
  .contactform .estimate-upload {
    padding: 20px 16px;
  }
}
.contactform .estimate-upload .estimate-upload-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.contactform .estimate-upload .estimate-upload-optional {
  padding: 2px 8px;
  border-radius: 3px;
  background: #edf1f0;
  color: #4d5b59;
  font-size: 14px;
  font-weight: 400;
}
.contactform .estimate-upload p.estimate-upload-description {
  margin: 12px 0 20px;
  font-size: 16px;
  line-height: 1.8;
}
.contactform .estimate-upload .estimate-upload-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
  font-size: 15px;
}
.contactform .estimate-upload .estimate-upload-limits strong {
  color: #146f70;
  font-weight: 700;
}
.contactform .estimate-upload .estimate-upload-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #e0e7e5;
  font-size: 14px;
}
.contactform .estimate-upload .estimate-upload-formats dt {
  font-weight: 700;
}
.contactform .estimate-upload .estimate-upload-formats dd {
  margin: 0;
}
.contactform .estimate-upload p.estimate-upload-note {
  margin: 0;
  color: #53635f;
  font-size: 14px;
  line-height: 1.7;
}
.contactform .estimate-upload {
  /* 選択ボタン・ドロップ領域（既存プラグインの操作を使用） */
}
.contactform .estimate-upload .codedropz-upload-wrapper {
  margin: 0;
}
.contactform .estimate-upload .codedropz-upload-handler {
  margin: 0;
  border: 2px dashed #73a4a0;
  border-radius: 6px;
  background: #f4f9f8;
}
.contactform .estimate-upload .codedropz-upload-handler.codedropz-dragover {
  border-color: #146f70;
  background: #e3f1ee;
}
.contactform .estimate-upload .codedropz-upload-container {
  padding: 28px 16px;
}
.contactform .estimate-upload .codedropz-upload-inner {
  overflow: visible;
  color: #53635f;
  font-size: 14px;
}
.contactform .estimate-upload .codedropz-upload-inner p {
  margin: 0 0 4px;
  color: #303b3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
.contactform .estimate-upload .codedropz-upload-inner .codedropz-btn-wrap a.cd-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 28px;
  border: 1px solid #146f70;
  border-radius: 4px;
  background: #146f70;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.contactform .estimate-upload .codedropz-upload-inner .codedropz-btn-wrap a.cd-upload-btn:hover {
  background: #105758;
}
.contactform .estimate-upload .dnd-upload-counter {
  display: none;
}
.contactform .estimate-upload a:focus-visible {
  outline: 3px solid #146f70 !important;
  outline-offset: 4px;
}
.contactform .estimate-upload {
  /* ファイル一覧・進捗・削除 */
}
.contactform .estimate-upload .dnd-upload-status {
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d8e3df;
  border-radius: 4px;
  background: #fff;
}
@media screen and (max-width: 767px) {
  .contactform .estimate-upload .dnd-upload-status {
    gap: 8px;
    padding: 12px;
  }
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-image {
  flex-shrink: 0;
  width: 32px;
  height: 40px;
  margin-top: 4px;
  border: none;
  border-radius: 0;
  background: #f0f5f3;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .name {
  display: block;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0 56px 0 0;
  color: #303b3a;
  font-size: 15px;
  line-height: 1.6;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .name span {
  display: block;
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .name em {
  color: #53635f;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .remove-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  color: #53635f;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .remove-file .dnd-icon-remove::after {
  display: none;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .dnd-progress-bar {
  height: 22px;
  border-radius: 3px;
  background: #e8eeec;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
  background: #146f70;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .estimate-upload-file-state {
  display: block;
  margin-top: 4px;
  color: #146f70;
  font-size: 14px;
  font-weight: 700;
}
.contactform .estimate-upload .dnd-upload-status .dnd-upload-details .has-error {
  display: block;
  color: #b42318;
  font-size: 14px;
  line-height: 1.7;
}
.contactform .estimate-upload .dnd-upload-status:has(.has-error) {
  border-color: #d38d85;
  background: #fff8f6;
}
.contactform .estimate-upload .codedropz-upload-wrapper .has-error-msg {
  color: #b42318;
  font-size: 14px;
  font-style: normal;
}
.contactform .estimate-upload p.estimate-upload-status {
  margin: 12px 0 0;
  color: #53635f;
  font-size: 14px;
  line-height: 1.7;
}
