@import url("cssreset.css");
@import url("base.css");
@import url("header.css");
@import url("navigation.css");

/* contents.css */
#wrapper:before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-image: url("../images/bg_contents.jpg");
    background-attachment: fixed;
    content: "";
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.contents-wrap {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    z-index: 1;
}

#contents {
    width: calc(100% - 350px);
    padding-top: 260px;
    text-align: left;
}

#contents h2.category-title {
    margin-bottom: 1.5em;
    line-height: 1.2;
    font-size: 32px;
    font-weight: 400;
}
#contents h2.category-title span {
    display: block;
    font-family: "Marcellus", serif;
    font-size: 24px;
    color: #132d93;
}

/* article */
#contents article {
    position: relative;
    background-color: #ffffff;
    margin-bottom: 30px;
    padding: 35px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
#contents article:after {
    position: absolute;
    top: 0;
    left: 100%;
    width: 9999px;
    height: 100%;
    background-color: #ffffff;
    content: "";
}
#contents article a {
    color: #000000;
    text-decoration: none;
    transition: all .3s ease;
}
#contents article h3 {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
    padding-bottom: 0.15em;
    border-left: 8px solid #132d93;
    line-height: 1.4;
    font-size: 24px;
}
#contents article h3 a:hover {
    color: #132d93;
}
#contents article p {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1.5em;
    font-size: 14px;
}

#contents.top article p {
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#contents article p.more a {
    display: inline-block;
    position: relative;
    padding: 0.25em 4em 0.25em 1.5em;
    border: 1px solid #000000;
    border-radius: 9999px;
}
#contents article p.more a:after {
    position: absolute;
    top: 0;
    right: 1em;
    bottom: 0;
    width: 2.5em;
    height: 0.85em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("../images/arrow.png");
    margin: auto;
    transition: all .3s ease;
    content: "";
}
#contents article p.more a:hover {
    background-color: #e6e6e6;
}
#contents article p.more a:hover:after {
    transform: translateX(0.5em);
}
#contents article ul {
    display: flex;
    flex-wrap: wrap;
}
#contents article ul li {
    background-repeat: no-repeat;
    background-position: left top 0.4em;
    background-size: 1em;
    margin-right: 2em;
    padding-left: 1.25em;
    font-size: 14px;
}
#contents article ul li:last-child {
    margin-right: 0;
}
#contents article ul li.time {
    background-image: url("../images/icon_calender.png");
}
#contents article ul li.author {
    background-image: url("../images/icon_people.png");
}
#contents article ul li.category {
    background-image: url("../images/icon_document.png");
}
#contents article ul li a:hover {
    text-decoration: underline;
}

#contents article ul li.category ul li {
    margin-right: 0;
    padding-left: 0;
}
#contents article ul li.category ul li:not(:last-child):after {
    margin-right: 0.5em;
    content:","
}


/* pager */
.pager {
    margin-bottom: 120px;
}
.pager ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 16px;
}
.pager ul li:not(:first-child):not(:last-child) {
    margin: 0 0.35em;
}
.pager ul a,
.pager ul li.current span {
    display: block;
    position: relative;
    width: 2em;
    height: 2em;
    border: 1px solid #132d93;
    border-radius: 100%;
    text-align: center;
}
.pager ul a {
    background-color: #132d93;
    color: #ffffff;
    text-decoration: none;
}
.pager ul a:hover {
    background-color: #ffffff;
    color: #000000;
}
.pager ul li.current span {
    background-color: #ffffff;
}

.pager ul li.prev {
    margin-right: 0.35em;
}
.pager ul li.next {
    margin-left: 0.35em;
}
.pager ul li.prev a,
.pager ul li.next a {
    text-indent: -9999px;
}
.pager ul li.prev a:before,
.pager ul li.next a:before {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1em;
    height: 0.85em;
    background-color: #ffffff;
    margin: auto;
    transition: all .3s ease;
    content: "";
}
.pager ul li.prev a:before {
    left: 0.6em;
    clip-path: polygon(60% 0, 20% 50%, 60% 100%, 40% 100%, 0% 50%, 40% 0);
}
.pager ul li.next a:before {
    right: 0.6em;
    clip-path: polygon(60% 0, 100% 50%, 60% 100%, 40% 100%, 80% 50%, 40% 0);
}
.pager ul li.prev a:hover:before,
.pager ul li.next a:hover:before {
    background-color: #132d93;
}


/* post navigation */
#contents .post-navigation {
    margin: 40px 0;
    width: 100%;
}

#contents .post-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#contents .post-navigation ul li {
    margin: 0;
    padding: 0;
    background: none;
}

#contents .post-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #000000;
}

#contents .post-navigation .nav-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

#contents .post-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

#contents .post-navigation .nav-title {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
}

/* Arrow icons */
#contents .post-navigation ul li.prev a::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    min-width: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #132d93;
}

#contents .post-navigation ul li.next a::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    min-width: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #132d93;
}


/* - 768px */
/*-----------------------------------------------------------*/
@media only screen and (max-width: 768px) {

.contents-wrap {
    display: block;
    padding-left: 0;
}

#contents {
    width: 100%;
    padding: 140px 5% 0;
}

}
/* - 768px end */



/* - 640px */
/*-----------------------------------------------------------*/
@media only screen and (max-width: 640px) {

#contents {
    padding: 20vw 5% 0;
}

#contents h2.category-title {
    font-size: 5.4vw;
}
#contents h2.category-title span {
    font-size: 4.8vw;
}

#contents article {
    margin-bottom: 6vw;
    padding: 6vw 3vw 6vw 6vw;
    border-top-left-radius: 4vw;
    border-bottom-left-radius: 4vw;
}
#contents article h3 {
    border-left: 4px solid #132d93;
    font-size: 4.8vw;
}
#contents article p {
    font-size: 3.2vw;
    -webkit-line-clamp: 3;
}
#contents article ul li {
    font-size: 3.2vw;
}

/* post navigation */
#contents .post-navigation ul li a {
    padding: 4vw 5vw;
}

#contents .post-navigation .nav-label {
    font-size: 2.8vw;
}

#contents .post-navigation .nav-title {
    font-size: 3.2vw;
}

#contents .post-navigation ul li.prev a::before {
    border-top-width: 2vw;
    border-bottom-width: 2vw;
    border-right-width: 3vw;
}

#contents .post-navigation ul li.next a::after {
    border-top-width: 2vw;
    border-bottom-width: 2vw;
    border-left-width: 3vw;
}

/* pager */
.pager {
    margin-bottom: 16vw;
}
.pager ul {
    font-size: 3.6vw;
}

}
/* - 640px end */





