.article-template > *:first-child:not(.article-template__hero-container) {
  margin-top: 5rem;
}

@media screen and (min-width: 750px) {
  .article-template > *:first-child:not(.article-template__hero-container) {
    margin-top: calc(5rem + var(--page-width-margin));
  }
}

.article-template__hero-container {
  max-width: 130rem;
  margin: 0 auto;
}

.article-template__hero-small {
  height: 11rem;
}

.article-template__hero-medium {
  height: 22rem;
}

.article-template__hero-large {
  height: 33rem;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .article-template__hero-small {
    height: 22rem;
  }

  .article-template__hero-medium {
    height: 44rem;
  }

  .article-template__hero-large {
    height: 66rem;
  }
}

@media screen and (min-width: 990px) {
  .article-template__hero-small {
    height: 27.5rem;
  }

  .article-template__hero-medium {
    height: 55rem;
  }

  .article-template__hero-large {
    height: 82.5rem;
  }
}

.article-template header {
  margin-top: 4.4rem;
  margin-bottom: 2rem;
  line-height: calc(0.8 / var(--font-body-scale));
}

@media screen and (min-width: 750px) {
  .article-template header {
    margin-top: 5rem;
  }
}

.article-template__title {
  margin: 0;
}

.article-template__title:not(:only-child) {
  margin-bottom: 1rem;
}

.article-template__link {
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.article-template__link .icon-wrap {
  display: flex;
  margin-right: 1rem;
  transform: rotate(180deg);
}

.article-template__content {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.article-template__social-sharing {
  margin-top: 3rem;
}

.article-template__social-sharing + header,
.article-template__social-sharing + .article-template__content {
  margin-top: 1.5rem;
}

.article-template__comment-wrapper {
  margin-top: 5rem;
  padding: 2.7rem 0;
}

@media screen and (min-width: 750px) {
  .article-template__comment-wrapper {
    margin-top: 6rem;
    padding: 3.6rem 0;
  }
}

.article-template__comment-wrapper h2 {
  margin-top: 0;
}

.article-template__comments {
  margin-bottom: 5rem;
}

@media screen and (min-width: 750px) {
  .article-template__comments {
    margin-bottom: 7rem;
  }
}

.article-template__comments-fields {
  margin-bottom: 4rem;
}

.article-template__comments-comment {
  color: rgba(var(--color-foreground), 0.75);
  background-color: rgb(var(--color-background));
  margin-bottom: 1.5rem;
  padding: 2rem 2rem 1.5rem;
}

@media screen and (min-width: 750px) {
  .article-template__comments-comment {
    padding: 2rem 2.5rem;
  }
}

.article-template__comments-comment p {
  margin: 0 0 1rem;
}

.article-template__comment-fields > * {
  margin-bottom: 3rem;
}

@media screen and (min-width: 750px) {
  .article-template__comment-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 4rem;
  }
}

.article-template__comment-warning {
  margin: 2rem 0 2.5rem;
}

@media screen and (min-width: 990px) {
  .article-template__comments .pagination-wrapper {
    margin: 5rem 0 8rem;
  }
}

.article-template__back:last-child {
  margin-bottom: 3.2rem;
}


/*2024.01.12追記*/
.article-template__content {
  @media only screen and (max-width: 749px) {
      .note {
       padding: 0;
     }
  }
   @media only screen and (min-width: 750px) {
      padding: 0 9rem;
     .note {
       padding: 0;
     }
   }
  @media only screen and (min-width: 992px) {
      padding: 0;
    }
  > :not(article) {      
    + h2 {
      border-bottom: solid 1px #595d5f;
    	padding-bottom: 10px;
    	padding-top: 40px;
    	font-family: var(--font-heading-family);
    	font-style: var(--font-heading-style);
    	font-weight: var(--font-heading-weight);
    	letter-spacing: calc(var(--font-heading-scale) * .06rem);
    	color: rgb(var(--color-foreground));
    	line-height: calc(1 + .3/max(1,var(--font-heading-scale)));
    	word-break: break-word;
    	font-size: calc(var(--font-heading-scale) * 2rem);
    	font-weight: normal;
    	display: block;
      strong {
        font-weight: normal;
      }
      @media only screen and (min-width: 750px) {
        font-size: calc(var(--font-heading-scale) * 2.4rem);
      }
    }
   + h3 {
      border-bottom: dotted 1px #ccc;
      padding-bottom: 10px;
      padding-top: 20px;
       strong {
        font-weight: normal;
      }
    }
    + h4 {
      padding-top: 50px;
    }
    + img {
      width: 100%;
    }
    > img {
      width: 100%;
    }
    + * > img {
      width: 100%;
    }
    + * + img {
      width: 100%;
    }
     > * > img {
      width: 100%;
    }
    > * > * > img {
      width: 100%;
    }
    + * > * > * > img {
      width: 100%;
    }
    + .index , > .index {
        @media only screen and (max-width: 749px) {
         padding: 20px 30px;
        }
      margin: 40px 0;
      padding: 20px 40px;
      background-color: #f8f8f8;   
      ul {
          &.list-style-none {
            list-style: circle;
            padding: 6% !important;
            li {
              margin-bottom: 10px;
              a {
               color: rgb(var(--color-foreground));
              }
              &:last-child {
                margin-bottom: 0;
              }
              >.list-style-none {
                padding: 10px 6% 0 !important;
            }
              ul {
                 list-style: none;
                 li:last-child {
                  margin-bottom: 30px;
                }
              }
          }
        }
      }
      ol {
      &.list-style-none {
            padding: 6% !important;
            li {
              margin-bottom: 10px;
              a {
               color: rgb(var(--color-foreground));
              }
              &:last-child {
                margin-bottom: 0;
              }
              >.list-style-none {
                padding: 10px 6% 0 !important;
            }
              ul {
                 list-style: none;
                 li:last-child {
                  margin-bottom: 30px;
                }
              }
          }
        }
      }
    }
    + .caption {
        font-size: 1.2rem;
       @media only screen and (min-width: 750px) {
         font-size: 1.5rem;
       }
      }
    > .youtube{
	position:relative;
      &:before{
    	position:relative;
    	display: block;
    	padding-top: 56.25%;
    	margin-bottom:8%;
    	content:"";
         @media screen and (max-width: 749px) {
        	margin-bottom: 15%;
         }
      }
      > iframe{
    	position:absolute;
    	top:0;
    	right:0;
    	bottom:0;
    	left:0;
    	display:block;
    	text-align:center;
    	margin:0 auto;
    	width:100%;
    	height:100%;
      }
    }
  } 
}

.feature-article-template {
  @media only screen and (min-width: 750px) {
    .article-template__hero-container , .page-width {
    max-width: 72.6rem
    }
  }
  .article-template__content { 
    @media only screen and (max-width: 749px) {
      .product_free {
        p {
          text-align: left !important;
          br {
            display: none;
          }
        }
      }
    }
    @media only screen and (min-width: 750px) {
      max-width: 72.6rem;
      padding: 0 9rem;
      .col-sm-6 {
        width: 100%;
      }
      .col-sm-push-6 {
      order: inherit;
      }
      .category_fv_text {
          background: #fff;
          padding: 0;
      }
      .col-sm-3 {
         width: 50% !important;
      }
    } 
     @media only screen and (min-width: 992px) {
      padding: 0;
    }
  }
}