/* ----------------------------------------------
slidBox 企業カード（社長ページへのリンク）
---------------------------------------------- */
.p-president-card-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.p-president-card-slider .slick-slide {
  float: none;
  /* height: auto; */
}

.p-president-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: clamp(230px, 22.46vw, 280px);
  width: 100%;
  min-height: 100%;
  margin: 6px 12px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
@media screen and (max-width: 767px) {
  .p-president-card {
    max-width: 400px;
    width: calc(100vw - 32px);
    margin-right: 10px;
    margin-left: 10px;
  }
  .p-president-card:active {
    transform: translateY(-1px) scale(0.98);
  }
}
@media screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .p-president-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(14, 122, 145, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-president-card {
    transition: none;
  }
}

/* ----------------------------------------------
リンク
---------------------------------------------- */
.p-president-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: none;
}

.p-president-card__link:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
}

/* ----------------------------------------------
画像
---------------------------------------------- */
.p-president-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #eef0f2;
}

.p-president-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.18s ease;
}
@media screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .p-president-card:hover .p-president-card__image img {
    filter: brightness(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-president-card__image img {
    transition: none;
  }
}

/* ----------------------------------------------
カード内容
---------------------------------------------- */
.p-president-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--white);
  transition: background 0.18s ease;
}
.p-president-card__link:active ~ .p-president-card__body {
  background: #eefafd;
}
@media (prefers-reduced-motion: reduce) {
  .p-president-card__body {
    transition: none;
  }
}

.p-president-card__identity {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.p-president-card__company {
  margin: 0;
  color: var(--black);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 社長インタビューありの場合のタグ。有料プランのみ表示 */
.p-president-card__interview-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--brand-ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.p-president-card__president {
  margin: 0 0 8px;
  padding: 0;
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-president-card__position {
  margin-right: 0.5em;
}

.p-president-card__issue {
  margin-bottom: 12px;
}

.p-president-card__issue-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  /*min-height: 6.8em;*/
  padding: 0;
  color: #666;
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* 社会課題タグ */
.p-president-card__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  position: relative;
}

.p-president-card__tag-item {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 2px 9px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--white);
  color: var(--brand-ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

.p-president-card__tag {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-president-card__tag-item--location {
  max-width: 100%;
}

.p-president-card__tag-overflow {
  display: none;
  flex: 0 0 auto;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .p-president-card__tag-item--is-mobile-hidden {
    display: none;
  }

  .p-president-card__tag-overflow--visible {
    display: inline-flex;
  }

  .p-president-card__tags--has-overflow .p-president-card__tag-item--location {
    max-width: calc(100% - var(--p-president-card-overflow-reserve, 0px));
  }

  .p-president-card__tag-help-wrap:hover .p-president-card__tooltip,
  .p-president-card__tag-help-wrap:focus-within .p-president-card__tooltip {
    display: none;
  }

  .p-president-card__tag-help-wrap--is-open .p-president-card__tooltip {
    display: block;
  }
}

.p-president-card__tag-help-wrap {
  /* position: relative; */
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
}

/* 社会課題タグの説明ボタン */
.p-president-card__tag-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid var(--brand-ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}
/* .p-president-card__tag-help:focus-visible {
  outline: 1px solid var(--brand-ink);
  outline-offset: 1px;
} */

/* 社会課題タグの説明 */
.p-president-card__tooltip {
  display: none;
  position: absolute;
  /* right: -8px; */
  left: 50%;
  transform: translateX(-50%);
  bottom: 135%;
  z-index: 30;
  /*width: min(230px, calc(100vw - 64px));*/
  max-width: calc(100vw - 32px);
  width: clamp(190px, 18.5vw, 230px);
  padding: 10px 12px;
  border-radius: 8px;
  background: #1c2b30;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.p-president-card__tag-help-wrap:hover .p-president-card__tooltip,
.p-president-card__tag-help-wrap:focus-within .p-president-card__tooltip {
  display: block;
}

.p-president-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-radius: 35px;
  background: var(--black);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

@media screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .p-president-card:hover .p-president-card__cta {
    background: var(--brand-ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-president-card__cta {
    transition: none;
  }
}

/* ----------------------------------------------
学生インタビュー詳細：入社先の大きめカード
---------------------------------------------- */
.p-president-card--featured {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  max-width: 760px;
  min-height: 0;
  margin: 0 auto;
  padding: 32px;
}
@media screen and (max-width: 767px) {
  .p-president-card--featured {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: calc(100vw - 32px);
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
  }
}

.p-president-card--featured:has(> .p-president-card__link:focus-visible),
.p-president-card--featured:active {
  background: #eefafd;
}

.p-president-card--featured > .p-president-card__link:focus-visible ~ .p-president-card__body,
.p-president-card--featured > .p-president-card__link:active ~ .p-president-card__body {
  background: #eefafd;
}

.p-president-card--featured .p-president-card__image {
  flex: 0 0 220px;
  width: 220px;
  border-radius: 10px;
}
@media screen and (max-width: 767px) {
  .p-president-card--featured .p-president-card__image {
    flex-basis: auto;
    width: 100%;
  }

}

.p-president-card--featured .p-president-card__body {
  min-width: 0;
  padding: 0;
  border-radius: 0;
}

.p-president-card--featured .p-president-card__identity {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.p-president-card--featured .p-president-card__company {
  font-size: 2rem;
}
@media screen and (max-width: 767px) {
  .p-president-card--featured .p-president-card__company {
    font-size: 1.8rem;
  }
}

.p-president-card--featured .p-president-card__president {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.p-president-card--featured .p-president-card__issue-text {
  color: #555;
  font-size: 1.4rem;
  line-height: 1.85;
}

.p-president-card--featured  .p-president-card__tags {
  margin-bottom: 16px;
}
@media screen and (max-width: 767px) {
  .p-president-card--featured  .p-president-card__tags {
    margin-bottom: 10px;
  }
}

.p-president-card--featured .p-president-card__cta {
  align-self: flex-start;
  width: auto;
  min-width: 180px;
  padding: 0 30px;
}
@media screen and (max-width: 767px) {
  .p-president-card--featured .p-president-card__cta {
    align-self: flex-start;
    width: auto;
  }
}

/* ----------------------------------------------
企業カード一覧（社長検索結果）
---------------------------------------------- */
.p-president-card-list--result {
  --p-president-card-list-gap: clamp(24px, 1.5vw, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--p-president-card-list-gap);
  margin-bottom: 65px;
}
.p-president-card-list--result > .p-president-card {
  flex: 0 1 100%;
  width: 100%;
  min-height: 0;
  flex-basis: calc((100% - var(--p-president-card-list-gap) - var(--p-president-card-list-gap)) / 3);
  max-width: 280px;
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .p-president-card-list--result {
    --p-president-card-list-gap: 20px;
  }
  .p-president-card-list--result > .p-president-card {
    flex-basis: calc((100% - var(--p-president-card-list-gap)) / 2);
    max-width: none;
  }
}
@media screen and (max-width: 767px) {
  .p-president-card-list--result {
    justify-content: center;
  }
  .p-president-card-list--result > .p-president-card {
    max-width: 400px;
    flex-basis: auto;
  }
}

/* 学生インタビュー詳細：同業界カード一覧 */
.p-president-card-list--voice-related {
  --p-president-card-list-gap: clamp(24px, 1.5vw, 30px);
  display: grid;
  align-items: flex-start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--p-president-card-list-gap);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.p-president-card-list--voice-related.p-president-card-list--voice-end {
  margin-bottom: 65px;
}

.p-president-card-list--voice-related > .p-president-card-list__item {
  width: 100%;
  min-width: 0;
}

.p-president-card-list--voice-related .p-president-card-list__item > .p-president-card {
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .p-president-card-list--voice-related {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .p-president-card-list--voice-related > .p-president-card-list__item {
    flex: 0 0 76%;
    width: 76%;
    max-width: 300px;
    min-height: auto;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 1023px) {
  .p-president-card-list--voice-related.slick-initialized {
    display: block;
    padding: 4px 6px 12px;
    overflow: hidden;
    scroll-snap-type: none;
    scrollbar-width: auto;
  }

  .p-president-card-list--voice-related.slick-initialized .slick-track {
    display: flex;
    align-items: stretch;
  }

  .p-president-card-list--voice-related.slick-initialized .p-president-card-list__item.slick-slide {
    flex: 0 0 auto;
    max-width: none;
    height: auto;
    padding-right: 6px;
    padding-left: 6px;
    padding-bottom: 10px;
    scroll-snap-align: none;
  }
}

@media screen and (max-width: 767px) {
  .p-company-related-cards.slick-initialized .p-president-card-list__item.slick-slide {
    width: calc(100vw - 32px);
    max-width: 400px;
  }
}
