/*
Theme Name: 健診センターのテーマ
Description: Lab23の子テーマ
Author:
Author URI:
Template: lab23
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* フェードイン */
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition-property: transform, opacity;
    transition-duration: 1.8s;
    transition-delay: 0s;
}
.fadein.is-active {
    opacity: 1;
    transform: translateY(0);
}
        

/* .emerge {
    animation-name: fadein;
    animation-duration: 2s;
}

.p-entry-item__thumb img {
    animation-name: fadein;
    animation-duration: 2s;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translatey(20px);
    }
    to {
        opacity: 1;
        transform: translatey(0);
    }
} */
/* フェードイン END */

/* 記事内のアイキャッチ非表示 */
.p-entry-eyecatch {
    display: none;
}
/* 記事内のアイキャッチ非表示 END */

/* 記事内の更新日非表示 */
.p-entry-date__update {
    display: none;
}
/* 記事内の更新日非表示 END */

/* アーカイブ見出しh1 */
.p-archive-ttl {
    padding: 0.5em;/*文字周りの余白*/
    color: #494949;/*文字色*/
    background: #eaedf5;/*背景色*/
    border-left: solid 5px #5C74B0;/*左線（実線 太さ 色）*/
}
/* アーカイブ見出しh1 END */

/* heading 見出しh2 */
.wp-block-heading {
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: 2px solid #5C74B0;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
}

.wp-block-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    border-width: 18px 18px 0 0;
    border-style: solid;
    border-color: #5C74B0 #fff #5C74B0;
}
/* heading 見出しh2 END */

/* 記事見出しh1 */
.p-entry-ttl {
    font-weight: bold;
    padding: 0.5em 1em;
    background-color: #EB668B;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.p-entry-ttl::after {
    content: '';
    background-color: #fff;
    opacity: 0.3;
    transform: rotate(-65deg);
    position: absolute;
    bottom: -250px;
    right: -250px;
    width: 300px;
    height: 500px;
}
/* 記事見出しh1 END */

/* 最新記事セクション全体 */
.news-section {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

/* 見出し */
.news-heading {
    font-size: 20px;
    font-weight: 700;
    /* margin-bottom: 40px; */
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    color: #333;
}

/* お知らせリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各お知らせアイテム */
.news-item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: #f8f9fa;
}

/* 日付表示 */
.news-date {
    flex-shrink: 0;
    width: 120px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* タイトル */
.news-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #0066cc;
}

/* 「すべて見る」リンク */
.news-more {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.news-more:hover {
    background-color: #0052a3;
}
/* 最新記事セクション全体 END */

/* 最新記事（投稿と連動ロジック） */
.wp-block-latest-posts li {
    font-size: 16px;
}

.wp-block-latest-posts__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-block-latest-posts__list li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.wp-block-latest-posts__post-date {
    margin-right: 10px;
    order: 1;
    white-space: nowrap;
    /* width: 9.5rem; */
}

.wp-block-latest-posts__post-title {
    order: 2;
    /* white-space: nowrap; */
    flex-grow: 0;
}
/* 最新記事（投稿と連動ロジック） END */

/* YouTube */
iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"] {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}
/* YouTube END */

/* カテゴリ色分け */
.p-entry-item__cat-item,.post-categories li a {
    background-color: #5C74B0;
    color: #fff;
    border-radius: 5px;
}
/* カテゴリ色分け END */



/* スマホ
/* ------------------------------------------------------------------------- */

/* TOPリード --------------------------- */
@media screen and (max-width: 768px) {
    pre.wp-block-verse.fadein strong {
        font-size: 14px;
    }
}