/**
 * Theme Name:     unitone Child
 * Author:         JEC
 * Template:       unitone
 * Text Domain:	   unitone-child
 * Description:    Child Theme
 */

/* === ページ全体のスムーススクロール設定 === */
html {
  scroll-behavior: smooth;
}

.fixed-cta {
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background-color: rgba(200, 200, 200, 0.6);
  padding: 1em;
  text-align: center;
}

/* 見出しの上の余白を縮める */
.tight-top-space {
  margin-top: -3rem; /* 必要に応じて -0.5rem などに調整可 */
}

/* 職種名の下余白を縮める */
.tight-bottom-space {
  margin-bottom: -3rem;
}

.align-bottom {
  align-self: flex-end;
}

/* フォーム用 */
/* === テーブル全体の幅と配置 === */
.wpcf7 table.inquiry {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.wpcf7 table.inquiry td p .wpcf7-form-control-wrap input[type="file"] {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* === ラベル（th）の装飾 === */
.wpcf7 table.inquiry th {
  width: 240px; /* ← 見切れないように調整 */
  text-align: left;
  vertical-align: middle; /* ← 高さ中央に揃える */
  padding: 0.5em 1em;
  white-space: nowrap;
}

/* === 入力欄側（td）の装飾 === */
.wpcf7 table.inquiry td {
  padding: 0.5em 0;
}

/* === テキスト系の入力欄を横いっぱいに === */
.wpcf7 table.inquiry input[type="text"],
.wpcf7 table.inquiry input[type="email"],
.wpcf7 table.inquiry input[type="tel"],
.wpcf7 table.inquiry textarea,
.wpcf7 table.inquiry select {
  width: 100%;
  box-sizing: border-box;
  max-width: auto;
  margin: 1em 0;
}

/* === 特例：電話番号や生年月日のような横並び項目 === */
.wpcf7 .mwform-tel-field,
.wpcf7 .mwform-date-field {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.wpcf7 .mwform-tel-field input[type="text"] {
  width: auto;
  min-width: 4em;
}

/* === 短い select や input に使えるクラス === */
.wpcf7 .short-field {
  width: auto !important;
  min-width: 6em;
}

/* === 行間（行と行の余白）調整 === */
.wpcf7 table.inquiry tr {
  border-bottom: 1px solid #ddd;
}

/* === 必須・任意マークの見た目 === */
.wpcf7 .haveto {
  color: #fff;
  background: #d9534f;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  margin-right: 0.5em;
  border-radius: 3px;
}

.wpcf7 .any {
  color: #fff;
  background: #124d96;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  margin-right: 0.5em;
  border-radius: 3px;
}

/* スパムチェックボックスの余白調整 */
.wpcf7 .spam-info {
  margin: 2em 0;
}

/* 送信ボタン */
.wpcf7 .submit-btn-wrap {
  margin: 2em 0;
  text-align: center;
}

.wpcf7 input[type="submit"].soushinbtn:hover {
  background-color: #0073aa;
  color: #fff;
}

.tag-label {
  background-color: #f08080;
  color: #fff;
  padding: 0.2em 0.8em;
  border-radius: 1em;
  font-size: 0.9em;
  display: inline-block;
}

.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.recruit-tags .tag-label {
  background-color: #0cb59b;
  color: #fff;
  padding: 0.2em 0.4em;
  display: inline;
  border-radius: 0.3em;
  white-space: nowrap;
}

/* === スマホ時はラベルと入力を縦に並べる === */
@media screen and (max-width: 767px) {
  .wpcf7 table.inquiry {
    table-layout: auto;
  }

  .wpcf7 table.inquiry tr {
    display: block;
    margin-bottom: 1em;
  }

  .wpcf7 table.inquiry th,
  .wpcf7 table.inquiry td {
    display: block;
    width: 100%;
  }

  .wpcf7 table.inquiry th {
    margin: 0 !important;
    margin-bottom: 0.3em;
  }
}

form.searchandfilter {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
