.single_wrap {
    width: 100%;
    padding: 7rem;
    box-sizing: border-box;
}

.single_content {
    max-width: 780px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: white;
    font-size: 1.8rem;
}

.single_content figure {
    margin: 3rem 0 3rem;
}

.single_content figure img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 80vh;
}

time {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    color: #777777;
}

.single_content h1 {
    margin: 0 0 3rem;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
}

.single_content h2 {
    margin: 6rem 0 3rem;
    padding: 2rem 1.5rem;
    border-left: 4px solid #777e41;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.single_content h3 {
    margin: 0 0 3rem;
    padding: 2rem 1.5rem;
    background-color: #f8f8fa;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.single_content h4 {
    margin: 0 0 3rem;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.single_content h5,
h6 {
    margin: 0 0 3rem;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.single_content p {
    margin: 0 0 3rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.single_content>ul,
.single_content>ol {
    margin: 0 0 3rem;
}

.single_content ul li,
ol li {
    margin-left: 2rem;
}

.single_content ul li:last-child,
ol li:last-child {
    margin-bottom: 0;
}

/* 外部リンクアイコン */
.single_content a[target="_blank"]:after {
    font-family: "Font Awesome 5 Free";
    content: '\f35d';
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 3px 0 3px;
}

/* 関連記事 */
.related_post {
    width: auto;
    margin-bottom: 4rem;
}

.related_post_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style: none;
}

.related_post_container li {
    width: calc(34% - 2rem);
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #ebece4;
}

.related_post_container li:nth-child(1),
.related_post_container li:nth-child(4) {
    margin-left: 0 !important;
}

.related_post_container li:nth-child(n + 1):nth-child(-n + 3) {
    margin-bottom: 2rem;
}

.related_post_container li:hover {
    opacity: 0.7;
}

.related_post_container li a {
    display: flex;
    flex-direction: column;
    color: #000;
}

.related_thumb {
    width: 100%;
}

.related_thumb img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
}

.related_title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1.6rem;
    margin-bottom: 0px !important;
}

@media screen and (max-width: 1024px) {
    .single_wrap {
        width: 100%;
        margin-left: 0;
        padding: 10rem 2rem 4rem;
    }

    .single_content h1 {
        font-size: 2.4rem;
    }

    /* 関連記事 */
    .related_post_container {
        justify-content: space-between;
    }

    .related_post_container li {
        width: calc(50% - 1rem);
        margin-left: 0 !important;
        margin-bottom: 2rem !important;
    }
}

@media screen and (max-width: 599px) {

    .single_wrap {
        width: 100%;
        margin-left: 0;
        padding: 2rem 2rem 4rem;
    }

    .single_content h1 {
        font-size: 2.4rem;
    }

    /* 関連記事 */
    .related_post_container {
        justify-content: space-between;
    }

    .related_post_container li {
        width: calc(50% - 1rem);
        margin-left: 0 !important;
        margin-bottom: 2rem !important;
    }

    .related_post_container a {
        align-items: center;
    }


}