@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho&display=swap');

*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
}

body{
    font-size: 1rem;
    letter-spacing: 1.2px;
    font-family: "MFW-ShinGoPro-Regular";
    font-size: 18px;

    position: relative;
    line-height: 2;
}

p{
    font-size: 18px;
    line-height: 36px;
}

a{
    cursor: pointer;
    color: #000000;
}

img{
    width: 100%;
}

h2{
    font-family: "MFW-RyuminPro-ExHeavy";
    font-weight: 600;
}

h3{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

main{
    z-index: 0;
}

.main-visual{
    background-image: url(/assets/images/top/black_gradient\ 17.46.56.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #333333;

    width: 100%;
    height: 363px;
    display: flex;
    justify-content: center;
}

.main-visual-content{
    padding-top: 55px;
    padding-left: 6%;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 165px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.main-title{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 1.2;
    color: white;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.534);
}

.main-title > br{
    display: none;
}

#production-main > .main-visual > .main-visual-content{
    background-image: url(/assets/images/jisseki/jisseki_mv.webp);
}

.improvement-services, .web-design-service{
    background-color: #F7F7F7;
}

.obi{
    height: 66px;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.obi-purple{
    background: linear-gradient(to right, #333333 0%, #333333 68%, #96005F 100%);
}

.obi-text h2{
    width: 100%;
    font-family: "MFW-RyuminPro-ExHeavy";
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    padding-left: 30px;
    color: white;
}


.pattern-one, .pattern-two{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 60px 0;

    background: linear-gradient(to bottom, #ffffff 0%, #EEEEEE 25%, #EEEEEE 100%);
}

.production .pattern-two:nth-last-child(45) .screens img, 
.production .pattern-two:nth-last-child(44) .screens img, 
.production .pattern-two:nth-last-child(43) .screens img,
.production .pattern-two:nth-last-child(34) .screens img,
.production .pattern-two:nth-last-child(33) .screens img,
.production .pattern-two:nth-last-child(32) .screens img,
.production .pattern-two:nth-last-child(31) .screens img,
.production .pattern-two:nth-last-child(30) .screens img,
.production .pattern-two:nth-last-child(29) .screens img{
    margin-top: -10px;
}

.production > div:nth-last-child(59){
    padding: 0 0 60px 0;
}

.pattern-one > .img-text{
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.pattern-one .link-text .link p{
    margin-bottom: 5px;
    line-height: 1.5;
}

.pattern-one .link-text p:nth-last-child(1){
    margin-top: 10px;
}

.screen-and-link{
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 4px 4px 13.6px 0 rgba(0,0,0,0.15);
    padding: 2rem;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pattern-two-wrapper{
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 4px 4px 13.6px 0 rgba(0,0,0,0.15);
    padding: 2rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 50px;
}

.pattern-three{
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 30px auto 250px;
    gap: 1rem 2rem;
    grid-template-areas:
        "img hashtag"
        "img title"
        "img para";

    border-bottom: 2px #8a8a8a dotted;
}

/* .screen-and-link .link-text{
    gap: 10px;
} */

.pattern-one .link{
    margin-left: 0;
    line-height: 1.5;
}

.link-text > p{
    line-height: 1.5;
    margin-bottom: 5px;
}

.img-hashtag, .cms-hashtag, .design-hashtag, .fullscratch-hashtag, .logo-hashtag{
    font-size: clamp(7px, 10px, 12px);
    padding: 3px 7px;
    color: white;
    line-height: 1.4;
}

.img-hashtag{
    background-color: #101679;
}

.cms-hashtag{
    background-color: #CF7C00;
}

.design-hashtag{
    background-color: #B53372;
}

.fullscratch-hashtag{
    background-color: #65A12D;
}

.logo-hashtag{
    background-color: #6D169C;
}

.img-text{
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    align-items: flex-start;

    gap: 2rem;
}

.mockup-img{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hashtags, .hashtags-two{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hashtags-two{
    display: none;
}

.mockup-img > img{
    height: auto;
    object-fit: contain;
}

.production-text{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.production-text h3{
    font-size: 22px;
}

.production-text p{
    line-height: 1.8;
}

.screens{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.link-text{
    display: flex;
    flex-direction: column;
}

.link > a{
    color: rgb(0, 106, 255);
}

.link p{
    margin-bottom: 10px;
}


/* .pattern-two{
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 3rem;
} */

.pattern-two > .screens{
    grid-template-columns: 1fr;
    margin-top: 0;
}

.link-text > a{
    max-width: 100%;
    word-break: break-all;
    color: rgb(0, 106, 255);
    text-decoration: underline;
    line-height: 1.4;
}

.col-one{
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;

    grid-template-areas: 
    "img"
    "hashtag"
    "title"
    ;
}

.col-one > .title{
    grid-area: title;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.col-one > .mockup-img{
    grid-area: img;
}

.col-one > .hashtags{
    grid-area: hashtag;
}

.col-one p{
    line-height: 1.4;
}

.col-two{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.col-two > .screens{
    grid-template-columns: 1fr;
    margin-top: 0;
}

.col-two > .link-text{
    gap: 0;
}

/* .pattern-three{
    height: auto;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 30px auto 250px;
    gap: 1rem 2rem;

    grid-template-areas: 
    "img hashtag"
    "img title"
    "img para"
    ;
} */

.pattern-three > .mockup-img{
    grid-area: img;
}

.pattern-three > .hashtags{
    grid-area: hashtag;
    justify-content: flex-start;
}

.pattern-three > h3{
    grid-area: title;
}

.pattern-three p{
    grid-area: para;
    line-height: 1.5;
}

.pattern-three .link-text{
    margin-top: 10px;
    gap: 0;
}

.works{
    width: 90%;
    max-width: 1000px;
    margin: 32px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.work-list{
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-link{
    position: sticky;
    bottom: 10px;   /* Sticks to the bottom of the screen */
    left: 28%; 
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
}

.top-btn{
    position: absolute;
    right: 300px;
    bottom: 0;
    margin-left: auto;
    background-color: #333333;
    padding: 1rem;
}

.top-btn > img{
    height: 18px;
    object-fit: contain;
}

.path-and-chameleon{
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        background-color: #ffffff;
        display: flex;
        margin-top: 130px;
    }

    .path-link-wrapper{
        width: 90%;
        max-width: 600px;

        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .path-link{
        font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
        font-size: 14px;
        font-weight: 500;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 7px;
    }

    .path-link > li > a{
        text-decoration: underline;
    }

    .chameleon{
        position: sticky;
        bottom: 0;
        right: 0;
        z-index: 1;
    }

    .chameleon-gif{
        position: absolute;
        bottom: -15px;
        right: 0;
        display: flex;
    }

    .chameleon-gif > img{
        max-width: 330px;
        margin-left: auto;
        object-fit: contain;
    }

    .sp-top-btn{
        display: none;
    }

@media (min-width: 1281px) {
    .main-visual-content{
        padding-left: 91px;
    }
}


@media (min-width: 769px) and (max-width: 840px) {
    
    /* main visual sp */
    .pc-mv {
        display: none;
    }

    .sp-mv {
        display: block;
    }

    .main-visual{
        height: 238px;
        margin-top: 72px;
        background-position: bottom;
    }

    #production-main > .main-visual{
        background-image: url(/assets/images/jisseki/jisseki_sp_mv.webp);
    }

    #production-main > .main-visual > .main-visual-content{
        background-image: none;
    }

    .main-visual-content{
        margin-top: 70px;
        padding-top: 0;
        background-image: none;
        gap: 0;
    } 

    .main-title{
        width: 19ch;
        font-size: 40px;
        line-height: 1.4;
        margin: 1rem 0;
    }
    

    .sp-top-btn{
        display: none;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }

}

@media (max-width: 768px) {

    /* main visual sp */
    .pc-mv {
        display: none;
    }

    .sp-mv {
        display: block;
    }

    .main-visual{
        height: 238px;
        margin-top: 72px;
        background-position: bottom;
    }

    #production-main > .main-visual{
        background-image: url(/assets/images/jisseki/jisseki_sp_mv.webp);
    }

    #production-main > .main-visual > .main-visual-content{
        background-image: none;
    }

    .main-visual-content{
        margin-top: 70px;
        padding-top: 0;
        background-image: none;
        gap: 0;
    } 

    .main-title{
        width: auto;
        font-size: 40px;
        line-height: 1.4;
        margin: 1rem 0;
    }

        .img-text{
            grid-template-columns: 1fr;
            grid-template-areas: 
                "title"
                "tags"
            ;
        }

        .mockup-img{
            display: none;
        }

        .mockup-img > img{
            display: none;
        }

        .title h3{
            font-size: 18px;
        }

        .screens{
            width: 100%;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .link{
            margin: 0;
        }

        .link-text .link a{
            word-break: break-all;
        }

        .hashtags, .hashtags-two{
            display: block;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .hashtags{
            display: none;
        }

        .hashtags-two{
            display: flex;
        }

        .img-hashtag, .cms-hashtag, .design-hashtag, .fullscratch-hashtag, .logo-hashtag{
            font-size: 13px;
        }

        /* .pattern-one, .pattern-two{
            padding-top: 0;
        } */

        .pattern-two-wrapper{
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .col-one{
            grid-template-areas: 
            "hashtag"
            "title"
            ;
            gap: 0;
        }

        .pattern-three{
            width: 90%;
            height: auto;
            grid-template-columns: 1fr;
            grid-template-rows: auto auto 1fr auto;
            grid-template-areas: 
            "title"
            "hashtag"
            "img"
            "para";
        }

        .works{
            grid-template-columns: 1fr;
        }

        .work-list{
            margin-left: 1rem;
        }


    .path-and-chameleon, .chameleon{
        display: none;
    }

    .sp-top-btn{
        display: block;
        position: sticky;
        bottom: 0;
        right: 0;
        z-index: 1;
    }

    .sp-top-btn > .top-btn{
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: flex
    }
}