@charset "UTF-8";

* {
    box-sizing: border-box;
}

img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

body {
    line-height: 1.7em;
    margin: 0;
    padding: 0;
    background-color: #e2e7e1;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

/* ここからheader */
header {
    position: sticky;
    top: 0;
    opacity: 0.8;
    z-index: 9999;
    background-color: #384333;
}

ul {
    display: flex;
    gap: 50px;
    justify-content: right;
    padding-block: 40px;
    padding-right: 60px;
    margin: 0;
}

li {
    list-style: none;
}

header a {
    color: #e2e7e1;
}

header a:hover {
    color: #a3b19b;
}

a {
    text-decoration: none;
}

.home {
    height: 810px;
}

.home-txts {
    display: block;
    text-align: center;
    height: 200px;
    margin-top: 100px;
}

.home-txt-a {
    font-size: 80px;
    color: #384333;
}

.home-txt-b {
    font-size: 50px;
    color: #384333;
}

.sub-frame {
    display: block;
    width: 200px;
    height: 300px;
    border: none;
    margin-left: auto;
    margin-top: -50px;
}


.scrolls {
    text-align: center;
    line-height: 0em;
    margin-top: -100px;
    animation: hover 5s ease-in-out infinite;
}

@keyframes hover {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* workここから */
/* .work {
    height: 1700px;
} */

h2 {
    text-align: center;
    color: #384333;
}

.head-p {
    text-align: center;
    line-height: 0px;
    margin-bottom: 100px;
    color: #384333;
}

.bottom {
    text-align: center;
    margin-bottom: -50px;
}

section {
    margin-top: 200px;
}

/* ラジオここから */

input[type="radio"] {
    display: none;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-block: 80px;
}

.filter-buttons label {
    background-color: #384333;
    color: #ffffff;
    width: 150px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
    text-align: center;
    padding-block: 8px;
}

#tab-all:checked~.filter-buttons label[for="tab-all"],
#tab-web:checked~.filter-buttons label[for="tab-web"],
#tab-premiere:checked~.filter-buttons label[for="tab-premiere"],
#tab-ae:checked~.filter-buttons label[for="tab-ae"],
#tab-illustrator:checked~.filter-buttons label[for="tab-illustrator"],
#tab-photoshop:checked~.filter-buttons label[for="tab-photoshop"] {
    opacity: 0.6;
    outline: 2px solid #3b4338;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.work-item {
    background-color: #dad7cd;
    aspect-ratio: 1 / 1;
    display: none;
    object-fit: cover;
    width: 100%;
    position: relative;
}

.web::before {
    position: absolute;
    content: "web";
    margin-left: 10px;
    color: #000;
}

.premiere::before {
    position: absolute;
    content: "premiere";
    margin-left: 10px;
    color: #fff;
}

.ae::before {
    position: absolute;
    content: "ae";
    margin-left: 10px;
    color: #000;
}

.illustrator::before {
    position: absolute;
    content: "illustrator";
    margin-left: 10px;
    color: #000;
}


.work-item img,
.work-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#tab-all:checked~.works-grid .work-item {
    display: block;
}

#tab-web:checked~.works-grid .web {
    display: block;
}

#tab-premiere:checked~.works-grid .premiere {
    display: block;
}

#tab-ae:checked~.works-grid .ae {
    display: block;
}

#tab-illustrator:checked~.works-grid .illustrator {
    display: block;
}

#tab-photoshop:checked~.works-grid .photoshop {
    display: block;
}

.work-item:hover {
    opacity: 0.5;
}

/* skill */
.strong {
    font-size: 25px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.skill-container {
    max-width: 960px;
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin: auto;
}

.skill-bar {
    display: block;
    width: 440px;
    height: 180px;
    background-color: #384333;
    border-radius: 12px;
    opacity: 0.9;

}


.skill-bar p {
    color: #ffffff;
    margin-left: 18px;
}

.bar-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    width: 400px;
    height: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.bar {
    width: 0;
    height: 15px;
    background-color: #d4a359;
    border-radius: 10px;

    animation: hpbar 3s ease-in-out forwards;

    animation-timeline: view();
    /* アニメーションの開始・終了位置の調整（画面の下側に入ってきたら動く） */
    animation-range: entry 0% cover 30%;
}


@keyframes hpbar {
    0% {
        width: 0%;
    }

    100% {
        width: var(--target-width);
    }
}

/* スキルバー */

.bar.htmls {
    --target-width: 80%;
}

.bar.java {
    --target-width: 20%;
}

.bar.prem {
    --target-width: 60%;
}

.bar.after {
    --target-width: 25%;
}

.bar.ill {
    --target-width: 30%;
}

.bar.ps {
    --target-width: 25%;
}

.qualificationkill {
    text-align: center;
    margin-top: 200px;
}

.photo-img {
    width: 20%;
    height: 20%;
}


.flex-f {
    display: flex;
    justify-content: center;
    gap: 300px;
}

.flex-s {
    display: flex;
    flex-direction: column;
}

.flex-t {
    display: flex;
    gap: 100px;
}

.top-border {
    border-top: 1px solid;
    padding: 30px;
}


/* ふきだし */

.about-dog {
    margin-bottom: 20px;
    width: 20%;
    position: relative;
    top: 0px;
    left: 300px;
    height: 300px;
    border: none;
    animation: none;
    cursor: pointer;
}

.bubble-a {
    position: relative;
    width: 100%;
    height: 120px;
    border: 1px solid #000;
    border-radius: 30px;
    background-color: none;
    box-sizing: border-box;
}

.bubble-b {
    position: absolute;
    bottom: -10px;
    right: 80px;
    top: auto;
    left: auto;

    width: 20px;
    height: 20px;
    background-color: none;
    transform: rotate(-45deg);
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
}

.bubble-c {
    position: relative;
    top: 118px;
    left: 294px;
    width: 29px;
    border-bottom: 1px solid #e2e7e1;
}

.bubble-text {
    position: absolute;
    top: 20px;
    left: 20px;

    max-width: 380px;
    overflow-wrap: break-word;
}

.hukidasi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    width: 400px;
    margin-left: auto;
    margin-right: 20px;
    overflow: visible;
}

.about-dog {
    width: 200px;
    height: 250px;
    border: none;
    cursor: pointer;

    position: relative;
    top: -10px;
    left: 0;
}



/* contact */

.contact {
    text-align: center;
}

.contact a {
    color: #fff;
}

.flex-contact {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.inst {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #384333;
    width: 400px;
    height: 40px;
    color: #fff;
}


.thanks {
    margin-top: 100px;
}

.web-photo {
    background-color: #d4a359;
    width: 300px;
    margin: auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;

    position: relative;
    overflow: hidden;
    border-radius: 40px;
    color: #384333;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pagetop {
    position: relative;
}

.pagetop-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;

    border-radius: 70% 70% 30% 30% / 90% 90% 40% 40%;
    background-color: #384333;
    width: 80px;
    height: 65px;
}

.page-r {
    position: fixed;
    right: 35px;
    bottom: 55px;
    z-index: 999;

    border-radius: 100% 10% 10% 10%;
    transform: rotate(50deg);
    background-color: #384333;
    width: 30px;
    height: 40px;
    animation: deg-r 5s ease-in-out infinite;
}

@keyframes deg-r {
    0% {
        transform: rotate(50deg);
    }

    10% {
        transform: rotate(65deg);
    }

    13% {
        transform: rotate(50deg);
    }

    20% {
        transform: rotate(65deg);
    }

    30% {
        transform: rotate(50deg);
    }

    35% {
        transform: rotate(65deg);
    }

    50% {
        transform: rotate(50deg);
    }

    70% {
        transform: rotate(65deg);
    }

    100% {
        transform: rotate(50deg);
    }
}

.page-l {
    position: fixed;
    right: 75px;
    bottom: 55px;
    z-index: 999;

    border-radius: 10% 100% 10% 10%;
    transform: rotate(-50deg);
    background-color: #384333;
    width: 30px;
    height: 40px;
    animation: deg-l 5s ease-in-out infinite;
}

@keyframes deg-l {
    0% {
        transform: rotate(-50deg);
    }

    10% {
        transform: rotate(-65deg);
    }

    13% {
        transform: rotate(-50deg);
    }

    20% {
        transform: rotate(-65deg);
    }

    30% {
        transform: rotate(-50deg);
    }

    35% {
        transform: rotate(-65deg);
    }

    50% {
        transform: rotate(-50deg);
    }

    70% {
        transform: rotate(-65deg);
    }

    100% {
        transform: rotate(-50deg);
    }
}

.top-p {
    position: fixed;
    right: 50px;
    bottom: 30px;
    z-index: 999;
    color: #bde1ad;
}

footer {
    background-color: #384333;
    opacity: 0.8;
}

footer p {
    color: #fff;
    text-align: center;
    padding-top: 40px;
}

.flex-contact img {
    width: 100px;
}

.hover:hover {
    opacity: 0.5;
}

.footer-p {
    margin: 0;
    padding-bottom: 10px;
}

/* ボタン上に走る光の帯 */
.web-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    transform: skewX(-25deg);
}

/* ホバーした時に光がサッと通過する */
.web-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 163, 89, 0.4);
}

.web-photo:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

@media (max-width:768px) {
    ul {
        gap: 15px;
        padding-right: 20px;
        padding-block: 20px;
        justify-content: right;
    }

    header a {
        font-size: 14px;
    }

    .home-txt-a {
        font-size: 50px;
    }

    .home-txt-b {
        font-size: 32px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
        padding-inline: 10px;
    }

    .filter-buttons label {
        width: calc(33.33% - 10px);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: 20px;
    }


    .skill-container {
        justify-content: center;
        gap: 40px;
        padding-inline: 20px;
    }

    .skill-bar {
        width: 100%;
        height: auto;
        padding-bottom: 20px;
    }

    .bar-container {
        width: calc(100% - 40px);
    }

    .flex-f {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .photo-img {
        width: 150px;
        height: auto;
    }

    .flex-t {
        gap: 40px;
        justify-content: center;
    }

    .top-border {
        text-align: center;
    }

    .hukidasi {
        width: 90%;
        margin: 40px auto 0;
        align-items: center;
    }

    .about-dog {
        left: 0;
    }

    .bubble-b {
        left: 345px;
    }

    .bubble-c {
        left: 340px;
    }


    .flex-contact {
        gap: 40px;
    }

    .web-photo {
        width: 80%;
    }

    .pagetop-btn {
        width: 60px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }

    .page-r {
        width: 22px;
        height: 30px;
        right: 18px;
        bottom: 35px;
    }

    .page-l {
        width: 22px;
        height: 30px;
        right: 48px;
        bottom: 35px;
    }

    .top-p {
        right: 28px;
        bottom: 15px;
        font-size: 12px;
    }
}