/* ======================================================================
p_career - キャリアページスタイル
====================================================================== */

/* キャリアページ基本スタイル */
.p_career {
  background-color: #f5f5f5;
}

/* ヘッダーエリア改善 */
.p_career .career_mv {
  background: linear-gradient(135deg, rgba(78, 160, 255, 0.1) 0%, rgba(78, 255, 235, 0.1) 100%);
  padding-bottom: 2em;
}

.p_career .career_mv .career_description {
  max-width: 800px;
  margin: 1.5em auto 0;
  text-align: center;
  color: #313131;
  font-size: 1em;
  line-height: 1.8;
}

/* フィルターナビゲーション */
.p_career .career_filter {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 1em 0;
  margin-bottom: 2em;
}

.p_career .career_filter .filter_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.p_career .career_filter .filter_list li {
  margin: 0.5em;
}

.p_career .career_filter .filter_list li a {
  display: block;
  padding: 0.5em 1.2em;
  border-radius: 20px;
  color: #313131;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.p_career .career_filter .filter_list li a:hover,
.p_career .career_filter .filter_list li.active a {
  background: linear-gradient(45deg, #4ea0ff 0%, #4effeb 100%);
  color: #fff;
}

/* カードグリッドレイアウト */
.p_career .career_content {
  padding: 2em 0;
}

.p_career .career_grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2em;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 768px) {
  .p_career .career_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1025px) {
  .p_career .career_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カードデザイン改善 */
.p_career .career_card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin: 0;
  list-style: none;
}

.p_career .career_card:hover,
.p_career .career_card.hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.p_career .career_card .card_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 写真表示の改善 */
.p_career .career_card .thumb_link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.p_career .career_card .thumb_container {
  position: relative;
  overflow: hidden;
  padding-top: 66.67%; /* 3:2のアスペクト比 (よりバランスの良い比率) */
  background-color: #f0f0f0; /* ロード中の背景色 */
}

.p_career .career_card .thumb_container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  animation: shine 2s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.p_career .career_card .thumb_container.loaded::before {
  animation: none;
  opacity: 0;
}

.p_career .career_card .card_thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* 画像の中心を基準に表示 */
  transition: all 0.5s ease;
  opacity: 0;
}

.p_career .career_card .card_thumbnail.loaded {
  opacity: 1;
}

.p_career .career_card:hover .card_thumbnail {
  transform: scale(1.05);
}

/* オーバーレイ効果の追加 */
.p_career .career_card .thumb_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.p_career .career_card:hover .thumb_overlay {
  opacity: 1;
}

.p_career .career_card .category_badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.p_career .career_card .category_badge .badge {
  display: inline-block;
  padding: 0.3em 1em;
  background: linear-gradient(45deg, #4ea0ff 0%, #4effeb 100%);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.p_career .career_card .ttl_hospital_name {
  padding: 1.2em 1.2em 0.8em;
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.4;
  color: #313131;
  transition: color 0.3s ease;
}

.p_career .career_card:hover .ttl_hospital_name {
  color: #4ea0ff;
}

.p_career .career_card .card_content {
  padding: 0 1.2em 1.2em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p_career .career_card .tag_container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.p_career .career_card .tag_item {
  display: inline-block;
  margin: 0 0.5em 0.5em 0;
  padding: 0.2em 0.8em;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 0.8em;
  color: #707070;
}

.p_career .career_card .excerpt_container {
  margin-bottom: 1.5em;
  flex-grow: 1;
}

.p_career .career_card .txt_excerpt {
  font-size: 0.9em;
  line-height: 1.6;
  color: #707070;
  margin: 0;
}

.p_career .career_card .btn_container {
  margin-top: auto;
}

.p_career .read_more_btn {
  margin: 0;
  text-align: center;
}

.p_career .read_more_btn .btn {
  display: inline-block;
  width: 100%;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9em;
  text-align: center;
  transition: all 0.3s ease;
}

/* ページネーションのスタイル改善 */
.p_career .pagination_container {
  margin: 3em 0;
  text-align: center;
}

.p_career .career_pagination {
  display: flex;
  justify-content: center;
}

.p_career .career_pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.3em;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background-color: #fff;
  color: #313131;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.p_career .career_pagination .page-numbers.current,
.p_career .career_pagination .page-numbers:hover {
  background: linear-gradient(45deg, #4ea0ff 0%, #4effeb 100%);
  color: #fff;
}

.p_career .career_pagination .prev,
.p_career .career_pagination .next {
  width: auto;
  padding: 0 1em;
  border-radius: 20px;
}

/* 記事がない場合のメッセージ */
.p_career .no_article_container {
  text-align: center;
  padding: 3em 0;
}

.p_career .no_article {
  font-size: 1.2em;
  color: #707070;
}

/* キャリア特集セクション */
.p_career .career_special {
  background-color: #fff;
  padding: 3em 0;
  margin-top: 3em;
}

.p_career .special_heading {
  text-align: center;
  margin-bottom: 1.5em;
  position: relative;
}

.p_career .special_heading span {
  display: inline-block;
  position: relative;
  padding: 0 2em;
  font-size: 1.5em;
  font-weight: 700;
  color: #313131;
}

.p_career .special_heading span:before,
.p_career .special_heading span:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.5em;
  height: 1px;
  background: linear-gradient(45deg, #4ea0ff 0%, #4effeb 100%);
}

.p_career .special_heading span:before {
  left: 0;
}

.p_career .special_heading span:after {
  right: 0;
}

.p_career .special_content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.p_career .special_content p {
  margin-bottom: 2em;
  color: #707070;
  line-height: 1.8;
}

.p_career .special_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.p_career .special_btn,
.p_career .contact_btn {
  display: inline-block;
  padding: 1em 2em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.p_career .special_btn {
  background: linear-gradient(45deg, #4ea0ff 0%, #4effeb 100%);
  color: #fff;
}

.p_career .contact_btn {
  background-color: #f5f5f5;
  color: #313131;
}

.p_career .special_btn:hover,
.p_career .contact_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ調整 */
@media screen and (max-width: 767px) {
  .p_career .career_mv .career_description {
    font-size: 0.9em;
    padding: 0 1em;
  }

  .p_career .career_filter .filter_list {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5em 1em;
    justify-content: flex-start;
  }

  .p_career .career_filter .filter_list li {
    flex: 0 0 auto;
  }

  .p_career .special_buttons {
    flex-direction: column;
    align-items: center;
  }

  .p_career .special_btn,
  .p_career .contact_btn {
    width: 80%;
  }
} 