/* recruit/media - article pages */
.body-container {
  width: 80%;
  max-width: 1216px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .body-container {
    width: 100%;
  }
}

.breadcrumb {
  height: 18px;
  width: 100%;
  margin: 24px auto;
}

@media screen and (max-width: 1200px) {
  .breadcrumb {
    display: none;
  }
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  font-size: 12px;
  color: #667085;
}

.breadcrumb-item a {
  color: #3F6ECC;
  text-decoration: none;
}

.hero {
  width: 100%;
  margin: 24px auto;
}

.hero img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1200px) {
  .hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* layout */

div.container { 
  width: 100%;
  padding: 0;
  display: flex;
  gap: 64px;
  margin: 40px auto 80px;
}

@media (max-width: 1200px) {
  div.container {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (max-width: 1200px) {
  .article-hero-container {
    padding: 0 32px;
  }
}

.article-hero {
  width: 100%;
  margin-top: 40px;
}

@media screen and (max-width: 1200px) {
  .article-hero {
    margin-top: 80px;
  }
}

.article-hero-inner {
  max-width: 1216px;
  width: 100%;
  margin: 0 auto;
}

/* 上部メタ */
.article-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.article-hero-category-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 8px;
}

.article-category {
  display: inline-block;
  background: #5b63f6;
  color: #fff;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  margin-right: 0;
}
.article-category:hover {
  color: #fff;
  opacity: 0.9;
}

.article-date {
  color: #828282;
  font-size: 14px;
}

/* タイトル */
.article-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0;
}

@media screen and (max-width: 1200px) {
  .article-hero-title {
    font-size: 24px;
  }
}

.article-hero-description {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* タグ */
.article-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 8px;
}

.article-hero-tags a {
  border: 1px solid #E0E0E0;
  display: inline-block;
  background: #fff;
  color: #4F4F4F;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.article-hero-tags a:hover {
  color: #4F4F4F;
  border-color: #5b63f6;
  background: #f0f0ff;
}

/* article */
.article {
  height: fit-content;
  width: 832px;
  width: 67.76%;
  background: #fff;
  padding: 32px 36px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

@media (max-width: 1200px) {
  .article {
    padding: 32px 24px;
    width: 100%;
  }
}

.badge {
  display: inline-block;
  background: #e5e9ff;
  color: #4b5cff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.codex-editor__redactor {
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* Editor.js が編集用に付与するインライン padding-bottom を表示画面では不要 */
  padding-bottom: 0 !important;
}

@media (max-width: 1200px) {
  .codex-editor__redactor {
    gap: 24px;
  }
}

.article .ce-block__content {
  margin: 0;
  max-width: unset;
}

.article .ce-paragraph,
.article p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  padding: 0;
}

@media (max-width: 1200px) {
  .article .ce-paragraph,
  .article p {
    font-size: 16px;
  }
}

.article .image-tool__image {
  margin: 0;
}

.article .image-tool--caption {
  padding-bottom: 0;
}

.article .image-tool__caption {
  position: static;
}

.article img {
  width: 100%;
  margin: 16px 0;
  border-radius: 0;
}

.article h1 {
  font-size: 27px;
  font-weight: bold;
  line-height: 1.4;
  padding: 0;
}

@media (max-width: 1200px) {
  .article h1 {
    font-size: 24px;
  }
}

.article h2 {
  background-color: #F2F2F2;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  padding: 16px 24px;
}

@media (max-width: 1200px) {
  .article h2 {
    font-size: 21px;
  }
}

.article h3 {
  font-size: 21px;
  font-weight: bold;
  line-height: 2;
  padding: 0 0 0 19px;
  border-left: 5px solid #000;
}

@media (max-width: 1200px) {
  .article h3 {
    font-size: 18px;
  }
}

/* sidebar */
.sidebar {
  width: 320px;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 100%;
  }
}

.sidebar .widget {
  background: #fff;
  padding: 24px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}
.widget h4 {
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: bold;
}
.recommend-articles {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}
.recommend-title {
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 16px;
}

.recommend-card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1200px) {
  .recommend-card-list {
    flex-direction: row;
  }
}

@media (max-width: 801px ) {
    .recommend-card-list {
        flex-direction: column;
    }
}

/* card */
.recommend-card {
  width: 100%;
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .recommend-card {
    width: 50%;
  }
}

@media (max-width: 801px ) {
  .recommend-card {
     width: 100%;
  }
}

/* image */
.recommend-image {
  width: 100%;
  border-radius: 10px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .recommend-card-list {
    height: unset;
  }
}

/* meta */
.recommend-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.recommend-category {
  background: #5b63f6;
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}
.recommend-date {
  font-size: 14px;
  color: #999;
}
/* title */
.recommend-heading {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .recommend-heading {
    font-size: 16px;
  }
}

.recommend-tags {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 8px;
}

/* tags */
.recommend-tags span {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #555;
}

.widget ul li {
    list-style: none;
    border-bottom: 1px solid #BDBDBD;
  }

  .widget ul li a {
    font-size: 18px;
    font-weight: bold;
    display: block;
    padding: 16px;
    text-decoration: none;
    color: #5b5ff0;
    cursor: pointer;
    position: relative;
  }

  .widget ul li a::after {
    content: '';
    width: 25px;
    height: 25px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 21C17.2 21 21 17.2 21 12.5C21 7.8 17.2 4 12.5 4C7.8 4 4 7.8 4 12.5C4 17.2 7.8 21 12.5 21ZM12.5 5C16.65 5 20 8.35 20 12.5C20 16.65 16.65 20 12.5 20C8.35 20 5 16.65 5 12.5C5 8.35 8.35 5 12.5 5Z' fill='%235C59E8'/%3E%3Cpath d='M12.3531 17.3504L17.2031 12.5004L12.3531 7.65039L11.6531 8.35039L15.8031 12.5004L11.6531 16.6504L12.3531 17.3504Z' fill='%235C59E8'/%3E%3Cpath d='M16.5 12H8V13H16.5V12Z' fill='%235C59E8'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
  }

  .widget ul li a.selected {
    background: #e5e6ff;
    border-radius: 0;
    color: #444;
  }

  .widget ul li a.selected::after {
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 21C17.2 21 21 17.2 21 12.5C21 7.8 17.2 4 12.5 4C7.8 4 4 7.8 4 12.5C4 17.2 7.8 21 12.5 21ZM12.5 5C16.65 5 20 8.35 20 12.5C20 16.65 16.65 20 12.5 20C8.35 20 5 16.65 5 12.5C5 8.35 8.35 5 12.5 5Z' fill='%23444'/%3E%3Cpath d='M12.3531 17.3504L17.2031 12.5004L12.3531 7.65039L11.6531 8.35039L15.8031 12.5004L11.6531 16.6504L12.3531 17.3504Z' fill='%23444'/%3E%3Cpath d='M16.5 12H8V13H16.5V12Z' fill='%23444'/%3E%3C/svg%3E") no-repeat center center;
  }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 8px;
}

.tag-list span,
.tag-list a.tag-list-link {
  display: inline-block;
  background: white;
  border: 1px solid #E0E0E0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  text-decoration: none;
  color: inherit;
}
.tag-list a.tag-list-link:hover {
  border-color: #5b63f6;
  color: #5b5ff0;
}

/* Override Editor.js standard style to remove margin-right on .codex-editor__redactor when .codex-editor--narrow and min-width:651px */
@media (min-width: 651px) {
  .codex-editor--narrow .codex-editor__redactor {
    margin-right: 0 !important;
  }
}

/* recruit/media - index (list) page */
body {
    overflow-x: hidden;
  }

  @media (max-width: 768px) {
    .main-article.container {
      width: 100%;
      padding: 0;
      margin: 0;
    }
  }

  div.container {
    max-width: 1216px;
    width: 1216px;
    margin: 80px auto !important;
    display: flex;
    padding: 0;
    gap: 64px;
  }

  @media (max-width: 1200px) {
    div.container {
      width: 90%;
      margin: 80px auto 0;
      flex-direction: column;
      gap: 80px;
    }
  }

  @media (max-width: 768px) {
    .main-article .main-article-content {
      position: relative;
      width: 85.1%;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  @media (max-width: 768px) {
    .main-article-content .site-hero__text-wrapper-container {
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  @media (max-width: 1024px) {
    .card-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }

  .card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  }

  .card img {
    width: 100%;
    display: block;
    max-height: 200px;
    height: auto;
    object-fit: cover;
  }

  .card-body {
    padding: 24px;
  }

  .badge {
    display: inline-block;
    background: #5b5ff0;
    color: #fff;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
  }

  main .main-article {
    position: relative;
    max-width: unset;
    width: 100%;
    display: flex;
    align-items: end;
  }
  @media (max-width: 1200px) {
    main .main-article {
      min-height: auto;
      align-items: start;
      flex-wrap: wrap;
    }
  }

  .main-article-image {
    width: 100%;
  }

  .main-article-image img {
    object-fit: contain;
    width: 100%;
  }

  .main-article-content {
    position: relative;
    z-index: 1;
    position: absolute;
    top: 31.3rem;
    left: 11.2rem;
  }

  @media (max-width: 1024px) {
    .main-article-content {
      left: 4rem;
    }
  }

  .main-article-badge-container {
    widtH: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 8px;
    margin-bottom: 16px;
  }

  @media (max-width: 768px) {
    .main-article-badge-container {
      margin-bottom: 0;
    }
  }

  .main-article-badge {
    display: inline-block;
    background: #5C59E8;
    color: #fff;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 0;
    font-weight: 500;
  }

  .main-article-title {
    background-color: white;
    padding: 10px 24px;
    margin-bottom: 16px;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 5%;
  }

  @media (max-width: 768px) {
    .main-article-title {
      font-size: 24px;
      padding: 10px 27px;
      margin-bottom: 0;
    }
  }

  .main-article-tags {
    display: inline-block;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    margin-bottom: 16px;
    color: #4F4F4F;
    font-size: 16px;
    padding: 4px 12px;
    font-weight: 500;
  }

  .main-article-time {
    padding: 4px 12px;
    background-color: white;
    color: black;
    font-size: 14px;
    font-weight: 700;
  }

  .card-body time {
    font-size: 14px;
    color: #828282;
    float: right;
  }

  .card-body h3 {
    font-size: 21px;
    margin: 0 0 8px 0;
    white-space: pre-line;
  }

  .card-body h3 a {
    color: #333;
    text-decoration: none;
  }

  .card-body h3 a:hover {
    color: #5b5ff0;
  }

  .card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 16px;
  }

  .tags span {
    font-size: 14px;
    color: #4F4F4F;
    border: 1px solid #E0E0E0;
    padding: 4px 12px;
    border-radius: 999px;
    margin-right: 8px;
  }

  .sidebar {
    width: 320px;
  }

  @media (max-width: 1200px) {
    .sidebar {
      width: 100%;
    }
  }

  .content {
    width: 832px;
  }

  @media (max-width: 1200px) {
    .content {
      width: 100%;
    }
  }

  .sidebar .widget {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  }

  .widget h4 {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 16px;
  }

  .widget ul li {
    list-style: none;
    border-bottom: 1px solid #BDBDBD;
  }

  .widget ul li a {
    font-size: 18px;
    font-weight: bold;
    display: block;
    padding: 16px;
    text-decoration: none;
    color: #5b5ff0;
    cursor: pointer;
    position: relative;
  }

  .widget ul li a::after {
    content: '';
    width: 25px;
    height: 25px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 21C17.2 21 21 17.2 21 12.5C21 7.8 17.2 4 12.5 4C7.8 4 4 7.8 4 12.5C4 17.2 7.8 21 12.5 21ZM12.5 5C16.65 5 20 8.35 20 12.5C20 16.65 16.65 20 12.5 20C8.35 20 5 16.65 5 12.5C5 8.35 8.35 5 12.5 5Z' fill='%235C59E8'/%3E%3Cpath d='M12.3531 17.3504L17.2031 12.5004L12.3531 7.65039L11.6531 8.35039L15.8031 12.5004L11.6531 16.6504L12.3531 17.3504Z' fill='%235C59E8'/%3E%3Cpath d='M16.5 12H8V13H16.5V12Z' fill='%235C59E8'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
  }

  .widget ul li a.selected {
    background: #e5e6ff;
    border-radius: 0;
    color: #444;
  }

  .widget ul li a.selected::after {
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 21C17.2 21 21 17.2 21 12.5C21 7.8 17.2 4 12.5 4C7.8 4 4 7.8 4 12.5C4 17.2 7.8 21 12.5 21ZM12.5 5C16.65 5 20 8.35 20 12.5C20 16.65 16.65 20 12.5 20C8.35 20 5 16.65 5 12.5C5 8.35 8.35 5 12.5 5Z' fill='%23444'/%3E%3Cpath d='M12.3531 17.3504L17.2031 12.5004L12.3531 7.65039L11.6531 8.35039L15.8031 12.5004L11.6531 16.6504L12.3531 17.3504Z' fill='%23444'/%3E%3Cpath d='M16.5 12H8V13H16.5V12Z' fill='%23444'/%3E%3C/svg%3E") no-repeat center center;
  }

  .tag-cloud span {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    background: white;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #E0E0E0;
    transition: background .2s, color .2s;
    margin-bottom: 8px;
  }

  .tag-cloud span.selected {
    background: #5b5ff0 !important;
    color: #fff;
  }

  #js-filter-reset {
    display: none;
  }

  .pagination {
    margin-top: 64px;
    text-align: center;
  }

  @media (max-width: 768px) {
    .pagination {
      margin-top: 40px;
    }
  }

  .pagination a,
  .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 4px;
    background: #e5e6ff;
    color: #5C59E8;
    border-radius: 8px;
    text-decoration: none;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
  }

  .pagination .active {
    background: #5b5ff0;
    color: #fff;
  }

  .pagination .dots {
    background: transparent !important;
    color: #999 !important;
    pointer-events: none;
    border-radius: 0;
    width: auto;
    margin: 0 6px;
    font-size: 18px;
    line-height: 32px;
  }
