@charset "utf-8";

/*	ブログ
---------------------------------*/
.info-list {
    width: 75%;
}

.cate-box {
    width: 16.7%;
}

.category {
    background-color: #060e62;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 60px;
    padding-left: 30px;
    margin-bottom: 25px;
}

.cate-box .webgene-blog {
    padding-left: 30px;
}

.cate-box .webgene-item {
    margin-bottom: 10px;
}

.cate-box .webgene-item:last-of-type {
    margin-bottom: 0;
}

.cate-box .webgene-item a {
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-left: 10px;
    position: relative;
}

.cate-box .webgene-item a:before {
    content: "-";
    position: absolute;
    top: -4px;
    left: 0;
}

.info-list .webgene-blog {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}

.info-list .webgene-item {
    width: calc((100% - 60px) / 3);
    margin-right: 30px;
    margin-bottom: 50px;
}

.info-list .webgene-item:nth-of-type(3n) {
    margin-right: 0;
}

.info-list .webgene-item .news-img {
    border: solid 1px #ccc;
    margin-bottom: 20px;
    position: relative;
}

.info-list .webgene-item .news-img .cate {
    color: #fff;
    text-align: center;
    background-color: #000;
    line-height: 40px;
    padding: 0 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.info-list .webgene-item .news-img figure.ojf:before {
    padding-top: 73.7%;
    background: no-repeat center center / cover;
    background-image: url(/system_panel/uploads/images/img_no.jpg);
}

.info-list .webgene-item .blogdate {
    font-weight: 700;
    color: #666666;
}

@media screen and (max-width:1023px) {
    .info-list {
        width: 100%;
    }

    .cate-box {
        width: 100%;
        text-align: center;
        padding-top: 80px;
    }

    .category {
        display: inline-block;
        font-size: 1.6rem;
        line-height: 40px;
        padding: 0 20px;
        margin-bottom: 10px;
    }

    .cate-box .webgene-item {
        margin-left: calc((100% - 100px) / 2);
        text-align: left;
        margin-bottom: 10px;
    }
}

@media screen and (max-width:767px) {
    .cate-box {
        padding-top: 50px;
    }

    .cate-box .webgene-item a {
        font-size: 1.4rem;
    }

    .info-list .webgene-blog {
        display: block;
    }

    .info-list .webgene-item {
        max-width: 380px;
        width: 100%;
        margin: 0 auto 30px;
    }

    .info-list .webgene-item:nth-of-type(3n) {
        margin-right: auto;
    }

    .info-list .webgene-item:last-of-type {
        margin-right: auto;
    }

    .info-list .webgene-item .news-img .cate {
        padding: 0 10px;
    }

    .info-list .webgene-item .news-img {
        margin-bottom: 10px;
    }
}


/*	ブログ詳細
---------------------------------*/
.products-detail .webgene-blog {
    box-shadow: 0px 0px 12.75px 2.25px rgba(0, 0, 0, 0.03);
    padding: 40px 15px 80px;
    margin-bottom: 60px;
}

.products-detail .webgene-item {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.products-detail-info {
    margin-bottom: 15px;
}

.products-detail .webgene-item .products-detail-top {
    text-align: center;
    margin-bottom: 40px;
}

.products-detail .webgene-item .blogdate {
    font-weight: 700;
    color: #060e62;
}

.products-detail .webgene-item .products-detail-ttl {
    font-family: "Noto Serif JP";
    font-size: 2.1rem;
    font-weight: 600;
    color: #000;
    padding-bottom: 30px;
    border-bottom: solid 1px #01004e;
}

.post-main-photo {
    text-align: center;
    margin-bottom: 30px;
}

.post-thumb-list figure {
    text-align: center;
    width: calc(96% / 5);
    margin-right: 1%;
    margin-bottom: 20px;
}

.post-thumb-list figure:nth-of-type(5n) {
    margin-right: 0;
}

.products-detail-content-txt {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.products-detail-content-txt a {
    text-decoration: underline;
    color: #065FD4;
}

#post-pdf[href=""] {
    display: none;
}

#post-pdf {
    display: inline-block;
    color: #007bff;
    text-decoration: underline;
}

.products-detail .webgene-item iframe {
    display: block;
    margin-top: 30px;
}

#post-youtube[src=""] {
    display: none;
}

@media screen and (max-width:767px) {
    .products-detail .webgene-blog {
        padding: 30px 15px 40px;
        margin-bottom: 40px;
    }

    .products-detail .webgene-item .products-detail-top {
        margin-bottom: 30px;
    }

    .products-detail-info {
        margin-bottom: 10px;
    }

    .products-detail .webgene-item .cate {
        padding: 0 10px;
        margin-left: 10px;
    }

    .products-detail .webgene-item .products-detail-ttl {
        font-size: 1.8rem;
        padding-bottom: 20px;
    }

    .products-detail .webgene-item figure {
        margin-bottom: 20px;
    }

    .products-detail .webgene-item .products-detail-content {
        font-size: 1.4rem;
    }

    .post-thumb-list figure {
        text-align: center;
        width: calc(97% / 4);
        margin-right: 1%;
        margin-bottom: 20px;
    }

    .post-thumb-list figure:nth-of-type(5n) {
        margin-right: 1%;
    }

    .post-thumb-list figure:nth-of-type(4n) {
        margin-right: 0;
    }
}

.post-photo {
    position: relative;
}

.post-photo:before {
    content: "";
    display: block;
    padding-top: 66.9%;
}

.post-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'object-fit: cover;';
}

.post-pdf,
.post-youtube {
    margin-top: 30px;
}

/* 目次 */
.js-toc {
    border: 1px solid #d3eaf1;
    padding: 25px 50px;
    margin-bottom: 24px;
    background: #d3eaf1;
    border-radius: 20px;
}

.js-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 12px 16px; */
    cursor: pointer;
}

.js-toc-title {
    font-weight: bold;
    font-size: 16px;
}

.js-toc-toggle {
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
}

button.js-toc-toggle:focus {
    outline: none;
}

/* 三本線 */
.js-toc-toggle::before,
.js-toc-toggle::after,
.js-toc-toggle span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
}

.js-toc-toggle::before {
    top: 0;
}

.js-toc-toggle span {
    top: 8px;
}

.js-toc-toggle::after {
    bottom: 0;
}

/* 開いた時（×にしたい場合） */
.js-toc-toggle.is-open::before {
    transform: rotate(45deg);
    top: 8px;
}

.js-toc-toggle.is-open::after {
    transform: rotate(-45deg);
    bottom: 8px;
}

.js-toc-toggle.is-open span {
    opacity: 0;
}

.js-toc-list {
    list-style: none;
    margin-top: 25px;
}

.js-toc-list li.h2 {
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.js-toc-list li.h2::before {
    content: "・";
    margin-right: 5px;
}

.js-toc-list li a {
    text-decoration: none;
    color: #180b6d;
}

.js-toc-list ul.h3_box {
    margin-bottom: 16px;
}

.js-toc-list li.h3 {
    margin: 0 0 10px 37px;
    font-size: 1.6rem;
}

@media screen and (max-width:767px) {
    .js-toc {
        padding: 25px;
    }
}