
/* タイトルフォント指定 */
:root :where(.is-layout-constrained)> :first-child {
  font-family: Noto Sans JP;
}

/* 背景画像 */
body {
    background-image: url('../../img/background-image_pc.jpg'); /* PC用画像のパスを指定 */
    background-size: cover; /* 画像が要素全体を覆うように拡大・縮小 */
    background-position: center center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像の繰り返しなし */
    background-attachment: scroll; /* ページをスクロールしても背景画像を固定 */
}

/* デフォルトのフォーム上下のパディング削除 */
.wp-block-group {
 margin-top: 0px !important;
 padding-top: 0px !important;
 padding-bottom: 0px !important;
}
:root {
  --wp--style--global--content-size: none !important;
}

/* タイトル */
.wp-block-post-title {
  /* display: none; */
  display: flex;
  justify-content: center;

}

/* ------------ 入力フォーム ------------ */
/* フォーム全体のスタイル調整（必要に応じて） */
#entry-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px 25px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* フォーム冒頭の案内文 */
.entry-form-lead {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.entry-form-lead p,
.entry-form-lead__text {
    display: block !important;
    margin: 0;
}

/* 各フォーム行のスタイル */
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

/* ラベルエリア */
.label-area {
    display: flex;
    align-items: center;
    margin-right: 15px;
    width: 130px;
    flex-shrink: 0;
}

/* 「必須」ラベル */
.label-required {
    background-color: rgb(var(--ses-main-color));
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 「任意」ラベル */
.label-optional {
    background-color: #666666;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 項目名テキスト */
.label-text {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* 入力フォーム */
.input-area {
    flex-grow: 1;
    min-width: 200px;
}

/* ------------ 履歴書・職務経歴書 ------------ */
.file-upload-area {
    display: flex;
    align-items: flex-start; /* 上端揃えに変更して複数行に対応 */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px; /* 少しパディングを調整 */
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px; /* 高さを確保 */
}

/* 「ファイルを選択」ボタンのスタイル (変更なし) */
.file-input-label {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
    margin-top: 2px; /* 位置調整 */
}

.file-input-label:hover {
    background-color: #ddd;
}

/* ファイル名表示コンテナのスタイル */
.file-name-container {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    min-width: 0; /* flexアイテムのはみ出し防止 */
}

/* ファイル名一つ一つのスタイル */
.file-name-item {
    display: block; /* ファイルごとに改行して表示 */
    margin-bottom: 4px;
    padding: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-name-item:last-child {
    margin-bottom: 0;
}

/* 初期表示のプレースホルダーのスタイル */
.file-name-placeholder {
    color: #888;
    font-size: 14px;
    display: inline-block;
    padding-top: 10px; /* ボタンと高さを合わせる */
}
.file-clear-button {
    background-color: #aaa;
    color: white;
    border: none;
    border-radius: 50%; /* 円形にする */
    width: 24px;
    height: 24px;
    font-size: 18px;
    font-weight: bold;
    line-height: 22px; /* × の位置を微調整 */
    text-align: center;
    cursor: pointer;
    padding: 0;
    margin-left: auto; /* ★要素を右端に寄せるためのキープロパティ */
    align-self: center; /* 上下中央に配置 */
    flex-shrink: 0; /* コンテナが縮んでもボタンサイズを維持 */
    transition: background-color 0.2s;
}

.file-clear-button:hover {
    background-color: #888;
}

/* --------------- 必要書類 --------------- */
.form-row-file-input {
  display: flex;
}

.required-documents-section {
    align-items: flex-start; /* ラベルとボックスの上端を揃える */
}

/* 書類案内のボックス全体 */
.documents-info-box {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 「該当する書類を添付してください」のヘッダー */
.documents-info-header {
    background-color: #48B6D5; /* 画像に近い青系の色 */
    color: white;
    padding: 8px 12px;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
}

/* 「新卒採用」「中途採用」を囲むコンテナ */
.documents-container {
    display: flex;
    justify-content: space-around; /* PC表示で要素間にスペースを設ける */
}

/* 各カテゴリ（新卒・中途）のスタイル */
.document-category {
    padding: 0 10px;
    width: 45%; /* PC表示では幅を45%に */
}

.document-category h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
}

.document-category ul {
    list-style-type: none; /* デフォルトの黒点を消す */
    padding-left: 1em;
    margin: 0;
}

.document-category ul li {
    margin-bottom: 5px;
    position: relative;
}

/* リストの先頭に「・」を付ける */
.document-category ul li::before {
    content: '・';
    position: absolute;
    left: -1em;
}

/* 「※職務経歴書がない方は〜」の注釈スタイル */
.document-category .note {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

/* ファイル選択inputのスタイル調整 */
#file-input {
    width: 100%;
}


/* ------------ 必要書類 ------------ */
.required-documents-section {
  align-items: flex-start;
  font-size: 14px;
}

/* 書類案内のボックス全体 */
.documents-info-box {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 「該当する書類を添付してください」のヘッダー */
.documents-info-header {
    background-color: rgb(var(--ses-main-color)); /* 画像に近い青系の色 */
    color: white;
    padding: 8px 12px;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
}

/* 「新卒採用」「中途採用」を囲むコンテナ */
.documents-container {
    display: flex;
    justify-content: space-around; /* PC表示で要素間にスペースを設ける */
}

/* 各カテゴリ（新卒）のスタイル */
.head-new-text {
    margin: 0%;
}
/* 各カテゴリ（中途）のスタイル */
.head-text {
    margin: 0%;
}

.document-category p {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.text-required {
  margin: 0%;
}

/* 「※職務経歴書がない方は〜」の注釈スタイル */
.note {
    font-size: 12px;
    margin: 0% 0% 0% 2px;
    line-height: 1.4;
}

/* ファイル選択inputのスタイル調整 */
#file-input {
    width: 100%;
}


/* プライバシーポリシーチェックボックス */
.priv-pol-chk {
  width: 100%;
  font-size: small;
  margin-bottom: 17px;
}

/* リキャプチャ */
/* .re-captcha-item {
  justify-content: center; 
  margin-bottom: 25px;
}

.error-g-recaptcha {
  margin-left: 0;
  text-align: center;
} */

/* 送信ボタン */
.submit-button-area {
    display: flex;
    justify-content: center; 
}
.entry-submit-button {
    font-weight: bold;      /* テキストを太字にする */
    color: #fff;            /* 文字色を白にする */
    background-color: rgb(var(--ses-main-color)); /* 「必須」ラベルと同じ背景色 */
    border: 1px solid rgb(var(--ses-main-color)); /* ボーダー色 */
    padding: 10px 20px;   /* 内側の余白 */
    border-radius: 28px;     /* 角丸（任意で調整してください） */
    cursor: pointer;        /* マウスカーソルをポインターに */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* トランジション */
}
/* マウスオーバー時のスタイル */
.entry-submit-button:hover {
    background-color: #fff !important; /* ホバー時の背景色を白に */
    color: rgb(var(--ses-main-color)); /* ホバー時の文字色をメインカラーに */
    border-color: rgb(var(--ses-main-color)); /* ホバー時のボーダー色をメインカラーに */
}

/* プライバシーポリシー */
.priv-pol {
    display: flex;
    justify-content: center;
    font-size: small;
    opacity: 0.8;
    text-decoration: none !important;
    outline:none;
}

.ui-datepicker-calendar .specific-disabled a {
    background-color: #fdd !important; /* 例: 薄い赤 */
    color: #888 !important; /* 例: 灰色 */
    cursor: default !important; /* カーソルをデフォルトにする */
}
.ui-datepicker-calendar .specific-disabled {
    opacity: 0.6; /* 少し透明にする */
}

@media (min-width: 599px) {
  
  .label-area.label-fixed-width {
      width: 190px; 
      margin-right: 20px; 
      flex-shrink: 0;
  }
  
  .input-area {
      flex-grow: 0;    
      flex-shrink: 0;  
      width: 400px;    
      margin-left: 0;  
      min-width: unset;
  }

  .input-area textarea,
  .input-area input[type="text"],
  .input-area input[type="email"],
  .input-area input[type="tel"],
  .input-area select {
      width: 100%;      /* 親要素である .input-area の幅 (上記例では400px) に合わせます */
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
  }

}
.input-area textarea,
.input-area input[type="text"],
.input-area input[type="email"],
.input-area input[type="tel"],
.input-area select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* エラーメッセージ */
.error-message {
    width: 100%;
    margin-left: 210px;
    font-size: 12px;
    color: red;
    padding-top: 3px;
    min-height: 1.2em;
}

.priv-pol-chk-err {
  margin-left: 0;
}



/* 送信ボタンの行 */
.submit-button-row {
    justify-content: center;
    margin-top: 20px;
}

#submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#submit-button:hover {
    background-color: #0056b3;
}

/* バリデーション結果メッセージのスタイル */
#form-validation-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#form-validation-message.success {
    color: #155724; /* 成功時：濃い緑の文字 */
}

#form-validation-message.error {
    color: #721c24; /* エラー時：濃い赤の文字 */
}

/* ------------ スマートフォン表示用　------------ */
@media (max-width: 599.98px) {
  /* 背景画像 */
  body {
    background-image: url('../../img/background-image_sp.jpg'); /* PC用画像のパスを指定 */
    background-size: cover; /* 画像が要素全体を覆うように拡大・縮小 */
    background-position: center center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像の繰り返しなし */
    background-attachment: scroll; /* ページをスクロールしても背景画像を固定 */
  }

  /* ------------ 入力フォーム ------------ */
  /* ラベルエリア */
  .label-area {
      width: 100%;
      margin-right: 0;
      margin-bottom: 5px;
  }
  /* エラーメッセージ */
  .error-message {
      margin-left: 0;
  }
  /* 実施方法 */
  .interview-preference-form select,
  .entry-type-form select           {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
  }
  /* ------------ 履歴書・職務経歴書 ------------ */
  .form-row-file-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  /* .form-row-file-input .input-area { */
      /* min-width: 0; */
  /* } */

  /* ------------ 必要書類 ------------ */
  .documents-container {
        flex-direction: column;
  }

  /* 各カテゴリ（中途）のスタイル */
.head-text {
    margin-top: 5%;
}
}