/* =============================================
   Guidelines（募集要項）
   ============================================= */
.p-page-bg {
    margin-bottom: 0;
    padding-bottom: 80px;
}
.p-guidelines {
    margin-top: -30px;
}
.c-ttl__dots  {
    margin-top: 15px!important;
}
/* ---------- タブ ---------- */
.p-guidelines__tabs {
  display: flex;
  gap: 6px;
  margin-block-end: 0;
}

.p-guidelines__tab {
  flex: 1;
  padding: 1.65rem 1rem;
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  line-height: 1;
}

/* 非アクティブ：ライトブルー15%透過 */
.p-guidelines__tab {
  background: color-mix(in srgb, var(--color-07) 15%, transparent);
  color: var(--font-color);
}

/* アクティブ：常にネイビー（どちらのタブでも同じ） */
.p-guidelines__tab.is-active {
  background: #1c336f;
  color: #fff;
}

/* ---------- リスト ---------- */
.p-guidelines__list {
  list-style: none;
  padding-inline: 20px 18px;
  margin-block: 0;
  padding-block: 60px;
  border: 1px solid #B6C1CF;
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
  background: #fff;
}

/* guidelines専用：c-page-intro2との間隔を詰める */
.p-guidelines .c-page-content {
  margin-block-start: -0.8rem;
}

/* ---------- アイテム ---------- */
.p-guidelines__item {
  position: relative;
}

/* 各アイテム下部に区切り線（最終アイテム含む全件） */
.p-guidelines__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: #B6C1CF;
}

/* 先頭アイテムの上部に区切り線 */
.p-guidelines__item:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: #B6C1CF;
}

/* ---------- リンク ---------- */
.p-guidelines__link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.p-guidelines__link:hover {
  background: #f5f8fd;
}

/* ---------- サムネイル ---------- */
.p-guidelines__thumb {
  position: relative;
  width: 9.625rem; /* 7.5 × 1.15 */
  height: 6.75rem; /* 5 × 1.15 */
  border-radius: 0.3rem;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* アイコン画像をウォーターマークとして背面に表示 */
.p-guidelines__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center right 0rem;
  background-size: 55%;
  opacity: 1;
}

.p-guidelines__thumb.--rhythm {
  background-color: var(--cl-salmon, #e09f93);
}
.p-guidelines__thumb.--rhythm::before {
  background-image: url(/_common/img/guidelines/icon-piano.png);
}

.p-guidelines__thumb.--story {
  background-color: var(--color-03, #7cced2);
}
.p-guidelines__thumb.--story::before {
  background-image: url(/_common/img/guidelines/icon-book.png);
}

.p-guidelines__thumb-title {
  position: relative;
  z-index: 1;
  font-size: 1.075rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  padding-inline: 0.375rem;
  white-space: nowrap;
}

/* ---------- メタ情報 ---------- */
.p-guidelines__meta {
  flex: 1;
  min-width: 0;
}

.p-guidelines__badges {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-block-end: 0.5rem;
}

/* 雇用区分バッジ（正社員など） */
.p-guidelines__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
  line-height: 1.5;
}

.p-guidelines__badge.--type {
  background: var(--color-01);
  color: #fff;
}

/* 勤務地バッジ */
.p-guidelines__location {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--color-01);
  color: var(--color-01);
}

/* 募集タイトル */
.p-guidelines__title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--font-color-03);
  line-height: 1.4;
  margin-block: 0;
}


/* ---------- 矢印 ---------- */
.p-guidelines__arrow {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--font-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-guidelines__arrow::after {
  content: '';
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  rotate: 45deg;
  translate: -0.1rem 0;
}

/* ---------- SP ---------- */
@media (max-width: 768px) {
.c-ttl__dots  {
    margin-top: 15px!important;
}
  .p-guidelines__tabs {
    gap: 6px;
  }

  .p-guidelines__tab {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
  }

  .p-guidelines__link {
    padding: 1rem;
    gap: 0.75rem;
  }

  .p-guidelines__item::after,
  .p-guidelines__item:first-child::before {
    left: 1rem;
    right: 1rem;
  }

  .p-guidelines__list {
    padding-block: 25px;
    padding-inline: 0px 0px;
  }

  .p-guidelines__thumb {
    width: 5rem;
    height: 3.75rem;
  }

  .p-guidelines__thumb-title {
    font-size: 0.55rem;
    white-space: nowrap;
  }

  .p-guidelines__badges {
    flex-wrap: nowrap;      /* バッジを折り返さない */
  }

  .p-guidelines__badge,
  .p-guidelines__location {
    font-size: 0.625rem;    /* 10px：横並び維持のため縮小 */
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
  }

  .p-guidelines__title {
    font-size: 1rem;
  }

  .p-guidelines__arrow {
    width: 1.5rem;
    height: 1.5rem;
  }
}
