@charset "utf-8";

/*===============================================
* layout
===============================================*/
.modern-single {
    margin-bottom: 40px;
}

/*===============================================
* hero-area
===============================================*/
.modern-single__hero {
    position: relative;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e293b;
    display: flex;
    align-items: flex-end;
    min-height: 350px;
}

/*--- sp ---*/
@media (max-width: 767px) {

    .modern-single__hero,
    .entry-hero {
        min-height: 250px;
        border-radius: 4px;
    }
}

/* thmbnail
-------------------------------*/
.modern-single__hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modern-single__hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-single__hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image:
        url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='0.8' fill='rgba(0,0,0,0.4)'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 1) 100%);
    background-size: 3px 3px, 100% 100%;
}

/* text
-------------------------------*/
.modern-single__hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    width: 100%;
}

/*--- category ---*/
.modern-single__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/*--- title ---*/
.modern-single__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/*--- date ---*/
.modern-date {
    font-size: 10px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*--- sp ---*/
@media (max-width: 767px) {

    .modern-single__hero-content,
    .entry-hero-content {
        padding: 24px;
    }

    .modern-single__title,
    .entry-title {
        font-size: 22px;
    }
}

/*===============================================
* article-area
===============================================*/
.single .entry__content,
.page .entry__content {
    font-size: 16px;
    line-height: 1.8;
}

/* image
-------------------------------*/
.single .entry__content img,
.page .entry__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/*--- pc ---*/
@media (min-width: 768px) {

    .single .entry__content p>img,
    .page .entry__content p>img,
    .single .entry__content .wp-block-image figure:not(.wp-block-gallery),
    .page .entry__content .wp-block-image figure:not(.wp-block-gallery) {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/*--- caption ---*/
.single .entry__content .wp-block-image figure,
.page .entry__content .wp-block-image figure {
    margin: 32px auto;
    text-align: center;
    max-width: 100%;
}

.single .entry__content figcaption,
.page .entry__content figcaption,
.single .entry__content .wp-element-caption,
.page .entry__content .wp-element-caption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.4;
}

/* gallery
-------------------------------*/
.single .entry__content .wp-block-gallery .wp-block-image,
.page .entry__content .wp-block-gallery .wp-block-image {
    flex-grow: 0 !important;
}

/*===============================================
* relation-area
===============================================*/
/* layout
-------------------------------*/
.modern-related-posts {
    margin-top: 60px;
    padding: 40px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/*--- title ---*/
.modern-related-posts__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #1e293b;
    text-align: center;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 15px;
}

.modern-related-posts__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #333333;
    border-radius: 3px;
}

/*--- sp ---*/
@media (max-width: 767px) {

    .modern-grid {
        gap: 20px;
    }

    .modern-single__hero {
        min-height: 250px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .modern-single__hero-content {
        padding: 24px 15px;
    }

    .modern-single__title {
        font-size: 22px;
    }

    .modern-related-posts {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 30px 15px;
    }
}

/* card
-------------------------------*/
.modern-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-related-list .modern-card {
    height: auto;
}

.modern-related-list .modern-card__link {
    flex-direction: row;
    align-items: stretch;
}

.modern-related-list .modern-card__thumbnail {
    width: 140px;
    flex-shrink: 0;
}

.modern-related-list .modern-card__thumbnail img {
    height: 100%;
}

.modern-related-list .modern-card__body {
    padding: 16px;
    justify-content: center;
}

.modern-related-list .modern-card__title {
    font-size: 15px;
    margin-bottom: 8px;
}

.modern-related-list .modern-card__categories {
    margin-bottom: 8px;
}

/*--- sp ---*/
@media (max-width: 767px) {
    .modern-related-list .modern-card__thumbnail {
        width: 110px;
    }

    .modern-related-list .modern-card__body {
        padding: 12px;
    }

    .modern-related-list .modern-card__title {
        font-size: 14px;
        line-height: 1.4;
    }

    .modern-related-list .badge--category {
        padding: 3px 6px;
        font-size: 10px;
    }
}