@charset "utf-8";

* {margin:0;  padding:0; box-sizing: border-box;}

html {font: 300 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; 
    font-optical-sizing: auto; font-style: normal; letter-spacing: -0.01em; color: #666; 
    background-color:#fafafa; overflow-x: hidden; scroll-behavior: smooth;}

body {cursor: default;}
li {list-style: none; }
a {text-decoration:none; color:inherit; }
img {width: 100%; user-select: none; pointer-events: none;}

.wrap {width: 90%; max-width: 1100px; margin: 0 auto;}

#nav {width: 100%; height: 3rem; position: fixed; top: 0; left: 0; z-index: 100; background: #fafafa; color: #999; font-weight: 400; font-size: 0.9rem; line-height: 3rem;}
#nav .wrap {display: flex; justify-content: space-between;}
#nav .nav01 {display: flex; align-items: center; height: 3rem;}
#nav .nav01 li.svg {width: 4.2rem; margin-top: 10px;}
#nav .nav02 {display: flex; align-items: center; height: 3rem;}
#nav .nav02 li {padding-left: 2rem; text-align: right;}
#nav .nav02 a.active {color: #111; transition: ease 0.3s;}
#nav .nav02 a:hover {color: #111; transition: ease 0.3s;}

#nav .nav01 li.svg:hover .i {fill: #ff5f57!important; transition: ease 0.3s;}

footer {color: #111; font-size: 0.9rem; padding: 2.5rem 0;}
footer .wrap {display: flex; justify-content: space-between; align-items:center; flex-direction: row-reverse;}
footer .img {width: 4.2rem;}
footer .text {margin-top: 0.5rem;}

footer .aWrap {display: flex; flex-wrap: wrap; justify-content: space-between; width: 40%;}
footer .aWrap a {width: calc(28% - 0.5rem); height: 3rem; line-height: 3rem; text-align: center; outline: 2px solid #eee; background: #fff; color: #111; font-weight: 400; border-radius: 10px; padding: 0 1.25rem; box-sizing: border-box; overflow: hidden;}
footer .aWrap a:hover {background: #111; transition: ease 0.3s; color: #fafafa;}

footer .aWrap a.archive {position: relative; width: calc(44% - 0.5rem); min-width: 8rem; text-align: left; background: #111; color: #fafafa;}
footer .aWrap a.archive svg {width: 0.9rem; position: absolute; top: 50%; right: 1.5rem; transform: translate(0, -50%);}
footer .aWrap a.archive:hover svg {transform: translate(300%, -50%); transition: ease 0.5s;}

footer .aWrap a.archive span {display: inline-block; position: relative; left: 0;}
footer .aWrap a.archive:hover span {left: 50%; transform: translateX(-50%); transition: ease 0.3s;}

.red {color: #ff5f57;}
.redBG {background: #ffe1df;}
.blue {color: #0071e3;}
.blueBG {background: #dbeafe;}
.green {color: #28c840;}
.greenBG {background: #ddf7e3;}
.yellow {color: #ff9f0a;}
.yellowBG {background: #ffeccc;}

.fadeBox {opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;}
.fadeBox.visible {opacity: 1; transform: translateY(0);}

#index {width: 100%; height: 100vh; overflow: hidden; display: flex; align-items: center; cursor: zoom-in;}
#index .wrap {padding-top: 3rem; box-sizing: border-box;}
#index .titleWrap {position: relative;}
#index .title {display: flex; justify-content: space-between;}
#index .title p {flex: 0 0 33%; text-align: center; font-size: 1.25rem; font-weight: 400; color: #111;}
#index .title p:first-child {text-align: left;}
#index .title p:last-child {text-align: right;}

.typingCursor::after {content: "|"; animation: blink 2s infinite;}
@keyframes blink {0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0; }}

#index .subTitle {position: absolute; top: 5rem; left: 0; width: 100%; text-align: center;}
#index .subTitle p {font-size: 1.25rem; color: #111;}
#index .subTitle p::after {content: "|"; animation: blink 2s infinite;}
@keyframes blink {0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0; }}

#index .imgTitle {display: none;}

#index .imgWrap {display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8rem;}
#index .imgWrap .img {flex: 0 0 calc(25% - 20px); display: block;}

.custom-cursor {position: fixed; top: 0; left: 0; pointer-events: none; font-size: 0.75rem; color: #111; transform: translate(10%, -50%); transition: top 0.05s ease, left 0.05s ease; z-index: 1; display: none;}

.cursorBox {position: fixed; width: 8rem; height: 8rem; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.1s ease; z-index: 2;}
.cursorBox p {position: absolute; bottom: -3em; left: 20%; font-size: 0.75rem; padding: 0.25rem 1rem; background: #111; color: #fff; white-space: nowrap; border-radius: 50px;}
.cursorBox p::after {content: ""; position: absolute; top: -0.9rem; left: 1rem; width: 0; height: 0; border: 0.5rem solid transparent; border-bottom-color: #111;}

.down {position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%);}
.down .text {font-size: 0.75rem; font-weight: 500; letter-spacing: 0.075rem; color: #999;}
.down .img {width: 1rem; height: 1rem; margin: 0.5rem auto 0; background: url(../images/down.svg) no-repeat center center / cover;}


#work {width: 100%; padding-top: 5rem;}
.work {width: 100%; margin-bottom: 5rem;}
.work a {display: block;}
.work .text {width: 100%; margin-top: 1rem; font-size: 1.25rem; line-height: 1.3; position: relative;}
.work .text h3 {font-size: 1.25rem; font-weight: 500; color: #111;}

.work .box {width: 100%; border-radius: 10px; overflow: hidden; position: relative;}
.work .box video {display: block; width: 100%; height: 100%; object-fit: cover;}

.science .box img {width: 25%; position: absolute; top: 50%; left: 10%; transform: translateY(-50%); opacity: 1;}
.coocup .box img {width: 50%; position: absolute; top: 0; left: 0; opacity: 1;}
.work .box:hover img {opacity: 0; transition: 0.7s ease;}

.work .tag {position: absolute; right: 0; top: 0;}
.work .tag li {display: inline-block; padding: 0.25rem 1rem; font-size: 0.75rem; background: #eee; color: #666; margin-left: 0.25rem; margin-bottom: 0.5rem; border-radius: 50px;}


.bold {font-weight:600; color: #111;}

#about {width: 100%; padding: 10rem 0 5rem 0;}
#about .wrap {display: flex; justify-content: space-between; flex-direction: row-reverse;}
#about .aboutStar {width: 40%; max-width: 800px;}

#about .text {width: 58%;}
#about .text p {margin-top: 1rem;}

#me {width: 100%; padding: 3rem 0;}
#me .imgWrap {display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 3rem;}
#me .box {flex: 0 0 calc(25% - 1rem);}
#me .box .img {width: 100%; text-align: center; position: relative;}
#me .box .textBox {padding: 1.25rem 1.5rem; border-radius: 10px; background: #fff; border: 2px solid #eee; margin: 1rem 0 3rem 0;}
#me .hoverBox:hover {cursor: none;}

@media (min-width: 2500px) {
    html {font-size: 20px;}
}


@media (max-width: 1200px) {
    html {font-size: 17px;}

    footer .imgWrap {display: flex; flex-direction: row-reverse; justify-content: space-between;}
    footer .wrap {display: block;}
    footer .aWrap {width: 100%; margin-bottom: 2rem;}

    #index .subTitle {display: none;}
    #index .imgTitle {display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 3rem;}

    #index .imgWrap {margin-top: 4em;}

    .work .tag {position: relative; margin-top: 0.75rem;}
    .work .tag li {margin-left: 0; margin-right: 0.25rem;}


    #about {padding: 4rem 0 8rem 0;}
    #about .wrap {display: block; text-align: right;}
    #about .aboutStar {display: inline-block; width: 35%; max-width: 800px;}
    #about .text {width: 100%; text-align: left;}

    #me .imgWrap {justify-content: space-between;}
    #me .box {flex: 0 0 calc(50% - 0.5rem);}
    #me .box .img img {width: 45%;}
    #me .box .cursorBox img {width: 100%!important;}

}

@media (max-width: 767px) {
    html {font-size: 16px;}

    footer .imgWrap {display: block;}

    .textRM {text-align: right;}
    .cursorBox {display: none;}

    #index .title {display: block;}
    #index .title p {font-size: 1.5rem; text-align: left!important;}

    #index .subTitle {display: none;}
    #index .imgTitle p {flex: 50%;}

    #index .imgWrap {margin-top: 3rem; justify-content: space-around;}
    #index .imgWrap .img {flex: 0 0 40%; text-align: center;}
    #index .imgWrap .img img {width: 75%;}

    .down {bottom: 2%;}
    .down .text {display: none;}

    #about .aboutStar {width: 50%;}
    #me .box {flex: 0 0 100%;}

}

@media (max-width: 480px) {
    html {font-size: 15px;}
    #index .imgWrap .img img {width: 100%;}
}
