/* 動的に表示する項目を非表示にするためのクラス */
.hidden-field {
  display: none;
}

/* 全体のフォント設定 */
body {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

/* フォーム全体のコンテナ */
.contact-form-item {
  margin-bottom: 40px;
}
/* 特定の項目にのみマージンを適用しない */
.contact-form-trigger.contact-form-item {
  margin-bottom: 0;
}
/* 特定の項目にのみマージンを適用しない */
.contact-form-content.contact-form-item {
  margin-top: 30px;
  margin-bottom: 0;
}
/* 特定の項目にのみマージンを適用する */
.contact-form-agreement.contact-form-item {
  margin-top: 30px;
}
/* フォーム項目名（ラベル） */
.contact-form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}
label {
  margin-bottom:7px;
}
.contact-form-label-name {
  margin-bottom: 11px;
}
/* 必須マーク */
.required {
  background-color: #da0a0a;
  border-radius: 5px;
  color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  margin-left: 8px;
  font-weight: bold;
}
/* 複数選択可のテキスト */
.note-text {
  font-weight: 400; /* 太さ400に設定 */
  color: #333333; /* フォントカラーを#333に設定 */
  margin-left: 8px; /* 必須とテキストの間の余白を8pxに設定 */
}
/* 姓と名を横並びにするためのコンテナ */
.contact-form-name-fields p {
  display: flex;
  gap: 16px;
}
/* 姓と名の各入力欄 */
.name-field-item {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
/* 入力欄（text, tel, emailなど） */
.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-sizing: border-box;
}
/* textareaの高さ設定とリサイズ許可 */
/* セレクタの特異性を上げて優先度を確保 */
.contact-form-item textarea.input-field {
  height: 160px;
  resize: both; /* 縦横両方向のリサイズを許可 */
}

.contact-form-industry-other textarea.input-field, 
.contact-form-trigger-other textarea.input-field {
  height: 50px;
  resize: both; /* 縦横両方向のリサイズを許可 */
}

/* チェックボックス項目 */
.contact-form-checkbox-group .wpcf7-list-item {
  display: flex;
  align-items: center;
}
/* ご利用規約のテキスト */
.agreement-text {
  font-size: 0.9em;
  line-height: 1.6;
}
.agreement-text a {
  text-decoration: underline;
  color: #125dff;
}
/* プライバシーポリシーリンクにアイコンを追加 */
.agreement-text a:after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.3em;
  vertical-align: middle;
  background-image: url("https://corporate.kyusai.co.jp/cmn/icon/icon-blank-blue.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* 利用規約の箇条書きリスト */
.agreement-text .agreement-list {
  padding-left: 20px;
  margin-top: 0;
}
.agreement-text .agreement-list li {
  margin-bottom: 10px;
  list-style: disc;
}

.agreement-text .agreement-list li:last-child {
  margin-bottom:0;
}
.contact-form-submit-wrap {
  border: 1px solid #aabfbe;
  padding: 22px 34px 10px;
  border-radius: 5px;
  margin-top: 16px;
}
.agreement-checkbox-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ご利用規約のチェックボックスとラベルの横並び調整 */
.agreement-checkbox-wrap label {
  display: flex;
  align-items: flex-start;
  /* gap: 5px; */
  cursor: pointer;
  font-size: 13px;
}

.agreement-checkbox-wrap .agreement-checkbox {
  width: 11px;
  height: 11px;
  accent-color: #344343;
}

.agreement-checkbox-wrap .agreement-checkbox:checked {
  border-radius:10px;
}

.agreement-checkbox-wrap .agreement-checkbox-label {
  margin: 0;
}
/* 調整終了 */

/* カスタム追加 */
.contact-form-item p {
  margin-bottom: 0;
}

.mt16 {
  margin-top: 16px;
}

.mt-16 {
  margin-top: -16px;
}
/* チェックボックス項目のスタイル */
.contact-form-item .wpcf7-list-item {
  margin-right: 20px;
  margin-bottom: 5px;
}
.contact-form-item .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: normal;
}
.contact-form-item .wpcf7-list-item-label::before {
  display: none;
}
.contact-form-item .wpcf7-list-item-label::after {
  display: none;
}

/* 新しく追加した「きっかけ」項目を縦並びにするためのスタイル */
.contact-form-trigger .wpcf7-list-item {
  display: block; /* 横並びから縦並びに変更 */
  margin-right: 0; /* 右側の余白を削除 */
  margin-bottom: 5px; /* 各項目の下に余白を追加 */
}

/* position: sticky を使ってフッターを固定するスタイル */
/* HTML要素全体をビューポートの高さに設定 */
html {
  height: 100%;
}
/* bodyの高さとマージンをリセット */
body {
  min-height: 100vh;
  margin: 0;
}
/* フッターを最下部に固定 */
footer {
  position: sticky;
  top: 100vh;
  margin-top: auto;
}
/* 全てのチェックボックス項目に共通のスタイルを適用 */
.contact-form-item .wpcf7-list-item {
  margin: 0;
  margin-bottom: 0;
}
.contact-form-item .wpcf7-list-item-label {
  font-size: 13px;
  font-weight: normal;
}
.contact-form-item .wpcf7-list-item-label::before {
  display: none;
}
.contact-form-item .wpcf7-list-item-label::after {
  display: none;
}

.p-header__container {
  align-items: center;
  overflow: hidden;
}
.p-header__logos {
  display: flex;
  align-items: center;
  gap: 32px;
}
.p-header__logo--qsai {
  width: 82px;
  height: auto;
}
.p-header__logo--myme {
  width: 150px;
  height: auto;
}
@media (max-width: 768px) {
  .p-header__logos {
  display: flex;
  align-items: center;
  gap: 20px; /* SPでのロゴ間の余白 */
  }
  .p-header__logo--qsai {
  width: 81px;
  height: auto;
  }
  .p-header__logo--myme {
  width: 105px;
  height: auto;
  }
  .submit-button-confirm {
  font-size:10px;
  padding:10px 40px;
  width: 100%;
  }
}

.real-submit-btn { display: none !important; }
.custom-error-message { 
  color: #ff3a3a;
  font-size: 11px;
  font-weight: normal;
  display: block;
}

.all-wrapper {
  min-height: calc(100dvh - 160px);
}
input.has-error { border: 1px solid #dc3232 !important; }
.confirmation-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.confirmation-table th, .confirmation-table td { border: 1px solid #ccc; padding: 15px; vertical-align: top; }
.confirmation-table th { width: 30%; font-weight: bold; background-color: #f7f7f7; text-align: left; }
.confirmation-table td { width: 70%; white-space: pre-wrap; word-wrap: break-word; }
.confirmation-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.confirmation-buttons button { padding: 15px 30px; font-size: 16px; cursor: pointer; border: none; border-radius: 5px; }
.confirmation-buttons .back-button { background-color: #777; color: #fff; }
.confirmation-buttons .submit-button, #confirm-trigger-btn { background-color: #007bff; color: #fff; }
#confirm-trigger-btn { padding: 15px 30px; font-size: 16px; cursor: pointer; border: none; border-radius: 5px; width: auto; font-weight: bold; }
.custom-error-message + .wpcf7-not-valid-tip {
  display: none!important;
}
.wpcf7-not-valid-tip + .custom-error-message {
  display: none!important;
}
.contact-form-label.nomal {
  margin-bottom: 10px;
}

.contact-form-label.nomal + p {
  margin-bottom:10px;
  font-size:1rem;
  font-weight:400;
  line-height: 1.5;
}
.custom-error-message.acceptance-error {
  text-align: center;
}

.contact-form-label.nomal + p + p {
  font-size:1rem;
  font-weight:400;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
  border: #d6d6d6 1px solid;
  padding: 7px 16px 3.69px;
  font-size: 15px;
  border-radius: 5px;
}

placeholder {
  color: #59595952;
}

span.wpcf7-form-control-wrap {
  margin-top: 0;
  display: block;
}

html[lang="ja"] body, html[lang="ja"] button, html[lang="ja"] input, html[lang="ja"] select, html[lang="ja"] textarea {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

option {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

.contact-select {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-top: 15px;
}

.contact-select::after {
  position: absolute;
  right: 10px;
  width: 10px;
  height: 7px;
  background-color: #535353;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  pointer-events: none;
  top:0px;
  bottom:0;
  margin:auto;
}

.contact-form-item.contact-form-industry {
  margin-top: 25px;
}

.contact-form-item.contact-form-inquiry {
  margin-top: 25px;
}

.contact-select select {
  appearance: none;
  min-width: 230px;
  font-size: 16px;
  background: #f5f5f5;
  padding:0px 40px 0 10px;
  height: 2.8em;
  border: none;
  border-radius: 3px;
  color: #333333;
  font-size: 1em;
  border:solid 1px #d9d9d9;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  color: #ff3a3a; /* Red */
  font-size: 11px;
  font-weight: normal;
  display: block;
}

.contact-sub-area .contact-form-item {
  margin:20px 20px;
}

.contact-sub-area .contact-form-label.nomal {
  margin-bottom:0;
}

.contact_footer .clearfix:after {
  display: none;
}

/* Pc版のスタイル (画面幅が768px以上の場合) */
@media screen and (min-width: 768px) {
  .contact-form-item {
  margin-bottom: 32px;
  }
  .p-header__logo-link.p-header__logo--qsai {
    position: relative;
    top: 6px;
  }
  .contact-form-label {
    font-size: 15px;
    font-weight: 600;
  }
  .required {
    padding: 1px 7px 3px;
    font-size: 14px;
    position: relative;
    top: -2px;
  }
  .submit-button {
    padding: 12px 212px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
  .all-wrapper {
    max-width: 700px;
  }
  /* 追加するスタイル */
  .l-header {
    height: 80px;
    line-height: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .p-header__container {
    padding: 0 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .p-header__logos {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
  }
  .p-header__logo--qsai {
    width: 82px;
  }
  .p-header__logo--myme {
    width: 150px;
  }
  .menu-toggle {
    display: none; /* ハンバーガーメニューを非表示に */
  }
  .page-content h1 {
    margin-top: 40px;
  }
  .contact-form-lead {
    margin: 32px auto;
  }
  .confirm-buttons p {
    display: flex;
    justify-content: center; /* 中央揃えに修正 */
    gap: 32px;
    margin: 0 auto 112px !important;
  }
  .confirm-buttons .submit-button-confirm {
    width: 262px;
    height: 45px;
    
    padding: 0;
    line-height: 45px;
    font-size: 14px;
    border-radius: 10px;
    background-color: #344343;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 500;
  }
  
  .confirm-buttons .submit-button-confirm:hover {
    background-color: #2a3535;
  }
  /* Pc版のテキストサイズ */
  .note-text {
    font-size: 12px;
  }
}
/* SP版のスタイル (画面幅が767px以下の場合) */
@media screen and (max-width: 767px) {
  .contact-form-label {
    font-size: 14px;
  }
  .required {
    padding: 1px 5px;
    font-size: 10px;
  }
  .submit-button {
    padding: 7px 41px !important;
    font-size: 11px !important;
    border-radius: 2px !important;
    margin-top:35px !important;
  }
  .all-wrapper {
    max-width: 90vw;
  }
  /* 追加するスタイル */
  .l-header {
    height: 63px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .p-header__container {
    padding: 0;
    height: 63px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .p-header__logos {
    width: 100%;
    height: 63px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
  }
  .p-header__logo--qsai {
    width: 81px;
  }
  .p-header__logo--myme {
    width: 105px;
  }
  .menu-toggle {
    display: none; /* ハンバーガーメニューを非表示に */
  }
  .page-content h1 {
    margin-top: 24px;
  }
  label {
    font-size: 14px;
  }
  .contact-form-item .wpcf7-list-item {
    margin: 0;
    margin-right: 0 !important;
  }
  .contact-form-name-fields p {
    gap: 5px !important;
    flex-direction: column;
  }
  input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
    padding: 10px !important;
    font-size: 14px;
  }
  li.note-list {
    font-size: 6px;
  }
  .mt16 {
    margin-top: 8px;
  }

  .agreement-text, .agreement-list {
    font-size: 14px;
    padding: 0px;
  }

  .contact-form-submit-wrap {
    padding:10px 15px;
  }
  
  .confirm-buttons p {
    display: flex;
    justify-content: center; /* 中央揃えに修正 */
    gap: 6px;
    margin: 0 auto 96px !important;
  }
  
  .confirm-buttons input.submit-button-confirm {
    /* SP版ではボタンをPcと同じ幅にします */
    width: 122px; 
    height: 23px; 
    margin: 0 !important;
    
    /* submit-buttonのデザインを踏襲 */
    padding: 0;
    line-height: 23px;
    font-size: 10px !important;
    border-radius: 2px !important;
    background-color: #344343;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 500;
  }
  /* SP版のテキストサイズ */
  .note-text {
    font-size: 10px;
  }
}
/* 全体のコンテナにmax-widthを設定 */
.all-wrapper {
  margin: 0 auto;
}
/* お問い合わせタイトルを中央揃えに */
.page-content h1 {
  text-align: center;
}
/* 注釈リストのスタイル */
.note-list {
  list-style-type: none;
  padding-left: 0;
}
.note-list li {
  position: relative;
  padding-left: 1.2em;
  font-size:12px;
  color: #000000;
}
.note-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 2px;
}
.nomal {
  font-weight: normal;
}
/* submit-buttonの共通スタイルを全般で定義 */
.submit-button {
  background-color: #344343 !important;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: block !important;
  margin: 55px auto 0;
}
/* ホバー時のスタイル（Pcのみ） */
@media screen and (min-width: 768px) {
  .submit-button:hover {
    background-color: #2a3535;
  }
}
/* プレースホルダーのスタイルを調整 */
.input-field::placeholder {
  color: rgba(0, 0, 0, 0.32);
}
/* firefox用 */
.input-field::-moz-placeholder {
  color: rgba(0, 0, 0, 0.32);
}
/* Ie/edge用 */
.input-field:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.32);
}
/* 姓と名の各入力欄を均等な幅で横並びにする */
.name-field-item {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* フッターのスタイル調整 - 優先度を上げる */
.footer-rights {
  background-color: #344343 !important; /* 強制適用 */
  color: #ffffff !important; /* 強制適用 */
  text-align: center !important; /* 強制適用 */
}

.footer-rights p {
  font-size: 14px !important; /* 強制適用 */
  margin: 0 !important; /* 強制適用 */
}

.text_thanks , .text_thanks li, .title_thanks {
  text-align: center;
}

.thanks-button {
  display: flex;
  justify-content: center;
}

.text_thanks li a {
  text-decoration: underline;
  color: #125dff;
}

@media screen and (min-width: 768px) {
  .footer-rights {
    height: 40px !important; /* 強制適用 */
    display: flex !important; /* 強制適用 */
    justify-content: center !important; /* 強制適用 */
    align-items: center !important; /* 強制適用 */
  }
  .pc-hidden {
    display: none !important; /* 強制適用 */
  }

  .text_thanks {
    font-size: 16px;
  }

  .title_thanks {
    font-size: 32px;
  }

  .thanks-button input {
    height: 42px;
    width: 550px;
    border-radius: 10px !important;
    font-size: 14px !important;
    padding: 12px 0 !important;
  } 
}

@media screen and (max-width: 767px) {
  .footer-rights {
    height: 72px !important; /* 強制適用 */
    display: flex !important; /* 強制適用 */
    justify-content: center !important; /* 強制適用 */
    align-items: center !important; /* 強制適用 */
    padding: 10px !important; /* 強制適用 */
  }
  .text_thanks {
    font-size: 10px;
  }
  .title_thanks {
    font-size: 20px;
  }
  .thanks-button input{
    height: 23px;
    width: 177px;
    border-radius: 2px;
    font-size: 10px !important;
    padding: 4px 0 !important;
  }
}
