/* =========================================
   お問い合わせフォーム：全体スタイル
========================================= */
table.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

table.inquiry th,
table.inquiry td {
  border-bottom: 1px solid #ddd;
  padding: 12px 10px;
  vertical-align: middle;
}

table.inquiry th {
  width: 25%;
  min-width: 160px;
  text-align: left;
  font-weight: 600;
  color: #222;
  background: #fafafa;
}

table.inquiry td {
  width: 75%;
}

/* 必須マーク・任意マーク */
.haveto {
  color: #d33;
  margin-right: 4px;
  font-weight: bold;
}

.any {
  color: #999;
  margin-right: 4px;
}

/* 入力欄共通 */
table.inquiry input[type="text"],
table.inquiry input[type="email"],
table.inquiry input[type="file"],
table.inquiry select,
table.inquiry textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

table.inquiry textarea {
  height: 160px;
  resize: vertical;
}

/* ファイル注意書き */
table.inquiry small {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}




/* =========================================
   ご利用上の注意・個人情報
========================================= */
.privacy-box {
  margin-top: 40px;
}

.privacy-box h2 {
  font-size: 18px;
  font-weight: 700;
  border-left: 4px solid #ff0;
  padding-left: 10px;
  margin-bottom: 15px;
}

.privacy-box > p {
  color: #444;
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.privacy-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-scroll h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.privacy-scroll ul {
  list-style: disc;
  padding-left: 1.4em;
}

/* =========================================
   同意チェックボックス（中央寄せ）
========================================= */
.privacy-agree-wrapper {
  text-align: center;
  margin: 25px auto 35px;
}

.privacy-agree-wrapper .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.privacy-agree-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0798c3;
  cursor: pointer;
  transform: translateY(1px);
}

/* 送信ボタンは中央 */
.form-submit {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.wpcf7-submit {
  display: inline-block;
  background-color: #ff0;
  color: #000;
  font-size: 19px;
  padding: 10px 50px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.wpcf7-submit:hover {
  background-color: #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Contact Form 7 のスピナー位置補正 */
.wpcf7-spinner {
  margin: 0 !important;
  display: none !important; /* スピナー自体を非表示にする場合 */
}


/* =========================================
   スマホ対応
========================================= */
@media (max-width: 768px) {
  table.inquiry th {
    width: 100%;
    display: block;
    background: none;
    border: none;
    font-size: 15px;
    margin-bottom: 4px;
  }

  table.inquiry td {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }

.privacy-box h2 {
  font-size: 14px;
  font-weight: 700;
  border-left: 4px solid #ff0;
  padding-left: 10px;
  margin-bottom: 15px;
}

  .privacy-scroll {
    max-height: 320px; /* スマホでは少し広め */
    font-size: 13.5px;
  }

  .wpcf7-submit {
    width: 90%;
    font-size: 16px;
    padding: 14px 0;
  }

  .privacy-agree-wrapper {
    margin: 20px auto 30px;
  }
}
