/* スペイサー */
.wp-block-spacer {
  display: none;
}

/* 事例 テーブル */
table.case_info th {
  width: 20%;
}

/* Figure周り */
figure.wp-block-image.size-medium {
  text-align: center;
  margin-bottom: 32px;
}

iframe {
  margin-bottom: 32px;
}

.is-provider-youtube iframe {
  position: relative !important;
  aspect-ratio: 16 / 9;
  margin-bottom: 32px !important;
}

.is-provider-youtube > .wp-block-embed__wrapper::before {
  padding-top: 32px !important;
}

.is-provider-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
}

/*
 * フォーム
 */
/* 入力画面 */
.wpcf7-form table th {
  vertical-align: middle;
}

.wpcf7-form table th,
.wpcf7-form table td {
  padding: 4px 8px;
}

.wpcf7-form table th p {
  font-weight: bold;
  text-align: left;
}

.wpcf7-form table th .input-must {
  background: #ff6b6b;
  color: #fff;
  padding: 2px 6px;
  margin-right: 8px;
}

.wpcf7-form table td p {
  white-space: nowrap;
  display: flex;
}

.wpcf7-form table td p span {
  width: 100%;
}

.wpcf7-form table tr:nth-child(3) td p span {
  width: 94%;
  margin-right: 16px;
}

@media screen and (max-width: 767px) {
  .wpcf7-form table th,
  .wpcf7-form table td {
    display: block;
  }
}

/* 確認画面 */
.cf7-confirm-screen {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.cf7-confirm-screen h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #ff0000;
  padding-bottom: 10px;
}

.confirm-content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.confirm-row {
  display: flex;
  border-bottom: 1px solid #eee;
  min-height: 40px;
  align-items: center;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-label {
  background: #f0f0f0;
  padding: 10px 15px;
  font-weight: bold;
  color: #333;
  min-width: 150px;
  border-right: 1px solid #ddd;
}

.confirm-value {
  padding: 10px 15px;
  flex: 1;
  word-break: break-word;
}

.cf7-confirm-buttons {
  text-align: center;
  margin: 20px 0;
}

.wpcf7-back-btn-confirm {
  background: #666;
  color: #fff;
  border: none;
  padding: 12px 25px;
  margin-right: 15px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}

.wpcf7-back-btn-confirm:hover {
  background: #555;
}

.wpcf7-submit-confirm {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}

.wpcf7-submit-confirm:hover {
  background: #005a87;
}

.wpcf7-confirm-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 3px;
}

.wpcf7-confirm-btn:hover {
  background: #005a87;
}

.wpcf7-form .wpcf7-back-btn,
.cf7-back-initial {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* エラー */
.wpcf7-not-valid-tip {
  display: none;
}

.wpcf7-not-valid {
  border: 2px solid #ff6b6b !important;
  background-color: #fff5f5 !important;
}

.cf7-validation-error {
  color: #ff0000;
  font-size: 12px;
  margin-top: -8px;
  padding: 0;
  border-radius: 3px;
  display: block;
}

.cf7-general-error {
  color: #ff0000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .confirm-row {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-label {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
}
