/* =====================================================
   原稿ページ 共通CSS（single / jobdetail 用）
   用途：求人詳細ページ全体のレイアウト・装飾
   カラー定義：/css/site-colors.css（サイト全体で共通管理）
===================================================== */
/* =====================================================
   回り込み解除用
   ・float要素の影響を断ち切る
   ・SPフロー直前などで使用
===================================================== */
.sps {
  clear: both !important;
}
/* =====================================================
   原稿ブロック（募集内容・企業情報・PRなど）
   ・白背景カード
   ・枠線あり
===================================================== */
.item-main, .jobdetail {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 20px 0;
  border: var(--site-primary) 2px solid;
}
.item-main h3 {
  margin: 0 auto 10px;
  padding: 0;
}
/* =====================================================
   求人タイトル＋雇用形態（同一バー内）
   HTML: .job-title-bar > .entry-title + .koyo-parent-element
===================================================== */
.job-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 16px 12px 22px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--site-primary) 12%, transparent);
  border-radius: 4px;
}

/* 左側のメインカラーライン */
.job-title-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--site-primary);
  border-radius: 4px 0 0 4px;
}

/* タイトル単体の枠をなくし、バー内で横並びにする */
.job-title-bar .entry-title {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: #303630 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.job-title-bar .entry-title::before,
.job-title-bar .entry-title::after {
  content: none !important;
  display: none !important;
}

/* 従来の雇用形態ラベル*/
.koyo-parent-element {
  display: flex;
  justify-content: flex-end;
}
.koyo {
  background: var(--site-employment) !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  color: #fff;
  padding: 2px 4px !important;
  margin: 10px 2px 10px;
}
/* タイトルバー内の雇用形態 */
.job-title-bar .koyo-parent-element {
  position: static !important;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
.job-title-bar .koyo {
  display: inline-block;
  margin: 0 !important;
  padding: 4px 8px !important;
  line-height: 1.4;
  white-space: nowrap;
}

/* スマホ：タイトルを優先し、雇用形態は右下へ */
@media (max-width: 767px) {
  .job-title-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px 12px 19px;
    margin-bottom: 18px;
  }
  .job-title-bar .entry-title {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  .job-title-bar .koyo-parent-element {
    align-self: flex-end;
  }
}

/* =====================================================
   Slick Slider（画像）
===================================================== */
.single-slider {
  margin: 0 auto 20px;
  text-align: center;
}
.single-slider img {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}
/* lick内に入った動画のズレ対策 */
.single-slider .slick-slide {
  display: flex !important;
  justify-content: center;
}
.single-slider .video-wrapper {
  width: 100%;
}
/* 矢印を見える色に */
.slick-prev::before, .slick-next::before {
  color: var(--site-primary) !important;
}
.slick-dots {
  display: none !important;
}
/* =====================================================
   メインビジュアル動画（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;
}
/* =====================================================
   メインビジュアル下カテゴリ
===================================================== */
.catdes {
  display: inline-block;
}
.catdes ul {
  clear: both;
  display: block;
  margin-left: -20px;
}
.catdes li {
  list-style: none;
  float: left;
  color: var(--site-primary);
  border: var(--site-primary) 1px solid;
  border-bottom-right-radius: 10px;
  padding: 3px 5px;
  margin: 3px;
  font-size: 11px;
  background: #FFFFFF;
}
.catdes li a {
  text-decoration: none;
  color: var(--site-primary);
  font-size: 10px;
  transition: color 0.3s ease;
}
.catdes li:hover {
  background-color: var(--site-primary);
  color: #EEEEEE;
}
.catdes li a:hover {
  color: white;
}
.catdes li:first-child {
  display: none;
}
/* =====================================================
   募集要項テーブル
===================================================== */
.c-table table {
	margin: 0;
}
.c-table th {
  width: 140px !important;
  font-weight: bold;
  background: #F7F6F2;
	text-align: left;
}
/* テーブル内 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: var(--site-primary);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.boshu-body {
	margin-top: 5px;
}
/* =====================================================
   トップキャッチコピー
===================================================== */
.item-main .kyacchikopi {
  color: var(--site-primary);
  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;
}
/* 各ボタン共通 */
.btm {
  width: 50%;
  margin: 5px;
}
/* -----------------------------
   フォーム応募ボタン
----------------------------- */
.btm .form-box {
  background: var(--site-cta);
  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: var(--site-cta-hover);
  box-shadow: 0 0 8px #CFCFCF;
}
.btm .form-box span {
  font-size: 14px;
  background: #FFFFFF;
  color: var(--site-cta);
  border-radius: 5px;
  padding: 5px 8px;
  display: block;
  width: 80%;
  margin: 10px auto;
}
/* -----------------------------
   電話応募ボタン
----------------------------- */
.tel-box {
  background: var(--site-primary);
  color: #FFFFFF;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  height: 110px;
  font-size: 18px;
}
.tel-box span {
  font-size: 14px !important;
  background: #FFFFFF;
  color: var(--site-primary);
  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: 14px;
}
.tel-box .tel-btm1206 a {
  color: #FFFFFF !important;
  text-decoration: none !important;
}
.tel-box:hover {
  background: var(--site-cta-hover);
}
.tel-box a {
  color: var(--site-primary);
  font-weight: bold;
}
.tel-attention {
  width: 50%;
  font-size: 12px;
  color: #272727;
  margin: 0 0 20px auto;
  text-align: center;
}
@media (max-width: 768px) {
  .tel-attention {
    width: 100%;
    margin: 0 0 20px 0;
    text-align: center;
  }
}
/* -----------------------------
   電話応募不可状態
----------------------------- */
.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;
  margin-bottom: 20px;
}
/* アイコン */
.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: 12px;
  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;
}
/*ここまで▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲*/
.flow-app {
  margin: 10px auto 30px;
  counter-reset: flow-step;
}
.flow-app h4 {
  position: relative;
  background: none;
  font-size: 14px;
  line-height: 1.6;
  margin: 5px 0 0 0;
  padding: 0 0 0 25px;
  counter-increment: flow-step;
}
.flow-app h4::before {
  content: counter(flow-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--site-primary);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}
.flow-app p {
  font-size: 14px;
  margin: 0 0 12px 36px;
  line-height: 1.6;
}
/* =====================================================
   原稿内見出し（PRタイトル）
===================================================== */
.nomal h3 {
  background: linear-gradient(transparent 50%, var(--site-marker) 70%);
  font-size: 16px;
  padding-bottom: 2px;
  display: inline;
  margin-bottom: 10px;
}
/* =====================================================
   求人ポイントエリア（PC安定版）
===================================================== */
.summary_area {
  position: relative;
  padding: 10px;
  margin-bottom: 35px;
  box-sizing: border-box;
}
.summary_area .inner_box {
  position: relative; /* ← before の基準 */
  background-color: var(--site-primary);
  box-shadow: 0 0 8px #CFCFCF;
  padding: 12px 16px 12px 80px; /* 左はアイコン分だけ */
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 吹き出しアイコン */
.summary_area .inner_box::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 56px;
  height: 56px;
  background: url(https://kyujin.online/service/wp-content/uploads/2021/12/icon_kyujin_check_bubble-1.png) no-repeat center / contain;
}
/* 見出しテキスト */
.summary_area .inner_box p {
  position: static; /* absolute撤去 */
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}
/* リスト */
.summary_area .inner_box ul {
  background-color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  list-style-position: inside;
  list-style-image: url(https://kyujin.online/service/wp-content/uploads/2021/12/icon_check.png);
  flex: 1;
}
.summary_area .inner_box ul li {
  font-size: 15px;
  line-height: 1.4;
  padding: 4px 0;
  font-weight: bold;
}
@media (max-width: 768px) {
  .summary_area .inner_box {
    position: relative;
    background-color: var(--site-primary);
    box-shadow: 0 0 8px #CFCFCF;
    padding: 12px 16px 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  /* 見出しテキスト */
  .summary_area .inner_box p {
    display: none;
  }
}
/* =====================================================
   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;
}
/* =====================================================
   コンタクトフォーム
===================================================== */
.contact-new-table {
  width: 100%;
  max-width: 800px;
  margin: 50px auto 50px;
  padding: 20px;
  background-color: #fff;
  border: var(--site-primary) 2px solid;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact-new-table h3 {
  font-size: 20px;
  margin-bottom: -30px !important;
}
/* =====================================================
よくある質問
===================================================== */
.qanda h4 {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: none;
}
.qanda {
  font-size: 14px;
}
.qanda-link {
  border: #ded6ca 1px solid;
  background: #fdfcf8;
  padding: 5px 15px;
  display: inline-block;
  border-radius: 5px;
  margin-top: -10px;
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--site-primary);
  font-size: 14px;
}
/* ------------------------------ページトップボタン */
.page-top2 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 40px;
  bottom: 150px;
  width: 50px;
  height: 50px;
  background-color: var(--site-primary);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  z-index: 999999;
}
.page-top2.is-visible {
  opacity: 1;
  visibility: visible;
}
.page-top2::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: -6px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(-45deg);
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-top2 {
    right: 10px;
    bottom: 100px;
  }
}
/* ------------------------------btm-contact（下部の固定バー） */
.btm-contact {
  position: fixed;
  bottom: -90px;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px 40px 80px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
.btm-contact.active {
  transform: translateY(0);
}
.left-contents {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 60%;
}
.left-contents h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}
.left-contents p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}
.left-contents .cat {
  display: flex;
  margin-bottom: 20px;
}
.left-contents .cat span {
  color: #FFFFFF;
  font-size: 10px;
  margin: 5px;
  padding: 1px 5px;
  border-radius: 3px;
}
.left-contents .cat .new {
  background: #fd0001;
}
.left-contents .cat .koyo {
  background: var(--site-primary);
}
.left-contents .cat .area {
  background: #fff;
  color: #696969;
  border: #8888 1px solid;
}
/* 右側のコンテンツ */
.right-contents {
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  width: 40%;
}
.right-contents a {
  display: inline-block;
  padding: 10px 40px;
  color: #fff;
  width: 250px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}
.web-oubo-bg {
  background: var(--site-cta);
}
.tel-oubo-bg {
  background: var(--site-primary);
}
.right-contents a span {
  display: block;
  font-size: 12px;
}
.right-contents a:hover {
  background-color: var(--site-primary-hover);
}
.right-contents a:focus, .right-contents a:active {
  background-color: var(--site-primary-hover);
  outline: none;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .btm-contact {
    bottom: -80px;
    padding: 10px 20x;
  }
  .left-contents {
    display: none;
  }
  .right-contents {
    width: 100%;
  }
  .right-contents a {
    width: 50%;
    padding: 10px 20px;
    margin-right: 5px;
    margin-bottom: 20px;
  }
  .right-contents a span {
    display: none;
  }
}
/* ------------------------------会員登録 */
.login-notice-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--site-primary-soft);
  border: 1px solid var(--site-primary);
  padding: 10px 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 12px;
}
.login-notice-text {
  flex: 1;
}
.login-notice-btn {
  margin-left: 20px;
}
.login-notice-btn .login-btn {
  display: inline-block;
  background-color: var(--site-primary);
  color: #fff;
  padding: 6px 15px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.login-notice-btn .login-btn:hover {
  background-color: var(--site-primary-hover);
}
@media (max-width: 768px) {
  .login-notice-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .login-notice-btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
/* -------------------------------印刷用*/
@media print {
  .page-top2, .btm-contact {
    display: none;
  }
}
/* =========================
   掲載終了メッセージ
========================= */
.job-closed-box {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--site-primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  background: #fff;
}
/* タイトル */
.job-closed-title {
  color: #e01845;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}
/* 説明文 */
.job-closed-text {
  font-size: 14px;
  color: #555;
  margin: 0;
  flex: 1; /* 中央エリアを伸ばす */
}
/* ボタン */
.job-closed-btn {
  background: var(--site-primary);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.job-closed-btn:hover {
  opacity: 0.9;
}
@media (max-width: 768px) {
  .job-closed-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .job-closed-btn {
    align-self: stretch;
    text-align: center;
  }
}
/* =====================================================
   スマホ表示（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;
    text-align: left !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;
  }
}
