@charset "UTF-8";
/* CSS Document */
ol {
  counter-reset: listnum;
}
ol li {
  border: var(--border-gray);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 50px;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}
ol span {
  display: inline-block;
}
ol li:not(:last-of-type)::after {
  content: "";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateY(-50%);
  background-color: var(--black);
  width: 12px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
ol li a {
  border: var(--border);
  border-radius: 100px;
  padding: 2px 1em;
}
ol li a:hover {
  background-color: var(--black);
  color: var(--white);
}
h1+img{
  display: block;
  margin-bottom: 1em;
}
/*=========================================*/
.comment{
  margin: 1rem 0;
}
h3{
  background-color: var(--bg);
  padding: 5px 10px;
  margin-bottom: 1rem;
}
h3:not(:first-of-type){
  margin-top: 50px;
}
/*==========================================
PC
===========================================*/
@media screen and (min-width: 769px) {
  main section{
  margin-bottom: 150px;
}
  h1{
    margin-bottom: 50px;
  }
  ol li {
    padding: 2rem 2rem 2rem 8rem;
  }
  ol li::before {
    counter-increment: listnum;
    content: "STEP\A"counter(listnum);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1em;
    border-right: var(--border-gray);
    width: 5em;
    height: 90%;
    display: flex;
    align-items: center;
    padding-right: 1em;
    text-align: center;
    padding-top: 10px
  }
  ol li span{
    display: none;
  }
  ol li a {
    position: absolute;
    top: 1em;
    right: 1rem;
  }
}
/*==========================================
SP
===========================================*/
@media screen and (max-width: 768px) {
  main section{
  margin-bottom: 100px;
}
  ol li > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  ol span {
    background-color: var(--bg);
    text-align: center;
    line-height: 1.3;
    padding: 10px 10px 8px 10px;
    margin: 0 1em 10px 0;
  }
  ol span::before {
    content: "STEP";
    font-size: 12px;
    display: block;
  }
  ol h2{
    margin-top: auto;
  }
  ol li a {
    width: 100%;
    text-align: center;
    margin: 2rem 0 5px 0;
  }
}