@charset "UTF-8";

/* ===================================
 * Job Card Layout
 * ================================= */

/* ===================================
 * Container Styles
 * ================================= */
.c-job-cards-container {
  display: flex;
  max-width: none;
  width: auto;
  margin: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.c-job-cards-grid {
  gap: 7px;
  padding: 8px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
}

.c-job-cards-grid--empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 16px;
  color: #434d5b;
  font-family: 'Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================
 * Job Card Base Style - Mobile First
 * ================================= */
.job-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0px 1px 3px 0px rgba(8, 28, 84, 0.06), 0px 1px 2px -0px rgba(8, 28, 84, 0.08);
  overflow: hidden;
  padding: 4px 4px 10px 4px;
  position: relative;
  margin-bottom: 20px;
  font-family: 'Noto Sans JP','Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================
 * Header Section - Mobile First
 * ================================= */
.job-card__head {
  position: relative;
}

.job-card__head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 8px 70px 8px 8px;
}

.job-card__head-left {
  flex: 1;
}

/* モバイル保存ボタン */
.job-card__save-button-mobile {
  position: absolute;
  top: 16px;
  right: 0px;
}

.job-card__save-button-mobile .favorite-btn {
  border: none;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 44px;
  height: 44px;
}

@media (width < 941px){
  .favorite-icon-inactive{
    height:36px
  }

  .favorite-icon-active{
    height:36px
  }
}

.job-card__save-button-mobile .favorite-btn:hover {
  opacity: 0.7;
}

/* PC版保存ボタン（モバイルでは非表示） */
.job-card__save-button-desktop {
  display: none;
}

/* ===================================
 * Body Section - Mobile First
 * ================================= */
.job-card__body {
  padding: 0 16px;
}

/* タイトルコンテナ */
.job-card__title-container {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  padding-right: 25px;
}

.job-card__title {
  margin-bottom: 0;
  padding: 4px 6px 4px 0px;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}

.job-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #0068b7;
  line-height: 150%;
  margin: 0;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: break-word;
}

.job-card__link {
  text-decoration: none;
}

.job-card__link:hover .job-card__name {
  color: #00a9e0;
  text-decoration: underline;
}

.job-card__company-name {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 150%;
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

.job-card__company-name a {
  color: #333333;
  text-decoration: none;
}

.job-card__company-name a:hover {
  color: #00a9e0;
  text-decoration: underline;
}

/* ===================================
 * Details Section - Mobile First
 * ================================= */
.job-card__details {
  border-top: 1px solid #ced6de;
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.job-card__details-grid {
  display: flex;
  flex-direction: column;
}

.job-card__info-section {
  margin-bottom: 10px;
}

.job-card__info-section:last-child {
  margin-bottom: 0;
}

.job-card__info-section--employee {
  margin-bottom: 10px;
}

/* SP版の従業員数セクションはSPでのみ表示 */
.job-card__info-section--employee-sp {
  display: block;
}

/* PC版の従業員数セクションはSPでは非表示 */
.job-card__info-item--employee-pc {
  display: none;
}

.job-card__info-title {
  font-size: 14px;
  font-weight: 700;
  border-left: solid 3px #002255;
  padding-left: 7px;
  margin: 0 0 10px 0;
  color: #333333;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  align-items: center;
}

.job-card__info-content {
  font-size: 12px;
  margin: 0;
  color: #333333;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ===================================
 * Basic Info Section - Mobile First
 * ================================= */
.job-card__basic-info {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ced6de;
  margin-top: 10px;
  padding-top: 12px;
}

/* モバイルでPC用ラベルを非表示 */
.job-card__info-label--pc {
  display: none;
}

/* 従業員数セクション（モバイル） */
.job-card__info-item--employee {
  display: none;
}

.job-card__info-item--location {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card__info-item--location:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background-image: url(../../image/renew/icon-map-pin.svg);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 2px;
}

.job-card__info-value {
  font-size: 14px;
  color: #333333;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  line-height: 150%;
  display: inline;
}

.job-card__info-item--salary {
  text-align: right;
  font-size: 14px;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: #333333;
  line-height: 150%;
  border: none;
  padding: 0;
  margin: 0;
}

/* ===================================
 * Actions Section - Mobile First
 * ================================= */
.job-card__actions {
  margin-top: 16px;
  padding: 0 16px;
}

.job-card__entry-button {
  width: 100%;
}

.job-card__button--entry {
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999999px;
  border-width: 0px;
  width: calc(64% + 0px);
  margin: 0 auto;
  min-height: 40px;
  background: linear-gradient(90deg, #b37a3f, #714623);
  height: 20px;
  text-decoration: none;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

.job-card__button--entry:hover {
  opacity: 0.7;
}

.job-card__button--entry:after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(../../image/renew/icon-button.svg);
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(0deg);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
}

/* 非活性状態 */
.job-card__button--entry.job-card__button--disabled {
  background: linear-gradient(90deg, #a4a4a4, #6e6e6e);
  cursor: not-allowed;
}

.job-card__button--entry.job-card__button--disabled:hover {
  opacity: 1;
}

/* ===================================
 * Footer Section
 * ================================= */
.job-card__footer {
  display: block; /* 将来的な拡張用 */
}

/* ===================================
 * PC版スタイル - Media Query
 * ================================= */
@media (width >= 941px) {
  /* Container Adjustment */
  .job-card {
    padding: 14px;
    box-shadow: 0px 10px 5px 0px rgba(8, 28, 84, 0.2), 0px 1px 2px -0px rgba(8, 28, 84, 0.08);
  }
  
  /* Header Adjustment */
  .job-card__head-inner {
    padding: 0;
  }
  
  .job-card__save-button-mobile {
    display: none;
  }
  
  /* Body Adjustment */
  .job-card__body {
    padding: 0;
    flex: 1;
  }
  
  /* Title Container Adjustment */
  .job-card__title-container {
    padding-right: 0;
  }
  
  .job-card__title {
    padding: 4px 6px 4px 12px;
  }
  
  .job-card__name {
    font-size: 22px;
  }
  
  .job-card__company-name {
    font-size: 16px;
    margin-left: 12px;
    font-weight: 600;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  }
  
  /* Details Section - PC Grid Layout */
  .job-card__details {
    margin-top: 20px;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 14px;
    border-top: none;
    padding-top: 0;
  }
  
  .job-card__details-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    column-gap: 0;
    row-gap: 0;
    margin-bottom: 14px;
  }
  
  .job-card__info-section--job {
    grid-column: 1 / 3;
    margin-right: 20px;
    margin-bottom: 0;
  }
  
  .job-card__info-section--skills {
    grid-column: 3;
    margin-bottom: 0;
  }
  
  .job-card__info-title {
    font-size: 16px;
    padding-left: 14px;
    margin-bottom: 10px;
    white-space: nowrap;
    height: 1.5em;
  }
  
  .job-card__info-content {
    font-size: 14px;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  
  /* Basic Info Section - PC Grid Layout */
  .job-card__basic-info {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    column-gap: 0;
    row-gap: 0;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .job-card__info-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  
  .job-card__info-item--location {
    grid-column: 1;
    margin-right: 20px;
    align-items: stretch;
  }
  
  .job-card__info-item--location:before {
    display: none;
  }
  
  .job-card__info-item--salary {
    grid-column: 2;
    margin-right: 4px;
    text-align: left;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  
  /* PC版では従来の従業員数レイアウトを表示 */
  .job-card__info-item--employee-pc {
    display: flex;
    grid-column: 3;
  }
  
  /* SP版の従業員数セクションはPCでは非表示 */
  .job-card__info-section--employee-sp {
    display: none;
  }
  
  .job-card__info-label {
    font-size: 16px;
    font-weight: 700;
    border-left: solid 3px #002255;
    padding-left: 14px;
    margin-right: 10px;
    white-space: nowrap;
    height: 1.5em;
    color: #333333;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
  }
  
  .job-card__info-label--pc {
    display: flex;
  }
  
  .job-card__info-value {
    font-size: 16px;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  
  /* Actions Section - PC Layout */
  .job-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 0;
  }
  
  .job-card__save-button-desktop {
    display: block;
    margin-left: auto;
    margin-right: 0;
  }
  
  .job-card__save-button-desktop .favorite-btn {
    border: none;
    background-color: #ffffff;
    cursor: pointer;
    width: 270px;
    position: relative;
    min-width: 80px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #002255;
    font-size: 18px;
    font-weight: 600;
    line-height: 150%;
    border-radius: 999999px;
    border: 1px solid #002255;
    flex-direction: row;
    text-decoration: none;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    padding: 0;
  }
  
  .job-card__save-button-desktop .favorite-btn:hover {
    opacity: 0.7;
  }
  
  .favorite-btn .favorite-icon,
  .favorite-btn .icon-text {
    margin-right: 24px;
  }
  
  .job-card__entry-button {
    width: auto;
    margin-right: auto;
    margin-left: 0;
  }
  
  .job-card__button--entry {
    width: 270px;
    margin: 0;
    height: 40px;
    font-size: 18px;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  }
  
  .job-card__button--entry:after {
    top: calc(50% - 10px);
    right: 12px;
    transform: rotate(0deg);
  }
  
  /* Footer Adjustment */
  .job-card__footer {
    display: flex;
    align-items: start;
    flex-direction: row;
    margin-top: 8px;
  }
}

/* ===================================
 * Salary Details Component
 * ================================= */
.job-card__salary {
  padding: 0 0 0 8px;
  border-left: solid 1px #ced6de;
  font-size: 14px;
}

.salary-details {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

.salary-details__label {
  font-weight: 500;
  font-size: 14px;
}

.salary-details__salary-min,
.salary-details__salary-max {
  font-size: 16px;
  font-weight: 600;
  padding: 0 3px;
}

.salary-details__man-yen {
  font-size: 12px;
  font-weight: 500;
}

.salary-details__separator {
  font-size: 12px;
}

@media (width >= 941px) {
  .job-card__salary {
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
  }
  
  .salary-details__label {
    font-size: 16px;
    font-weight: 700;
    border-left: solid 3px #002255;
    padding-left: 14px;
    margin-right: 10px;
    white-space: nowrap;
    height: 1.5em;
    color: #333333;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
  }
  
  .salary-details__salary-min,
  .salary-details__salary-max,
  .salary-details__man-yen {
    font-size: 16px;
    font-weight: 400;
    align-content: center;
  }
  .salary-details__separator {
    font-size: 14px;
    align-content: center;
  }
}

/* ===================================
 * Empty State
 * ================================= */
.c-job-cards-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 10px 5px 0px rgba(8, 28, 84, 0.2), 0px 1px 2px -0px rgba(8, 28, 84, 0.08);
  margin: 0 auto;
  max-width: 600px;
  font-family: 'Hiragino Sans', 'メイリオ', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

.c-job-cards-empty h2 {
  font-size: 22px;
  color: #333333;
  margin-bottom: 16px;
  font-weight: 600;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

.c-job-cards-empty p {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
}

/* ===================================
 * Search Results No Results
 * ================================= */
.c-search-results__no-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  padding-block: var(--spacing-lg);
  padding-inline: calc(var(--spacing-lg) - 1px);
  background: var(--color-lightest);
  border: 1px solid var(--color-primary);
  @media (width < 768px) {
    padding-block: var(--spacing-md);
    padding-inline: var(--spacing-sm);
  }
  :where(p) {
    line-height: var(--line-height-title);
    color: var(--color-primary);
    text-align: center;
    letter-spacing: 0.05em;
  }
  div.c-button {
    margin-block-end: 0;
    @media (width < 768px) {
      inline-size: 100%;
    }
  }
}

.c-search-results__no-results-title {
  font-size: var(--font-size-20);
  @media (width < 768px) {
    margin-inline: calc(var(--spacing-min) * -1);
  }
}

.c-search-results__no-results-description {
  font-size: var(--font-size-base);
  @media (width < 768px) {
    font-size: var(--font-size-small);
  }
  > :where(span) {
    display: block;
    > :where(span) {
      @media (width < 768px) {
        display: block;
      }
    }
  }
}