/* site-colors.css のカスタムプロパティを参照します。
   site-colors.css をこのCSSより先に読み込んでください。 */
/*================================================
アーカイブ一覧
main-archive.php
main-search.php
archive-btm-tax.php
================================================*/
/*------------------------------------
アーカイブ一覧
--------------------------------------*/
.main-dtl-list {
  background: #FFFFFF;
  margin-bottom: 20px;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
  display: inline-block;
  border: #f2efe9 1px solid;
}
.main-dtl-list:hover {
  box-shadow: 0 0 8px #CFCFCF;
  color: #424242;
}
/* PC・タブレット：画像・動画と求人情報の間に16px確保 */
.main-dtl-list .head-left {
  float: left;
  width: calc(45% - 8px);
  overflow: hidden;
}
.main-dtl-list .head-right {
  float: right;
  width: calc(55% - 8px);
}
.main-dtl-list .head-left img {
  margin-right: 10px;
  width: 95%;
  transition: transform 0.3s ease;
}
.main-dtl-list:hover .head-left img {
  transform: scale(1.1);
}
.main-dtl-list .head-right h3 {
  color: var(--site-primary) !important;
  display: block;
  border-bottom: none;
  margin: 10px 10px 5px 0;
  line-height: 1.2em !important;
}
.main-dtl-list .head-left h3:after, .main-dtl-list .head-left h3:before {
  border-bottom: none;
}
.main-dtl-list .head-right span {
  font-size: 13px !important;
  color: #7F7F7F;
  display: block;
  line-height: 1.2em;
  font-weight: normal;
  margin-bottom: 10px;
  margin-right: 10px;
}
.main-dtl-list .head-right .ichiran-shousai table {
  margin-top: 20px;
  margin-right: 10px;
  border: none !important;
  font-size: 13px !important;
}
.main-dtl-list .head-right .ichiran-shousai th {
  background: var(--site-primary-soft);
  font-size: 13px !important;
  font-weight: bold;
  width: 90px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: #FFFFFF 2px solid;
}
.main-dtl-list .head-right .ichiran-shousai td {
  font-size: 13px !important;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: #FFFFFF 2px solid;
}
.main-dtl-list .head-right .koyo {
  background: var(--site-employment) !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  color: #fff;
  padding: 2px 4px !important;
  float: left !important;
  margin-top: 5px;
  margin-bottom: 5px;
}
.main-dtl-list .btm {
  clear: both;
  width: 100%;
  display: flex;
  gap: 15px;
  margin: 10px auto;
  justify-content: center;
  align-items: center;
  padding-top: 25px;
}
.main-dtl-list .btm .link {
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  display: block;
  margin: 0 auto !important;
  width: 240px;
  text-align: center;
}
.main-dtl-list .btm .link-bg1 {
  background: var(--site-primary);
  border-radius: 10px;
  padding: 5px;
  transition: background-color 0.3s ease;
}
.main-dtl-list .btm .link-bg2 {
  background: var(--site-cta);
  border-radius: 10px;
  padding: 5px;
  transition: background-color 0.3s ease;
}
.main-dtl-list .btm .link-bg1:hover, .main-dtl-list .btm .link-bg2:hover {
  background: var(--site-cta-hover);
}
.main-dtl-list .btm .link a {
  color: #FFFFFF;
  text-align: center;
  font-weight: bold;
}
.main-dtl-list .btm .link a:hover {
  box-shadow: 0 0 8px #CFCFCF;
  background: var(--site-primary-hover);
}
/* ===================================
   求人一覧バッジ
=================================== */
/* 共通 */
.main-dtl-list .triangle, .main-dtl-list .triangle2, .main-dtl-list .triangle3, .main-dtl-list .triangle4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  float: right;
  margin: 3px 4px 6px 0;
  padding: 6px 10px;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: none;
}
/* アイコン共通 */
.main-dtl-list .triangle i, .main-dtl-list .triangle2 i, .main-dtl-list .triangle3 i, .main-dtl-list .triangle4 i {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
/* おすすめ企業：ビビッドブルー */
.main-dtl-list .triangle3 {
  background: #086BD5;
  color: #FFFFFF;
  border-bottom: 3px solid #064BA1;
}
/* 注目：鮮やかなイエロー */
.main-dtl-list .triangle2 {
  background: #FFCC00;
  color: #4D3200;
  border-bottom: 3px solid #D99A00;
}
/* お祝い金：ビビッドピンク */
.main-dtl-list .triangle {
  background: #DE1756;
  color: #FFFFFF;
  border-bottom: 3px solid #A90D3F;
}
/* LINE応募可能：LINE公式グリーン */
.main-dtl-list .triangle4 {
  background: #06C755;
  color: #FFFFFF;
  border-bottom: 3px solid #039B41;
}
/* スマホ */
@media screen and (max-width: 560px) {
  .main-dtl-list .triangle, .main-dtl-list .triangle2, .main-dtl-list .triangle3, .main-dtl-list .triangle4 {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
  }
}
/*====================================
カウント？
====================================*/
.resultcount {
  font-size: 12px;
  margin-bottom: 5px;
}
.resultcount span {
  font-weight: bold;
  font-size: 18px;
  color: var(--site-cta);
}
/*====================================
リスト全体のスタイル
====================================*/
.main-dtl-list .head-left .category-list {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style-type: none;
  gap: 0;
  margin-top: 10px;
  justify-content: flex-start;
}
.main-dtl-list .head-left .category-list li {
  padding: 3px 5px;
  border: var(--site-primary) 1px solid;
  border-bottom-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  margin-bottom: 0;
}
.main-dtl-list .head-left .category-list li a {
  text-decoration: none;
  color: var(--site-primary);
  font-size: 10px;
  transition: color 0.3s ease;
}
.main-dtl-list .head-left .category-list li:hover {
  background-color: var(--site-primary);
  color: #fff;
}
.main-dtl-list .head-left .category-list li:hover a {
  color: #fff;
}
.main-dtl-list .head-left .category-list li a:hover {
  color: white;
}
/*------------------SP：求人カードの幅・配置--------------*/
@media screen and (max-width: 767px) {
  .main-dtl-list {
    display: block;
    width: 100%;
    margin: 10px 0 20px;
    padding: 10px;
    box-sizing: border-box;
  }
  .main-dtl-list .head-left {
    float: none;
    clear: both; /* 上部バッジの回り込みを防ぐ */
    width: 100%;
    overflow: hidden;
  }
  .main-dtl-list .head-right {
    float: none;
    width: 100%;
  }
  .main-dtl-list .head-left > a {
    display: block;
    width: 100%;
  }
  .main-dtl-list .head-left img {
    width: 100%;
    margin-right: 0;
  }
  .main-dtl-list:hover .head-left img {
    transform: none; /* タップ時に拡大しない */
  }
  .main-dtl-list .btm .link {
    width: 160px;
  }
}
/*------------------------------------
アーカイブ下部
--------------------------------------*/
/*こちらも検索されてます職種・エリア*/
.taxonomy-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 20px;
  border: #f2efe9 1px solid;
  background: #FFFFFF;
  border-radius: 10px;
}
.taxonomy-title-wrapper h3 {
  font-size: 24px;
  color: #333;
  margin: 0 !important;
  padding: 0 !important;
}
/* リストのデザイン */
.taxonomy-list-wrapper {
  padding-bottom: 0;
  margin-bottom: 0;
}
.taxonomy-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 30px;
  list-style-type: none;
}
.taxonomy-categories-list li {
  padding: 5px 10px;
  text-align: center;
  margin-bottom: -15px !important;
}
.taxonomy-categories-list li a {
  color: var(--site-primary-hover);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}
.taxonomy-categories-list li a:hover {
  color: var(--site-primary);
}
.archive-btm-cont-link {
  display: inline-block;
  border: #f2efe9 1px solid;
  border-radius: 5px;
  margin: 10px 0 !important;
  background: var(--site-primary-soft);
  padding: 10px 20px;
}
.archive-btm-cont-link a {
  color: var(--site-primary-hover);
  font-size: 14px;
  font-weight: bold;
  transition: color 0.3s ease;
  letter-spacing: 0.1em;
}
.archive-btm-cont-link:hover {
  border-color: var(--site-primary-hover);
}
/*------------------------------------
アーカイブ下部
--------------------------------------*/
/* 見出し（related-posts / related-posts2 共通） */
.related-posts h3, .related-posts2 h3 {
  background: var(--site-primary);
  color: #fff;
  padding: 5px 15px;
}
/* 角丸トーン統一 */
.related-posts, .related-posts-item, .related-posts-thumbnail, .related-posts .main-dtl-list .head-left img {
  border-radius: 10px;
}
/* ブランドカラー共通 */
.related-posts .main-dtl-list h1, .related-posts .tags, .related-posts-item p i {
  color: var(--site-primary);
}
/* 本文テキストサイズ共通 */
.related-posts-item p, .related-posts .main-dtl-list .explanation {
  font-size: 14px;
}
/*=======================================
一覧での動画表示
======================================= */
/* 一覧の動画を少し細め（元の315pxを維持） */
.main-dtl-list .head-left .video-wrapper {
  width: 100%;
  max-width: 315px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  height: auto;
  padding-bottom: 0;
}
.main-dtl-list .video-wrapper .joblist-youtube-thumb, .main-dtl-list .video-wrapper iframe, .main-dtl-list .video-wrapper video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* 求人カードのクリックを優先（YouTubeの操作は詳細ページで） */
.main-dtl-list .video-wrapper iframe {
  pointer-events: none;
}
.main-dtl-list .joblist-thumb {
  display: block;
  max-width: 100%;
  height: auto;
}
/* スマホだけ：動画の315px制限を解除 */
@media screen and (max-width: 767px) {
  /* main-archive.php のインラインCSSよりも優先させる */
  .main-dtl-list .head-left .video-wrapper {
    display: block;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* YouTubeサムネ・iframe・アップロード動画を親幅にフィット */
  .main-dtl-list .video-wrapper .joblist-youtube-thumb,
  .main-dtl-list .video-wrapper iframe,
  .main-dtl-list .video-wrapper video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    border: 0;
  }

  /* 画像だけの求人も横幅100% */
  .main-dtl-list .head-left .joblist-thumb {
    display: block;
    width: 100% !important;
    max-width: none;
    height: auto;
    margin: 0;
  }
}
/*------------------------------------
  型関連記事（related-posts2）
------------------------------------ */
.related-posts2 h3 {
  margin: 30px auto 10px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}
.related-posts-item {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  padding: 10px;
}
.related-posts-item:hover {
  box-shadow: none;
}
.related-posts-item p {
  margin: 10px 0;
  border-bottom: 1px solid #dbdbdb;
}
.related-posts-item h5 {
  font-size: 16px;
  margin: 5px 0;
}
/* サムネ */
.related-posts-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 58%;
  overflow: hidden;
}
.related-posts-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.related-posts-item:hover .related-posts-thumbnail img {
  opacity: 0.5;
}
/* モバイル */
@media (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/*------------------------------------
  コラム関連記事（list型）
------------------------------------ */
.related-posts {
  margin-top: 30px;
  padding: 0 0 20px;
  background: #fff;
}
.related-posts h3 {
  border-radius: 10px 10px 0 0;
}
.related-posts .main-dtl-list {
  border: none;
  margin: 0;
}
.related-posts .main-dtl-list h1 {
  font-size: 18px;
}
.related-posts .main-dtl-list .head-left {
  width: 30%;
}
.related-posts .main-dtl-list .head-right {
  width: 68%;
}
.related-posts .main-dtl-list .date, .related-posts .main-dtl-list .tags {
  font-size: 12px;
  margin-top: 20px;
}
/*------------------------------------
求人が0件の時
--------------------------------------*/
.noresult-box {
  border: 2px solid var(--site-primary);
  background-color: var(--site-primary-soft);
  text-align: center;
  padding: 50px 30px;
  border-radius: 10px;
  margin: 0 auto 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.noresult-text {
  color: var(--site-primary-hover);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}
.noresult-text span {
  color: #d33;
  font-weight: 700;
}
.noresult-sub {
  font-size: 15px;
  color: #555;
  margin-bottom: 35px;
}
.btn-change-condition {
  display: inline-block;
  background-color: var(--site-primary); /* メインのミントグリーン */
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.btn-change-condition:hover {
  background-color: var(--site-primary-hover); /* 明るめのミントに変更 */
  color: #fff; /* 白を維持 */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}
.archivehead-tax {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border: #f2efe9 1px solid;
  background: #FFFFFF;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.archivehead-tax .head-images img {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  max-width: 100%;
  height: auto;
}
/* ============================
   ★ タイトル行（ズレ対策）
   ============================ */
.archivehead-tax .category-title {
  margin: 10px 20px;
  color: #4b4a48;
  /* タイトル行を1行扱いにするため */
  font-size: 0;
  line-height: 0;
}
/* メインタイトル */
.category-title .main-title {
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  color: #4b4a48;
  line-height: 1.3;
  white-space: nowrap;
}
/* サブタイトル */
.category-title .small-sub {
  display: inline-block;
  margin-left: 6px;
  font-size: 14px;
  color: #4b4a48;
  line-height: 1.3;
  white-space: normal;
}
/* 補足見出し */
.archivehead-tax .category-title2 {
  margin: 20px 20px -10px;
  font-size: 24px;
  font-weight: bold;
  color: #4b4a48;
}
/* h2装飾リセット */
.archivehead-tax h2 {
  border-top: none !important;
  border-bottom: none !important;
}
/* ============================
   ページネーション
   ============================ */
.custom-pagination {
  margin: 40px 0;
}
.custom-pagination .page-numbers {
  display: flex;
  gap: 6px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* li は飾らない */
.custom-pagination .page-numbers li {
  margin: 0;
}
/* 共通ボタン */
.custom-pagination .page-numbers a, .custom-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
/* hover */
.custom-pagination .page-numbers a:hover {
  background: #f2f2f2;
}
.custom-pagination .page-numbers .current {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
  font-weight: 600;
  line-height: 1.8 !important;
}
/* … の部分 */
.custom-pagination .page-numbers .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  font-size: 16px;
  pointer-events: none;
}
/* 前へ・次へ */
.custom-pagination .page-numbers .prev, .custom-pagination .page-numbers .next {
  padding: 0 16px;
}
/* ============================
   ★ 説明文（もっと見る）
   ============================ */
.category-description {
  position: relative;
  margin: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}
/* 説明テキスト（省略状態） */
.desc-text {
  position: relative;
  max-height: calc(1.8em * 2);
  overflow: hidden;
  line-height: 1.5;
  transition: max-height 0.3s ease;
}
/* フェード */
.desc-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 90%);
  pointer-events: none;
}
/* 展開時 */
.desc-text.open {
  max-height: none;
}
.desc-text.open::after {
  display: none;
}
/* ============================
   ★ もっと見る / 閉じる
   ============================ */
.desc-toggle-btn {
  position: absolute;
  right: 0;
  bottom: -1.4em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  color: var(--site-primary);
  font-weight: bold;
  cursor: pointer;
}
.desc-toggle-btn:hover {
  text-decoration: underline;
}
/* 初期は閉じる非表示 */
.desc-toggle-btn.close {
  display: none;
}
/* ============================
   ★ SP対応
   ============================ */
@media screen and (max-width: 560px) {
  .archivehead-tax .category-title {
    margin: 5px 5px 0 20px;
    font-size: 0;
    line-height: 0;
  }
  .category-title .main-title {
    font-size: 18px;
    line-height: 1.3;
  }
}
/*------------------------------------
アーカイブ一覧　平均給与
--------------------------------------*/
.salary-summary {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto 20px;
  border: #f2efe9 1px solid;
  text-align: center;
}
.salary-summary h3 {
  margin-bottom: 5px;
  color: #4a4c4d;
  font-size: 16px;
  font-weight: normal;
}
.salary-summary h3 span {
  font-weight: bold;
  font-size: 18px;
}
.salary-summary .salary-item {
  display: inline-block;
  margin-right: 20px;
  text-align: center;
}
.salary-summary .salary-item .salary-label {
  background: var(--site-primary);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 14px;
}
.salary-summary .salary-item .salary-value {
  margin-left: 5px;
  font-weight: bold;
  font-family: "Oswald", serif;
  color: var(--site-primary-hover);
  font-size: 24px;
}
.salary-summary .salary-item .priceen {
  font-size: 14px;
  font-weight: normal;
  color: #6F6F6F;
  margin-left: 3px;
}
@media screen and (max-width: 560px) {
  .salary-summary {
    padding: 10px 5px;
  }
  .salary-summary h3 span {
    font-size: 16px;
  }
  .salary-summary .salary-item {
    display: inline-block;
    margin-right: 5px;
    text-align: left;
    width: 48%;
  }
  .salary-summary .salary-item .salary-label {
    font-size: 10px;
  }
  .salary-summary .salary-item .salary-value {
    margin-left: 5px;
    font-weight: bold;
    font-family: "Oswald", serif;
    color: var(--site-primary-hover);
    font-size: 16px;
  }
  .salary-summary .salary-item .priceen {
    font-size: 14px;
    font-weight: normal;
    color: #6F6F6F;
    margin-left: 3px;
  }
}