@charset "UTF-8";

/* FV
----------------------------------------*/
hgroup{
    position: relative;
    width: fit-content;
    text-align: center;
    user-select: none;
}
h1{
    line-height: 1;
    color: #9e8080;
    font-family: var(--fontf-ttl);
    font-weight: 200;
}
h1 span{
    font-family: var(--fontf-ttl);
    font-weight: 200;
}
hgroup .tag-line span{
    font-family: 'M PLUS 1p', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}
hgroup .tag-line > span{
    display: inline-block;
    line-height: 1.2;
}
.tag,
.tag-2nd-line{
    opacity: 0;
    letter-spacing: 0.3rem;
}
.tag._one{
    animation: fade-anime 1s ease-out 0.5s forwards 1;
    color: var(--color-pink);
}
.tag._two{
    animation: fade-anime 1s ease-out 0.7s forwards 1;
}
.tag._three{
    animation: fade-anime 1s ease-out 0.9s forwards 1;
    color: var(--color-turquoise);
}
.tag._four{
    animation: fade-anime 1s ease-out 1.1s forwards 1;
}
.tag-2nd-line{
    animation: fade-anime 1s ease-out 1.3s forwards 1;
}
@keyframes fade-anime{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

.top-catch{
    width: 100%;
    height: 100svh;
}
.top-catch .content{
    width: fit-content;
    margin: 0 auto;
}
.top-catch p{
    text-align: center;
    letter-spacing: 0.1em;
    line-height: 2;
    font-size: 1.1rem;
    color: var(--color-brown);
    margin-bottom: 2rem;
}

/* #web, #graphics
----------------------------------------*/
#web,
#graphics{
    margin-bottom: 10rem;
}
h2{
    display: block;
    color: var(--color-turquoise);
    text-align: center;
    background-color: var(--color-main);
    position: relative;
    font-family: var(--fontf-ttl);
    font-weight: 200;
}
#graphics h2{
    color: var(--color-pink);
}

.worksList{
    padding: 0;
    display: grid;
    width: fit-content;
    place-items: center;
    margin: 0 auto;
}
.worksList li.visible {
    opacity: 1;
    transform: translateY(0);
}
.worksList li {
    display: flex;
    flex-direction: column;
    opacity: 0;
    position: relative;
    transform: translateY(5rem);
}
.prototype_link {
    background-image: url(../images/img-frame-sp.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    place-content: center;
    width: fit-content;
    height: 22rem;
    padding: 3rem;
}
.prototype_link p{
    text-align: center;
    font-weight: bold;
    color:#f80cb9;
}
.prototype_link .external-link-icon,
.demo_link .external-link-icon{
    width: 1rem;
    margin: 0.2rem auto;
    width: 1rem;
}
.demo_link {
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    box-shadow: 0rem 0.3rem 0.1rem rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 18rem;
    aspect-ratio: 1 / 0.8;
}
.demo_link p{
    color: var(--color-p);
}
.demo_link + .demo_link {
    margin-top: 2rem;
}
.demo_link:hover{
    opacity: 0.5;
}
.demo_link .ttl{
    font-family: var(--fontf-ttl);
    font-size: 1.5rem;
}
.demo_link .capture{
    margin-top: 1rem;
    font-size: 0.9em;
}
.li_react .demo_link{
    background: linear-gradient(90deg,#7aced1 0%, #7aced1 5%, #fff 5%, #fff 95%, #fcbb60 95%, #fcbb60 100%);
}
.li_wp .demo_link{
    background: linear-gradient(90deg,#347b9e 0%, #347b9e 5%, #fff 5%, #fff 95%, #347b9e 95%, #347b9e 100%);
}

.skill-icons{
    display: flex;
    gap: 1.5rem;
    position: absolute;
    justify-content: center;
    bottom: -4rem;
    left: 0;
    right: 0;
    margin: auto;
}
.skill-icons span{
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    color: var(--color-p);
    background-color: #fff;
    border-radius: var(--b-radius);
}

.worksList li .item-explanation {
    background-color: #fff;
    border-radius: var(--b_radius);
    line-height: 1.5;
    margin: 2rem 0 0;
    position: absolute;
    bottom: 0;
    padding: 0.5rem 0.7rem;
    transition: all 0.4s 0s ease-out;
    z-index: -1;
    transform: translateY(calc(100% + 1rem));
}

/* #profile
----------------------------------------*/
#profile{
    margin: 5rem auto 0;
}
#profile .container{
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
#profile h2{
    flex-basis: 100%;
    flex-shrink: 0;
    margin: 0 auto 10rem;
}

.prof-intro{
    text-align: center;
    width: 100%;
    margin-bottom: 7rem;
}
.prof-intro p.name{
    font-size: 1.5rem;
    text-align: center;
    margin: 0 auto 1rem;
}

#profile button{
    background-color: #fff;
    width: 12rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}
.txt-hidden{
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

#profile h3{
    color: var(--color-turquoise);
    font-family: var(--fontf-ttl);
    font-size: 3rem;
}
#profile .detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0 1rem;
    transition: all 0.2s ease;
}
#profile .detail.open {
    max-height: fit-content;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.2s ease;
}

/* .history */
.history{
    width: 100%;
    margin-top: 6rem;
}
.history h3{
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.history .history-detail{
    position: relative;
}
.history .history-line{
    content:'';
    display: inline-block;
    width: 0.1rem;
    height: 94%;
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    background: linear-gradient(to bottom, #666 0%, #666 100%);
    background-size: 100% 0%;  /* ← 最初は非表示 */
    background-repeat: no-repeat;
    background-position: top;
}
.history li .term-text{
    margin: 0.5rem 0;
}
.history-list{
    display: grid;
    gap: 0.5rem;
}
#profile .history li{
    margin-left: 1.5rem;
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    align-items: start;
    position: relative;
    opacity: 0;
}
#profile .history li:before{
    content:'';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-gray);
    position: absolute;
    left: -1.45rem;
    top: 0.8rem;
    border-radius: 100vmax;
}
#profile .history li:last-child:before{
    background-color: #b1b1b1;
}
#profile .history li time{
    background-color: #fff;
    display: inline-block;
    height: 100%;
    padding: 0.5rem 0 0 0.8rem;
    text-align: left;
    border-radius: var(--b-radius);
}

/* .skills */
.detail-btn {
    height: 100%;
}
.skills {
    margin-top: 6rem;
}
.skills h3{
    display: block;
    text-align: center;
}
.skill-wrap{
    margin: 6rem 0 0;
}
.skill-wrap:first-of-type{
    margin-top: 3rem;
}
.skills h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}
#profile .skills .detail-btn {
    background-color: #fff;
    height: 100%;
    width: 100%;
    box-shadow: 0 0.2rem 0.1rem rgba(0,0,0,0.1); /* off */
}
#profile .skills .detail-btn:hover{
    transition: all 0.3s ease;
}
#profile .detail-btn::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid var(--color-turquoise);
    vertical-align: middle;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 1rem;
}

#profile .detail-btn[aria-expanded="true"]{
    box-shadow: 0 0 0.05rem rgba(0,0,0,0.4); /* on */
}
.detail-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.skills article{
    width: 100%;
}
.skills .detail-btn{
    display: grid;
    background-color: #fff;
    grid-template-columns: 12rem 9rem 1fr;
    align-items: center;
}

.skills .detail-btn p{
    white-space: nowrap;
}
.skills .cate-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.skills .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-p);
    display: inline-block;
    padding: 1rem;
    text-align: left;
}
.skills .status {
    text-align: left;
}
.skills .detail {
    margin: 0 0.5rem;
}
.skills .detail p,
.skill-wrap.other p{
    line-height: 1.5;
    display: flex;
}
.skills .detail p:before,
.skill-wrap.other p:before{
    content: '';
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #bababa;
    border-radius: 100vmax;
    margin: 0.5rem 0.4rem 0 0;
}
.skills h6 {
    display: inline-flex;
    background-color: #ccc;
    padding: 0.2rem 0.6rem;
}
.case{
    background-color: #e6e6e6;
    margin: 1rem 0 0;
}
#profile .detail .case p {
    padding: 1rem;
}
#profile .skills .detail .case p:before {
    content: '';
    width: 0;
    height: 0;
    background-color: transparent;
}
.skill-wrap.other > div{
    margin-bottom: 3rem;
}
.skill-wrap.other h4{
    margin-bottom: 0.5rem;
}
.skill-wrap.other p.catch{
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-turquoise);
}
.skill-wrap.other p.catch:before {
    content: none;
}

.prof-add{
    margin: 5rem auto 0;
}
.bubble{
    padding: 0.7rem 2rem;
    background-color: #fff;
    border-radius: 100vmax;
    margin-bottom: 3rem;
    position: relative;
}
.bubble:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #fff;
}
#profile .imgArea {
    width: 11rem;
    margin: 0 auto 2rem;
}
.sns-list{
    display: flex;
    justify-content: center;
}
.sns-link{
    display: inline-block;
    width: 1.5rem;
}

/* lottie */
.li_anime{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.lottieStartBtn{
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    height: 9rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    box-shadow: 0rem 0.3rem 0.1rem rgba(0,0,0,0.2); /* off */
    transform: translateY(-0.3rem);
    transition: all .1s ease-out;
}
.lottieStartBtn.on{
    transform: translateY(0);
    box-shadow: 0 0 0.05rem rgba(0,0,0,0.4); /* on */
    transition: all .1s ease-in;
}
.lottieStartBtn{
    width: 25rem;
}
.lottieStartBtn:hover{
    opacity: 0.5;
}
.lottieStartBtn .title{
    width: 80%;
}
.lottieStartBtn .note{
    font-weight: normal;
    text-align: center;
    color: var(--color-gray);
    margin: 1rem auto 0;
}
.lottieArea{
    background-color:#2927286c;
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index:10;
}

#hari{
    width: 70vw;
    height: 70vw;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateX(70vw);
    z-index: 11;
}
@keyframes walk {
    from {
        transform: translateX(70vw);
    }
    to {
        transform: translateX(-100vw);
    }
}
@-webkit-keyframes walk {
    from {
        transform: translateX(70vw);
    }
    to {
        transform: translateX(-100vw);
    }
}

/* lottie size adjust*/
@media screen and (min-width:1024px) {
    #hari {
        width: 400px;
        height: 400px;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateX(70vw);
    }

    .lottieArea #hari.on{
        animation: 8s linear 0s 1 walk;
    }
}
@media screen and (min-width:750px) {
    #hari.on{
        animation: 6s linear 0s 1 walk;
    }

}
@media screen and (max-width:749px) {
    #hari.on{
        animation: 3.5s linear 0s 1 walk;
    }
}

@media (any-hover: hover) {
    .worksList li.li_anime,
    .worksList li a{
        cursor: pointer;
    }
}


/* レスポンシブ対応 */

@media (orientation: landscape) {
    .hero hgroup{
        margin: calc(100svh / 2 - 6rem) auto calc(100svh / 2);
    }
    hgroup h1{
        font-size: 6rem;
    }
    hgroup p{
        font-size: 2rem;
        font-weight: normal;
        line-height: 1.8;
        margin-top: 2rem;
    }
    h2{
        margin: 0 auto 10rem;
        font-size: 7rem;
        padding: 10rem 0 0;
    }
    .worksList{
        grid-template-columns: 1fr 1fr;
        gap: 10rem 4rem;
    }
    .worksList li div{
        width: 28rem;
    }
    .worksList._web li div,
    .worksList.list_anime li div.largeImg {
        width: 50rem;
    }
    .worksList._map li div,
    .worksList._card li div,
    .worksList._magazine li div {
        width: 40rem;
    }
    .worksList li .lottieStartBtn{
        padding: 1rem;
    }
    .lottieStartBtn p.note{
        margin: 0.5rem auto 0;
        font-size: 1rem;
    }


    .web-work a,
    .prototype_link {
        scale: 1;
        transition: scale 0.5s 0s cubic-bezier(.11,.52,.16,.98);
    }
    .web-work a:hover,
    .prototype_link:hover {
        scale: 1.05;
        transition: scale 0.5s 0s cubic-bezier(.11,.52,.16,.98);
    }
    .web-work a:before{
        content:'';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 2rem;
        height: 2rem;
        -ms-filter: blur(1.8rem);
        filter: blur(1.8rem);
        border-radius: 100vmax;
        z-index: -1;
        transition: all 0.4s 0s cubic-bezier(.11,.52,.43,1);
    }
    .web-work.spring a:before{
        background-color: #b9dbf7;
    }
    .web-work.ichigo a:before{
        background-color: #91dadc;
    }
    .web-work a:hover:before{
        transition: all 0.4s 0s cubic-bezier(.11,.52,.43,1);
        width: 25rem;
        height: 25rem;
    }
    #profile .container{
        width: 50rem;
    }
    #profile h2{
        padding-top: 10rem;
    }
    .history ul:before{
        left: 2.5rem;
    }
    #profile .history .history-list{
        margin: 0 auto;
    }
    .skills .detail {
        margin-right: 0;
    }
}



@media (orientation: landscape) and (min-width: 1281px) {
    .prototype_link {
        height: 25rem;
    }
}
@media (orientation: landscape) and (max-width: 980px) {
    .worksList li div {
        width: 20rem;
    }
}

@media (orientation: landscape) and (max-width: 820px) {
    .hero hgroup {
        margin: calc(100svh / 2 - 4.5rem) auto calc(100svh / 2);
    }
    hgroup h1 {
        font-size: 4.5rem;
    }
    h2 {
        font-size: 4rem;
    }
    hgroup p {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
    .worksList li div {
        width: 25rem;
    }
    .worksList {
        grid-template-columns: 1fr;
    }
    #profile .container {
        width: 94%;
        margin: 0 auto;
    }
}


@media (orientation: portrait) {
    .spBreak {
        display: block;
    }
    section.hero {
        height: 100svh;
        display: grid;
        place-content: center;
    }
    section#web,
    section#graphics{
        margin: 0 auto 50svh;
    }
    hgroup .tag-line{
        margin: 1rem 0 0 0;
    }
    h1{

    }
    .top-catch p{
        line-height: 2;
        font-size: 1rem;
    }
    h2{
        padding: 2rem 0 0;
        margin: 0 auto 10rem;
        font-size: 3rem;
    }
    #works h2{
        margin-top: 12rem;
        background-color: var(--color-main);   
    }
    .worksList{
        gap: 15rem;
    }
    .worksList li{
        background-color: var(--color-main);  
    }
    .worksList li{
        padding: 0 1rem;
    }
    .worksList li .item-explanation {
        width: 100%;
        opacity: 1;
        transform: translateY(calc(100% + 0.5rem));
    }
    
    section .worksList .prototype_link {
        height: auto;
        aspect-ratio: 1 / 1.618;
    }


    .web-work a{
        padding-top: 5rem;
        padding-bottom: 5rem;
        touch-action: manipulation;
    }
    .history .history-line {
        height: 93%;
    }

/* lottie */
    .lottieStartBtn {
        padding: 1rem 0;
        height: 10rem;
        width: 100%;
    }
    .lottieStartBtn p{
        font-size: 1.2rem;
    }
    .lottieStartBtn p.note {
        font-size: 1rem;
    }
    .lottieStartBtn p .spBreak {
        display: block;
    }
    .skills {
        padding: 1rem;
    }

    .skills dl{
        flex-direction: column;
    }
    .skills dl dd{
        line-height: 1;
    }
    .history {
        margin: 4rem 1rem 0;
    }
    
}


@media (orientation: portrait) and (max-width: 800px) {
    h1{
        font-size: 3rem;
    }
    .worksList li .item-explanation {
        width: calc(100% - 2rem);
    }
    .history ul:before {
        height: 93%;
    }
    #profile .history li {
        gap: 0.7rem;
        grid-template-columns: 4.7rem 1fr;
    }
    #profile .history li time {
        padding-left: 0.6rem;
    }
    .skills h4 {
        font-size: 1.4rem;
    }
    #profile .detail {
        padding-right: 0;
        padding-left: 0.5rem;
    }

}