/* ============================================
   article-sec セクション
   ============================================ */
.article-sec {
    margin: 0 0 -60px 0;
    padding: 80px 0px;
    overflow: hidden;
    background: var(--bg-color-white);
}
.article-sec.popular {
    margin: -8px 0 0 0;
    padding: 80px 0px;
    overflow: hidden;
    background: var(--main-color-beige);
}

/* --------------------------------------------
   装飾アニメーション画像
   -------------------------------------------- */
.article-sec .animation,
.article-sec .animation-popular {
    position: relative;
}
.article-sec .animation img{
    position: absolute;
    top: -50px;
    right: -300px;
    opacity: 0.8;
    animation: rotateImageA 60s linear infinite;
    transform-origin: center;
}

.article-sec .animation-popular img{
    position: absolute;
    top: 50px;
    left: -300px;
    opacity: 0.8;
    animation: rotateImageA 60s linear infinite;
    transform-origin: center;
}

@keyframes rotateImageA {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes rotateImageB {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --------------------------------------------
    記事グリッド
   -------------------------------------------- */
.new-contents {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 280px);
    justify-content: space-around;
    gap: 20px;
    z-index: 10;
}
/* 記事カードリンク */
.new-contents a {
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--text-color-black);
    text-decoration: none;
    transition: opacity 0.4s ease;
}
.new-contents a:hover {
    opacity: 0.6;
}
/* サムネイル画像（WordPressの the_post_thumbnail() が出力する img も対象） */
.new-contents a img,
.article .wp-post-image {
    display: block;
    height: auto;
    width: 100%;
    border-radius: 10px;
}

/* 記事情報エリア */
.article-sub {
    margin: 10px 0 50px 0;
}

/* タブレット  */
@media all and (max-width: 1024px) {
    .new-contents {
        grid-template-columns: repeat(3, 280px);
        gap: 20px;
    }
}
@media all and (max-width: 960px) {
    .new-contents {
        grid-template-columns: repeat(2, 280px);
        gap: 20px;
    }
}

/* SP  */
@media all and (max-width: 428px) {
    .new-contents {
        grid-template-columns: repeat(1, 280px);
        gap: 20px;
    }
}


/* --------------------------------------------
    sub1：カテゴリ + 日付行
   -------------------------------------------- */
.sub1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-family: "Roboto", sans-serif;
}
/* カテゴリ（ドット + テキスト） */
.category {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* カテゴリカラードット */
.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* article1〜2：オレンジ */
.new-contents .article1 .circle,
.new-contents .article2 .circle {
    background-color: #FF914D;
}

/* article3〜4：ブルー */
.new-contents .article3 .circle,
.new-contents .article4 .circle {
    background-color: #4099D9;
}

/* article5〜6：グリーン */
.new-contents .article5 .circle,
.new-contents .article6 .circle {
    background-color: #4c9e18;
}


/* --------------------------------------------
    sub2：記事タイトル
   -------------------------------------------- */
.sub2 {
    padding-top: 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}


/* --------------------------------------------
    sub3：タグ
   -------------------------------------------- */
.sub3 {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    margin-top: 8px;
    flex-wrap: wrap;
}
.sub3 p,
.sub3 .tag-name {
    margin: 0;
    color: #A8A8A7;
}


/* --------------------------------------------
    VIEW ALL ボタン
   -------------------------------------------- */
.article-sec > a {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 60px;
    text-decoration: none;
}
.pickup-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 100;
    cursor: pointer;
}
.pickup-btn p {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-color-black);
}
.btn-circle {
    margin: 0 auto;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: var(--text-color-black);
    transition: scale 0.4s ease;
}

.pickup-btn:hover > .btn-circle {
    scale: 1.8;
}


/* --------------------------------------------
    投稿ゼロ時メッセージ
   -------------------------------------------- */
.article-sec .centering {
    text-align: center;
    color: var(--text-color-gray);
    padding: 60px 0;
}
