


.y_ani {
    opacity: 0;
}


/* page */
.page_top {
    padding-top: 0;
    height: clamp(700px, 81vh, 740px);
    padding-bottom: 100px;
    overflow: hidden;
    z-index: 1;
}
.page_top .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.deco {
    width: 700px;
    height: auto;
    position: absolute;
    top: -100px;
    left: -100px;
    -webkit-mask-image: url('/images/ink_1.png');
    mask-image: url('/images/ink_1.png');

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;

    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;

    transform-origin: 0% 0%;
    transform: translate(-80px, -30px);
    opacity: 0;
    filter: grayscale(1);
}

.bg {
    position: absolute;
    inset: 0;
}


.page_title_img {
    width: 200px;
    margin-bottom: 30px;
}
.page_title {
    max-width: 66.666%;
    letter-spacing: 0;
    font-size: var(--ft32);
}
.page_top .info_list {
    margin-top: 100px;
    display: flex;
    align-items: start;
    gap: var(--con-gap);
}
.page_top .info_list p {
    font-size: var(--ft18);
    color: var(--gray-500);
    font-weight: var(--bold);
}
.page_top .info_list .label {
    font-size: var(--ft14);
    color: var(--gray-400);
    margin-bottom: 14px;
}



/* main */
main {
    margin-top: var(--sec-gap);
    margin-bottom: var(--sec-gap);
    transform: translateY(calc(var(--sec-gap) / 2 * -1));
}
main .grid {
    display: grid;
    grid-template-columns: minmax(300px, min(27%, 450px)) 1fr;
    border-bottom: 1px solid var(--gray-500);
}



/* post_body */
.post_body {
    padding: 0 120px 100px;
}
.media {
    margin-bottom: var(--con-gap);
}
.editor {
    margin-bottom: var(--con-gap);
}
.editor * {
    font-family: var(--sans);  
}
.editor p {
    color: var(--ft-sub);
}

.tag {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tag span {
    padding: 4px 8px;
    background: white;
    color: var(--gray-500);
    font-family: var(--sans);
    font-size: var(--ft16);
}


/* post_side */
.post_side .sticky {
    position: sticky;
    top: var(--header-gap);
    max-height: calc(100vh - var(--header-gap));
    height: 100%;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.post_logo {
    width: 120px;
    margin-bottom: 100px;
}
.post_side .title {
    font-size: var(--ft26);
    color: var(--ft-main);
    font-weight: var(--bold);
    margin-bottom: 40px;
}
.post_side .date {
    font-size: var(--ft16);
    color: var(--gray-400);
    font-weight: var(--semi-bold);
}

.post_side .bot {
    margin-top: 100px;
}
.post_side .btn_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post_side .btn {
    gap: 10px;
    position: relative;
    padding: 10px;
    padding-left: 0;
    transition: .4s ease;
    width: fit-content;
}
.post_side .btn .icon {
    --size: 18px;
    width: var(--size);
    height: var(--size);
    background: var(--gray-500);
}
    
.share_btn .icon {
    mask: url('/images/icon/share.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/share.svg') no-repeat center / contain;
}
.link_btn .icon {
    mask: url('/images/icon/link.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/link.svg') no-repeat center / contain;
}
.post_side .btn span {
    font-size: var(--ft16);
    color: var(--gray-500);
    font-weight: var(--semi-bold);
    transform: scale(1);
    transition: .4s ease;
}
.post_side .btn:hover .icon {
    transform: scale(1);
    transition: .4s ease;
}
.post_side .btn::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0 -40px 0 0;
    background: url('/images/brush_texture_h.png') no-repeat center / 100% 100%;
    transform: scaleX(0);
    opacity: 0;
    transition: transform .4s ease, opacity 0.4s ease;
    transform-origin: left center;
    transition-delay: 0.4s, 0s;
}
.post_side .btn:hover {
    padding-left: 10px;
}
.post_side .btn:hover::before {
    transform: scaleX(1);
    opacity: 1;
    transition-delay: 0s, 0.1s;
}
.post_side .btn:hover .icon,
.post_side .btn:hover span {
    transform: scale(0.9);
}
.post_side .btn:hover span {
    color: var(--white);
}
.post_side .btn:hover .icon {
    background: var(--white);
}


/* post_nav */
.post_nav {
    margin-top: var(--sec-gap);
}
.post_nav > .inner {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: var(--con-gap);
}
.post_nav_btn {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.post_nav_btn.next {
    align-items: end;
}
.post_nav_btn .top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}
.post_nav_btn .top span {
    font-size: var(--ft16);
    color: var(--gray-500);
    line-height: 1;
    font-weight: var(--semi-bold);
}
.post_nav_btn .icon {
    --size: 20px;
    width: var(--size);
    height: var(--size);
}
.post_nav_btn.prev .icon {
    background: url('/images/icon/chevron-left.svg') no-repeat center / contain;
}
.post_nav_btn.next .icon {
    background: url('/images/icon/chevron-right.svg') no-repeat center / contain;
}

.post_nav_btn .category {
    font-size: var(--ft14);
    color: var(--gray-400);
    margin-bottom: 12px;
}
.post_nav_btn .title {
    font-size: var(--ft18);
    color: var(--ft-main);
    font-weight: var(--semi-bold);
}
.post_nav_btn.next .category,
.post_nav_btn.next .title {
    text-align: right;
}
.post_nav_list {
    --size: 140px;
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ft18);
    color: var(--ft-main);
    position: relative;
    flex-direction: column;
    gap: 6px;
    transition: color .4s .1s ease;
}
.post_nav_list .icon {
    width: 20px;
    height: 20px;
    background: var(--gray-500);
    mask: url('/images/icon/return.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/return.svg') no-repeat center / contain;
    transition: background .4s .1s ease;
}
.post_nav_list::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    transform: scale(1);
    opacity: 1;
    transition: .4s ease;
}
.post_nav_list::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/images/ink_1.png') no-repeat center / contain;
    mask: url('/images/ink_1.png') no-repeat center;
    -webkit-mask: url('/images/ink_1.png') no-repeat center;
    mask-size: 0;
    opacity: 0;
    transition: .6s ease-in-out;
}

.post_nav_list:hover {
    color: var(--white);
}
.post_nav_list:hover .icon {
    background: var(--white);
}
.post_nav_list:hover::after {
    mask-size: 100%;
    opacity: 1;
}
.post_nav_list:hover::before {
    transform: scale(0.8);
    opacity: 0;
}

/* .post_nav_btn:hover::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary), transparent);
} */
.post_nav_btn .title,
.post_nav_btn .category {
    transition: .4s ease;
}

.post_nav_btn.prev:hover .title,
.post_nav_btn.prev:hover .category {
    transform: translateX(10px);
}

.post_nav_btn.next:hover .title,
.post_nav_btn.next:hover .category {
    transform: translateX(-10px);
}

.post_nav_btn .icon {
    transition: .4s ease;
}

.post_nav_btn.prev:hover .icon {
    transform: translateX(-6px);
}

.post_nav_btn.next:hover .icon {
    transform: translateX(6px);
}



@media (hover:none) and (pointer:coarse) {
    .post_nav_list {
        color: var(--white);
    }
    .post_nav_list .icon {
        background: var(--white);
    }
    .post_nav_list::after {
        mask-size: 100%;
        opacity: 1;
    }
    .post_nav_list::before {
        transform: scale(0.8);
        opacity: 0;
    }
}

@media screen and (max-width: 1440px) {
    .post_logo {
        margin-bottom: 50px;
    }
    .post_side .title {
        margin-bottom: 30px;
    }
    .post_body {
        padding: 0 90px 100px;
    }
}

@media screen and (max-width: 1024px) {
    .bg img {
        object-position: right;
    }
    .page_top {
        height: clamp(600px, 81vh, 740px);
    }
    .page_top .info_list {
        margin-top: 60px;
    }
    main .grid {
        grid-template-columns: 1fr;
    }
    .post_side {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .page_title {
        max-width: 100%;
    }
    .page_title_img {
        width: 150px;
    }
    /* post_body */
    .post_body {
        padding: 0 0 100px;
    }
    .post_nav > .inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .post_nav {
        margin-top: 0;
    }
    .post_nav_btn {
        flex-direction: row;
        align-items: start;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--gray-300);
        gap: 20px;
    }
    .post_nav_btn.next {
        align-items: start;
    }
    .post_nav_btn .top {
        margin-bottom: 0;
        gap: 6px;
    }
    .post_nav_btn .icon {
        --size: 16px;
    }
    .post_nav_btn.prev .icon {
        background: url('/images/icon/chevron-up.svg') no-repeat center / contain;
    }
    .post_nav_btn.next .icon {
        background: url('/images/icon/chevron-down.svg') no-repeat center / contain;
        order: -1;
    }
    .post_nav_btn .category,
    .post_nav_btn .title {
        text-align: right;
    }
    .post_nav_list {
        order: 3;
        margin: 30px auto 0;
    }
}
@media screen and (max-width: 600px) {
    .deco {
        width: 600px;
        left: auto;
        right: 0;
        top: -50px;
    }
}