
@charset "utf-8";

/*** 숨김항목 ***/
.pc-main, .menuTop, .mainWork, #ft {
    display: none;
}

:root {
    --nav-height: 7rem;
}

html, body {
    font-size: 9px;
    font-family: "Paperlogy";
    font-weight: 400;
    letter-spacing: 0.05rem;
    background-color: #F0F0F0;
    padding: 0;
    height: 100%;
    height: -webkit-fill-available;
}

body > * {
    line-height: 1;
}

.wrap {
    padding: 0;
}

main {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-bottom: 2rem;
    gap: 4rem;
    height: calc(var(--vh, 1vh) * 100);
    margin-bottom: 8rem;
}

.profil {
    display: flex;
    padding:2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 0 0 3rem 3rem;
    background: #007147;
    box-shadow: 0px 4px 27px 0px rgba(84, 157, 117, 0.30);
    flex: 1;
    max-height: 30rem;
}

.profil .photo {
    width: 8.4rem;
    height: 8.4rem;
    border-radius: 3rem;
    background: url(../img/mobile/profil2.png) no-repeat;
    background-size: contain;
}

.profil h2 {
    color: #FFF;
    font-family: Montserrat;
    font-size: 2.4rem;
    font-weight: 500;
    margin-top: 2.2rem;
}

.profil p {
    color: #FFF;
    font-family: Paperlogy;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.84px;
    margin-top: 1.2rem;
}

.profil .snsSet {
    display: flex;
    gap: 1rem;
    margin-top: 2.8rem;
}

.profil .snsSet a {
    background-color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    align-self: stretch;
    padding: 0 2.2rem;
}

.sec h3 {
    color: #0C101C;
    font-size:1.6rem;
    font-weight: 600;
}

.cate {
    display: flex;
    height: 11rem;
    align-items: flex-start;
    gap: 1.4rem;
    align-self: stretch;
}

.cate li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    flex: 1 0 0;
    align-self: stretch;
}

.cate li .img {
    border-radius: 24px;
    background: #F5F5F5;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.cate li .img img {
    height: 3.2rem;
}

.cate li .tl {
    color: #000;
    text-align: center;
    font-family: Montserrat;
    font-size: 1.2rem;
    letter-spacing: -0.05rem;
    font-weight: 500;
}

.project-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 3rem; /* 양쪽 여백 */
  margin-left: -3rem;
}

.project {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

    padding-bottom: 1rem; /* 스크롤시 하단 간섭 제거 */
    scroll-padding-left: 3rem;
    scroll-padding-right: 3rem;
    scrollbar-width: none;
    width: calc(100vw - -2rem);
    margin-left: -3rem;
    padding: 0 3rem;

    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.project::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.project .item {
    display: flex;
    width: 22rem;
    min-width: 22rem;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 2rem;
    border: 1px solid #F0F0F0;
    background: #F4F4F4;
    
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.project .item .thumnail {
    height: 12rem;
    border-radius: 1.4rem;
    overflow: hidden;
}

.project .item .thumnail img {
    width: 100%;
}

.project .item .text {
    display: flex;
    padding: 0.2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    align-self: stretch;
}

.project .item .label {
    display: block;
    padding: 0.4rem;
    border-radius: 0.4rem;
    background: #FFF;
    color: #007147;
    font-family: Montserrat;
    font-size: 0.8rem;
    font-weight: 500;
}

.project .item .tl {
    color: #000;
    font-family: Paperlogy;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    width: 100%;
}

.mNav {
    position: fixed;
    left: 0;
    bottom: 0;
    display: flex;
    width: 100%;
    height: var(--nav-height);
    padding: 0px 2rem;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 2rem 2rem 0px 0px;
    background: #FFF;
    box-shadow: 0px -13px 10px 0px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    inset: auto 0 0 0; /* or just bottom: 0 */
    z-index: 999;
}

.mNav .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:0.6rem;
    flex: 1 0 0;
    align-self: stretch;
    color: #686868;
    font-size: 1.1rem;
    font-weight: 500;
}

.mNav .item img {
    width: 2.4rem;
}

.mNav .item.on {
    filter: invert(52%) sepia(19%) saturate(1006%) hue-rotate(94deg) brightness(88%) contrast(85%);
    position: relative;
}

.mNav .item.on::before {
    content: '';
    display: block;
    position: absolute;
    background-image: url(../img/mobile/nav-on.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    width: 1rem;
    height: 1rem;
    top: 0;
}
