/**
 * File: single.css
 * Usage: single.php(投稿の個別ページ)のスタイルを定義します。
*/

.bl_post {
  padding-block: 84px 40px;
}

.el_postTtl {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 400;
  -webkit-text-stroke: 1px;
}

.bl_postThumbnail {
  margin-block: 20px;
  aspect-ratio: 345 / 213;
  overflow: hidden;
}

.bl_postThumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.el_postMeta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.el_postMeta time {
  font-size: 14px;
  line-height: 1.85;
}

.el_postCat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 12px;
}

.bl_postContent {
  line-height: 1.875;
  letter-spacing: 0.05em;
}

.bl_postContent h2,
.bl_postContent h3,
.bl_postContent h4,
.bl_postContent h5,
.bl_postContent h6 {
  margin-top: 20px;
  scroll-margin-top: 80px;
}

.bl_postContent h2 > *,
.bl_postContent h3 > *,
.bl_postContent h4 > *,
.bl_postContent h5 > *,
.bl_postContent h6 > * {
  scroll-margin-top: 80px;
  font-weight: 400;
  -webkit-text-stroke: 0.8px;
}

.bl_postContent h2,
.bl_postContent h3 {
  background: #e5f3f7;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.bl_postContent h4 {
  text-decoration: underline;
  text-decoration-thickness: 10px;
  text-underline-offset: -6px;
  text-decoration-color: #e5f3f7;
  margin-bottom: 16px;
}

.bl_postContent h5 {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #41b3cb;
  margin-bottom: 12px;
}

.bl_postContent h6 {
  color: #41b3cb;
  margin-bottom: 12px;
}

.bl_postContent h2::before,
.bl_postContent h3::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  top: 5px;
  left: 0;
  background: #fff;
  z-index: 1;
}

.bl_postContent h2::after,
.bl_postContent h3::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 5px;
  left: 0;
  background: #fff;
  z-index: 1;
}

.bl_postContent #toc_container {
  margin: 40px auto;
}

.bl_postContent img {
  margin-block: 20px;
}

.ly_postAuthor {
  padding-inline: 15px;
}

.bl_postAuthor {
  background: #e5f3f7;
  border-radius: 20px;
  padding: 20px 20px 43px;
}

.bl_postAuthorInfo {
  flex-grow: 1;
}

.bl_postAuthorImage {
  aspect-ratio: 1 / 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  background: #d5d5d5;
}

.bl_postAuthorImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  object-position: center 20%;
}

.bl_postAuthorName {
  font-size: 20px;
  font-weight: 400;
  -webkit-text-stroke: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #9ec2cc;
  margin-block: 16px;
  letter-spacing: 0.05em;
}

.bl_postAuthorDesc small {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #41b3cb;
}

.el_postAuthorName {
  font-size: 24px;
  font-weight: 400;
}

.bl_postAuthorDesc {
  font-size: 14px;
  line-height: 1.85;
  display: flex;
  gap: 24px;
  flex-direction: column;
}

.ly_relatedPosts {
  margin-top: 80px;
  padding: 40px 15px;
}

.el_relatedPostsTtl {
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.bl_relatedPosts {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-top: 40px;
}

.bl_relatedPost {
  width: 100%;
  max-width: 320px;
}

.bl_relatedPost a {
  display: grid;
  grid-template-columns: 130px 18fr;
  gap: 20px;
}

.bl_relatedPostThumbnail {
  aspect-ratio: 13 / 12;
  overflow: hidden;
  max-width: 130px;
}

.bl_relatedPostThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl_relatedPostContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el_relatedPostTtl {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.bl_floatCategories {
  display: none;
}

.bl_discList {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
}

.bl_discList li {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  line-height: 1.8;
}

.bl_discList li::before,
.bl_discList li::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: #41b3cb;
  border-radius: 16px;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .bl_post {
    position: relative;
    max-width: 1280px;
    /* padding-inline: 40px; */
    margin-inline: auto;
    padding-block: 60px 78px;
  }

  .el_postTtl {
    font-size: 24px;
  }

  .ly_postAuthor {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 40px;
  }

  .bl_postAuthor {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    max-width: 844px;
    margin-right: calc(12vw + 50px);
  }

  .el_postMeta {
    margin-bottom: 20px;
    font-size: 12px;
    flex-direction: row;
    align-items: center;
  }

  .el_postDate {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .bl_postContent h2,
  .bl_postContent h3 {
    margin-bottom: 40px;
  }

  .bl_postAuthorImage {
    flex-shrink: 0;
    margin-inline: 0;
  }

  .bl_postAuthorName {
    font-size: 24px;
  }

  .bl_postAuthorDesc {
    font-size: 16px;
    flex-direction: row;
  }

  .ly_relatedPosts {
    padding-block: 82px;
  }

  .el_relatedPostsTtl {
    font-size: 24px;
  }

  .bl_relatedPosts {
    max-width: 1280px;
    padding-inline: 40px;
    margin-inline: auto;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }

  .bl_relatedPost a {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .bl_relatedPostThumbnail {
    aspect-ratio: 16 / 10;
    max-width: 320px;
  }

  .bl_relatedPostMeta {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .el_relatedPostTtl {
    font-size: 16px;
    letter-spacing: 0.05em;
  }

  .bl_categoriesBottom .bl_allCategories li {
    width: fit-content;
  }

  .ly_categoriesBottom {
    margin-top: 80px;
  }

  .bl_categoriesBottom {
    max-width: 1280px;
    margin-inline: auto;
  }

  .bl_discList {
    flex-grow: 1;
  }

  .bl_discList li {
    font-size: 16px;
    line-height: 1.875;
    letter-spacing: 0.05em;
    gap: 5px;
  }
}