/* Column renewal extras: tables, figures, CTA caption, header/footer compat */

/*
 * 関連カードサムネ（A案）
 * styles.css の .article-card__thumbnail は aspect-ratio:16/9 だが、
 * 実写真 img に幅・高さ・object-fit が無く実寸高さで縦に伸びる。
 * 写真は FV / 一覧と同じ cover。アイコンは 40px 中央のまま。
 */
.article-card__thumbnail {
  overflow: hidden;
}

.article-card__thumbnail img:not(.article-card__thumbnail-icon) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__thumbnail img.article-card__thumbnail-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.article-card--small .article-card__thumbnail img.article-card__thumbnail-icon {
  width: 28px;
  height: 28px;
}

/*
 * 関連カードサムネ（A案）
 * styles.css の .article-card__thumbnail は aspect-ratio:16/9 だが、
 * 実写真 img に幅・高さ・object-fit が無く実寸高さで縦に伸びる。
 * 写真は FV / 一覧と同じ cover。アイコンは 40px 中央のまま。
 */
.article-card__thumbnail {
  overflow: hidden;
}

.article-card__thumbnail img:not(.article-card__thumbnail-icon) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__thumbnail img.article-card__thumbnail-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.article-card--small .article-card__thumbnail img.article-card__thumbnail-icon {
  width: 28px;
  height: 28px;
}

/*
 * 一覧カードサムネ
 * styles.css は 140×79 / 202×114 + object-fit:cover 済み。
 * 関連カードと同様、実写真の intrinsic サイズで枠が縦横に伸びないよう
 * 位置指定でも cover を固定する。アイコンは contain のまま。
 */
.article-list-card__thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.article-list-card__thumb img:not(.article-list-card__thumb-icon) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.list-tab,
a.article-card {
  text-decoration: none;
  color: inherit;
}

.list-main {
  max-width: 100%;
  overflow-x: clip;
}

.list-tabs-wrap {
  max-width: 100%;
}

.list-main {
  max-width: 100%;
  overflow-x: clip;
}

.list-tabs-wrap {
  max-width: 100%;
}

.theme-button.is-current {
  cursor: default;
  outline: 2px solid var(--color-interactive-text);
}

.article-figure {
  margin: 16px 0 24px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure__caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--primitive-hematite-400, #888888);
}

.article-table-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 16px 0 24px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
}

.article-table th,
.article-table td {
  border: 1px solid var(--primitive-hematite-100, #e7e7e7);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

/* SP: 列を潰さず、表は横スクロールで確認する */
@media (max-width: 767px) {
  .article-table {
    width: max-content;
    min-width: 100%;
  }

  .article-table th,
  .article-table td {
    white-space: nowrap;
    padding: 12px 14px;
  }
}

.article-table th {
  background: var(--primitive-sapphire-50, #f2f9fd);
  font-weight: 700;
  color: var(--semantic-basictext-primary, #1a1a1a);
}

.article-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.cta-manuscript-copy {
  margin: 0 0 12px;
}

.cta-manuscript-copy__heading {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--semantic-basictext-primary, #1a1a1a);
}

.cta-manuscript-copy__text {
  margin: 0;
  font-size: 14px;
  color: var(--semantic-basictext-secondary, #5d5d5d);
}

a.promotion__banner-link {
  display: block;
  text-decoration: none;
}

a.promotion__banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

.article__paragraph strong {
  font-weight: 700;
}

/* Existing logo header injected into #includeHeader */
#includeHeader .header {
  height: 64px;
  padding: 0 16px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
}
#includeHeader .logo_container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: auto;
}
#includeHeader .logo_container .logo_title {
  margin-top: 13px;
  margin-bottom: 2px;
  font-size: 11px;
  color: #333;
}
#includeHeader .logo_logo_img {
  height: 40px;
}
#includeHeader .header .header_sp {
  display: none;
}
#includeHeader .header .header_pc {
  display: block;
}
@media screen and (max-width: 768px) {
  #includeHeader .header .header_sp {
    display: block;
  }
  #includeHeader .header .header_pc {
    display: none;
  }
  #includeHeader .logo_logo_img {
    height: 26px;
  }
  #includeHeader .logo_container {
    max-width: 200px;
  }
}

/* footer.html inside #includeFooter — win over POC .footer */
.footer_area {
  width: 100%;
}
#includeFooter .footer,
.footer_area .footer {
  width: 100%;
  padding: 32px 16px 38.5px 16px;
  background-color: #165476;
  color: #ffffff;
  font-weight: 300;
  box-sizing: border-box;
}
#includeFooter .footer a,
.footer_area .footer a {
  color: #ffffff;
  text-decoration: none;
}
#includeFooter .footer .logo {
  height: 40px;
  width: auto;
}
#includeFooter .footer .logo_img {
  height: 100%;
  width: auto;
}
@media screen and (min-width: 768px) {
  #includeFooter .footer,
  .footer_area .footer {
    padding: 32px 32px 38.5px 32px;
  }
}
@media screen and (min-width: 1280px) {
  #includeFooter .footer,
  .footer_area .footer {
    padding: 32px 0 46.5px 0;
  }
  #includeFooter .footer_main {
    width: 1080px;
    margin: 0 auto;
  }
}
#includeFooter .footer_main_column {
  margin-top: 24px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px 0;
  font-weight: 300;
}
#includeFooter .footer_second_column {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 0 40px;
}
#includeFooter .footer_second_column > div {
  flex-basis: 50%;
}
#includeFooter .footer_second_column_inner {
  display: flex;
  flex-direction: column;
  gap: 8px 0;
  margin-top: 40px;
}
#includeFooter .footer_second_column_inner:first-child {
  margin-top: 0;
}
#includeFooter .footer_other_column {
  display: flex;
  flex-direction: column;
  gap: 8px 0;
  font-size: 13px;
}
.toyota-author-header {
  width: 100%;
  background: #ececec;
  text-align: center;
  line-height: 0;
}

.toyota-author-header__image {
  display: block;
  width: 100%;
  max-width: 697px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.toyota-author-name {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--semantic-basictext-primary, #1a1a1a);
}

.toyota-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #c10023;
}

.toyota-pager__link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.toyota-pager__link:hover {
  text-decoration: underline;
}

.toyota-figure-grid {
  width: 100%;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toyota-figure-grid__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.toyota-figure-grid__cell img {
  display: block;
  width: 100%;
  height: auto;
}

.toyota-figure--diagram {
  background: #1a1a1a;
  padding: 8px;
}

.toyota-figure--diagram img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 箇条書きを ul/li にしても POC の見た目を維持する */
ul.article-topic-lists__list,
ul.point-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

li.key-point-item {
  list-style: none;
}

#includeFooter .footer .footer_inner a:hover {
  text-decoration: underline;
}
#includeFooter .footer hr {
  border: 0;
  border-top: 1px solid #184662;
  margin: 24px 0;
  width: 100%;
}
#includeFooter .footer .open_icon {
  width: 16px;
  height: 16px;
}
#includeFooter .footer .footer_title {
  font-size: 13px;
  font-weight: 600;
  color: #8ccded;
}
#includeFooter .copyright,
.footer_area .copyright {
  background-color: #165476;
  color: #8ccded;
  font-size: 11px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 124.5px;
}

.article-h4 {
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 8px;
}

.article-h4__title {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--semantic-basictext-primary, #1a1a1a);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-main {
  overflow-x: clip;
  background: var(--columnpage-scoped-bg-base);
}

/*
 * Molecule / ThemeButton (Figma 696:12349)
 * default: 塗り Primitive/White、線 Primitive/Sapphire/200 内側1px、角丸8。
 * hover: 塗り Primitive/Sapphire Alpha/40、線 Sapphire/200。
 * active: 塗り Primitive/Sapphire Alpha/80、線 Sapphire/200。
 * Alpha/40・80 と Sapphire/200 は styles.css 未収録のため extras 限定。
 * hover レイアウト: 高さ68 / 間隔12 / パディング12 / 角丸8 / アイコンは中央揃え。
 */
:root {
  --primitive-sapphire-200: #cce8f6;
  --primitive-sapphire-alpha-40: #e4f0f6;
  --primitive-sapphire-alpha-80: #cce8f6;
}

.theme-button {
  background: var(--primitive-white);
  border: 1px solid var(--primitive-sapphire-200);
  box-shadow: none;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
}

@media (hover: hover) {
  .theme-button:hover {
    background: var(--primitive-sapphire-alpha-40);
  }
}

.theme-button:active {
  background: var(--primitive-sapphire-alpha-80);
}

.theme-button__icon-circle {
  flex-shrink: 0;
  align-self: center;
}

.theme-button--hub {
  min-height: 68px;
  align-items: center;
  padding: 12px;
}

.theme-button__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-button--hub .theme-button__label {
  white-space: normal;
  padding-bottom: 0;
}

.theme-button__count {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--semantic-basictext-secondary, #5d5d5d);
}

/* Top求人CTA: 外枠はFigmaどおり角なし。ボタン自体は角丸のまま */
.richcta,
.richcta__card {
  border-radius: 0;
}

/* TOP RichCTA: Atom/Button-CTA は高さ64・18px・角丸。SPは幅Fill、PCは特典テキスト幅に揃える */
.richcta .cta-button {
  height: 64px;
  border-radius: 9999px;
  max-width: none;
}

.richcta__button-wrap--sp {
  width: 100%;
}

.richcta__button-wrap--sp .cta-button {
  width: 100%;
}

.richcta__button-wrap--wide {
  width: 100%;
}

.richcta__button-wrap--wide .cta-button {
  width: 100%;
}

/* PCの「でガッツリ稼げる！」などをラベルと同じ18pxで出す */
.richcta__benefit-label-sub {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

@media (min-width: 768px) {
  .richcta__photo-container {
    align-items: stretch;
    justify-content: center;
  }

  .richcta__benefits {
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    align-items: stretch;
  }

  .richcta__benefit-list {
    width: 100%;
    max-width: none;
  }

  .richcta__photo-frame {
    width: 280px;
    height: auto;
    min-height: 210px;
    align-self: stretch;
  }

  .richcta__photo-bg {
    top: 16px;
    right: 0;
    left: 16px;
    bottom: 0;
    width: auto;
    height: auto;
  }

  .richcta__photo {
    left: 0;
    top: 0;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: auto;
  }
}

.richcta__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.theme-button:not(.theme-button--hub) {
  min-height: 68px;
  align-items: center;
  padding: 12px;
}

.theme-button:not(.theme-button--hub) .theme-button__label {
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-bottom: 0;
}

.top-theme {
  padding-top: var(--spacing-16);
  background: var(--columnpage-bg-surface);
}

.top-concern {
  background: var(--columnpage-bg-surface);
}

/* SP 1列 / tablet・PC 2列。一覧下部のハブも同じ .theme-grid を使う。 */
.theme-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.theme-grid > .theme-button.is-collapsed {
  display: none;
}

.top-theme .load-more-container,
.list-section-concern .load-more-container {
  padding-top: var(--spacing-16);
}

.top-recommended {
  background: var(--columnpage-bg-surface);
}

.list-tab--selected {
  cursor: default;
}

.article-list__item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

.article-list__item.is-collapsed {
  display: none;
}

.article-list__item:has(+ .article-list__item.is-collapsed) > .article-list__divider {
  display: none;
}

.load-more-container[hidden] {
  display: none;
}

.load-more {
  min-width: 0;
  width: 100%;
  max-width: 500px;
}

.list-tabs-outer[data-tabs-scroll] {
  position: relative;
}

.list-tabs-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms ease;
}

.list-tabs-outer.is-scrollable-start .list-tabs-fade--start,
.list-tabs-outer.is-scrollable-end .list-tabs-fade--end {
  opacity: 1;
}

.list-tabs-fade--start {
  left: 0;
  background: linear-gradient(
    to right,
    var(--columnpage-bg-surface, #fff) 0%,
    color-mix(in srgb, var(--columnpage-bg-surface, #fff) 35%, transparent) 55%,
    transparent 100%
  );
}

.list-tabs-fade--end {
  right: 0;
  background: linear-gradient(
    to left,
    var(--columnpage-bg-surface, #fff) 0%,
    color-mix(in srgb, var(--columnpage-bg-surface, #fff) 35%, transparent) 55%,
    transparent 100%
  );
}

/*
 * 記事詳細: Tablet/PC の左右 padding は 32px。
 * .article / .faq / .promotion は styles.css で切り替え済み。
 * KV直下・関連記事だけ SP の 16px が残っていた。
 */
@media (min-width: 768px) {
  .article-view__content {
    padding-inline: var(--spacing-32);
  }

  .other-article__title,
  .other-article__list {
    padding-inline: var(--spacing-32);
  }
}

/*
 * 32 CTAグループ: 見出し・リードは画像の外。相談画像は原比率のまま幅上限。
 */
.promotion__copy,
.promotion__feature {
  box-sizing: border-box;
  width: 100%;
}

/*
 * CTAセクション = 見出し・リード + 画像。
 * SPは文言幅を画像幅に合わせ中央揃え。PCの二重CTA横並びは維持。
 * じょぶサポのみは画像が max-width:580px のため、文言も同じ幅にする。
 */
@media (max-width: 767px) {
  .promotion > .promotion__copy,
  .list-section-promotion > .promotion__copy,
  .promotion > .promotion__feature,
  .list-section-promotion > .promotion__feature,
  .promotion > .promotion__feature-wrap,
  .list-section-promotion > .promotion__feature-wrap {
    text-align: center;
  }

  .promotion:has(.promotion__banners--dual) > .promotion__copy,
  .list-section-promotion:has(.promotion__banners--dual) > .promotion__copy {
    width: 100%;
    max-width: none;
  }
}

.promotion:has(> .promotion__banners:not(.promotion__banners--dual) > .promotion__banner[data-cta="job-support"]),
.list-section-promotion:has(> .promotion__banners:not(.promotion__banners--dual) > .promotion__banner[data-cta="job-support"]) {
  align-items: center;
}

.promotion:has(> .promotion__banners:not(.promotion__banners--dual) > .promotion__banner[data-cta="job-support"]) > .promotion__copy,
.list-section-promotion:has(> .promotion__banners:not(.promotion__banners--dual) > .promotion__banner[data-cta="job-support"]) > .promotion__copy {
  max-width: 580px;
  text-align: center;
}

.promotion__heading {
  margin: 0 0 8px;
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--semantic-basictext-primary, #1a1a1a);
}

.promotion__lead,
.promotion__feature {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--semantic-basictext-secondary, #5d5d5d);
}

.promotion__feature-wrap {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0;
}

.promotion__feature-link {
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-interactive-text, #1a4b8c);
  text-decoration: underline;
}

.promotion__feature-link:focus-visible {
  outline: 2px solid var(--color-interactive-text, #1a4b8c);
  outline-offset: 3px;
}

.promotion__banners {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-16, 16px);
}

.promotion__banner[data-cta="job-match"] {
  width: 100%;
}

.promotion__banner[data-cta="job-support"] {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
}

.promotion__banner[data-cta="job-support"] a {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: inherit;
}

.promotion__banner[data-cta="job-support"] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1084 / 660;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

/* 二重CTA: /ranking/weekly/ と同じ 2枚グリッド。角丸8px・間隔24px */
.promotion__banners--dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .promotion__banners--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.promotion__banners--dual .promotion__banner,
.promotion__banners--dual .promotion__banner[data-cta="job-match"],
.promotion__banners--dual .promotion__banner[data-cta="job-support"] {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
}

.promotion__banners--dual .promotion__banner a {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: inherit;
}

.promotion__banners--dual .promotion__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1084 / 660;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

.promotion__banner-link:focus-visible,
.promotion .richcta .cta-button:focus-visible,
.list-section-promotion .richcta .cta-button:focus-visible {
  outline: 2px solid var(--color-interactive-text, #1a4b8c);
  outline-offset: 3px;
}

/* 記事・一覧内の求人CTAはTopと同じ幅に揃える */
.promotion .richcta,
.list-section-promotion .richcta {
  width: calc(100% + 2 * var(--spacing-16, 16px));
  margin-inline: calc(-1 * var(--spacing-16, 16px));
}

@media (min-width: 768px) {
  .promotion .richcta,
  .list-section-promotion .richcta {
    width: calc(100% + 2 * var(--spacing-32, 32px));
    margin-inline: calc(-1 * var(--spacing-32, 32px));
  }
}


.promotion:empty,
.list-section-promotion:empty {
  display: none;
}
