/*
 * FMPress Widget　Grid
 */

/*セクションの見出し*/

/* .page .content h4 {
    margin-top: 0.3em;
    font-size: 28px;
} */

/* 汎用クラス */

.mute {
    color: #aaa;
}

.row-info-test {
    font-size: 12px;
    position: absolute;
    top: -10px;
    left: 20px;
}

.btn-lg {
    font-size: 18px;
    padding: 0.6em 2em;
    cursor: pointer;
}

/* ボタン要素 */

.fmpress-widget-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em 1.5em 3em;
}

@media screen and (max-width: 768px) {
    .fmpress-widget-button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
}

/* ウィジェット要素 */

.fmpress-widget-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    height: 100%;
    gap: 1.5%;
}

.fmpress-widget-grid.grid-per-row-4 {
    gap: 1%;
}

/* 記事の親要素 */

@media screen and (max-width:768px) {
    .fmpress-widget-grid .fmpress-widget-article-wrap {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 12px;
    }
}

@media screen and (max-width:1023px) {
    .fmpress-widget-grid .fmpress-widget-article-wrap {
        display: block;
        width: 100%;
        margin: 0;
    }
}

@media screen and (min-width:1024px) {
    .fmpress-widget-grid.grid-per-row-3 .fmpress-widget-article-wrap {
        display: flex;
        width: 32.33%;
        height: auto;
        margin: 0;
    }

    .fmpress-widget-grid.grid-per-row-4 .fmpress-widget-article-wrap {
        display: flex;
        width: 24.25%;
        height: auto;
        margin: 0;
    }

    .fmpress-widget-grid.grid-per-row-5 .fmpress-widget-article-wrap {
        display: flex;
        width: 18.8%;
        height: auto;
        margin: 0;
    }
}

/* 記事の親要素 ここまで */

.fmpress-widget-grid .post-entry-content h3 {
    border: 0 none;
    margin-top: 0;
    padding-left: 0;
    margin: 0.5em 0;
    font-size: 18px; /* 通常のリストは24px */
    line-height: 1.32;
    color: #004D61;
    text-decoration: underline;
}

.fmpress-widget-grid .post {
    display: flex;
    width: 100%;
    height: inherit;
    flex-direction: column;
}

.fmpress-widget-grid .post-entry-content {
    height: inherit;
    margin: 0;
    padding: 1.5em;
    background-color: #F2F4F7;
    border-radius: 0.5em;
    border: 1px solid transparent;
    transition: all 0.16s linear;
    flex-grow: 1;
}

.fmpress-widget-grid.grid-per-row-4 .post-entry-content {
    padding: 0.8em;
}

.fmpress-widget-grid .post-entry-content:hover {
    background-color: #fff;
    border-radius: 0.5em;
    border: 1px solid #EBEBEB;
    cursor: pointer;
    box-shadow: 0 0 8px #EBEBEB;
}

.fmpress-widget-grid .entry-excerpt {
    margin: 0.5em 0 0;
}

.fmpress-widget-grid .entry-excerpt p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.fmpress-widget-grid .jiaa-entry-meta {
    height: 3.1em;
    margin: 0;
    padding: 0.7em 0em 2em;
    overflow: hidden;
    line-height: 1.4;
}

.fmpress-widget-grid.grid-per-row-4 .jiaa-entry-meta {
    padding: 0.7em 0em 2em;
}

@media screen and (max-width: 768px) {
    .fmpress-widget-grid.grid-per-row-4 .jiaa-entry-meta {
        height: 2.7em;
        padding: 0.7em 1em 1em;
    }
}

.fmpress-widget-grid .post-categories-wrap {
    margin-bottom: 1em;
}

.fmpress-widget-grid .date-text-wrap {
    margin-bottom: 0.8em;
}

.fmpress-widget-grid .date-text {
    margin-right: 0.5em;
}

.fmpress-widget-grid .entry-meta .post-categories li span {
    padding: 3px 5px;
    border: 1px solid #111F4D;
    border-radius: 3px;
    color: #111F4D;
    background-color: #fff;
    font-size: 12px;
    text-decoration: none;

}

.fmpress-widget-grid.grid-per-row-4 .entry-meta .post-categories li span,
.fmpress-widget-grid.grid-per-row-5 .entry-meta .post-categories li span {
    font-size: 10px;
}

.fmpress-widget-grid .entry-meta>.date-text-wrap>span {
    position: relative;
    display: inline-block;
    text-decoration: none;
    margin: 0 6px 0 0;
}

.fmpress-widget-grid .fmpress-widget-article-link {
    width: calc(100% - 2em);
    height: calc(100% - 5.5em);
    position: absolute;
    top: 1em;
    left: 1em;
}

.fmpress-widget-grid .fmpress-widget-article-thumbnail-wrap {
    display: block;
    width: inherit !important;
    max-height: 124px;
    margin: 0.5em 2em;
    padding: 0 1em;
    text-align: center;
    z-index: auto;
}

.fmpress-widget-grid .fmpress-widget-article-thumbnail {
    width: inherit;
    max-height: 115px; /* 3 column */
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #e2e2e2;
}

.fmpress-widget-grid.grid-per-row-4 .fmpress-widget-article-thumbnail {
    max-height: 81px;  /* 4 column */
}

.fmpress-widget-article-thumbnail-wrap.no-icon {
    display: none;
}

.fmpress-widget-grid .post-entry-content:hover h3 {
    text-decoration: none;
}

.fmpress-widget-grid .hide-row {
    display: none !important;
}


/*
 * FMPress Widget　List
 */

.fmpress-widget-list {
    margin: 10px auto 30px;
}

/* 記事要素 */

.dividers-on.classic-layout-list .post,
.fmpress-widget-list .post {
    margin-top: 0;
    padding-top: 20px;
    border-color: #efefef;
}

@media screen and (max-width: 768px) {
    .blog-shortcode.fmpress-widget-list .post {
        border: none;
    }
}

/* 最初の記事要素の余白を調整 */

.blog-shortcode.fmpress-widget-list:not(.mode-masonry) article:first-of-type,
.blog-shortcode.fmpress-widget-list:not(.mode-masonry) article.visible.first:not(.product) {
    margin-top: 0;
    padding-top: 0;
}

/* エントリー要素 */

.fmpress-widget-list .post-entry-content {
    padding: 3px 0px 25px 0px;
}

@media screen and (max-width: 768px) {
    #page .blog-shortcode.fmpress-widget-list .post-entry-content {
        padding: 20px;
    }
}

/* エントリーメタデータ要素 */
.blog-shortcode.fmpress-widget-list .entry-meta {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 30px;
    color: #333;
}

.fmpress-widget-list .entry-meta .m-only,
.fmpress-widget-list .entry-meta .m-private {
    line-height: 22px;
}

/* 記事の見出し（リスト表示） */

.archive .sidebar-content .fmpress-widget-list h3.entry-title,
.page .content .fmpress-widget-list h3 {
    margin: 0 0 5px 0;
    padding-left: 0;
    font-size: 24px;
    line-height: 1.6;
    border: 0 none;
}

@media screen and (max-width: 768px) {
    #page .blog-shortcode.fmpress-widget-list .entry-title {
        margin: 3px 0 5px;
        font-size: 20px;
        line-height: 26px;
    }
}

.archive .sidebar-content .fmpress-widget-list h3.entry-title a,
.page .content .fmpress-widget-list h3 a {
    color: #004d61;
    text-decoration: underline;
}

.archive .content .fmpress-widget-list h3.entry-title a:hover,
.page .content .fmpress-widget-list h3 a:hover {
    text-decoration: none;
}

/* 記事のサマリー */

.blog-shortcode.mode-list.fmpress-widget-list .entry-excerpt {
    margin-bottom: 0px;
    font-size: 14px;
    line-height: 24px;
}

/* 記事のサムネイル要素 */

.fmpress-widget-list .post-thumbnail-wrap {
    display: none;
}


/**
 * Override Recent Posts Widget Extended
 */

.sidebar-content .widget:not(.widget_icl_lang_sel_widget) a:not(.elementor-button),
.sidebar-content.solid-bg .widget:not(.widget_icl_lang_sel_widget) a:not(.elementor-button) * {
    color: #666;
}

.rpwe-time {
    color: #666;
}