@charset "UTF-8";

.legal-articles-archive .feature::before {
    height: 320px;
}

/* 法律コラムアーカイブ */
.legal-articles-archive {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 100%;
    margin: 50px auto 0 auto;
    box-sizing: border-box;
}

.legal-articles-area {
    width: 100%;
    background: #32463D;
    margin-top: -30px;
}

.legal-categories-inner .category-list {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.legal-categories-inner .category-list li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.legal-categories-inner .category-list .category-wrap {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 16px;
    box-sizing: border-box;
    text-decoration: none;
    border: 1px solid #FF8A2B;
    background: #ffffff;
    color: #FF8A2B;
    transition: all 0.3s;
}

.legal-categories-inner .category-list .category-wrap:hover {
    background: #FF8A2B;
    color: #ffffff;
}

.legal-categories-inner .category-list .category-wrap.active {
    background: #FF8A2B;
    color: #ffffff;
}

.popular-tags {
    max-width: 1200px;
    margin: 0 auto;
}

.popular-tags .title {
    color: #BEBEBE;
    border-bottom: 2px solid #BEBEBE;
    padding-bottom: 10px;
}

.tags-list {
    max-width: 1200px;
    margin-top: 10px;
}

.side-menu.tags.green a.hashtag {
    color: #32463D;
}

.side-menu.tags.green a.hashtag::after {
    background-color: #32463D;
}

.legal-articles-wrap {
    display: flex;
    max-width: 1200px;
    margin: 50px auto 0px auto;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 50px;
}

.legal-articles-inner {
    position: relative;
    max-width: 780px;
    width: 100%;
}

.legal-articles-list {
    display: flex;
    flex-wrap: wrap;
}

.legal-articles-list .report-item {
    width: 360px;
    height: auto;
    margin-bottom: 50px;
}

.legal-articles-list .report-item:nth-child(odd) {
    margin-right: 60px;
}

.legal-articles-list .report-item .report-item-wrap {
    display: block;
    transition: opacity 0.3s ease;
}

.legal-articles-list .report-item .report-item-wrap:hover {
    opacity: 0.7;
}

.legal-articles-list .report-item .img-wrap {
    width: 360px;
    height: 180px;
}

.category-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.category-date .date-wrap {
    font-size: 14px;
    color: #F5F5F5;
}

.legal-articles-list .report-item .text-wrap .text {
    font-size: 16px;
    color: #F5F5F5;
    margin-bottom: 10px;
}



/* ========================================
   サイドバー
   ======================================== */
.sidebar {
    width: 320px;
}

.sidebar .side-menu .title {
    font-size: 20px;
    color: #F5F5F5;
    border-bottom: 2px solid #F5F5F5;
    padding-bottom: 5px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.sidebar .side-menu .menu-cont:first-child a {
    display: block;
}

.sidebar .side-menu .menu-cont:first-child a .number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
}

.sidebar .side-menu .menu-cont:first-child a .img-wrap {
    width: 100%;
}

.sidebar .side-menu .menu-cont a .img-wrap  {
    display: block;
    transition: opacity 0.3s ease;
}

.sidebar .side-menu .menu-cont a:hover {
    opacity: 0.7;
}

.sidebar .img-wrap img {
    border-radius: 10px;
}

.sidebar .side-menu .menu-cont:first-child a .text-wrap {
    width: 100%;
}

.sidebar .side-menu .menu-cont .text-wrap .text {
    font-size: 16px;
    color: #F5F5F5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.3s ease;
}

.sidebar .side-menu .menu-cont a:hover .text-wrap .text, .sidebar .side-menu .menu-cont a:hover .text-wrap .date-wrap {
    color: #FF8A2B;
}

.sidebar .side-menu .menu-cont .text-wrap .date-wrap {
    font-size: 14px;
    color: #F5F5F5;
    text-align: right;
}

.sidebar .side-menu .menu-cont a{
    position: relative;
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}

.sidebar .side-menu .menu-cont .number {
    position: absolute;
    width: 20px;
    height: 21px;
    left: 10px;
    line-height: 21px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    background: #FF8A2B;
}

.sidebar .side-menu .menu-cont .img-wrap {
    width: 110px;
}

.sidebar .side-menu .menu-cont .text-wrap {
    width: calc(100% - 120px);
}

.legal-articles-archive .page-numbers {
    background: none !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

.legal-articles-archive .pagination .page-numbers:hover,
.legal-articles-archive .pagination .page-numbers.current {
    background: #ffffff !important;
    color: #32463D !important;
    border-color: #ffffff !important;
}


/* 通常時の画像 */
.arrow--prev {
    background-image: url('../imgs/wl-arrow.svg') !important;
}

.arrow--next {
    background-image: url('../imgs/wr-arrow.svg') !important;
}

/* ホバー時の画像切り替え */
.pagination__item a:hover .arrow--prev {
    background-image: url('../imgs/gl-arrow.svg') !important;
}

.pagination__item a:hover .arrow--next {
    background-image: url('../imgs/gr-arrow.svg') !important;
}

@media screen and (max-width: 1190px) {
    .legal-categories, .popular-tags{
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .legal-articles-wrap{
        width: calc(100% - 40px);
    }
}

@media screen and (max-width: 1135px) {
    .legal-articles-wrap {
        flex-direction: column;
        width: calc(100% - 40px);
    }

    .legal-articles-inner {
        position: relative;
        max-width: unset;
        width: 100%;
    }

    .pagination {
        margin-bottom: 50px;
    }

    .sidebar {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .side-menu {
        width: 320px;
        margin-right: 30px;
    }

    .side-menu.tags {
        margin-right: 0;
    }

}

/* ========================================
   法律コラム詳細ページ用CSS（PC版）
   ======================================== */

.detail-container {
    margin: 80px auto;
}

.article-header .img-wrap {
    margin-top: 10px;
}

.article-header .date-wrap {
    color: #32463D;
}

h1.article-title {
    font-size: 40px;
}

.article-header .acf-text1 {
    font-size: 16px;
    margin-top: 20px;
}

/*目次*/
.toc {
	margin: 30px 0 0 0;
    border: 1px solid #FF8A2B;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 50px 30px 50px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.toc-h2 {
    margin-top: 20px;
}

.toc-h2 a {
    position: relative;
    display: inline-block;
    font-size: 20px;
    color: #32463D;
}

.toc-h3 a {
    position: relative;
    display: inline-block;
    font-size: 16px;
    color: #FF8A2B;
    margin-left: 20px;
}

.toc-h2 a::after,
.toc-h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor; /* テキストと同じ色 */
    transform: scaleX(0);
    transform-origin: right; /* 右から左へ */
    transition: transform 0.3s ease;
}

.toc-h2 a:hover::after,
.toc-h3 a:hover::after {
    transform: scaleX(1);
    transform-origin: left; /* 左に向かって伸びる */
}

.article-body {
    color: #222222;
}

.article-body h2 {
    position: relative;
    display: inline-block;
    font-size: 21px;
    color: #ffffff;
    padding: 100px 20px 5px 20px;
    box-sizing: border-box;
    margin: -50px 0 20px 0;
}

.article-body h2::before {
    position: absolute;
    content: "";
    top: 90px;
    left: 0;
    width: 100%;
    height:50px;
    background: #32463D;
    z-index: -1;
}

.article-body h3 {
    font-size: 18px;
    color: #FF8A2B;
    margin: -70px 0 20px 0;
    padding-top: 100px;
}

.article-body .wp-block-list {
    margin-left: 20px;
}

.article-body p {
    margin-bottom: 20px
}

.article-body h4 {
    color: #32463D;
    margin: 20px 0 10px 0;
}

.article-body ul.wp-block-list{
    margin-bottom: 20px;
}
.article-body ul.wp-block-list li {
    position: relative;
}

.article-body ul.wp-block-list li::before {
    position: absolute;
    content: "";
    top: 0;
    left: -10px;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #222222;
    margin: auto;
}

.wp-block-table table tr td:first-child {
    width: 300px;
    background: #32463D;
    color: #ffffff;
}

.wp-block-table table tr td {
    background: #ffffff;
    border: 3px solid #E8E5E0;
}

.post-navigation {
    display: flex;
    margin-top: 80px;
    justify-content: space-between;
}

.post-navigation a {
    position: relative;
    display: flex;
    width: 200px;
    height: 50px;
    font-size: 16px;
    color: #FF8A2B;
    text-decoration: none;
    border: 1px solid #FF8A2B;
    margin-bottom: 80px;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.post-navigation .prev-post a {
    justify-content: flex-end;
}

.post-navigation .prev-post a::before {
    left: 20px;
    right: unset;
    border-left: 0;
    border-right: 10px solid #FF8A2B;
}

.post-navigation a::before {
    position: absolute;
    content: "";
    right: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #FF8A2B;
    border-right: 0;
    transition: border-left-color 0.3s ease;
}

.post-navigation a:hover {
    background-color: #FF8A2B;
    color: #FFFFFF;
    border-color: #FF8A2B;
}

.post-navigation a:hover::before {
    border-left-color: #FFFFFF;
}

.sidebar.single .side-menu .title {
    color: #32463D;
    border-bottom: 2px solid #32463D;
}

.sidebar.single .side-menu .menu-cont a .text-wrap .text,
.sidebar.single .side-menu .menu-cont .text-wrap .date-wrap {
    color: #222222;
}

.sidebar.single .side-menu .menu-cont a:hover .text-wrap .text, .sidebar.single .side-menu .menu-cont a:hover .text-wrap .date-wrap {
    color: #FF8A2B;
}

.side-menu.categories .category-wrap {
    margin: 5px 5px 0 0;
}

.side-menu.categories {
    margin-bottom: 20px;
}