body {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.4;

  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  .header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 80px;
    background: #fff;
    z-index: 100;

    .header-site-title {
      display: flex;
      align-items: center;
      gap: .4rem;
      color: inherit;
      font-size: 1.2rem;
      font-weight: 600;
      text-decoration: none;

      .header-site-title-image {
        display: flex;
        width: 1.2rem;
        height: auto;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
          vertical-align: baseline;
        }
      }
    }

    ul {
      display: flex;
      align-items: center;
      gap: 1rem;

      li {
        a {
          aspect-ratio: 1;
          display: inline-block;
          width: 1.2rem;

          img {
            width: 100%;
            height: 100%;
            object-fit: contain;
          }
        }
      }
    }

    .nav {
      .nav-list {
        display: flex;
        gap: 1rem;
        align-items: center;
      }
    }
  }

  footer {
    padding:  2rem;
  }
}

.tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  margin: 4rem auto;
  width: 1400px;
  max-width: calc(100% - 4rem);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  z-index: 0;
  background: #fff;

  &::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  &::before {
    content: "";
    position-anchor: var(--active-anchor);
    position: absolute;
    top: anchor(top);
    left: anchor(left);
    width: anchor-size(width);
    height: anchor-size(height);
    background: #000;
    border-radius: 3rem;
    /* transition: .4s; */
    transition: .4s cubic-bezier(0.05, 0.7, 0.1, 1);
    transition: .4s cubic-bezier(0, 0, 0.2, 1);
    z-index: -1;
  }

  .tab {
    flex: 0 0 auto;
    display: block;
    padding: .5rem 0;
    width: fit-content;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 3rem;
    cursor: pointer;

    &.active {
      padding: .5rem 1rem;
      background: #ffffff00;
      color: #fff;
    }
  }
}


.page {
  margin: auto;
  width: 1000px;
  max-width: calc(100% - 4rem);

  .page-header {
    margin: 4rem 0;

    a {
      color: inherit;
      text-decoration: none;
    }

    .episode-title {
      margin-top: .5rem;
      font-size: 2rem;
      font-weight: 500;
    }
  }

  .page-body {
    margin: 4rem 0;
  }

  .page-footer {
    margin: 4rem 0;
  }

  .episode-content {
    line-height: 1.6;

    & > * + * {
      margin-top: 1rem;
    }

    h2 {
      margin: 2rem 0 1rem;
      font-size: 1.2rem;
      font-weight: 500;

      &:first-child {
        margin-top: 0;
      }
    }

    img {
      border: 1px solid #ddd;
    }

    figcaption {
      margin-top: .5rem;
      color: #888;
      font-size: .9rem;
      font-style: italic;
      text-align: right;
    }

    blockquote {
      padding: 1rem;
      background: #fafafa;
      border: 1px solid #ddd;
    }
  }
}

.page-episode {

}

.btn-back {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  background: #fafafa;
  border-radius: 3em;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
  transition: .4s;

  &:hover  {
    background-color: #eee;
  }
}