@charset "UTF-8";

/* =====================
nail topic
===================== */

.section--nailPage{
    padding-top: 11.6rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.nailCaption{
    position: relative;
    margin-left: 1.6rem;
    display: flex;
    justify-content: center;
}

.nailCaption__topic{
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.7;
    margin-top: 4rem;
}

.nailCaption__topic .nailCaption__copy{
    margin-top: 4rem;
}

.nailCaption__topic .nailCaption__txt{
    display: block;
    font-size: 1.4rem;
    margin-top: 3rem;
    font-weight: 500;
}

/* tab */
.tab__wrap{
    width:37.5rem; 
    margin:0 auto;
}

.tab__area{
    text-align: left;
    margin: 3rem 0 0 2rem;
}

.tab__area label{
    width: 11.5rem; 
    display: inline-block; 
    padding: 1.6rem 2.9rem 0.8rem;
    color: #bbb; 
    background: var(--primary-white); 
    text-align: center; 
    font-size: 2.4rem; 
    cursor: pointer; 
    transition: ease 0.2s opacity;
    border-radius: 10.4rem 10.4rem 10.4rem 10.4rem / 0.8rem 0.8rem 0.8rem 0.8rem;
}

.tab__area label:first-of-type{
    margin-right: 1.4rem;
}

.tab__panel{
    width:100%; 
    padding-top: 3.8rem; 
    display:none;
}

.nailPhoto__wrap{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 4.5rem 1.6rem 0;
    gap: 1.5rem;
    margin-top: -13rem;
    position: relative;
}

.tab__panel p{
    width: 16.4rem;
    margin-bottom: 0.5rem;
}

#tab1:checked ~ .tab__area .tab1__label{
    background: var(--primary-darkBlue); color:var(--primary-white);
}

#tab1:checked ~ .panel__area #panel1{
    display:block;
}

#tab2:checked ~ .tab__area .tab2__label{
    background: var(--primary-darkBlue); color:var(--primary-white);
}

#tab2:checked ~ .panel__area #panel2{
    display:block;
}

.panel__area{
    margin-top: 3rem;
    position: relative;
    z-index: 3;
}

.nailComment{
    padding: 4.3rem 2.3rem 12.2rem 2rem;
    background-color: var(--primary-whiteLow);
    border-radius: 0 50rem 50rem 0;
    margin-right: 4rem;
}

.nailComment__topic{
    font-size: 4rem;
    text-align: left;
}

.nailComment p{
    width: 26.7rem;
    text-align: left;
    margin-bottom: 0;
}

/* nail pc */
@media screen and (min-width:769px) {
    .section--nailPage{
        padding-top: 25rem;
    }
    
    .nailCaption{
        margin: 0 auto;
    }

    .nailCaption__topic{
        font-size: 2.6rem;
        margin-top: 5rem;
    }
    
    .nailCaption__topic span{
        margin-top: 3rem;
        font-size: 1.8rem;
        font-weight: 500;
    }

    .panel__area{
        margin-top: 0;
    }

    .tab__wrap{
        margin: 0;
        width: 100%;
    }

    .tab__area{
        display: flex;
        align-items: center;
        gap: 3rem;
        width: 46.4rem;
        margin: 5rem 0 0 17rem;
        justify-content: center;
    }

    .tab__area label {
        width: 20.7rem;
        height: 9.4rem;
        font-size: 4rem;
    }

    .nailComment {
        padding: 5rem 2.3rem 9rem 17rem;
        width: 85.7rem;
        margin-top: 3rem;
    }

    .nailComment__topic{
        font-size: 8.8rem;
    }

    .nailPhoto__wrap{
        gap: 3.5rem;
        padding: 6.5rem 21.6rem 0;
    }

    .tab__panel p{
        width: 30%;
    }

    .nailComment p{
        font-size: 2rem;
        width: 53rem;
    }
}

/* =====================
nail deco
===================== */
.deco__nail1 img,.deco__nail3 img{
    position: absolute;
    top: 87rem;
    right: -3rem;
    width: 9.3rem;
    -webkit-animation: deco_top3 3s infinite steps(4, jump-none);
    animation: deco_top3 3s infinite steps(4, jump-none);
}

@keyframes deco_top3 {
    0% {
        transform: translate(50%);
    }
    
    100% {
        transform: translate(0%);
    }
}

.deco__nail2 img{
    position: absolute;
    bottom: 30rem;
    left: 0rem;
    width: 9.3rem;   
    -webkit-animation: deco__top2 2.2s infinite;
    animation: deco__top2 2.2s infinite;
}

@keyframes deco__top2{
    0% {
        transform: translateY(0);
    }
    24.9999% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20%);
    }
    49.9999% {
        transform: translateY(-20%);
    }
    50% {
        transform: translateY(-40%);
    }
    74.9999% {
        transform: translateY(-40%);
    }
    75% {
        transform: translateY(-20%);
    }
    99.9999% {
        transform: translateY(-20%);
    }
    100% {
        transform: translateY(0);
    }
}

@media screen and (min-width:769px) {
    .deco__nail1 img, .deco__nail3 img{
        top: 109rem;
        right: 20rem;
        width: 16.3rem;
    }

    .deco__nail2 img{
        bottom: 29rem;
        left: 15rem;
        width: 16.3rem;
    }
}

/* =====================
instaLink
===================== */ 
.instaLink{
    background: var(--primary-whiteLow);
    border-radius: 50rem 0 0 50rem;
    text-align: center;
    padding: 4.8rem 0 4.7rem 6rem;
    margin: -3rem 0 0 8rem;
}

.instaLink__follow{
    font-weight: 400;
    line-height: 1;
    position: relative;
}

.instaLink__follow::before{
    content: "";
    position: absolute;
    top: 0;
    display: block;
    width: 0.1rem;
    height: 100%;
    background: var(--primary-darkBlue);
    left: 6.8rem;
    transform: rotate(-20deg);
}

.instaLink__follow::after{
    content: "";
    position: absolute;
    top: 0px;
    display: block;
    width: 1px;
    height: 100%;
    background: var(--primary-darkBlue);
    right: 7.2rem;
    transform: rotate(20deg);
}

.instaLink__topic{
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.5rem;
}

.instaLink__icon{
    margin-top: 1rem;
}

.instaLink__notes{
    font-weight: 400;
    margin-top: 1.2rem;
}

@media screen and (min-width:769px) {
    .instaLink {
        margin: -10rem 0 0 78rem;
        padding: 11.8rem 0 5.7rem 6rem;
        }
    
    .instaLink__follow{
        font-size: 2.4rem;
    }

    .instaLink__topic{
        font-size: 6.4rem;
    }

    .instaLink__follow::before {
        left: 33.5%;
    }

    .instaLink__follow::after {
        right: 33.5%;
    }

    .instaLink__topic {
        margin-top: 0.8rem;
    }

    .instaLink__notes {
        margin-top: 2rem;
    }

}
/* =====================
footer
===================== */
.footer{
    margin-top: 4rem;
    background-color: var(--primary-gray);
}

@media screen and (min-width:769px) {
    .footer{
        margin-top: 9rem;
    }
}

/* =====================
topic animation
===================== */

.animated-text {
    display: flex;
    justify-content: center;
    font-size: 9rem;
    font-weight: 400;
}

.letter {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

.letter:nth-child(1) {
    animation-delay: 0.1s;
}

.letter:nth-child(2) {
    animation-delay: 0.2s;
}

.letter:nth-child(3) {
    animation-delay: 0.3s;
}

.letter:nth-child(4) {
    animation-delay: 0.4s;
}

.letter:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}