@charset "UTF-8";
/*--------------------------------------------------------
form
--------------------------------------------------------*/
/* セレクトボックス（ドロップダウン）のスタイル */
.wpcf7 select {
  width: 100%;
  padding: 0.75em 1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1em;
}

.wpcf7 select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* フォーム全体のラップ */
.wpcf7 {
  max-width: 1400px;
  margin: 2em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 2em;
  font-family: "Noto Sans JP", sans-serif;
}

/* テーブルの余白調整 */
.wpcf7 table {
  width: 90%;
  border-collapse: separate;
  border-spacing: 0 1.2em;
}

/* th と td のレイアウト */
.wpcf7 th, .wpcf7 td {
  vertical-align: top;
  padding: 0;
  border: none;
}

.wpcf7 th {
  width: 30%;
}

.wpcf7 .line1 {
  text-align: left;
  display: block;
}

/* th 内のラベル配置 */
.wpcf7 .th-in {
  display: flex;
  align-items: center;
}

.wpcf7 .col-l {
  flex: 0 0 4em;
  text-align: right;
}

.wpcf7 .col-r {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

/* 必須／任意マーク */
.wpcf7 .must, .wpcf7 .nin {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  margin-right: 0.5em;
  color: #fff;
}

.wpcf7 .must {
  background: #e74c3c;
} /* 赤：必須 */
.wpcf7 .nin {
  background: #95a5a6;
} /* グレー：任意 */
/* 入力フィールド */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #f9f9f9;
}

.wpcf7 input:focus, .wpcf7 textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* 入力後（値がある状態） */
.wpcf7 input[type=text]:not(:-moz-placeholder), .wpcf7 input[type=email]:not(:-moz-placeholder), .wpcf7 textarea:not(:-moz-placeholder) {
  background: #edf7f6; /* 入力済み → 薄いグリーン */
  border-color: #00aa9d; /* 入力済み → グリーン枠 */
}
.wpcf7 input[type=text]:not(:placeholder-shown), .wpcf7 input[type=email]:not(:placeholder-shown), .wpcf7 textarea:not(:placeholder-shown) {
  background: #edf7f6; /* 入力済み → 薄いグリーン */
  border-color: #00aa9d; /* 入力済み → グリーン枠 */
}

/* ラジオボタンカスタム */
.wpcf7 .wpcf7-radio label {
  position: relative;
  padding-left: 2em;
  cursor: pointer;
  display: inline-block;
  margin-right: 1.5em;
  font-size: 0.95rem;
  color: #333;
}

.wpcf7 .wpcf7-radio label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.wpcf7 .wpcf7-radio label::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 2px;
  width: 1em;
  height: 1em;
  border: 2px solid #bbb;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.3s, background 0.3s;
}

.wpcf7 .wpcf7-radio label input:checked + .wpcf7-list-item-label + *, .wpcf7 .wpcf7-radio label input:checked + span { /* second span is label text fallback */ }

.wpcf7 .wpcf7-radio label input:checked ~ span::before, .wpcf7 .wpcf7-radio label input:checked + .wpcf7-list-item-label::before { /* not used */ }

.wpcf7 .wpcf7-radio label input:checked + span::after, .wpcf7 .wpcf7-radio label input:checked ~ span::after {
  content: "";
  position: absolute;
  left: 0.28em;
  top: 0.53em;
  width: 0.4em;
  height: 0.4em;
  background: #3498db;
  border-radius: 50%;
}

/* テキストエリア上の説明文 */
.wpcf7 .td-qestion .line {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.4em;
}

/* 送信ボタン */
.wpcf7 .wpcf7-submit {
  width: 400px;
  margin: auto;
  display: block;
  background: linear-gradient(135deg, #00aa9d, #00897b);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8em 2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  margin-top: 1.5em;
}

.wpcf7 .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 170, 157, 0.5);
  background: linear-gradient(135deg, #00cbbf, #009688);
  color: #fff;
}

.wpcf7 .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 170, 157, 0.5);
  background: #009688;
  color: #fff;
}

/* 郵便番号フィールドの幅調整 */
.wpcf7 .td-zip input[type=text] {
  width: 200px; /* 好きな幅に調整 */
  max-width: 100%;
  display: inline-block;
}

@media (max-width: 800px) {
  /* フォーム全体の余白調整 */
  .wpcf7 {
    padding: 1.5em;
  }
  /* テーブルを縦型に */
  .wpcf7 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1em;
  }
  .wpcf7 th, .wpcf7 td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    text-align: left;
  }
  /* ラベル部分をブロック化 */
  .wpcf7 .th-in {
    display: block;
    text-align: left;
    margin-bottom: 0.3em;
  }
  .wpcf7 .col-l {
    display: inline-block;
    margin-right: 0.5em;
    text-align: left;
  }
  .wpcf7 .col-r {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
  }
  /* 入力フィールドの調整 */
  .wpcf7 input[type=text],
  .wpcf7 input[type=email],
  .wpcf7 textarea,
  .wpcf7 select {
    width: 90%;
    font-size: 1rem;
    padding: 0.7em 1em;
  }
  /* 郵便番号欄はスマホでは幅100%に */
  .wpcf7 .td-zip input[type=text] {
    width: 90%;
  }
  /* 送信ボタンを広げる */
  .wpcf7 .wpcf7-submit {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 1em;
    border-radius: 6px;
  }
}