
/* サイドバーの親のグリッド要素（3カラム構造部分） */
.grid.grid-cols-3 {
    align-items: start !important; /* 左右のカラムが同じ高さに引き伸ばされるのを防ぐ */
}

/* 追従させたい右側のカラム（サイドバー） */
.grid.grid-cols-3 > .col-span-1 {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 24px !important; /* 画面の一番上からどれくらい空けて固定するか（24px = top-6相当） */
    z-index: 10;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

.page-navi ul { display: flex; gap: 0.25rem; justify-content: center; }
    .page-navi li { list-style: none; }
    .page-navi a, .page-navi span { 
        display: flex; align-items: center; justify-content: center; 
        min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
        border: 1px solid #cbd5e1;
        background: #ffffff; color: #334155; font-size: 0.75rem; font-weight: bold; transition: all 0.2s;
    }
    .page-navi a:hover { border-color: #004B88; color: #004B88; background-color: #f8fafc; }
    .page-navi .current { background: #004B88; border-color: #004B88; color: #ffffff; }

/* ==========================================================================
   お役立ち情報（Useful）シングルページ用・リッチデザイン（修正版）
   ========================================================================== */

:root {
  --brand-blue: #235BC8;
  --brand-purple: #6b21a8;
  --brand-purple-hover: #4c1d95;
  --text-main: #2c3e50;
  --text-sub: #64748b;
  --bg-light: #f8fafc;
}

/* 全体背景 */
.useful-main-bg {
  background-color: var(--bg-light) !important;
  min-height: 100vh !important;
  padding: 3rem 1rem !important;
}

@media (min-width: 640px) {
  .useful-main-bg {
    padding: 4rem 1.5rem !important;
  }
}

/* 記事カードコンテナ */
.useful-article-card {
  max-width: 52rem !important;
  margin: 0 auto !important;
  background-color: #ffffff !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid #e2e8f0 !important;
}

.useful-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), var(--brand-purple), transparent);
}

.useful-container {
  padding: 2rem 1.5rem !important;
}

@media (min-width: 640px) {
  .useful-container {
    padding: 3.5rem 3rem !important;
  }
}

/* メタ情報（日付・カテゴリ） */
.useful-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
  font-size: 0.875rem !important;
  color: var(--text-sub) !important;
}

.useful-date {
  display: inline-flex !important;
  align-items: center !important;
}

.useful-date svg {
  width: 1rem !important;
  height: 1rem !important;
  margin-right: 0.25rem !important;
  stroke: var(--text-sub) !important;
}

.useful-category {
  background-color: #e0e7ff !important;
  color: var(--brand-blue) !important;
  padding: 0.2rem 0.75rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

/* メインタイトル */
.useful-main-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  line-height: 1.4 !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 640px) {
  .useful-main-title {
    font-size: 2.25rem !important;
  }
}

/* アイキャッチ画像 */
.useful-featured-image {
  margin-left: -1.5rem !important;
  margin-right: -1.5rem !important;
  margin-bottom: 2.5rem !important;
}

.useful-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 450px !important;
  object-fit: cover !important;
}

@media (min-width: 640px) {
  .useful-featured-image {
    margin-left: -3rem !important;
    margin-right: -3rem !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
  }
}

/* --------------------------------------------------------------------------
   記事本文エリア（.useful-article-body 配下の要素を狙い撃ち）
   -------------------------------------------------------------------------- */
.useful-article-body {
  color: var(--text-main) !important;
  line-height: 1.95 !important;
  font-size: 16px !important;
  letter-spacing: 0.03em !important;
}

/* 段落 */
.useful-article-body p {
  margin-bottom: 1.75rem !important;
}

/* 通常の強調（黄色マーカー） */
.useful-article-body strong {
  font-weight: 700 !important;
  background: linear-gradient(transparent 60%, #ffe066 60%) !important;
  padding: 0.1rem 0.2rem !important;
}

/* カラーマーカーオプション */
.useful-article-body strong.highlight-blue {
  background: linear-gradient(transparent 60%, #a3e3ff 60%) !important;
}

.useful-article-body strong.highlight-green {
  background: linear-gradient(transparent 60%, #a3ffaa 60%) !important;
}

.useful-article-body strong.highlight-pink {
  background: linear-gradient(transparent 60%, #ffb3d9 60%) !important;
}

/* 見出し H2 */
.useful-article-body h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-top: 3.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.25rem !important;
  background-color: var(--bg-light) !important;
  border-left: 5px solid var(--brand-blue) !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
}

@media (min-width: 640px) {
  .useful-article-body h2 {
    font-size: 1.75rem !important;
  }
}

/* 2つ目以降のH2の装飾（最初のH2以外の上にグラデーション線を引く） */
.useful-article-body h2:not(:first-of-type) {
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 2.5rem !important;
  margin-top: 4.5rem !important;
}

/* 見出し H3 */
.useful-article-body h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid #e2e8f0 !important;
  position: relative !important;
}

.useful-article-body h3::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 4rem !important;
  height: 2px !important;
  background-color: var(--brand-purple) !important;
}

/* リスト表示（ul / ol） */
.useful-article-body ul,
.useful-article-body ol {
  margin-top: 1rem !important;
  margin-bottom: 1.75rem !important;
  padding-left: 0 !important;
}

/* チェックマーク付きul */
.useful-article-body ul li {
  list-style-type: none !important;
  padding-left: 1.5rem !important;
  position: relative !important;
  margin-bottom: 0.5rem !important;
}

.useful-article-body ul li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--brand-purple) !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}

/* ナンバーサークルol */
.useful-article-body ol {
  list-style: none !important;
  counter-reset: custom-counter !important;
}

.useful-article-body ol li {
  counter-increment: custom-counter !important;
  margin-bottom: 1rem !important;
  padding-left: 3rem !important;
  position: relative !important;
}

.useful-article-body ol li::before {
  content: counter(custom-counter) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 2rem !important;
  height: 2rem !important;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 8px rgba(35, 91, 200, 0.2) !important;
}

/* 引用文（blockquote） */
.useful-article-body blockquote {
  margin: 2rem 0 !important;
  padding: 1.5rem !important;
  background-color: var(--bg-light) !important;
  border-left: 4px solid #94a3b8 !important;
  color: var(--text-sub) !important;
  font-style: italic !important;
  border-radius: 0.25rem !important;
}

.useful-article-body blockquote p:last-child {
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   フッターエリア・一覧ボタン
   -------------------------------------------------------------------------- */
.useful-footer {
  margin-top: 4rem !important;
  padding-top: 2.5rem !important;
  border-top: 1px solid #e2e8f0 !important;
  text-align: center !important;
}

.useful-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.85rem 2.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%) !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(35, 91, 200, 0.2) !important;
  transition: all 0.3s ease !important;
}

.useful-back-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-hover) 0%, #1a469d 100%) !important;
  box-shadow: 0 8px 25px rgba(35, 91, 200, 0.3) !important;
  transform: translateY(-3px) !important;
  color: #ffffff !important;
}

.useful-back-btn svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin-right: 0.5rem !important;
}
/* ==========================================================================
   No Image画像を完全に中央配置にする設定
   ========================================================================== */

/* No Image画像を正方形の枠内でも縦横中央に配置する */
.custom-center-noimage {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    
    /* 枠いっぱいに引き伸ばして切り取るのではなく、全体が収まるように縮小する */
    object-fit: contain !important; 
    
    /* 正方形の枠に対して、上下も左右も「真ん中」に配置する */
    object-position: center center !important; 
    
    /* 背景に隙間ができる場合は、ここでお好みの背景色（白や薄いグレーなど）を指定できます */
    background-color: transparent !important; 
}


/* ==========================================
 * スマホ用（画面幅768px以下）のNo Image画像調整
 * ========================================== */
@media screen and (max-width: 768px) {
  
  .custom-center-noimage {
    /* スマホの小さな枠内でも「No Image」の文字やロゴが小さくなりすぎないよう、
       ほんの少しだけ引き伸ばして（1.1倍〜1.2倍程度に）見やすく調整する魔法の記述 */
    transform: scale(1.15);
    
    /* 拡大した際、カードの枠線（角丸など）からはみ出さないようにガード */
    overflow: hidden;
    
    /* 元の綺麗な中央配置をスマホでも100%維持 */
    object-fit: contain !important; 
    object-position: center center !important;
  }
}




/* =========================
  写真スライダー共通スタイル
========================= */
.job-sticky-images {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.job-side-image {
  width: 100%;
  height: auto;       /* 固定高さ(400px)だとレスポンシブで崩れやすいためauto推奨 */
  aspect-ratio: 16/9; /* 横長で揃える設定 */
  overflow: hidden;
  border-radius: 8px;
  height: 350px; /* 横並び用に少し高さを調整 */
}

.job-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ★これが重要：どんな比率の画像でも枠に収まる */
    object-position: center; /* 画像の中央部分を表示 */
}

/* =========================
  写真Swiper スライダースタイル
========================= */
.job-slider {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  width: 100%;
  flex-shrink: 0;
}




/* =========================
  求人票内検索
========================= */

/* サイドパネル全体（カード化） */
.new2-job-search-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 100px;
}

/* 見出し */
.new2-panel-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.new2-sub-text {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

/* 検索項目を縦並びに整理 */
.new2-search-col {
    margin-bottom: 15px;
}
.new2-top-detailedsearch-title {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #555;
}

/* セレクトボックスを幅いっぱいにする */
.new2-search-col select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 検索ボタンを強調 */
.new2-search-keyword-full {
    display: flex;
    flex-direction: column; /* 縦並びでシンプルに */
    gap: 10px;
}
.new2-search-keyword-full input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.new2-js-search-trigger {
    background: #fff;              /* 背景を白に */
    color: #f37321;                /* 文字色をオレンジに */
    border: 2px solid #f37321;     /* オレンジの枠線 */
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;     /* 変化を滑らかに */
}

.new2-js-search-trigger:hover {
    background: #f37321;           /* ホバーで背景をオレンジに */
    color: #fff;                   /* ホバーで文字を白に */
}

/* --- サイドパネル用：地域リストの調整 --- */
.new2-region-list {
    margin-bottom: 20px;
}

.new2-region-row {
    margin-bottom: 10px;
}

.new2-region-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 4px;
}

.new2-prefectures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* リンク間の隙間 */
}

.new2-prefectures a {
    font-size: 0.75rem; /* 都道府県を少し小さく */
    color: #666;
    text-decoration: none;
    padding: 2px 4px;
    background: #f4f4f4;
    border-radius: 3px;
}

.new2-prefectures a:hover {
    color: #007bff;
    background: #eef;
}



/* =========================
  写真ドット
========================= */
.swiper-pagination {
  position: relative; /* static から relative に変更 */
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #D7CCC8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #D97757;
  width: 28px;
  border-radius: 5px;
}


/* ==========================================================================
   エントリーページ：クール・直角・ブランドカラー統一スキン（サイドバー最適化版）
   ========================================================================== */

/* フォーム全体のコンテナ調整 */
.entry-form--modern {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

/* 各入力項目の行 */
.entry-form--modern .form-row {
  margin-bottom: 18px;
  width: 100%;
}

/* ----------------------------------------------------------
   1. ラベルと「*」マークの並び（必須を左、テキストを右に）
   ---------------------------------------------------------- */
.entry-form--modern .form-label {
  display: flex !important;
  align-items: center !important; /* 上下中央揃え */
  flex-direction: row !important; /* 必ず横並びにする */
  gap: 4px !important;            /* 「*」と文字の間の隙間 */
  margin-bottom: 8px !important;
  font-weight: bold;
  font-size: 14px;
  line-height: 1 !important;
}

/* 【修正】必須を「*」マークのみに変更（背景なし・色のみ） */
.entry-form--modern .required-badge {
  background: none !important;     /* 囲み・背景を完全に消去 */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  
  color: #6b21a8 !important;       /* ブランドカラーの紫色 */
  font-size: 16px !important;      /* 目立たせるために文字サイズを少し調整 */
  font-weight: bold !important;
  display: inline !important;
  line-height: 1 !important;
}


.entry-form--modern .required-badge {
  text-indent: -9999px !important; /* 元の「必須」というテキストを画面外へ飛ばす */
  width: auto !important;
  height: auto !important;
}

/* ラベルテキスト（氏名、性別など） */
.entry-form--modern .form-label label {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ----------------------------------------------------------
   2. 入力フィールド全般（横幅100%統一）
   ---------------------------------------------------------- */
.entry-form--modern .form-input,
.entry-form--modern .form-select,
.entry-form--modern .form-textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

/* 読み取り専用（応募求人）の背景 */
.entry-form--modern .form-input[readonly] {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* ----------------------------------------------------------
   3. 【超強化版】ラジオボタン（性別・連絡方法）の巨大化・独自デザインを完全粉砕
   ---------------------------------------------------------- */
/* 選択肢全体のコンテナ */
.entry-form--modern .form-selector-radio {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Contact Form 7 の生成するスパン */
.entry-form--modern .form-selector-radio .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

/* 丸と文字を包むlabelタグ */
.entry-form--modern .form-selector-radio label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: normal !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 🚨テーマ独自の「身代わり用のバカデカい丸（擬似要素）」を完全消去 */
.entry-form--modern .form-selector-radio label::before,
.entry-form--modern .form-selector-radio label::after,
.entry-form--modern .form-selector-radio .wpcf7-list-item::before,
.entry-form--modern .form-selector-radio .wpcf7-list-item::after {
  content: none !important;
  display: none !important;
}

/* 🚨本物のラジオボタンを強制リセットして標準サイズで再表示 */
.entry-form--modern .form-selector-radio input[type="radio"] {
  /* 透明化されて身代わりが立っているケースが多いため、透明度を100%に戻す */
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important; /* どこか遠くに飛ばされている位置をリセット */
  
  /* サイズを一般的な16pxに強制固定 */
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  
  /* 拡大（scale）の無効化 */
  transform: none !important;
  zoom: 1 !important;
  box-shadow: none !important;
  
  /* 各種ブラウザの標準の丸を表示 */
  appearance: radio !important;
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
}

/* ----------------------------------------------------------
   4. その他（フッター・確認ボタンなど）
   ---------------------------------------------------------- */
/* reCAPTCHA文言の調整 */
.entry-form--modern .company-recaptcha-note {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 20px 0;
  line-height: 1.5;
}

/* 確認・送信ボタンの調整 */
.entry-form--modern .btn-submit {
  text-align: center;
  margin-top: 20px;
}

.entry-form--modern .submit,
.entry-form--modern .js-back-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.entry-form--modern .submit {
  background: linear-gradient(to right, #4c1d95, #1e3a8a);
  color: #fff;
}

.entry-form--modern .js-back-btn {
  background-color: #e5e7eb;
  color: #374151;
  margin-bottom: 10px;
}

.entry-form--modern .submit:hover,
.entry-form--modern .js-back-btn:hover {
  opacity: 0.9;
}



/* ==========================================================================
   解約アンケート：クール・直角・ブランドカラー統一スキン
   ========================================================================== */
.questionnaire-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: #FFFFFF;
  /* デザインシステム：card-base のルールを完全適用 */
  border: 1px solid rgba(0, 75, 136, 0.15);
  box-shadow: 0 4px 16px rgba(0, 4b, 136, 0.04);
  border-radius: 0 !important; /* 完全直角化 */
}

/* アンケート導入部分文言 */
.questionnaire-intro {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid #e2e8f0; /* クールなライトグレーに変更 */
}
.questionnaire-intro h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a; /* より深い引き締まったグレー */
  line-height: 1.4;
}
.questionnaire-intro p {
  font-size: 14px;
  color: #ef4444; /* 注意書きの警告赤は視認性のために維持 */
  margin-top: 10px;
  font-weight: 700;
}

/* 各設問のブロックレイアウト */
.questionnaire-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px dashed rgba(0, 75, 136, 0.15); /* ブランドカラーの青を透かせた破線に変更 */
}
.questionnaire-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

/* 設問のタイトルラベル */
.questionnaire-label,
.form-label-text {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
  margin-bottom: 14px;
}

/* 必須バッジ：ブランドカラーの紫＆完全直角へ */
.required-badge {
  background: #65318e;
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 0 !important; /* 完全直角化 */
  margin-left: 8px;
  vertical-align: middle;
}

/* テキスト・テキストエリア入力枠 */
.form-input,
.questionnaire-section textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 75, 136, 0.2); /* 境界線を青グレーベースへ */
  border-radius: 0 !important; /* 完全直角化 */
  font-size: 16px;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.form-input:focus,
.questionnaire-section textarea:focus {
  outline: none;
  border-color: #004B88;
  /* メインの青に連動したスマートな影 */
  box-shadow: 0 0 0 3px rgba(0, 75, 136, 0.1);
}

/* --- ラジオボタン & チェックボックスの今風カスタマイズ --- */
.questionnaire-section .wpcf7-list-item {
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 10px;
}

.questionnaire-section .wpcf7-list-item-label {
  position: relative;
  padding-left: 26px;
  color: #475569;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

/* 本体の丸・四角ポチのベース装飾 */
.questionnaire-section .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: all 0.2s ease;
}

/* クールな世界観に基づき、ラジオボタン・チェックボックスともに完全直角の矩形に統一 */
.questionnaire-section .wpcf7-radio .wpcf7-list-item-label::before,
.questionnaire-section .wpcf7-checkbox .wpcf7-list-item-label::before {
  border-radius: 0 !important; /* 丸みを完全排除 */
}

/* ホバー時の枠線変化（メインカラーの青でシャープに反応） */
.questionnaire-section .wpcf7-list-item:hover .wpcf7-list-item-label::before {
  border-color: #004B88;
}

/* チェックされた時のテキストカラー（メインの青へ） */
.questionnaire-section input[type="radio"]:checked + .wpcf7-list-item-label,
.questionnaire-section input[type="checkbox"]:checked + .wpcf7-list-item-label {
  color: #004B88;
  font-weight: 700;
}

/* チェック時の背景色（メインカラーの青） */
.questionnaire-section input[type="radio"]:checked + .wpcf7-list-item-label::before,
.questionnaire-section input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  border-color: #004B88;
  background: #004B88;
}

/* ラジオボタンのチェックマーク（中のパーツをソリッドな正方形「■」型にカスタマイズ） */
.questionnaire-section .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 0 !important; /* 中身も直角化 */
}

/* チェックボックスのチェックマーク（レ点） */
.questionnaire-section .wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(50% - 2px);
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

/* デフォルトのブラウザポチは完全に非表示 */
.questionnaire-section input[type="radio"],
.questionnaire-section input[type="checkbox"] {
  display: none !important;
}

/* --- セレクトボックス（ドロップダウン）のカスタム --- */
.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.select-wrapper select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid rgba(0, 75, 136, 0.2);
  border-radius: 0 !important; /* 完全直角化 */
  font-size: 16px;
  color: #0f172a;
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.select-wrapper select:focus {
  outline: none;
  border-color: #004B88;
  box-shadow: 0 0 0 3px rgba(0, 75, 136, 0.1);
}
/* カスタムの矢印アイコン（シャープなストレートライン） */
.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* --- 送信ボタン（問い合わせ共通ルール） --- */
.questionnaire-submit {
  margin-top: 40px;
}
.questionnaire-submit .submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 0;
  border-radius: 0 !important; /* 完全直角化 */
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* デザインシステム「btn-primary」を完全移植 */
  background: linear-gradient(135deg, #65318e 0%, #004B88 100%);
  color: #ffffff;
  border: none; /* グラデーションを生かすため枠線は無し */
  box-shadow: 0 4px 16px rgba(0, 75, 136, 0.15);
  transition: all 0.2s ease;
  z-index: 1;
}

/* 疑似要素アニメーションは廃止し、デザインシステムのbtn-primary:hoverに厳格準拠 */
.questionnaire-submit .submit::before {
  display: none;
}
.questionnaire-submit .submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 75, 136, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   各ページ用検索バー
   ========================================================================== */
/* 隠れている状態を解除して、常に表示 */
.job-floating-search-css {
  position: relative; /* 固定位置なら fixed にしてください */
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
  max-width: 800px; /* お好みの幅に */
  margin: 20px auto;
}

/* フォームの見た目を整える */
.floating-search-inner {
  display: flex;
  background: #fff;
  border: 1px solid #E6B8A2;
  border-radius: 10px; /* 角を丸く */
  padding: 5px;
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.05);
}

.floating-search-input {
  flex-grow: 1;
  border: none;
  padding: 10px 15px;
  outline: none;
  background: transparent;
  color: #5D4037; /* 入力文字色を濃いブラウンに */
}

.floating-search-icon-btn {
  display: flex;
  align-items: center;
  background: #D97757;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.floating-search-icon-btn:hover {
  background: #C16547; /* ホバー時は少し濃いテラコッタへ */
  transform: translateY(-1px);
}



/* ==========================================
  新プライバシーポリシーの横幅を制限して真ん中に寄せる
   ========================================== */
.u-privacy-contents {
  max-width: 800px;    /* PCで広がっても最大800ピクセルの幅に収める */
  margin: 0 auto;      /* 画面のちょうど真ん中に配置する */
  padding: 0 20px;     /* スマホで見たときに左右に少しだけ隙間を作る */
}
/* ==========================================
 * スマホ用（画面幅768px以下）のプライバシーポリシー調整（デザインシステム統一版）
 * ========================================== */
@media screen and (max-width: 768px) {
  
  /* 1. 全体の上下余白をスマホの画面比率に最適化 */
  .privacy-inner {
    padding: 40px 16px; /* 左右余白を整えてスマートなコンテンツ幅を確保 */
  }

  /* 2. ポリシー内の見出し（h2 / h3）のスマホ用リサイズ ＆ スタイリッシュ化 */
  .privacy-inner h2 {
    font-family: inherit; /* サイト全体のゴシック系フォントを継承 */
    font-[#65318e] text-lg font-bold; /* スタイリッシュな見出し定義 */
    font-size: 1.25rem;   /* スマホで1〜2行にすっきり収まるサイズ */
    font-weight: 700;
    color: #65318e;       /* メインカラーの深みのある紫を適用 */
    margin-top: 36px;     /* 条項ごとの区切りを強調 */
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
    border-bottom: 1px solid #e2e8f0; /* 線をシャープなグレー（slate-200同等）に変更 */
  }

  /* h2の下線左端にアクセントグラデーションを付与（直角デザイン） */
  .privacy-inner h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #65318e 0%, #004B88 100%);
  }

  .privacy-inner h3 {
    font-family: inherit;
    font-size: 1.05rem;   /* h2より一回り小さいスケール */
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a202c;       /* 濃いグレーで読みやすく */
  }

  /* 3. 本文テキスト・箇条書き（ul / li / p）の行間コントロール */
  .privacy-inner p,
  .privacy-inner li {
    font-size: 0.875rem;  /* 約14pxでスマートに表示 */
    line-height: 1.75;    /* ゆったり快適な行間 */
    color: #4a5568;       /* 目に優しい墨色 */
    margin-bottom: 16px;
  }

  /* 箇条書きの左側余白調整 */
  .privacy-inner ul,
  .privacy-inner ol {
    padding-left: 18px;   /* スマホ画面での収まりを最適化 */
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   reCAPTCHA
   ========================================================================== */
/* reCAPTCHA 表示 共通 */
.company-recaptcha-note {
display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* ここで折り返しを許可 */
  gap: 6px;
  width: 90%;      /* 100%から少し減らして左右に余白を作る */
  max-width: 500px; /* PCでの広がりすぎを防ぐ */
  margin: 24px auto 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  word-break: break-all; /* 文字が突き抜けるのを防ぐ */
}

.company-recaptcha-note span,
.company-recaptcha-note a {
display: inline-block; /* inline から変更 */
  word-break: break-all;
}

.company-recaptcha-note a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

/* スマホ向けの調整 */
@media screen and (max-width: 600px) {
  .company-recaptcha-note {
width: 95%;      /* スマホでは画面端ギリギリまで使う */
    font-size: 12px;
    margin: 16px auto 8px;
  }
}

