@charset "UTF-8";

/*
Theme Name: サンプルテーマ
*/



.form-item__wrapper h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}


/* =====================================
   初回モーダル
======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 5px;
  padding: 40px 60px 60px 60px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-btn {
  padding: 16px 16px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.modal-btn-primary {
  background-color: #FFEE2F;
  color: #1375C4;
}

.modal-btn-primary:hover {
  background-color: #1375C4;
  color: #FFEE2F;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.modal-btn-secondary {
  background-color: #1375C4;
  color: #fff;
  border: 1px solid #1375C4;
}

.modal-btn-secondary:hover {
  background-color: #fff;
  color: #1375C4;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}



/* ========================================
   CF7 ステップフォーム制御
======================================== */

/* ステップの表示/非表示 */
.wpcf7 .step {
  display: none !important;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.wpcf7 .step.active {
  display: block !important;
  opacity: 1;
}

/* ステップタイトル */
.wpcf7 .step h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b22b2b;
  color: #333;
}

/* フォームフィールド */
.wpcf7 .step input[type="text"],
.wpcf7 .step input[type="tel"],
.wpcf7 .step input[type="email"],
.wpcf7 .step select {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.wpcf7 .step input[type="text"]:focus,
.wpcf7 .step input[type="tel"]:focus,
.wpcf7 .step input[type="email"]:focus,
.wpcf7 .step select:focus {
  outline: none;
  border-color: #b22b2b;
}

/* チェックボックス・ラジオボタン */
.wpcf7 .step .wpcf7-list-item {
  margin: 0 0 12px 0;
}

.wpcf7 .step .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
}

.wpcf7 .step .wpcf7-list-item-label:hover {
  background-color: #fff;
  border-color: #b22b2b;
}

.wpcf7 .step input[type="checkbox"]:checked + .wpcf7-list-item-label,
.wpcf7 .step input[type="radio"]:checked + .wpcf7-list-item-label {
  background-color: #b22b2b;
  color: #fff;
  border-color: #b22b2b;
}

.wpcf7 .step input[type="checkbox"],
.wpcf7 .step input[type="radio"] {
  margin-right: 8px;
}

/* ボタンコンテナ */
.wpcf7 .step .button-container {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

/* 次へ・戻るボタン */
.next-btn,
.prev-btn {
  padding: 14px 32px;
  margin: 8px 4px;
  background-color: #b22b2b;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  min-width: 120px;
}

.next-btn:hover,
.prev-btn:hover {
  background-color: #d44c4c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(178, 43, 43, 0.3);
}

.next-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.prev-btn {
  background-color: #666;
}

.prev-btn:hover {
  background-color: #888;
}

/* 送信ボタン */
.wpcf7 .step input[type="submit"] {
  padding: 16px 48px;
  background-color: #b22b2b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 400px;
  margin: 24px auto 0;
  display: block;
}

.wpcf7 .step input[type="submit"]:hover {
  background-color: #d44c4c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 43, 43, 0.4);
}

/* エラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  color: #d44c4c;
  font-size: 14px;
  margin-top: 4px;
}

.wpcf7 .wpcf7-validation-errors {
  border: 2px solid #d44c4c;
  background-color: #ffe6e6;
  padding: 16px;
  border-radius: 6px;
  margin-top: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 660px) {
  .wpcf7 .step h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .next-btn,
  .prev-btn {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 100px;
  }

  .wpcf7 .step input[type="submit"] {
    padding: 14px 32px;
    font-size: 16px;
  }

  .wpcf7 .step .wpcf7-list-item-label {
    font-size: 14px;
    padding: 8px 12px;
  }
}


/* ========================================
   エントリーボックス全体のスタイル
======================================== */
.entry-box__wrapper {
  background-color: #F8FCFD;
}

.entry-box {
  
  margin: 0 auto;
  width: 100%;
  padding: 30px 16px 0;
}

.entry-box .inner {
  max-width: 980px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px 60px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.head-img,
.head-text {
  margin-bottom: 30px;
  text-align: center;
}

.head-img__inner img,
.head-text__inner img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* フォーム全体 */
.form-valid.entry {
  margin-top: 20px;
}

/* ステップ画像 */
.step-img {
  text-align: center;
  margin-bottom: 20px;
}

.step-img-first {
  margin-bottom: 0;
}

/* フォームアイテム */
.form-item {
  display: flex;
  margin: 0 0 20px 0;
  width: 100%;
}

.form-item dt {
  display: flex;
    width: 200px;
    padding-left: 15px;
    align-items: center;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
    border-top: 1px solid #B0BEC3;
    border-bottom: 1px solid #B0BEC3;
    border-left: 1px solid #B0BEC3;
    position: relative;
  }

.form-item dt.required::after {
  content: "必須";
  background: #1375C4;
  padding: 3px 5px;
  border-radius: 3px;
  color: #FFEE2F;
  font-size: 12px;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.form-item dt.optional::after {
  content: "任意";
  background: #C4C4C4;
  padding: 3px 5px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.form-item dd {
  width: 660px;
    padding: 20px 20px 10px 20px;
    box-sizing: border-box;
    border-radius: 0 3px 3px 0;
    border: 1px solid #B0BEC3;
    margin: 0;
    font-size: 14px;
}

.address-box {
  display: flex;
  gap: 0 4px;
}

/* チェックボックス・ラジオボタンリスト */
.checkbox,
.radio {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
}

.checkbox-qualification li {
  width: 297px;
}

.checkbox-work li {
  width: 195px;
  height: 65px;
}

.checkbox-request li {
  width: 195px;
}

.checkbox li,
.radio li {
  border-radius: 5px;
}

.checkbox-blue label span {
  background-color: #F8FCFD;
}

.checkbox li label,
.radio li label {
  display: block;
  cursor: pointer;
  height: 100%;
}


/* チェックボックス・ラジオボタンを非表示 */
.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* 選択されたスタイル */
.checkbox input[type="checkbox"]:checked + span,
.radio input[type="radio"]:checked + span {
  background-color: #1375C4;
  color: #fff;
  border-color: #1375C4;
  border-radius: 5px;
}

/* label内のspanをボタンのように */
.checkbox-span {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  padding: 20px 15px;
  border: 1px solid #B0BEC3;
  border-radius: 5px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-span br {
  width: 100%;
  content: '';
  display: block;
}

.p-small {
  padding: 10px 15px !important;
}


.checkbox label:hover span,
.radio label:hover span {
  border: 1px solid #1375C4;
  border-radius: 5px;
}

/* label全体にもチェック時のスタイルを適用（モダンブラウザ用） */
.checkbox li:has(input:checked) label,
.radio li:has(input:checked) label {
  background-color: #1375C4;
  color: #fff;
  border-color: #1375C4;
  border-radius: 5px;
}

.checkbox li:has(input:checked) label span,
.radio li:has(input:checked) label span {
  color: #fff;
  background-color: #1375C4;
  border-color: #1375C4;
  border-radius: 5px;
}


input[type="radio"] {
  display: none;
}

/* インプットフィールド */
input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

/* 全てのoption要素 */
select {
  font-size: 14px;
}

select option {
  font-size: 16px !important;
  padding: 8px;
}


input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border: 1px solid #1375C4;
}


/* キャプション */
.caption {
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
  line-height: 1.6;
  color: #000;
}

/* 利用規約同意チェックボックス */
.agreement-section {
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.agreement-section label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  font-weight: medium;
  user-select: none;
}

.agreement-section input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #B0BEC3;
  border-radius: 3px;
  position: relative;
}

.agreement-section input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

 /* 送信ボタン（最終ステップ）*/
 .nextbtn.btn-h {
  padding: 16px 40px;
  font-size: 20px;
  max-width: 100%;
  line-height: 1.6;
}



/* セレクトボックス */
.select-box {
  display: inline-block;
}

.select-box select {
  width: 100%;
}

.birth-box {
  display: flex;
  align-items: center;
  gap: 0 6px;
}

.year {
  max-width: 315px;
}


/* エラー表示 */
.error {
  color: #d44c4c;
  font-size: 14px;
  margin-top: 8px;
  display: block;
}


/* =====================================
   サンクスページ（完了ページ）
======================================== */
.thanks-page {
  text-align: center;
  padding: 60px 60px 80px;
  min-height: 500px;
}

.thanks-content {
  max-width: 700px;
  margin: 0 auto;
}

.thanks-icon {
  font-size: 80px;
  color: #1375C4;
  margin-bottom: 30px;
}

.thanks-title {
  font-size: 32px;
  font-weight: 700;
  color: #1375C4;
  margin-bottom: 30px;
}

.thanks-message {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #333;
}

.thanks-description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 50px;
  color: #666;
}


.thanks-btn {
  display: inline-block;
  padding: 18px 50px;
  background-color: #FFEE2F;
  color: #1375C4 !important;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transition: all 0.3s ease;
}

.thanks-btn:hover {
  background-color: #1375C4;
  color: #FFEE2F !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


.thanks-btn i {
  margin-right: 8px;
}


/* media query */
@media (max-width: 768px) {

  .entry-box {
    padding: 0 0 0;
  }
  .entry-box .inner {
    padding: 0 0 30px;
  }
  /* モーダル */
  .modal-content {
    padding: 30px 20px;
    max-width: 90%;
  }

  .head-text__inner img {
    max-width: 60%;
  }
  
  
  .modal-btn {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  
  .form-item__wrapper {
    padding: 0 16px;
  }
  .form-item {
    flex-direction: column;
  }
  .form-item dt {
    padding-left: 0;
    border: none;
    margin-bottom: 6px;
    position: relative;
    width: 100%;
  }

  .form-item dd {
    border: none;
    padding: 0;
  }
  .form-item dt.required::after,
  .form-item dt.optional::after {
    position: static;
    margin-left: 8px;
    transform: none;
  }
 
  
  .step-img-first {
    margin-bottom: 20px;
  }
  

  .checkbox li,
  .radio li {
    width: 167px;
    font-size: 12px;
    text-align: center;
  }
  .checkbox-work li {
    height: 74px;
  }
  .checkbox-request li {
    height: 74px;
  }
  .checkbox-span {
    font-size: 15px;
    flex-wrap: nowrap;
  }
  .form-item dd {
    width: 100%;
  }
 
  .checkbox-span {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .qualification-img {
    width: 65px;
  }
  .qualification-img-124 {
    width: 124px;
  }
  .qualification-img-103 {
    width: 103px;
  }
  .qualification-img-81 {
    width: 81px;
  }
  .qualification-img-78 {
    width: 78px;
  }
  .qualification-img-75 {
    width: 75px;
  }
  .checkbox-qualification li label span {
    height: 130px;
  }

  .lh-small {
    line-height: 1.2;
  }
  
  .fz-small {
    font-size: 12px !important;
  }
  .agreement-section label {
    font-size: 13px;
  }
  
  /* サンクスページ */
  .thanks-page {
    padding: 40px 16px 50px;
    min-height: 400px;
  }

  .thanks-content {
    padding: 16px 16px;
  }
  .thanks-icon {
    font-size: 60px;
    margin-bottom: 20px;
  }
  
  .thanks-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .thanks-message {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .thanks-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .thanks-button-area {
    margin-top: 30px;
  }
  
  .thanks-btn {
    padding: 16px 30px;
    font-size: 16px;
  }
}


