/*
Theme Name: Twenty Twenty-Four
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
/*確認画面と完了画面を非表示*/
.confirm_area {
  display: none;
}

/*デフォルトのサンクスメッセージを非表示*/
.wpcf7-response-output {
  display: none;
}
/* テーブル全体のスタイル */
.cf7-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
}

.cf7-table th,
.cf7-table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.cf7-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  width: 30%;
  vertical-align: top;
}

.cf7-table .required {
  color: red;
  font-weight: bold;
  margin-left: 5px;
}

/* 入力フィールド */
.cf7-table td input[type="text"],
.cf7-table td input[type="email"],
.cf7-table td input[type="tel"],
.cf7-table td textarea,
.cf7-table td input[type="file"] {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.cf7-table td textarea {
  height: 150px;
  resize: vertical;
}

/* プライバシーポリシーエリア */
.privacy-policy {
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
}

/* エラーメッセージ */
.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/* 確認画面のボタン配置 */
.button-container {
  width: 100%;
  margin-top: 20px;
  position: relative;
}

/* 戻るボタンを左端に配置 */
.back-button-wrapper {
  position: absolute;
  left: 0;
}

/* 送信ボタンを中央に配置 */
.submit-button-wrapper {
  text-align: center;
}

/* ボタンのスタイル */
.back_button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ccc;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back_button:hover {
  background-color: #aaa;
}

.submit-button-wrapper input[type="submit"] {
  margin-top: 1em;
  padding: 15px;
  width: 200px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #28a745;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button-wrapper input[type="submit"]:hover {
  background-color: #218838;
}
.wpcf7-spinner {
  display: block;
}
/* 確認ボタン */
.button-wrap input[type="button"] {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-wrap input[type="button"]:hover {
  background-color: #005177;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cf7-table th,
  .cf7-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .cf7-table th {
    background-color: transparent;
  }

  .cf7-table td input[type="text"],
  .cf7-table td input[type="email"],
  .cf7-table td input[type="tel"],
  .cf7-table td textarea {
    padding: 12px;
    font-size: 14px;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
  }

  .button-container .back_button,
  .button-container .submit_button {
    width: 100%;
    text-align: center;
  }
}
