/* ========================================
   Blog
======================================== */

.blog-page {
    padding-top: 100px;
}

.blog-page__inner {
    width: 100%;
    max-width: 1700px;
    margin-inline: auto;
    padding-inline: 25px;
    box-sizing: border-box;
}



/* ========================================
   Main Visual
======================================== */

.blog-hero {
    position: relative;
}

.blog-hero picture {
    display: block;
}

.blog-hero picture img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-hero__text {
    position: absolute;
    top: 10%;
    left: 7.5%;
    right: 7.5%;
}

.blog-hero__text p {
    margin-top: 15px;
}


/* ========================================
   Layout
======================================== */

.blog-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
}

.blog-main {
    min-width: 0;
}

.blog-archive-heading {
    padding-bottom: 20px;
	padding-top:12px;
    border-bottom: 1px solid #bcb5af;
}


/* ========================================
   Blog List
======================================== */

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 25px;
}

.blog-card {
    min-width: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #d8d2cc;
}

.blog-card__link {
    display: block;
    text-decoration: none;
}

.blog-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #e8e2dc;
}

.blog-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.blog-card__link:hover img {
    opacity: 0.8;
}

.blog-card__noimage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #93877c;
    font-size: 12px;
}

.blog-card__title {
    margin-top: 15px;
    overflow-wrap: anywhere;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
}

.blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.blog-card__categories a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card__categories a::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 9px;
    background-color: #bfae9f;
    clip-path: polygon(
        0 0,
        40% 0,
        50% 20%,
        100% 20%,
        100% 100%,
        0 100%
    );
}


/* ========================================
   Pagination
======================================== */

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.blog-pagination__prev span {
    left: 20px;
    right: auto;
}

.blog-pagination__next {
    margin-left: auto;
}



/* ========================================
   Sidebar
======================================== */

.blog-sidebar {
    min-width: 0;
}

.blog-sidebar__section {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid #bcb5af;
}

.blog-sidebar__inner {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
}

.blog-sidebar__heading {
    margin-bottom: 20px;
}

.blog-sidebar__heading span {
    background-color: #dbd0c7;
	padding-inline: 10px;
}


/* Search
---------------------------------------- */

.blog-search {
    display: flex;
    width: 100%;
    border: 1px solid #bcb5af;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: none;
    background-color: #fff;
    font: inherit;
}

.blog-search button {
    flex-shrink: 0;
    padding: 8px 15px;
    border: none;
    background-color: #2b211e;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}


/* Sidebar Banner
---------------------------------------- */

.blog-sidebar__banner {
    display: block;
    margin-bottom: 25px;
}

.blog-sidebar__banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.blog-sidebar__banner:hover img {
    opacity: 0.8;
}


/* Recent Posts
---------------------------------------- */

.blog-recent {
    margin-top: 25px;
    padding: 25px 20px;
    background-color: #fff;
    box-sizing: border-box;
}

.blog-recent__heading {
    margin-bottom: 20px;
}

.blog-recent__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-recent__item {
    border-top: 1px solid #d8d2cc;
}

.blog-recent__item:last-child {
    border-bottom: 1px solid #d8d2cc;
}

.blog-recent__link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-block: 15px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-recent__link:hover {
    opacity: 0.7;
}

.blog-recent__image {
    flex-shrink: 0;
    width: 25%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #e8e2dc;
}

.blog-recent__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-recent__image span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 8px;
    color: #93877c;
}

.blog-recent__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}


/* Profile
---------------------------------------- */

.blog-profile__image {
    margin-bottom: 30px;
}

.blog-profile__image img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-profile__name {
    margin-bottom: 0px;
}

.blog-profile__text {
    line-height: 1.9;
}

.blog-profile__text p + p {
    margin-top: 10px;
}

.blog-profile__link {
    display: block;
    margin-top: 0px;
}


/* Category / Archive
---------------------------------------- */

.blog-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar__list li {
    border-bottom: 1px solid #d8d2cc;
}

.blog-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 8px;
    text-decoration: none;
}

.blog-sidebar__list a:hover {
    opacity: 0.7;
}

.blog-folder {
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 11px;
    background-color: #bfae9f;
    clip-path: polygon(
        0 0,
        40% 0,
        50% 20%,
        100% 20%,
        100% 100%,
        0 100%
    );
}


/* ========================================
   Tablet
======================================== */

@media screen and (min-width: 768px) {

    .blog-page {
        padding-top: 90px;
    }

    .blog-page__inner {
        padding-inline: 60px;
    }

    .blog-page__layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 40px;
    }

    .blog-hero__text {
        top: 15%;
    }

    .blog-list {
        column-gap: 25px;
        row-gap: 35px;
    }

    .blog-card__meta {
        font-size: 12px;
    }

    .blog-sidebar__inner {
        padding-inline: 15px;
        box-sizing: border-box;
    }

}


/* ========================================
   PC
======================================== */

@media screen and (min-width: 1300px) {

    .blog-page {
        padding-top: 170px;
    }

    .blog-page__inner {
        padding-inline: 100px;
    }

    .blog-page__layout {
        grid-template-columns: minmax(0, 1050px) 360px;
        gap: 6%;
    }

    .blog-hero__text {
        top: 18%;
    }

    .blog-list {
        column-gap: 40px;
        row-gap: 40px;
    }

    .blog-card__title {
        margin-top: 25px;
    }

    .blog-card__meta {
        font-size: 14px;
    }

    .blog-sidebar__inner {
        padding-inline: 0;
    }

}

/* ========================================
   Single Blog
======================================== */

.blog-article {
    box-sizing: border-box;
}

/* Breadcrumb →common.cssへ
---------------------------------------- */


/* Article
---------------------------------------- */

.blog-article__date {
    display: block;
    font-size: 12px;
}

.blog-article__content {
    line-height: 1.9;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
}

.blog-article__content iframe {
    max-width: 100%;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
    margin-block: 1.5em 0.8em;
}

.blog-article__content ul,
.blog-article__content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.blog-article__content ul {
    list-style: disc;
}

.blog-article__content ol {
    list-style: decimal;
}

.blog-article__content a {
    text-decoration: underline;
}

.blog-article__content figure {
    max-width: 100%;
    margin-bottom: 25px;
}

.blog-article__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Related Posts
---------------------------------------- */

.blog-list--related .blog-card {
    padding-bottom: 0;
    border-bottom: none;
}

.blog-list--related .blog-card__title {
    margin-top: 10px;
}


/* Tablet
---------------------------------------- */

@media screen and (min-width: 768px) {

    .blog-list--related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* PC
---------------------------------------- */

@media screen and (min-width: 1300px) {

    .blog-article__date {
        font-size: 14px;
    }

    .blog-list--related {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 30px;
    }

}

/* Blog Hero Logo
---------------------------------------- */

.blog-hero__logo {
    width: 220px;
    max-width: 100%;
}

.blog-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* TB */
@media screen and (min-width: 768px) {

    .blog-hero__logo {
        width: 280px;
    }

}

/* PC */
@media screen and (min-width: 1300px) {

    .blog-hero__logo {
        width: 320px;
    }

}


/* Tablet 縦向き */
@media screen and (min-width: 768px) and (max-width: 1299px) and (orientation: portrait) {

    .blog-page__inner {
        padding-inline: 30px;
    }

    .blog-page__layout {
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 30px;
    }

    .blog-recent {
        padding: 20px 15px;
    }

    .blog-recent__link {
        gap: 10px;
    }

    .blog-sidebar__inner {
        padding-inline: 10px;
    }

}