@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    background-color: var(--bg);
    color: var(--font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    width: 100%;
    vertical-align: bottom;
}

p {
    line-height: 1.7;
}

:root {
    --bg: #E0E5EC;
    --neumo: 10px 10px 20px 0px #A4B2C6, -10px -10px 20px 0px #FFFFFF;
    --font: #3A3A3A;
    --accent: #4D668C;
    --accent2: #6793D0;
    --accent3: #ED8F5A;
    --accent4: #EBC157;
    --neumo-re: inset 2px 2px 2px #A4B2C6, inset -2px -2px 2px #FFFFFF;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: 160px;
}


/***header***/
#header {
    /* background-color: pink; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(2px);
    z-index: 100;
}

.header-content {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    position: relative;
    line-height: 1.7;
    display: block;
    width: fit-content;
}

.header-nav a::before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(to right, var(--accent3) 0%, var(--accent4) 100%);
    scale: 0 1;
    transition: all 0.2s;
    transform-origin: center;
}

.header-nav a:hover::before {
    scale: 1;
}

.logo {
    line-height: 1px;
}

.logo a {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo a p {
    font-size: 0.875rem;
    font-weight: 400;
    flex-shrink: 0;
}

.logo a span {
    display: block;
    line-height: 1;
}

.logo a span:first-child {
    margin-bottom: 2px;
}

.logo img {
    height: 50px;
}

.header-nav-accent a {
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent3) 0%, var(--accent4) 100%);
    color: #fff;
    transition: all 0.4s;
}

.header-nav-accent a:hover {
    background: #fff;
    color: var(--accent3);
    outline: 2px solid var(--accent3);
}

.header-nav-accent a::before {
    display: none;
}


/**ハンバーガーメニュー**/
.hb {
    display: none;
    width: 40px;
    height: 16px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 30;
}

.hb::before,
.hb::after {
    position: absolute;
    content: "";
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--font);
    transform-origin: center;
    transition: all 0.2s;
}

.hb::before {
    top: 0;
}

.hb::after {
    bottom: 0;
}

.open .hb::before,
.open .hb::after {
    top: 50%;
}

.open .hb::before {
    transform: rotate(25deg);
}

.open .hb::after {
    transform: rotate(-25deg);
}

.drawer {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(230, 234, 240, 0.9);
    z-index: 20;
    padding: 70px 20px 0;
    transition: all 0.2s;
    opacity: 0;
}

.drawer nav ul li a {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 30px;
    border-bottom: 1px dotted var(--font);
}

.drawer a {
    position: relative;
}

.drawer .header-nav-accent a {
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
    border-bottom: none;
    margin-top: 50px;
}

/* ローディング */
#loading {
    background-color: var(--bg);
    position: fixed;
    z-index: 200;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading img {
    width: 50px;
    animation: spinner 2s steps(8) infinite;
}

@keyframes spinner {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/***main***/
main {
    padding-top: 100px;
}

/**works**/
.sect-title {
    font-weight: 500;
    font-size: 1.7rem;
    padding-left: 8px;
    position: relative;
    line-height: 1;
    margin-bottom: 30px;
}

.sect-title::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.sect-child-title {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 30px;

}

.site-list {
    margin-bottom: 60px;
}

.move-btn {
    display: block;
    width: fit-content;
    padding: 20px 40px;
    border-radius: 100px;
    background: linear-gradient(to right, var(--accent3) 0%, var(--accent4) 100%);
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    margin: 0 auto;
    box-shadow: var(--neumo);
}


.move-btn:hover img {
    transform: translateX(6px);
}

.move-btn img {
    width: 1.25rem;
    vertical-align: middle;
    transition: all 0.2s;
}

.site-list article {
    margin-bottom: 130px;
    padding: 35px;
    border-radius: 25px;
    box-shadow: inset 5px 5px 10px 0px #A4B2C6, inset -5px -5px 10px 0px #FFFFFF;
}

.site-list article:last-child {
    margin-bottom: 0;
}

.site-title {
    font-weight: 400;
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.site-detail {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 55px;
}

.site-text {
    width: 32%;
    margin-top: 30px;
}

.site-text>*:not(:last-child) {
    margin-bottom: 40px;
}

.site-text p a {
    text-decoration: underline;
}

.site-link-btn {
    display: block;
    width: fit-content;
    padding: 16px 40px;
    border-radius: 40px;
    box-shadow: var(--neumo);
    margin-bottom: 40px;
    font-size: 1.0625rem;
    /* background-color: var(--accent2); */
    color: #fff;
}

/*animation*/
.site-link-btn {
    background: linear-gradient(135deg, #ee7f3f 0%, #ecba3c 100%);
    background-size: 250% 250%;
    animation: gradationAnim 12s ease infinite;
}

@keyframes gradationAnim {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.site-link-btn:hover img {
    transform: translateX(6px);
}

.site-link-btn img {
    width: 1.25rem;
    vertical-align: middle;
    transition: all 0.2s;
}

.site-img {
    /*border-radius padding用*/
    --outer-radius: 35px;
    --inner-radius: 15px;

    display: block;
    width: 65%;
    padding: calc(var(--outer-radius) - var(--inner-radius));
    border-radius: var(--outer-radius);
    box-shadow: var(--neumo);
    aspect-ratio: 5/3;
    flex-shrink: 0;
}

.site-img-inner {
    overflow: hidden;
    border-radius: var(--inner-radius);
    position: relative;
    height: 100%;
}

.site-img img {
    transition: all 0.2s;
    height: 100%;
    object-fit: cover;
}

.site-img:hover img {
    transform: scale(1.03);
}

.site-img-inner::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    transition: all 0.2s;
}

.site-img:hover .site-img-inner::before {
    opacity: 1;
}

.site-stack {
    display: flex;

}


/*journey*/
.journey-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    gap: 2em;
}

.journey-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 45px;
    row-gap: 50px;
}

.journey-title::before,
.journey-title::after {
    content: "";
    height: 1px;
    background-color: var(--font);
    flex-grow: 2;

}

.journey-img {
    box-shadow: var(--neumo);
    margin-bottom: 15px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 5/3;
}

.journey-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lum-lightbox {
    z-index: 900;
}

.lum-lightbox-inner img {
    object-fit: contain;
}


/**aboutme**/
.aboutme-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.aboutme-img {
    border-radius: 1000px;
    overflow: hidden;
    width: 200px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    box-shadow: var(--neumo);
}

.aboutme-img img {
    height: 100%;
    object-fit: cover;
}

.aboutme-name {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
}

.aboutme-name p {
    font-size: 2rem;
    font-weight: 500;
}

.aboutme-name span {
    font-size: 1rem;
}

.aboutme-school {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.aboutme-explain {
    font-size: 0.9375rem;
}

.aboutme-skills {
    max-width: 800px;
    margin: 0 auto 70px;
}

.aboutme-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
}

.aboutme-subtitle::before {
    position: absolute;
    content: "";
    height: 1px;
    width: 100%;
    max-width: 150px;
    background-color: var(--accent2);
    left: 0;
    bottom: 0;
}

.skill-list {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.skill-list dt {
    margin-bottom: 4px;
    font-size: 1rem;
}

.skill-list dd {
    height: 25px;
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--neumo-re);
    margin-bottom: 20px;
    position: relative;
    /* overflow: hidden; */
}

.skill-list-bar {
    position: absolute;
    content: "";
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(to right, var(--accent3) 0%, var(--accent4) 100%);
    filter: drop-shadow(0 0 4px var(--accent4));
}

.skill-others {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.skill-others-title {
    margin-bottom: 4px;
}
.about-ai{
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--accent2);
}
.about-ai h4{
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 15px;
}
.about-ai-explain{
    font-size: 0.9375rem;
}
.about-ai-explain p:not(:last-child){
    margin-bottom: 10px;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;

}

.stack-list li {
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: var(--neumo-re);
    font-size: 0.9375rem;
}

.site-meta>*:not(:last-child) {
    margin-bottom: 12px;
}

.aboutme-history {
    --left-p: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 70px;
}

.history-area {
    position: relative;
}

.history-area::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 2px;
    background-color: var(--font);
    opacity: 0.6;
    top: 0;
    left: var(--left-p);
}

.history-day-and-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.history-day-and-item:not(:last-child) {
    margin-bottom: 50px;
}

.history-day-and-item::before {
    position: absolute;
    content: "";
    width: 16px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: var(--accent3);
    filter: blur(4px);
    top: 6px;
    left: var(--left-p);
    translate: calc(-50% + 1px) 0;
    z-index: 5;
}

.history-day-and-item::after {
    position: absolute;
    content: "";
    width: 18px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: var(--accent4);
    filter: blur(4px);
    top: 6px;
    left: var(--left-p);
    translate: calc(-50% + 1px) 0;
}

.history-day {
    width: var(--left-p);
    flex-shrink: 0;
    text-align: right;
    padding-right: 20px;
}

.history-item-list {
    margin-left: 30px;
}

.history-item-list li {
    box-shadow: var(--neumo);
    padding: 10px 16px;
    border-radius: 10px;
    width: fit-content;
}

.history-item-list li:first-child {
    position: relative;
}

.history-item-list li:first-child::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 20px;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    left: 0;
    top: 8px;
    translate: calc(-100% + 2px) 0;
    background-color: var(--bg);
    z-index: 10;
    box-shadow: var(--neumo);
    font-size: 0.9375rem;
}

.history-item-list li:not(:last-child) {
    margin-bottom: 20px;
}

.history-item-site {
    max-width: 260px;
}

.history-item-site h4 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.history-item-site a {
    display: block;
}

.history-item-site a:not(:last-child) {
    margin-bottom: 6px;
}

.history-item-site-explain {
    font-size: 0.875rem;
}



/**contact**/
#contact p {
    text-align: center;
    margin-bottom: 30px;
}

.mail {
    /*メールボタンの線の色*/
    --mail-border: #707882;

    display: block;
    margin: 0 auto 0;
    max-width: 350px;
    aspect-ratio: 10/6;
    border-radius: 20px;
    box-shadow: var(--neumo);
    border: 2px solid var(--mail-border);
    position: relative;
    overflow: hidden;
}

.mail::after,
.mail::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    left: 0;
    clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
}

.mail::before {
    top: 0;
    background-color: var(--mail-border);
    z-index: 2;
}

.mail::after {
    top: -2px;
    background-color: var(--bg);
    z-index: 3;
}


/***footer***/
#footer {
    padding: 10px 0;
}

.sns-link {
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.sns-link a {
    display: block;
}

.sns-link img {
    height: 40px;
}

.copy {
    font-size: 0.875rem;
    text-align: center;
}


/***マウスストーカー***/
#stalker {
    --large: 25px;
    background-color: #4D668C;
    border-radius: 50%;
    width: var(--large);
    height: var(--large);
    left: calc(-1 * var(--large) / 2);
    top: calc(-1 * var(--large) / 2);
    pointer-events: none;
    opacity: 0;
    position: fixed;
    transition: all 0.27s ease-out;
    z-index: 900;
}

#stalker.js-hover {
    background-color: #ffffff;
    transform: scale(200%);
}



/* works.html */
.page-title {
    font-size: 3rem;
    font-weight: 400;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--accent2);
    margin-bottom: 50px;
}


@media screen and (max-width:768px) {
    :root {
        --neumo: 8px 8px 16px 0px #A4B2C6, -8px -8px 16px 0px #FFFFFF;
    }

    section {
        margin-bottom: 100px;
    }

    .header-nav {
        display: none;
    }

    .hb {
        display: block;
    }

    .open .drawer {
        visibility: visible;
        opacity: 1;
    }

    .sect-title {
        font-size: 1.25rem;
    }

    .sect-child-title {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .site-list article {
        margin-bottom: 80px;
        padding: 25px;
        border-radius: 15px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-detail {
        flex-direction: column-reverse;
        margin-bottom: 35px;
    }

    .site-text {
        width: 100%;
    }

    .site-text>*:not(:last-child) {
    margin-bottom: 25px;
}

    .site-link-btn {
        margin-bottom: 20px;
    }

    .site-img {
        --outer-radius: 25px;
        --inner-radius: 12px;
        width: 100%;
    }

    .journey-title {
        font-size: 1.3rem;
        gap: 20px;
    }

    .journey-list {
        grid-template-columns: repeat(1, 1fr);
        width: 90%;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        row-gap: 35px;
    }

    .journey-text {
        font-size: 0.9375rem;
    }

    .journey-img {
        border-radius: 12px;
    }


    .aboutme-detail {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .aboutme-img {
        width: 180px;
        /* margin-bottom: 30px; */
    }

    .aboutme-skills {
        margin-bottom: 50px;
    }

    .aboutme-history {
        --left-p: 65px;
    }

    .history-day-and-item::before {
        width: 10px;
        filter: blur(3px);
    }

    .history-day-and-item::after {
        width: 12px;
        filter: blur(3px);
    }
    .history-item-list{
        margin-left: 15px;
        font-size: 0.9375rem;
    }

    #contact p {
        text-align: start;
    }

    .mail {
        max-width: 250px;
    }

    #stalker {
        display: none;
    }

    .page-title{
        font-size: 2rem;
    }
}