@charset "UTF-8";

/* ==========================================================
   TOPICS PAGE STYLES (List & Single) - Simple Fade In
   ========================================================== */

/* ----------------------------------------------------------
   共通アニメーション (Simple Fade In)
   ---------------------------------------------------------- */
@keyframes tnsbFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* ----------------------------------------------------------
   一覧リスト (List View)
   ---------------------------------------------------------- */
.new_topic_list-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 80px 0 0;
    margin: -80px 0 80px;
    position: relative;
}

/* サムネイル画像エリア */
.new_topic_list-box .topic-img {
    width: 20%;
    margin-right: 3%;
    padding-right: 3%;
    border-right: 1px solid #ededed;
    box-sizing: border-box;
}
.new_topic_list-box .topic-img a {
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: block;
}
.new_topic_list-box .topic-img img {
    border-radius: 3px;
    transition: opacity 0.2s;
    /* ▼ アニメーション適用 */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out forwards;
}
.new_topic_list-box .topic-img:hover img {
    opacity: .8;
}
.new_topic_list-box .topic-img .topic-date {
    font-size: 1.2em;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 0;
    text-align: center;
    line-height: 3em;
}

/* テキストエリア */
.new_topic_list-box .topic-tex {
    width: 77%;
}
.new_topic_list-box .topic-tex p {
    margin-bottom: 1em;
}
.new_topic_list-box .topic-tex p strong {
    font-weight: 600;
}
.new_topic_list-box .topic-tex .tit {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 1em;
    line-height: 1.5;
}
.new_topic_list-box .topic-tex .tex {
    line-height: 1.7em;
}
/* 一覧内の本文画像 */
.new_topic_list-box .topic-tex .tex img {
    width: 60%;
    /* ▼ アニメーション適用（少し遅らせる） */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out 0.2s forwards;
}
.new_topic_list-box .topic-tex .tex a {
    text-decoration: underline;
}
.new_topic_list-box .topic-tex .tex a:hover {
    text-decoration: none;
}

/* 記事内見出し（一覧表示時） */
.new_topic_list-box .topic-tex .tex h2 {
    font-weight: 600;
    font-size: 1.3em;
    line-height: 1.3;
    margin: 2em 0 .5em;
}
.new_topic_list-box .topic-tex .tex h3 {
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 2em 0 1em;
}
.new_topic_list-box .topic-tex .tex h4 {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 2em 0 1em;
}
.new_topic_list-box .topic-tex .tex .wp-block-quote {
    padding: 1.5em;
    background: #ececec;
    border-radius: 0.5em;
    margin-bottom: 1em;
    line-height: 1.6;
}

/* もっと読むボタン */
.loadmore-btn {
    display: block;
    padding: 10px 40px;
    background-color: initial;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    border: 2px solid #000;
    margin: 0 auto 100px;
    text-align: center;
    cursor: pointer;
    color: #000;
}
.loadmore-btn.blk {
    color: #fff;
    border: 2px solid #fff;
}

/* スマホ対応（一覧） */
@media (max-width: 780px) {
    .new_topic_list-box {
        border-bottom: 1px solid #e0e0e0;
        padding: 70px 0 0;
        margin: -70px 0 34px;
    }
    .new_topic_list-box .topic-img {
        width: 80px;
        margin-right: 0;
        padding-right: 0;
        border-right: 0;
        margin-bottom: 0;
    }
    .new_topic_list-box .topic-img a {
        border-radius: 3px;
        width: 80px;
        height: 62px;
        display: block;
        overflow: hidden;
    }
    .new_topic_list-box .topic-img img {
        width: 110px;
        position: relative;
        left: -15px;
    }
    .new_topic_list-box .topic-img .topic-date {
        line-height: 1.6;
        color: #8b8b8b;
    }
    .new_topic_list-box .topic-tex {
        width: calc(100% - 95px);
        padding-bottom: 20px;
        margin-left: 15px;
        font-size: 0.9em;
    }
    .new_topic_list-box .topic-tex .tex img {
        width: 100%;
    }
    .new_topic_list-box .topic-tex .tit {
        font-size: 1.1em;
        margin: 0.4em 0 0.4em;
    }
    
    /* いいねボタン（スマホ） */
    .new_topic_list-box .topic-tex .tex .wpulike {
        position: absolute;
        left: 12px;
        bottom: 26px;
    }
    .new_topic_list-box .topic-tex .tex a {
        word-wrap: break-word;
    }
}


/* ----------------------------------------------------------
   記事詳細 (Single View / Inner)
   ---------------------------------------------------------- */
.topics_inner .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}
.topics_inner a {
    color: #0078ff;
}
.topics_inner a:hover {
    opacity: .7;
}
/* 詳細ページのメイン画像 */
.topics_inner .img img {
    display: block;
    margin: 0 auto;
    max-width: 1140px;
    /* ▼ アニメーション適用 */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out forwards;
}
.topics_inner .tit {
    font-weight: 600;
    font-size: 1.6em;
    line-height: 1.4;
    margin-bottom: .6em;
    text-align: center;
}
.topics_inner .dat {
    margin: 0 0 4em;
    font-size: 1em;
    text-align: center;
}

/* 本文スタイル */
.topics_inner .tex > p {
    margin-bottom: 1.7em;
    line-height: 2;
}
.topics_inner .tex > p strong {
    font-weight: 600;
}
/* 詳細本文内の画像 */
.topics_inner .tex img {
    /* ▼ アニメーション適用（少し遅らせる） */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out 0.2s forwards;
}
.topics_inner .tex > h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 3em 0 1em 0;
}
.topics_inner .tex > h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 3em 0 1em 0;
}
.topics_inner .tex > h4 {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 3em 0 3em 0;
}
.topics_inner .tex > h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 3em 0 1em 0;
}
.topics_inner .tex > h6 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 1em 0;
    border-left: 1px solid #000;
    padding: 0.5em 0 0.5em 1.5em;
}
.topics_inner .tex ul li {
    margin: 0 0 0 1.2em;
    position: relative;
}
.topics_inner .tex ul li:before {
    content: '●';
    position: absolute;
    left: -1em;
}
.topics_inner .tex blockquote {
    quotes: none;
    background: #f5f5f5;
    padding: 3% 4%;
    margin-bottom: 2em;
    font-size: 1em;
    line-height: 2.4;
    border-radius: 6px;
}
.topics_inner .tex blockquote p {
    margin-bottom: 1em;
    line-height: 1.6;
}
.topics_inner .tex blockquote p strong {
    font-weight: 600;
}
cite {
    text-align: right;
    font-size: 0.8em;
    opacity: 0.6;
    display: block;
    margin: 3em 0 0;
}

/* ボタン */
.topics_inner p.btn {
    margin-bottom: 6em;
}
.topics_inner p.btn a {
    display: inline-block;
    background: #0064d9 !important;
    color: white !important;
    line-height: 1;
    padding: 0.8em 4em;
    border-radius: 0.3em;
    cursor: pointer;
}

/* 装飾クラス */
.topics_inner .orange:before {
    content: '■';
    padding-right: .5em;
    color: #ff0054;
}
.topics_inner .gray {
    color: #b4b4b4;
}

/* YouTube埋め込み */
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    width: 50%;
    aspect-ratio: 16 / 9;
}
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
    width: 100%;
    height: 100%;
}
.topics_inner .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    width: 100%;
}

/* 画像ブロック調整（詳細本文） */
.wp-block-image img {
    height: auto;
    /* ▼ アニメーション適用（少し遅らせる） */
    opacity: 0;
    animation: tnsbFadeIn 0.4s ease-out 0.2s forwards;
}

/* スマホ対応（詳細） */
@media (max-width: 780px) {
    .topics_inner .inner {
        padding: 6vw 20px;
    }
    .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
        width: 100%;
    }
}