.news-detail {
  padding-block: 60px 80px;
  background-color: #fff;
  color: #665f53;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;

  @media screen and (min-width: 768px) {
    padding-block: 70px 100px;
  }
  @media screen and (min-width: 1024px) {
    padding-block: 80px 125px;
  }
}

.news-detail__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;

  @media screen and (min-width: 768px) {
    padding-inline: 25px;
  }
  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: minmax(0, 800px) 210px;
    justify-content: space-between;
    align-items: start;
    gap: 50px;
  }
}

.news-detail__main {
  width: 100%;
  min-width: 0;
  @media screen and (min-width: 1024px) {
    max-width: 800px;
  }
}

/* 記事 */
.news-detail__article { width: 100%; }
.news-detail__head {
  padding-bottom: 30px;
  border-bottom: 1px solid #c0b1a3;
  text-align: center;
}
.news-detail__date {
  margin-top: 80px;
  color: #665f53;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.31;
  letter-spacing: 0;
}
.news-detail__title {
  margin: 15px 0 0;
  color: #665f53;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.05em;
}
.news-detail__figure {
  width: 100%;
  margin: 40px 0 0;
  img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 540;
    object-fit: cover;
  }
}
.news-detail__content {
  margin-top: 40px;
  color: #665f53;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  p { margin: 0 0 1em; }
  img { max-width: 100%; height: auto; }
}

/* 前へ・一覧へ戻る・次へ */
.news-detail__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #c0b1a3;

  @media screen and (min-width: 1024px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-block: 60px 125px;
    padding-top: 45px;
  }
}
.news-detail__nav-item {
  min-width: 0;
  text-align: center;
  .webgene-item-aroundPageLink {
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    @media screen and (min-width: 1024px) {
      font-size: 16px;
    }
  }
}
.news-detail__nav-item a,
.news-detail__nav-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 4px;
  border: 1px solid #665f53;
  color: #665f53;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;

  @media screen and (min-width: 1024px) {
    display: block;
    width: auto;
    min-height: 0;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.31;
  }
  @media (hover: hover) {
    &:hover { opacity: 0.6; }
  }
}

/* サイドバー */
.news-detail__sidebar {
  width: 100%;
  min-width: 0;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #c0b1a3;

  @media screen and (min-width: 1024px) {
    width: 210px;
    margin-top: 125px;
    padding-top: 0;
    border-top: 0;
  }
  a {
    color: #665f53;
    text-decoration: none;
    transition: opacity 0.3s;
    @media (hover: hover) {
      &:hover { opacity: 0.6; }
    }
  }
}
.news-detail__sidebar-title {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #665f53;
  color: #665f53;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;

  @media screen and (min-width: 1024px) {
    padding-bottom: 18px;
    line-height: 1.11;
  }
}

/* CATEGORY */
.news-detail__category {
  width: 100%;
  > .news-detail-category__link {
    margin-top: 25px;
    @media screen and (min-width: 1024px) {
      margin-top: 30px;
    }
  }
  .news-detail-category__link {
    position: relative;
    display: block;
    padding-left: 15px;
    color: #665f53;
    font-family: "Shippori Mincho", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.5;
    text-decoration: none;

    @media screen and (min-width: 1024px) {
      font-size: 16px;
    }
    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      width: 0;
      height: 0;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
      border-left: 5px solid #665f53;
      transform: translateY(-50%);
    }
  }
  .news-detail-category__text {
    margin: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
  }
}
.news-detail-category__item { margin: 0; }

/* LATEST NEWS */
.news-detail__latest {
  margin-block: 60px;
  @media screen and (min-width: 1024px) {
    margin-block: 45px 0;
 
  }
  > .news-detail__sidebar-title { margin-bottom: 25px; }
  .news-detail-latest { margin-top: 0; }
}
.news-detail-latest { margin-top: 0; }
.news-detail-latest__item {
  margin: 0;
  & + .news-detail-latest__item {
    margin-top: 25px;
    @media screen and (min-width: 1024px) { margin-top: 30px; }
  }
}
.news-detail-latest__link {
  position: relative;
  display: block;
  padding-left: 15px;
  color: #665f53;
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.31;
  text-decoration: none;
  transition: opacity 0.3s;

  @media screen and (min-width: 1024px) { font-size: 16px; }
  &::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #665f53;
  }
  @media (hover: hover) {
    &:hover { opacity: 0.6; }
  }
}
.news-detail-latest__date {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.31;
  @media screen and (min-width: 1024px) { font-size: 16px; }
}
.news-detail-latest__title {
  margin: 15px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.31;
  overflow-wrap: anywhere;
  @media screen and (min-width: 1024px) {
    margin-top: 20px;
    font-size: 16px;
  }
}
