/* Contact Form 7 確認モーダル */

.cf7-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.cf7-confirm-modal.is-open {
  display: flex;
}

/* オーバーレイ */
.cf7-confirm-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* コンテンツ */
.cf7-confirm-modal__content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: calc(100% - 40px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px 8px 0 0;
    align-self: flex-end;
  }
}

/* ヘッダー */
.cf7-confirm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__header {
    padding: 16px 20px;
  }
}

.cf7-confirm-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__title {
    font-size: 16px;
  }
}

.cf7-confirm-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  color: #808080;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.cf7-confirm-modal__close:hover {
  background-color: #f5f5f5;
  color: #333333;
}

.cf7-confirm-modal__close svg {
  width: 20px;
  height: 20px;
}

/* ボディ */
.cf7-confirm-modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__body {
    padding: 20px;
  }
}

/* フッター */
.cf7-confirm-modal__footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__footer {
    padding: 16px 20px;
    flex-direction: column-reverse;
  }
}

.cf7-confirm-modal__button {
  flex: 1;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 45px;
}

@media (max-width: 576px) {
  .cf7-confirm-modal__button {
    width: 100%;
  }
}

.cf7-confirm-modal__button--back {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
}

.cf7-confirm-modal__button--back:hover {
  background-color: #f5f5f5;
}

.cf7-confirm-modal__button--submit {
  background-color: var(--cf7-confirm-modal-primary-color, var(--green, #00a968));
  color: #ffffff;
  border: 1px solid var(--cf7-confirm-modal-primary-color, var(--green, #00a968));
}

.cf7-confirm-modal__button--submit:hover {
  opacity: 0.9;
}

/* 確認テーブル */
.cf7-confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.cf7-confirm-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.cf7-confirm-table tr:last-child {
  border-bottom: none;
}

.cf7-confirm-table th,
.cf7-confirm-table td {
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 576px) {
  .cf7-confirm-table th,
  .cf7-confirm-table td {
    padding: 12px 0;
    font-size: 13px;
  }
}

.cf7-confirm-table th {
  font-weight: 600;
  color: #333333;
  width: 35%;
  padding-right: 16px;
}

@media (max-width: 576px) {
  .cf7-confirm-table th {
    width: 40%;
    padding-right: 12px;
  }
}

.cf7-confirm-table td {
  color: #333333;
  word-break: break-word;
}

.cf7-confirm-table td.cf7-confirm-textarea {
  white-space: pre-wrap;
}

.wpcf7-not-valid-tip{
  color: var(--green);
  padding-top: 0.25em;
}
