/*
Theme Name: WillLocation Child
Template: WillLocation
*/
.columnSingle {
  padding-top: 16rem;

  @media screen and (max-width: 768px) {
    padding-top: 12rem;
  }
}
.culumnSingle__withAside {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  .columnSingle__sec {
    width: 100%;
    padding: 2rem;
    background: #fff;
    @media screen and (min-width: 960px) {
      width: calc(100% - 36rem);
    }
  }
  .columnSingle__aside {
    margin-top: 3.2rem;
    width: 100%;
    @media screen and (min-width: 960px) {
      margin-top: 0;
      width: 32.8rem;
    }
  }
  .columnSingle__thumb {
    margin-bottom: 2.4rem;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.column__list {
  margin: 0;
  display: grid;
  gap: 2.4rem;
}

.c-title {
  font-size: 2.4rem;
  font-weight: 700;
}

.columnSingle__content {
  margin-top: 4rem;

  .wp-block-list {
    margin-left: 1em;
  }
}

/* フッター */
.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__nav-item {
  a {
    color: inherit;
  }
}

/* 投稿目次 */
#toc_container {
  width: 100%;
  border: 0.2rem solid #eeeff0;
  border-radius: 0.3rem;
  padding: 3.2rem;

  @media screen and (max-width: 768px) {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }

  .toc_title {
    text-align: center;
    font-size: 2rem;
  }
  .toc_list {
    margin-top: 2rem;
    list-style: none;
    display: grid;
    gap: 0.5em;
    padding: 0;

    ul {
      margin-left: 2em;
      margin-top: 0;
    }
  }

  a {
    font-size: 1.6rem;
    > span {
      &::after {
        content: ". ";
      }
    }
  }
}

/* パンクズリスト */
.breadcrumbs {
  font-size: 1.2rem;
}

/* 監修者ページ */
.c-profile-box__wrap {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 0.1rem solid hsla(0, 0%, 78%, 0.5);
}
.c-profile-box__title {
  margin-bottom: 3rem;
  font-size: 2.4rem;
}
.c-profile-box {
  display: flex;
  border: 1px solid hsla(0, 0%, 78%, 0.5);
  padding: 2.4rem;
  gap: 2.4rem;

  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}
.c-profile-box__left {
  text-align: center;
  min-width: 16rem;
  @media screen and (min-width: 769px) {
    width: 20%;
  }
}
.c-profile-box__img {
  img {
    width: 15rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 50%;
  }
}
.c-profile-box__name {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.8rem;
}
.c-profile-box__right {
  @media screen and (min-width: 769px) {
    padding-left: 2.4rem;
    border-left: 1px solid hsla(0, 0%, 78%, 0.5);
    width: 80%;
  }

  > *:first-of-type {
    margin-top: 0;
  }
  > *:last-of-type {
    margin-bottom: 0;
  }

  h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1em;
  }

  ul {
    list-style: disc;
    margin-left: 1em;
  }
  ol {
    list-style: decimal;
    margin-left: 1em;
  }
}

.p-supervisor__recommended-list {
  display: grid;
  gap: 2.4rem;
}

/* サイドバー */
.c-sidebar {
  padding: 1.6rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.c-sidebar__title {
  font-size: 2rem;
  border-bottom: 1px solid hsla(0, 0%, 78%, 0.5);
  margin-bottom: 1.6rem;

  @media screen and (max-width: 768px) {
    font-size: 1.6rem;
  }
}

/* ボタン */
.c-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.6rem 2.4rem;
  background: #474d4f;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;

  &:hover {
    opacity: 0.7;
    cursor: none;
  }
}

/* シンプルなリスト */
.c-list {
  list-style: disc;
  margin-left: 1em;
  display: grid;
  gap: 0.8rem;
}
.c-list__item {
  a {
    color: inherit;
    text-decoration: underline;
  }
}

.headerNav__btn {
  width: max-content;
  font-size: 1.4rem;
  padding: 1.2rem 2.4rem;
  font-weight: 700;

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

.headerNav__link:hover .off {
  opacity: 1;
  transform: unset;
}

#global_nav {
  margin-bottom: 2.4rem;
  .menu {
    display: grid;
    gap: 1rem;

    a {
      color: inherit;
    }
  }
}

.header__logo-text {
  font-size: 1.6rem;
  font-weight: 700;

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

.mediaButton {
  position: relative;
  display: block;
  width: max-content;
  padding: 16px;
  background-color: #21be78;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  text-decoration: none;
  text-align: center;
  transition: 0.2s;
  box-sizing: border-box;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
      130deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    );
    transition: 0.5s;
  }

  &:hover::after {
    left: 100%;
  }
}
.footer__contact {
  border-radius: 10px;
}
.footer__contact:hover {
  cursor: pointer;
}

.c-sidebar-recommend {
  display: grid;
  gap: 2rem;
  counter-reset: recommend-item;
}
.c-sidebar-recommend__item a {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 8px;

  &:hover {
    opacity: 0.7;
  }

  position: relative;

  &::before {
    content: counter(recommend-item);
    counter-increment: recommend-item;
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &:where(.c-sidebar-recommend__item:nth-child(1) *) {
    &::before {
      background: #cca11f;
    }
  }
  &:where(.c-sidebar-recommend__item:nth-child(2) *) {
    &::before {
      background: #b1b1b3;
    }
  }
  &:where(.c-sidebar-recommend__item:nth-child(3) *) {
    &::before {
      background: #b37036;
    }
  }
  &:where(.c-sidebar-recommend__item:nth-child(4) *) {
    &::before {
      display: none;
    }
  }
}
.c-sidebar-recommend__thumbnail {
  img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
}
.c-sidebar-recommend__title {
  color: #333;
  line-height: 1.4;
  font-size: 1.4rem;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #21be78;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
