div.snaf-flex-article{
    display: flex;
    max-width: 100%;
    gap: 20px 2%;
    justify-content: space-evenly; /** 記事があまったとき余白を均等に **/
    line-height: 1.3;
}

div.snaf-flex-article article.double-thumb{
    max-width: 254px; /** 横126のサムネを2枚 + gap2px **/
}

div.snaf-flex-article a{
    text-decoration: none;
    padding: 0px; /** これがないとcocoonのcssにより隙間が空きすぎる **/
}

.snaf-flex-article .card-title{
    font-size: 80%;
    color: #333;
    display: -webkit-box;
    line-clamp: 2; /* 表示する行数 */
    -webkit-line-clamp: 2; /* 表示する行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

div.snaf-flex-article img {
    width: 126px; /** 独自サムネに合わせて横幅を固定 **/
    height: 168px;
    object-fit: cover;
    padding: 0px;
}


div.snaf-flex-article article{
    list-style: none;
}

.snaf-flex-article .card-thumb{
    position: relative;
}

/** カテゴリラベル **/
.snaf-flex-article .cat-label{
    font-size: 0.8em;
    z-index: 1; /* カテゴリラベルだけ暗くするのを防ぐ */
    opacity: 0.88; /* 0.0（完全透明）から1.0（不透明）の範囲で調整 */
}
.snaf-flex-article .double-thumb .cat-label{
    max-width: 160%; /** サムネ2つ分なので、通常の2倍を指定（最大200%）**/
}


/** ポイントラベル **/
.snaf-flex-article .point-label{
    top: 20px;
    background-color: #0062da;
}


/** 横並び用 **/
div.snaf-flex-article.row {
    flex-direction: row;
}

div.snaf-flex-article.wrap{
    flex-wrap: wrap;
}

/** 縦並び用 **/
div.snaf-flex-article.column {
    flex-direction: column;
    gap:0px;
}


.snaf-flex-article.column article {
    display: flex; /** テキストなどを画像の横に **/
    flex-direction: row;
    gap: 0px;
}


/** サイドバー特有 **/
.widget-sidebar .snaf-flex-article{
    justify-content: space-between; /** 中央揃えにするため **/
}


.widget-sidebar div.snaf-flex-article a{
    flex-basis: calc(100% - 0px); /** 横に3つ要素を並べる **/
}

/** snaf_plan_posts_by_cat用 **/
.snaf_plan_posts_by_cat .more-link-text {
    padding: 10px;
    margin: 10px;
    display: block;
    font-size: 90%;
    text-align: right;
}


.snaf-flex-article .double-thumb .card-thumb{
    display: flex;
    max-width: 50%;
    gap: 2px;
}

.snaf-flex-article .double-thumb .card-thumb:before {
    width: 200%;
}

.snaf-flex-article .card-thumb {
    position: relative;
}

.snaf-flex-article .card-thumb:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.snaf-flex-article .entry-card-meta{
    position: relative;
    color: #333;
}

.snaf-flex-article.row:not(.wrap) .card-title {
    white-space: normal; /* 自動的に改行 */
}

/* .wrapがない.containerにスクロールを適用 */
.snaf-flex-article.row:not(.wrap) {
    overflow-x: auto; /* 横スクロールを有効にする */
    flex-wrap: nowrap;
    white-space: nowrap; /* 要素を横に並べる */
    justify-content: flex-start;
}

/** ボックスで囲う場合、記事背景を白に戻す **/
.a-wrap{
    background: white;
}

/** 動画投稿のサムネにビデオアイコンを付与（現在無効化）
article.category-video figure{
    position: relative;
}

article.category-video figure::before {
    content: '';
    display: block;
    width: 38% !important;
    background-image: url('/wp-content/themes/cocoon-child-snaflot/images/video-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 31% !important;
    z-index: 10;
}
**/