@charset "UTF-8";

.blog {
    padding: 0 0 100px;
    @media only screen and (max-width: 767px) {
        padding: 0 0 60px;
    }
    .blog__list {
        display: flex;
        flex-wrap: wrap;
        gap: 50px 2%;
        @media only screen and (max-width: 767px) {
            gap: 40px 0;
        }
    }
    .blog__item {
        width: 32%;
        @media only screen and (max-width: 767px) {
            width: 100%;
        }
        .img {
            margin-bottom: 17px;
            position: relative;
            padding-top: 65%;
            img {
                width: 100%;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
                object-fit: cover;
            }
        }
        .date {
            font-size: 12px;
            color: var(--base-color);
            margin-bottom: 7px;
        }
        .ttl {
            font-size: 20px;
            color: var(--base-color);
            font-weight: bold;
            line-height: 1.4;
            @media only screen and (max-width: 767px) {
                font-size: 18px;
            }
        }
    }
}

.pagination__item {
    font-size: 14px;
}
.pagination__item--current,
.pagination__item:hover {
    color: var(--color-primary) !important;
}
.pagination__item--current:after,
.pagination__item:hover:after {
    background: var(--color-primary) !important;
}

.blog-detail {
    padding: 95px 0 60px;
    @media only screen and (max-width: 767px) {
        padding: 55px 0 20px;
    }
    .base {
        max-width: 900px;
    }
    .ttl {
        font-size: 24px;
        font-weight: bold;
        line-height: 1.4;
        margin-bottom: 5px;
        @media only screen and (max-width: 767px) {
            font-size: 20px;
        }
    }
    .date {
        font-size: 14px;
        margin-bottom: 20px;
        @media only screen and (max-width: 767px) {
            font-size: 12px;
        }
    }
    .img {
        margin-bottom: 40px;
        @media only screen and (max-width: 767px) {
            margin-bottom: 30px;
        }
    }
    .post {
        h2 {
            font-size: 20px;
            font-weight: bold;
            line-height: calc(29 / 20);
            background: #f6f6f6;
            border-left: 2px solid var(--color-primary);
            padding: 12px 20px;
            margin-bottom: 35px;
            @media only screen and (max-width: 767px) {
                font-size: 18px;
                margin-bottom: 28px;
            }
        }
        h3 {
            font-size: 20px;
            font-weight: bold;
            border-bottom: 1px solid var(--color-primary);
            padding-bottom: 5px;
            margin-bottom: 20px;
            @media only screen and (max-width: 767px) {
                font-size: 18px;
            }
        }
        p {
            font-size: 14px;
            line-height: calc(22 / 14);
            margin-bottom: 35px;
        }
        a {
            font-size: 14px;
            color: var(--color-primary);
            text-decoration: underline;
        }
        img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }
        figure {
            margin-bottom: 35px;
        }
        blockquote {
            font-size: 12px;
            line-height: calc(19 / 12);
            letter-spacing: 0.06em;
            border: 1px solid #d8d8d8;
            background: #f7f7f7;
            padding: 27px 20px;
            position: relative;
            margin-bottom: 22px;
            @media only screen and (max-width: 767px) {
                padding: 20px;
            }
            &:before {
                content: "“";
                font-size: 104px;
                line-height: 1;
                color: var(--color-primary);
                position: absolute;
                left: 27px;
                top: -32px;
                @media only screen and (max-width: 767px) {
                    font-size: 64px;
                    left: 22px;
                    top: -19px;
                }
            }
            p {
                margin-bottom: 0;
            }
        }
        ul {
            margin-bottom: 35px;
            li {
                position: relative;
                list-style: none;
                padding-left: 15px;
                &:before {
                    content: "";
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background: var(--color-primary);
                    position: absolute;
                    left: 2px;
                    top: 8px;
                }
            }
        }
        ol {
            list-style: decimal;
            padding-left: 17px;
            margin-bottom: 35px;
        }
        li {
            font-size: 14px;
            font-weight: 700;
            line-height: calc(24 / 14);
            letter-spacing: 0.04em;
            margin-bottom: 8px;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}
