/* =====================================================
   原稿ページ 共通CSS（single / jobdetail 用）
   用途：求人詳細ページ全体のレイアウト・装飾
   注意：Lightning G3 / 子テーマ前提
===================================================== */
/* =====================================================
   回り込み解除用
   ・float要素の影響を断ち切る
   ・SPフロー直前などで使用
===================================================== */
.sps {
  clear: both !important;
}
/* =====================================================
   原稿ブロック（募集内容・企業情報・PRなど）
   ・白背景カード
   ・枠線あり
===================================================== */
.item-main, .jobdetail {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 20px 0;
  border: #62BEC8 2px solid;
}
/* =====================================================
   雇用形態ラベル（タイトル右上）
   ・正社員 / アルバイト 等
===================================================== */
.koyo-parent-element {
  display: flex;
  justify-content: flex-end;
}
.koyo {
  background: #FDAD2F !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  color: #fff;
  padding: 2px 4px !important;
  margin: -10px 2px 10px;
}
/* =====================================================
   Slick Slider（画像）
===================================================== */
.single-slider {
  margin: 0 auto 20px;
  text-align: center;
}
.single-slider img {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

/* =====================================================
   メインビジュアル動画（YouTube / mp4 共通）
===================================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;  
  margin: 0 auto;
  padding-top: 56.25%; 
  overflow: hidden;
}

/* mp4 */
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube iframe（←これが足りてなかった） */
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   Slick内に入った動画のズレ対策
===================================================== */
.single-slider .slick-slide {
  display: flex !important;
  justify-content: center;
}

.single-slider .video-wrapper {
  width: 100%;
}
/* =====================================================
   メインビジュアル下カテゴリ
===================================================== */
.catdes {
  display: inline-block;
}
.catdes ul {
  clear: both;
  display: block;
  margin-left: -20px;
}
.catdes li {
  list-style: none;
  float: left;
  color: #38bfb9;
  border: #38bfb9 1px solid;
  border-bottom-right-radius: 10px;
  padding: 3px 5px;
  margin: 3px;
  font-size: 11px;
  background: #FFFFFF;
}
.catdes li a {
  text-decoration: none;
  color: #38bfb9;
  font-size: 10px;
  transition: color 0.3s ease;
}
.catdes li:hover {
  background-color: #38bfb9;
  color: #EEEEEE;
}
.catdes li a:hover {
  color: white;
}
.catdes li:first-child {
  display: none;
}
/* =====================================================
   募集要項テーブル
===================================================== */
.c-table th {
  width: 140px !important;
  font-weight: bold;
  background: #F7F6F2;
}
/* テーブル内 iframe（地図など） */
.item-main td iframe {
  height: 250px !important;
}
.jobdetail table {
  border: none;
}
.c-table iframe {
  height: 200px;
  max-width: 100%;
}
/* FontAwesome アイコン用 */
.c-table td i {
  color: #69c6d9;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
/* =====================================================
   トップキャッチコピー
===================================================== */
.item-main .kyacchikopi {
  color: #64BFC0;
  font-weight: bold;
  font-size: 120%;
}
/* =====================================================
   PR本文（ノーマルPRコメント）
===================================================== */
.item-main .nomal {
  margin-top: 30px;
  font-size: 14px;
}
/* 画像ホバー拡大 */
.item-main .nomal a img {
  transition: transform 0.3s ease;
}
.item-main .nomal a:hover img {
  transform: scale(1.1);
}
/* WordPress動画ブロック */
.item-main .nomal .wp-video, .item-main .nomal video {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}
/* =====================================================
   応募ボタンエリア（フォーム / 電話）
   ・PC：横並び
   ・SP：縦並び
===================================================== */
.btm-wrap {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
/* 各ボタン共通 */
.btm {
  width: 50%;
  margin: 5px 5px 30px 5px;
}
/* -----------------------------
   フォーム応募ボタン
----------------------------- */
.btm .form-box {
  background: #FF5175;
  color: #FFFFFF;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  display: block;
  font-size: 18px;
  letter-spacing: 0.2em;
  height: 110px;
}
.btm .form-box:hover {
  background: #FFA600;
  box-shadow: 0 0 8px #CFCFCF;
}
.btm .form-box span {
  font-size: 10px;
  background: #FFFFFF;
  color: #FF5175;
  border-radius: 5px;
  padding: 5px 8px;
  display: block;
  width: 80%;
  margin: 10px auto;
}
/* -----------------------------
   電話応募ボタン
----------------------------- */
.tel-box {
  background: #5FBFC0;
  color: #FFFFFF;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  height: 110px;
  font-size: 18px;
  letter-spacing: 0.1em;
}
.tel-box span {
  font-size: 14px;
  background: #FFFFFF;
  color: #5FBFC0;
  border-radius: 5px;
  padding: 5px 8px;
  display: block;
  width: 70%;
  margin: 10px auto 0;
  font-weight: bold;
}
.tel-box .tel-btm1206 {
  background: none;
  color: #FFFFFF;
  font-size: 12px;
}
.tel-box .tel-btm1206 a {
  color: #FFFFFF !important;
  text-decoration: none !important;
}
.tel-box:hover {
  background: #FFA600;
}
.tel-box a {
  color: #5FBFC0;
  font-weight: bold;
}
/* -----------------------------
   電話応募不可状態
----------------------------- */
.tel-box.tel-disabled {
  background: #cccccc;
  color: #ffffff;
  opacity: 0.7;
  cursor: not-allowed;

  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦中央 */
  align-items: center;     /* 横中央 */
  text-align: center;

  height: 110px;
}

/* アイコン */
.tel-box.tel-disabled i {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffffff;
}

/* テキスト（← 白枠なし） */
.tel-box.tel-disabled .tel-disabled-text {
  background: none;     /* ← これ */
  padding: 0;           /* ← これ */
  border-radius: 0;     /* ← これ */
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

/* クリック無効 */
.btm-disabled a {
  pointer-events: none;
}

/* hoverでも変化させない */
.tel-box.tel-disabled:hover {
  background: #cccccc;
}
/* =====================================================
   応募〜選考までの流れ
===================================================== */
.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.flow h4 {
  font-size: 14px !important;
  background: none !important;
  margin: 20px auto 0 !important;
}
.flow div {
  width: 50%;
}
.flow p {
  font-size: 14px;
}
.flow .flow-sp {
  display: none;
}
.flow .flow-pc {
  display: inline-block;
}
/* =====================================================
   原稿内見出し（PRタイトル）
===================================================== */
.nomal h3 {
  background: linear-gradient(transparent 50%, #FFE148 70%);
  font-size: 16px;
  padding-bottom: 2px;
  display: inline;
  margin-bottom: 10px;
}
/* =====================================================
   求人ポイントエリア
===================================================== */
.summary_area {
  position: relative;
  padding: 10px;
  margin-bottom: 35px;
  box-sizing: border-box;
}
.summary_area .inner_box {
  background-color: #5FBFC0;
  box-shadow: 0 0 8px #CFCFCF;
  padding: 4px 15px 4px 160px;
  border-radius: 6px;
}
/* 吹き出しアイコン */
.summary_area .inner_box::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -32px;
  width: 60px;
  height: 60px;
  background: url(https://kyujin.online/service/wp-content/uploads/2021/12/icon_kyujin_check_bubble-1.png) no-repeat center / 60px auto;
}
.summary_area .inner_box p {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}
.summary_area .inner_box ul {
  background-color: #ffffff;
  padding: 3px 20px;
  border-radius: 4px;
  list-style-position: inside;
  list-style-image: url(https://kyujin.online/service/wp-content/uploads/2021/12/icon_check.png);
}
.summary_area .inner_box ul li {
  font-size: 15px;
  line-height: 1.3;
  padding: 5px;
  font-weight: bold;
}
/* =====================================================
   Contact Form 7
===================================================== */
.cf7 {
  max-width: 100%;
  box-sizing: border-box;
}
.cf7 dt i {
  margin-right: .5em;
}
.cf7 dd {
  margin-bottom: 2vh;
}
.cf7 .rqd {
  color: #ff6666;
  font-size: .8em;
  margin-left: .5em;
}
.btn_cf7 {
  text-align: center;
}
.btn_cf7 input {
  width: 100%;
}
/* =====================================================
   CF7 エラーメッセージ
===================================================== */
.wpcf7-not-valid-tip {
  background: #FD0200;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}
.wpcf7-response-output {
  display: none;
}
/* =====================================================
   スマホ表示（560px以下）
===================================================== */
@media screen and (max-width: 560px) {
  .single-slider img {
    max-width: 100%;
  }
  /* 16:9 → 少し横長寄りに */
  .video-wrapper {
    padding-top: 56.25%; 
    max-height: 60vw; 
  }

  /* iframe / video 共通 */
  .video-wrapper iframe,
  .video-wrapper video {
    object-fit: contain;
  }

  .item-main, .jobdetail {
    padding: 10px;
  }
  /* テーブル縦積み */
  .c-table, .c-table th, .c-table td {
    width: 100% !important;
    display: block !important;
    font-size: 14px !important;
  }
  /* 応募ボタン縦並び */
  .btm-wrap {
    display: block;
  }
  .btm {
    width: 100%;
    margin-bottom: 20px;
  }
  /* フロー画像切替 */
  .flow div {
    width: 100%;
  }
  .flow .flow-sp {
    display: block;
  }
  .flow .flow-pc {
    display: none;
  }
}