/*
Theme Name: Lightning Child Sample
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/




/* ========================================
   お見積りフォーム
   Contact Form 7
======================================== */

.wpcf7 {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.wpcf7 *,
.wpcf7 *::before,
.wpcf7 *::after {
  box-sizing: border-box;
}

/* フォーム見出し */
.wpcf7 h2 {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  color: #7b9fba;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

/* ========================================
   テーブル
======================================== */

.wpcf7 .table-contactform7 {
  width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #d5d5d5;
}

.wpcf7 .table-contactform7 th,
.wpcf7 .table-contactform7 td {
  padding: 12px 15px;
  border: 1px solid #d5d5d5;
  vertical-align: middle;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
}

/* 左側 */
.wpcf7 .table-contactform7 th {
  width: 28%;
  background: #f1f1f1 !important;
  color: #333;
  font-weight: 600;
}

/* 右側 */
.wpcf7 .table-contactform7 td {
  width: 72%;
  background: #fff !important;
}

/* Bootstrapの交互背景色を解除 */
.wpcf7 .table-contactform7.table-striped tr:nth-child(odd) th,
.wpcf7 .table-contactform7.table-striped tr:nth-child(even) th {
  background: #f1f1f1 !important;
}

.wpcf7 .table-contactform7.table-striped tr:nth-child(odd) td,
.wpcf7 .table-contactform7.table-striped tr:nth-child(even) td {
  background: #fff !important;
}

/* ========================================
   必須マーク
======================================== */

.wpcf7 .required-contactform7 {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 5px;
  background: #e65b86;
  color: #fff;
  border-radius: 1px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
}

.wpcf7 .title-contactform7 {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

/* ========================================
   入力欄
======================================== */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  margin: 3px 0;
  padding: 6px 9px;

  border: 1px solid #c8c8c8;
  border-radius: 2px;
  background: #fff;

  color: #444;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;

  box-shadow: none;
}

/* 入力中 */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #8baeca;
  box-shadow: 0 0 0 2px rgba(139,174,202,.15);
}

/* プレースホルダー */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

/* メッセージ入力欄 */
.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

/* 日付欄 */
.wpcf7 input[type="date"] {
  cursor: pointer;
}

/* ========================================
   時刻選択
======================================== */

.wpcf7 .select {
  display: inline-block;
  width: 120px;
  max-width: 100%;
  margin: 4px 8px 4px 0;
  vertical-align: middle;
}

.wpcf7 .select select {
  display: block;
  width: 100%;
  min-height: 34px;
}

/* ========================================
   ラジオ・チェックボックス
======================================== */

.wpcf7 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 3px 15px 3px 0;
}

.wpcf7 .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.wpcf7 input[type="radio"],
.wpcf7 input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 4px 0 0;
  accent-color: #777;
  flex-shrink: 0;
}

/* 条件分岐：非表示のグループ */
.wpcf7 .wpcf7cf-hidden {
  display: none !important;
}

/* ========================================
   ご希望商品欄
======================================== */

/* 左側の縦長見出し */
.wpcf7 .table-contactform7 th[rowspan] {
  vertical-align: top;
  padding-top: 15px;
}

/* 商品入力欄の余白 */
.wpcf7 .table-contactform7 td input[type="text"] {
  width: 100%;
}

/* ========================================
   送信ボタン
======================================== */

.wpcf7 input[type="submit"] {
  display: block;
  width: auto;
  min-width: 110px;
  min-height: 38px;
  margin: 20px auto 35px;
  padding: 8px 22px;

  border: 1px solid #299c49;
  border-radius: 3px;

  background: #2ca64d;
  color: #fff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;

  transition: background .25s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #238d40;
  color: #fff;
}

/* ========================================
   エラー表示
======================================== */

.wpcf7 .wpcf7-not-valid {
  border-color: #d9534f !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 3px;
  color: #d9534f;
  font-size: 12px;
}

.wpcf7 .wpcf7-response-output {
  padding: 12px;
  margin: 20px 0;
  font-size: 13px;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

  .wpcf7 {
    width: 100%;
    padding: 0 12px;
    font-size: 14px;
  }

  .wpcf7 h2 {
    font-size: 21px;
    margin-bottom: 20px;
  }

  /* 表を縦並びに変更 */
  .wpcf7 .table-contactform7,
  .wpcf7 .table-contactform7 tbody,
  .wpcf7 .table-contactform7 tr,
  .wpcf7 .table-contactform7 th,
  .wpcf7 .table-contactform7 td {
    display: block;
    width: 100%;
    height: auto;
  }

  .wpcf7 .table-contactform7 {
    margin: 20px 0;
  }

  .wpcf7 .table-contactform7 tr {
    margin-bottom: 12px;
  }

  .wpcf7 .table-contactform7 th {
    padding: 10px 12px;
    border-bottom: none;
    background: #f1f1f1 !important;
  }

  .wpcf7 .table-contactform7 td {
    padding: 12px;
  }

  .wpcf7 .table-contactform7 th[rowspan] {
    width: 100%;
    padding: 10px 12px;
  }

  .wpcf7 .title-contactform7 {
    font-size: 14px;
  }

  /* スマホで拡大されない文字サイズ */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="date"],
  .wpcf7 select,
  .wpcf7 textarea {
    font-size: 16px;
    min-height: 42px;
  }

  .wpcf7 .select {
    width: calc(50% - 12px);
    margin: 5px 8px 5px 0;
  }

  .wpcf7 .wpcf7-list-item {
    display: flex;
    margin: 8px 0;
  }

  .wpcf7 input[type="submit"] {
    min-width: 120px;
    min-height: 44px;
  }
}
