/*
Theme Name: Classmanage Article
Theme URI: https://example.com/
Author: Classmanage
Description: 添付HTMLをWordPressの投稿・カテゴリー・タグ・検索に対応させた記事テーマです。
Version: 2.0.11
Text Domain: classmanage-article
*/

/* 元デザインのCSSは assets/css/ 以下から読み込みます。 */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.custom-logo-link { display: block; }
.custom-logo { width: 201px; height: auto; }
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.navigation.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    text-decoration: none;
}
.navigation.pagination .current { color: #fff; background: #008c95; border-color: #008c95; }
.article-contents-body img { max-width: 100%; height: auto; }
.toc-toggle { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.author-box > img.avatar { width: 125px; height: 125px; border-radius: 50%; object-fit: cover; }
.article-contents-footer .article-consultation { margin-bottom: 50px; }
.article-single .article-contents-body .product-introduction.wp-block-group {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 30px !important;
    width: 100%;
}
.product-introduction .wp-block-image { flex: 0 0 200px; margin: 0; }
.product-introduction .wp-block-image img { display: block; width: 200px; height: auto; }
.article-single .article-contents-body .product-introduction > .txt-area { width: auto !important; min-width: 0; }
.article-single .article-contents-body .product-introduction .product-name { margin: 0 !important; padding: 0 !important; border: 0 !important; line-height: 1.4 !important; }
.product-introduction .wp-block-buttons { display: block !important; margin-top: 20px; }
.product-introduction .wp-block-button.btn-more { display: flex !important; width: 17.375rem !important; max-width: 100%; padding: 0 !important; }
.product-introduction .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; padding: 0 1rem; color: inherit; background: transparent; text-decoration: none; white-space: nowrap; }
.article-single .toc-wrapper .js-toc .toc-list,
.article-single .toc-wrapper .js-toc .toc-sub-list { margin: 0; padding: 0; list-style: none !important; }
.article-single .toc-wrapper .js-toc .toc-list .toc-list-item { list-style: none !important; }
.article-single .toc-wrapper .js-toc > .toc-list > .toc-level-h2 { display: block; }
.article-single .toc-wrapper .js-toc .toc-number { display: inline; }
.js-toc .toc-level-h2 + .toc-level-h2 { margin-top: 10px; }
.js-toc .toc-level-h2 > .toc-link { font-weight: 700; }
.article-single .toc-wrapper .js-toc .toc-level-h2 > .toc-sub-list { margin: 6px 0 0 2rem !important; padding: 0 !important; }
.article-single .toc-wrapper .js-toc .toc-level-h3 > .toc-sub-list { margin: 6px 0 0 2rem !important; padding: 0 !important; }
.js-toc .toc-level-h3 + .toc-level-h3 { margin-top: 5px; }
.js-toc .toc-level-h4 > .toc-link,
.js-toc .toc-level-h5 > .toc-link { font-size: 0.95em; }
.article-single .article-contents-body .user-worry.wp-block-group { display: grid !important; grid-template-columns: minmax(0, 1fr) 17.5rem !important; align-items: start !important; gap: 1.875rem !important; }
.article-single .article-contents-body .user-worry .user-prof { display: block !important; width: 17.5rem !important; }
.article-single .article-contents-body .user-worry .user-prof .profile-row { display: grid !important; grid-template-columns: minmax(6rem, 50%) minmax(0, 1fr) !important; align-items: baseline !important; gap: 0.5rem !important; width: 100% !important; }
.article-single .article-contents-body .user-worry .user-prof .profile-row + .profile-row { margin-top: 1rem !important; }
.article-single .article-contents-body .user-worry .user-prof .profile-label { width: 50%; font-size: 0.875rem; color: #333; font-weight: 500; white-space: nowrap; }
.article-single .article-contents-body .user-worry .user-prof .profile-value { flex: 1; margin-left: 0.5rem; font-size: 0.9375rem; color: #000; font-weight: 700; }
.article-single .article-contents-body .user-worry .user-prof .profile-row .profile-label,
.article-single .article-contents-body .user-worry .user-prof .profile-row .profile-value { width: auto !important; margin-left: 0 !important; word-break: keep-all; overflow-wrap: normal; }
.article-single .article-contents-body .user-worry > .user-prof {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 17.5rem !important;
    box-sizing: border-box;
}
.article-single .article-contents-body .user-worry > .user-prof > .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
}
.article-single .article-contents-body .user-worry > dl.user-prof > div,
.article-single .article-contents-body .user-worry .user-prof > .profile-row,
.article-single .article-contents-body .user-worry .user-prof > .wp-block-group__inner-container > .profile-row {
    display: grid !important;
    grid-template-columns: 7.5rem minmax(0, 1fr) !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    width: 100% !important;
}
.article-single .article-contents-body .user-worry > dl.user-prof > div + div,
.article-single .article-contents-body .user-worry .user-prof > .profile-row + .profile-row,
.article-single .article-contents-body .user-worry .user-prof > .wp-block-group__inner-container > .profile-row + .profile-row { margin-top: 1rem !important; }
.article-single .article-contents-body .user-worry .user-prof dt,
.article-single .article-contents-body .user-worry .user-prof dd,
.article-single .article-contents-body .user-worry .user-prof .profile-label,
.article-single .article-contents-body .user-worry .user-prof .profile-value {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
.article-single .article-contents-body .product-introduction .wp-block-button__link { color: #fff !important; }
.article-single .article-contents-footer .article-consultation h2 { font-weight: 900 !important; }
@media (max-width: 768px) {
    .main-header .drawer-cta .cta-contents .cta-inner .contact-wrap {
        width: 100% !important;
        padding-left: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .main-header .drawer-cta .cta-contents .cta-inner .contact-area,
    .main-header .drawer-cta .cta-contents .cta-inner .btn-more {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .main-footer .cta-contents .cta-inner .contact-wrap {
        width: 100% !important;
        padding-left: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .main-footer .cta-contents .cta-inner .contact-area,
    .main-footer .cta-contents .cta-inner .btn-more {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .article-single .article-headline .post-time-wrap .post-time {
        margin-top: 15px !important;
    }
    .article-single .article-headline {
        padding-top: 10px !important;
    }
    .article-single .article-contents-body h4 {
        font-size: 15px !important;
    }
    .article-single .article-contents-body .user-worry,
    .article-single .article-contents-body .user-worry.wp-block-group {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .article-single .article-contents-body .user-worry > .user-prof,
    .article-single .article-contents-body .user-worry > dl.user-prof,
    .article-single .article-contents-body .user-worry > .wp-block-group.user-prof {
        order: 2 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .article-single .article-contents-body .user-worry > .txt-area,
    .article-single .article-contents-body .user-worry > .wp-block-group.txt-area {
        order: 1 !important;
        width: 100% !important;
    }
    .article-single .article-contents-body > p,
    .article-single .article-contents-body > ul > li,
    .article-single .article-contents-body > ol > li,
    .article-single .article-contents-body > .wp-block-list > li,
    .article-single .article-contents-body blockquote p,
    .article-single .article-contents-body .user-worry .txt-area p,
    .article-single .article-contents-body .user-worry .txt-area li,
    .article-single .article-contents-body .product-introduction .product-txt {
        font-size: 15px !important;
    }
    .article-list-area .articlelist li:first-child a .txt-area p,
    .article-list-area .articlelist li:not(:first-child) a .txt-area p {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    .article-single .toc-wrapper .js-toc .toc-list .toc-list-item .toc-link {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }
    .article-single .toc-wrapper .js-toc .toc-list .toc-list-item {
        margin-top: 3px !important;
    }
    .article-single .toc-wrapper .js-toc .toc-level-h2 > .toc-sub-list,
    .article-single .toc-wrapper .js-toc .toc-level-h3 > .toc-sub-list {
        margin-top: 3px !important;
    }
    .article-single .article-contents-body .user-worry .user-prof dt,
    .article-single .article-contents-body .user-worry .user-prof dd,
    .article-single .article-contents-body .user-worry .user-prof .profile-label,
    .article-single .article-contents-body .user-worry .user-prof .profile-value {
        font-size: 15px !important;
        line-height: 1 !important;
    }
    .article-single .article-contents-body .user-worry > dl.user-prof > div + div,
    .article-single .article-contents-body .user-worry .user-prof > .profile-row + .profile-row,
    .article-single .article-contents-body .user-worry .user-prof > .wp-block-group__inner-container > .profile-row + .profile-row {
        margin-top: 8px !important;
    }
    .article-single .article-contents-footer .article-consultation .contact-area .note {
        font-size: 13px !important;
    }
    .article-single .article-contents-footer .author-box .txt-area .profile dt,
    .article-single .article-contents-footer .author-box .txt-area .profile dd {
        font-size: 15px !important;
    }
    .article-single .article-contents-footer .author-box .txt-area .profile dt {
        font-size: 17px !important;
    }
    .article-single .article-contents-footer .author-box .txt-area .profile dd {
        text-align: left !important;
    }
    .main-footer .f-txt {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    .article-single .article-contents-body .product-introduction.wp-block-group { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .product-introduction .wp-block-image { flex-basis: auto; }
    .article-single .article-contents-body .user-worry.wp-block-group { display: flex !important; flex-direction: column-reverse !important; gap: 0.9375rem !important; }
    .article-single .article-contents-body .user-worry .user-prof { width: 100% !important; }
    .article-single .article-contents-body .user-worry > .user-prof { width: 100% !important; }
    .article-single .article-contents-body .user-worry > dl.user-prof > div,
    .article-single .article-contents-body .user-worry .user-prof > .profile-row,
    .article-single .article-contents-body .user-worry .user-prof > .wp-block-group__inner-container > .profile-row {
        grid-template-columns: 8rem minmax(0, 1fr) !important;
        width: 100% !important;
    }
    .article-single .article-contents-body .user-worry .user-prof .profile-label { font-size: 0.625rem; }
    .article-single .article-contents-body .user-worry .user-prof .profile-value { margin-left: 0.375rem; font-size: 0.6875rem; }
}
