@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ===== お問い合わせフォーム ===== */
.table-res-form {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.table-res-form th,
.table-res-form td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
}

.table-res-form th {
  width: 30%;
  background-color: #f7f7f7;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.table-res-form th.empty {
  background-color: transparent;
  border-bottom: none;
}

/* 必須ラベル */
.table-res-form .required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background-color: #EA3800;
  color: #fff;
  font-size: 11px;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.4;
}

/* 入力フィールド共通 */
.table-res-form input[type="text"],
.table-res-form input[type="email"],
.table-res-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.table-res-form input[type="text"]:focus,
.table-res-form input[type="email"]:focus,
.table-res-form textarea:focus {
  border-color: #EA3800;
  outline: none;
  box-shadow: 0 0 0 2px rgba(234, 56, 0, 0.15);
}

/* 送信ボタン */
.table-res-form input[type="submit"],
.table-res-form .wpcf7-submit {
  display: block;
  margin: 0 auto;
  padding: 14px 48px;
  background-color: #EA3800;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background-color 0.2s, transform 0.1s;
}

.table-res-form input[type="submit"]:hover,
.table-res-form .wpcf7-submit:hover {
  background-color: #c73000;
}

.table-res-form input[type="submit"]:active,
.table-res-form .wpcf7-submit:active {
  transform: scale(0.98);
}

/* ボタンセルの中央揃え */
.table-res-form td:has(.wpcf7-submit) {
  text-align: center;
}

/* ===== レスポンシブ（768px以下） ===== */
@media screen and (max-width: 768px) {
  .table-res-form,
  .table-res-form tbody,
  .table-res-form tr,
  .table-res-form th,
  .table-res-form td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .table-res-form th {
    border-bottom: none;
    padding-bottom: 6px;
    background-color: #f7f7f7;
  }

  .table-res-form td {
    padding-top: 4px;
  }

  .table-res-form th.empty {
    display: none; /* SP時はラベル列を非表示 */
  }

  .table-res-form input[type="submit"],
  .table-res-form .wpcf7-submit {
    width: 100%;
    padding: 16px;
  }
}
/* ボタン行の線をすべて消す */
.table-res-form tr:last-child th,
.table-res-form tr:last-child td {
  border: none;
  background-color: transparent;
}