@import 'src/styles/_common';

.banner {
  background-image: url('/background.svg');
  background-size: cover;
  color: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
  .inner {
    width: 100%;
    @media screen and (min-width: 769px) {
      width: 80%;
    }
  }
  h1 {
    font-size: clamp(24px, 3.65vw, 36px);
  }
  h5 {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 32px;
    font-weight: 400;
  }
  a {
    color: #fff;
    &:before {
      background-color: #fff;
    }
    &:after {
      border-bottom-color: #fff;
    }
  }
}

.container {
  @include container;

  [id] {
    scroll-margin-top: 120px;
  }
}

.info {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e9eaee;
}

.postContainer {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 32px 0;
  @media screen and (min-width: 769px) {
    gap: 32px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}
.content {
  grid-column: span 8 / span 8;
}
.toc {
  grid-column: span 4 / span 4;
  .tocContainer {
    position: sticky;
    top: 120px;
    border: 1px solid#e9eaee;
    border-radius: 10px;
    padding: 32px;
    color: #24292e;

    ul {
      list-style: none;
      margin-top: 16px;
      border-top: 1px solid #e9eaee;
      padding-top: 16px;
    }
    li {
      line-height: 24px;
      & + li {
        margin-top: 12px;
      }
    }
  }
}
