@charset "UTF-8";
/***********************************************
 * Contact Form 7 送信完了モーダル（js/sent-modal.js）
 ***********************************************/
body.is-sent-modal-open {
  overflow: hidden;
}

.sent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sent-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sent-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 32px;
  background: #fff;
  border-radius: 8px;
  color: #333;
}

.sent-modal__title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  text-align: center;
}

.sent-modal__lead {
  margin: 0 0 8px;
  line-height: 1.8;
}

.sent-modal__date {
  margin: 0 0 16px;
  font-size: 0.875rem;
  text-align: right;
}

.sent-modal__table {
  width: 100%;
  border-collapse: collapse;
}

.sent-modal__table th,
.sent-modal__table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.sent-modal__table th {
  width: 32%;
  background: #f5f5f5;
  font-weight: bold;
}

.sent-modal__table td {
  white-space: pre-wrap;
  word-break: break-all;
}

.sent-modal__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.sent-modal__btns button {
  min-width: 180px;
  padding: 12px 24px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.sent-modal__btns .sent-modal__print {
  background: #333;
  color: #fff;
}

@media (max-width: 575px) {
  .sent-modal__dialog {
    padding: 32px 16px;
  }

  .sent-modal__table th,
  .sent-modal__table td {
    display: block;
    width: 100%;
  }

  .sent-modal__table th {
    border-bottom: none;
  }

  .sent-modal__btns {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 印刷時はモーダルのみを出力 */
@media print {
  body.is-sent-modal-open > *:not(.sent-modal) {
    display: none !important;
  }

  body.is-sent-modal-open {
    overflow: visible;
  }

  .sent-modal {
    position: static;
    display: block;
    padding: 0;
  }

  .sent-modal__overlay,
  .sent-modal__btns {
    display: none !important;
  }

  .sent-modal__dialog {
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-radius: 0;
  }

  .sent-modal__table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sent-modal__table tr {
    break-inside: avoid;
  }
}
