html {
  scroll-behavior: smooth;
}

.ar1-h2__title {
  line-height: 3.1rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.ar1-h3__title {
  margin: 0 0 2rem 0;
  line-height: 3rem;
}

.line {
  margin-bottom: 2rem;
  line-height: 3rem;
  padding: 0;
  font-family: var(--font-body-family);
  font-weight: 400;

  & a {
    color: var(--color-2);
    text-decoration: underline;
  }
}

.seperate {
  border: 1px solid;
  border-left: none;
  border-right: none;
  height: 0.1rem;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.li-with-icon {
  padding-left: 2.8rem;
  margin-bottom: 1.5rem;

  & a {
    color: var(--color-2);
    text-decoration: underline;
  }
}

.articles1 {
  margin-bottom: 70px;
}

.articles1-main {
  grid-area: main;
}

.ar1__post {
  margin: 0 0 2rem 0;
}

.ar1-post__inside {
  padding: 2rem 2rem 0;
}

/* citation ok */
.ar1-inside__citation {
  margin: 1.5rem 0 0 0;

  & span {
    display: inline;
    line-height: 1.5;
    font-weight: 400;

    & a {
      color: var(--color-second);
      font-weight: 600;
    }

    & span {
      color: var(--color-second);
      font-weight: 600;
    }
  }
}

/* content */
.ar1-inside__content {
  margin: 3.8rem 0 0 0;

  & figure {
    margin: 0 0 3rem 0;

    & figure img {
      border-radius: 0.8rem;
      box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
    }
  }
}

.ar1-inside__table {
  background: var(--bg-1);
  border: 1px solid var(--color-2);
  margin: 0 0 3rem 0;
  padding: 4rem;

  & p {
    font-weight: 700;
  }
}

/* table list ok */
.ar1-table__list {
  margin: 1.8rem 0 0 0;

  & li {
    margin: 0 0 0.6rem 0;

    & a {
      color: var(--color-2);
      transition: color 0.1s ease-in-out;

      &:hover {
        color: var(--color-second);
        text-decoration: underline;
      }
    }
  }

  & ul {
    margin: 1rem 0 0 2.7rem;

    & li {
      position: relative;

      &::before {
        content: "»";
        position: absolute;
        color: var(--color-2);
        left: -18px;
      }
    }
  }
}

/* benefit ok */
.ar1-inside__benefits {
  line-height: 3rem;
  padding: 0 0 0 2.2rem;
  margin: 0 0 3rem;
  text-align: justify;

  & li {
    background: url(./image/list-icon-right.svg) no-repeat left top;
    background-position: 0 0.7rem;
    background-size: 1.7rem 1.7rem;
  }

  &:nth-of-type(2) li {
    background: url(./image/list-icon-pros-2.svg) no-repeat left top;
    background-position: 0 0.6rem;
    background-size: 1.7rem 1.7rem;
  }

  &:nth-of-type(3) li {
    background: url(./image/list-icon-cons-2.svg) no-repeat left top;
    background-position: 0 0.8rem;
    background-size: 1.7rem 1.7rem;
  }
}

/* share ok */
.ar1__share {
  margin: 2.5rem 0;
  padding: 0 2rem;
}

.ar1-share__count {
  margin-bottom: 0.6rem;
  padding: 0 1.7rem 0 0;

  & span {
    line-height: 1.1;
    letter-spacing: 0;
    padding: 0.7rem 0 0.6rem;

    & span:first-child {
      font-weight: 700;
    }
  }
}

.ar1-share__list {
  margin: 0 0.6rem 0.6rem 0 !important;

  & a {
    display: inline-flex;
    width: 100% !important;
    height: 3.2rem;
    border-radius: 0.3rem;
    background-color: var(--color-2);

    &::after {
      content: "";
      background-color: transparent;
      transition: 0.15s;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
    }

    &:hover::after {
      background-color: rgba(0, 0, 0, 0.1);
    }
  }

  & span {
    color: var(--color-primary);
    font-weight: 500;
    margin: 0 1.1rem 0 1rem;
  }

  & .ar1-share__icon {
    background-color: rgba(0, 0, 0, 0.1);

    & svg {
      fill: var(--color-primary);
      margin: 0 1rem;
      font-size: 2rem;
    }
  }
}

.ar1-share__list:first-child span>span:last-child {
  margin-left: auto !important;
  background: rgba(0, 0, 0, 0.3);
  padding: 0 0.6rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 0.6rem 0.6rem 0.6rem 0;
}

/* author ok */
.ar1__authorbox {
  padding: 2.5rem;
  margin: 0 2rem 4rem 2rem;
  border: 1px solid var(--color-2);
  font-weight: 400;
}

.ar1-authorbox__img {
  height: 13rem;
}

.ar1-authorbox__intro {
  & p {
    font-weight: 400;
    line-height: 3.2rem;
  }

  &>p:first-child {
    margin: 1rem 0 1.5rem 0;
    font-weight: 600;
  }
}

.ar1-authorbox__social {
  margin: 2rem 0 0 0;

  & p {
    margin: 0 2rem 1rem 0;
  }
}

.ar1-authorbox-social__list {
  & li {
    margin: 0 0.5rem;

    & a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 3rem;
      height: 3rem;
      background-color: var(--color-2);
      border-radius: 100%;

      & svg {
        fill: var(--color-primary);
        font-size: 1.5rem;
      }
    }
  }
}

/* relatedpost */
.ar1__relatedposts {
  margin-bottom: 2rem;
  padding-top: 0;
}

.ar1-relatedposts_inside {
  margin-top: 4rem;
}

.ar1-relatedposts__post {
  margin-bottom: 3.5rem;
  flex: 0 0 48%;
  box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
  border-radius: 0.5rem;
  transition: 0.15s ease-in-out;

  & img {
    width: 100%;
    aspect-ratio: 6/3;
  }

  & a {
    display: block;
    color: var(--color-second);
    line-height: 3rem;
    font-weight: 500;
    padding: 2rem 3rem 3rem;
    text-align: center;

    & h4 {
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      transition: color 0.1s ease-in-out;
    }
  }

  &:hover {
    background: var(--bg-1);

    & h4 {
      color: var(--color-2);
    }
  }
}

.ar1__comment {
  &>p:first-of-type {
    padding-top: 3rem;
  }

  & .ar1-comment__box {
    padding: 2rem 3rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;

    & button {
      background: transparent;
      border: none;
      color: var(--color-2);
      text-decoration: underline;
      padding: 0;
    }
  }
}

/* feedback ok */
.ar1__feedback {
  padding: 0 2rem 2rem 2rem;
}

.ar1-feedback__form {
  & textarea {
    resize: vertical;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    width: 100%;

    &:focus {
      outline: none;
    }
  }

  & input {
    width: 100%;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
    line-height: 1.5;
    display: block;
    max-width: 100%;

    &:focus {
      outline: none;
    }
  }

  & button {
    background: var(--bg-2);
    color: var(--color-primary);
    border: 1px solid transparent;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;

    &:hover {
      background-color: var(--color-second);
    }
  }
}

/* sidebar */
.articles1-sidebar {
  display: none;
  height: 100vh;
  overflow: auto;
  position: sticky;
  top: -2rem;
  padding: 4rem;
  padding-right: 2rem;
}

.ar1-sidebar__content {
  padding: 15px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 1px 4px;

  & h4 {
    line-height: 3rem;
    font-weight: 500;
    color: var(--color-second);
    margin: 0 2rem 2rem 0;

    &::after {
      content: "";
      display: block;
      width: 30%;
      border-bottom: 2px solid var(--color-2);
      margin-top: 0.5rem;
    }
  }
}

.ar1-sidebar__list {
  margin: 0.5rem 0 0.5rem 0;

  & li {
    margin-bottom: 0.5rem;
  }

  & a {
    display: block;
    line-height: 2.7rem;
    padding: 0.6rem 2rem;
    color: var(--color-second);
    border-radius: 0.5rem;

    &:hover {
      background-color: var(--bg-1);
    }
  }

  & ul {
    margin: 0.5rem 0 0.5rem 2rem;
  }
}

.ar1-authorbox__img img {
  height: 100px;
  width: 100px;
}

@media (min-width: 576px) {
  .ar1-feedback__form input {
    width: 50%;
  }
}

@media (min-width: 768px) {
 

  .ar1-h2__title {
    line-height: 4.4rem;
  }

  .ar1-h3__title {
    line-height: 3.5rem;
  }

  .line {
    margin-bottom: 2.5rem;
    line-height: 3.5rem;
  }

  .ar1-authorbox__social p {
    margin-top: 0.5rem;
  }

  .ar1-authorbox-social__list li {
    & a {
      width: 4rem;
      height: 4rem;

      & svg {
        font-size: 2rem;
      }
    }
  }

  .ar1-table__list {
    column-count: 2;
    column-gap: 6rem;
    column-rule: 1px solid var(--color-2);
  }

  .ar1-post__inside {
    padding: 4rem 4rem 0;
  }

  .ar1__share {
    padding: 0 4rem;
  }

  .ar1-authorbox__intro>p:first-child {
    text-align: start;
  }

  .ar1__authorbox {
    display: flex;
    align-items: center;
    padding: 4rem;
    margin: 0 4rem 4rem 4rem;
    flex-direction: row;
  }

  .ar1-authorbox__img {
    flex: 0 0 12rem;
    margin-right: 3rem;

    & img {
      border-radius: 50%;
    }
  }

  .ar1__relatedposts {
    padding-top: 0;
  }

  .ar1-relatedposts_inside {
    flex-direction: unset;
  }

  .ar1__feedback {
    padding: 4rem 4rem;
  }
}

@media (min-width: 992px) {
 

  .ar1-feedback__form input {
    width: 40%;
  }
}

@media (min-width: 1200px) {
 

  .articles1 {
    display: grid;
    grid-gap: 0;
    grid-template-areas: "sidebar main";
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  }

  .articles1-sidebar {
    display: block;
    grid-area: sidebar;
  }

  .ar1-inside__table {
    display: none;
  }

  .articles1-main p {
    font-size: 20px;
  }
}
