/*================================================
アーカイブ一覧
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%;
  display: inline-block;
  border: #f2efe9 1px solid;
}
.main-dtl-list:hover {
  box-shadow: 0 0 8px #CFCFCF;
  color: #424242;
}
.main-dtl-list .head-left {
  float: left;
  width: 45%;
  overflow: hidden;
}
.main-dtl-list .head-right {
  width: 55%;
  float: right;
}
.main-dtl-list .head-left img {
  margin-right: 10px;
  width: 95%;
}
.main-dtl-list .head-left img {
  transition: transform 0.3s ease;
}
.main-dtl-list:hover .head-left img {
  transform: scale(1.1);
}
.main-dtl-list .head-right h3 {
  color: #2BAFA9 !important;
  display: block;
  border-bottom: none;
  margin-right: 10px;
  margin-bottom: 5px;
}
.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 auto;
  margin-right: 10px;
  font-size: 13px !important;
}
.main-dtl-list .head-right .ichiran-shousai table {
  border: none !important;
  font-size: 13px !important;
}
.main-dtl-list .head-right .ichiran-shousai th {
  background: #F7F6F2;
  font-size: 13px !important;
  font-weight: bold;
  width: 100px;
  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: #FDAD2F !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;
}
.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: #2BAFA9;
  border-radius: 10px;
  padding: 5px;
  transition: background-color 0.3s ease;
}
.main-dtl-list .btm .link-bg2 {
  background: #FC5175;
  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: #FDA602;
}
.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: #678E8B;
}
/*oiwai*/
.main-dtl-list .triangle {
  position: relative;
  display: block;
  padding: 2px 5px 2px 5px;
  color: #fff;
  font-size: 13px;
  float: right;
  margin: 3px;
  font-weight: bold;
  background: #D30202;
  box-shadow: 0 2px 0 #CDCDCD;
}
.main-dtl-list .triangle2 {
  position: relative;
  display: block;
  padding: 2px 5px 2px 5px;
  color: #FF0004;
  font-size: 13px;
  float: right;
  margin: 3px;
  font-weight: bold;
  background: #FFED01;
  box-shadow: 0 2px 0 #CDCDCD;
}
.main-dtl-list .triangle3 {
  position: relative;
  display: block;
  padding: 2px 5px 2px 5px;
  color: #FFF;
  font-size: 13px;
  float: right;
  margin: 3px;
  font-weight: bold;
  background: #8BBC9B;
  box-shadow: 0 2px 0 #CDCDCD;
}
.resultcount {
  font-size: 12px;
  margin-bottom: 5px;
}
.resultcount span {
  font-weight: bold;
  font-size: 18px;
  color: #FC0C48;
}
/* リスト全体のスタイル */
.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: #38bfb9 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: #38bfb9;
  font-size: 10px;
  transition: color 0.3s ease;
}
.main-dtl-list .head-left .category-list li:hover {
  background-color: #38bfb9;
  color: #EEEEEE;
}
.main-dtl-list .head-left .category-list li a:hover {
  color: white;
}
/*------------------SP--------------*/
@media screen and (max-width: 560px) {
  .main-dtl-list {
    padding: 10px;
  }
  .main-dtl-list .head-left {
    float: none;
    width: 100%;
  }
  .main-dtl-list .head-right {
    float: none;
    width: 100%;
  }
  .main-dtl-list .head-left img {
    width: 100%;
  }
  .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 {}
.taxonomy-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.taxonomy-list-wrapper {
  padding-bottom: 0;
  margin-bottom: 0;
}
.taxonomy-categories-list {
  margin-bottom: 30px;
}
.taxonomy-categories-list li {
  padding: 5px 10px;
  text-align: center;
  margin-bottom: -15px !important;
}
.taxonomy-categories-list li a {
  color: #11766e;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}
.taxonomy-categories-list li a:hover {
  color: #0073e6;
}
.archive-btm-cont-link {
  display: inline-block;
  border: #f2efe9 1px solid;
  border-radius: 5px;
  margin: 10px 0 !important;
  background: #F9F7F0;
  padding: 10px 20px;
}
.archive-btm-cont-link a {
  color: #11766e;
  font-size: 14px;
  font-weight: bold;
  transition: color 0.3s ease;
  letter-spacing: 0.1em;
}
.archive-btm-cont-link:hover {
  border-color: #11766e;
}
/*------------------------------------
アーカイブ下部
--------------------------------------*/
/* 見出し（related-posts / related-posts2 共通） */
.related-posts h3, .related-posts2 h3 {
  background: #5fbfc0;
  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: #5fbfc0;
}
/* 本文テキストサイズ共通 */
.related-posts-item p, .related-posts .main-dtl-list .explanation {
  font-size: 14px;
}
/*------------------------------------
  型関連記事（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 #73c7c7;
  background-color: #f9fdfa;
  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: #008080;
  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: #5c969a; /* メインのミントグリーン */
  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: #6bb6bb; /* 明るめのミントに変更 */
  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: #6ec6c3; 
  border-color: #6ec6c3;
  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: #2ea4a8;
    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;
    }
}
