/**************************************
 * Contact Form — Base
 **************************************/
.contact-form .form-item {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: bold;
  color: #111;
  margin-bottom: 0.3rem;
}

.contact-form .required {
  color: crimson;
  font-weight: normal;
  font-size: 0.9em;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: rgb(65, 105, 225);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, .15);
}
.cf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

/* iOS用にフォーカス時も残す */
.cf-select:focus {
  outline: none;
  border-color: rgb(65,105,225);
  box-shadow: 0 0 0 3px rgba(65,105,225,.15);
}


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

/**************************************
 * Modal (Overlay)
 **************************************/
/* 画面全体の黒背景 */
.confirm-modal {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 40px;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-modal.is-active {
  visibility: visible;
  opacity: 1;
}

/* 本体ボックス（中スクロール） */
.confirm-modal-inner {
  background-color: #fff;
  padding: 2rem 1.5rem;
  padding-bottom: 1rem;
  width: clamp(320px, 92vw, 700px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  border: 1px solid #ccc;
  color: #111;

  /* スクロール許可 + 高さ制限 */
  max-height: min(85dvh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 背景スクロール抑止（JSで .modal-open を付与） */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/**************************************
 * Modal — Content
 **************************************/
.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.confirm-content dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ラベル横並び（スマホ優先／段組対応） */
.confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: baseline;
}

.confirm-row dt {
  font-weight: bold;
  color: #333;
  min-width: 8em;
  /* ラベル幅 */
  margin: 0;
}

.confirm-row dd {
  margin: 0;
  color: #000;
  flex: 1;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* お問い合わせ内容だけ縦並び＋枠 */
.confirm-content .full-row {
  display: block;
}

.confirm-content .full-row dt {
  font-weight: bold;
  color: #333;
  margin-bottom: .3rem;
}

.confirm-content .full-row dd {
  margin: 0;
  color: #000;
  white-space: pre-wrap;
  line-height: 1.6;
  border: 1px solid #eee;
  padding: .8rem;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/**************************************
 * Modal — Buttons
 **************************************/
.modal-button-area {
  position: sticky;
  /* 下部固定で常に押せる */
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;

  /* 上部に薄いグラデで段差を作り、内容と分離 */
  background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
  border-top: 1px solid #eee;
}

.modal-button-area p {
  display: flex;
  gap: 1rem;
}

/**************************************
 * Validation
 **************************************/
.error {
  background-color: #ffe5e5;
  border: 1px solid crimson !important;
}

.error-message {
  color: crimson;
  font-size: .85rem;
  margin-top: .3rem;
  display: block;
}

.wpcf7-response-output {
  display: none !important;
}

/* サンクスメッセージはデフォルト非表示 */
.confirm-success {
  display: none;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 表示状態 */
.confirm-success.is-active {
  display: block;
}





/* .wpcf7 form.sent .wpcf7-response-output {
 border-color: initial;
}

.wpcf7 form .wpcf7-response-output {
 border:initial ;
}

.post_content h2 {
  margin-bottom: 0!important;
} */