@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    color: #4d4d4d;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 14px;
}


img {
    width: 100%;
    vertical-align: bottom;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
    width: 100%;
    overflow-x: hidden;
}

.title {
    font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
}

.pc {
    display: none;
}

section {
    padding-bottom: 150px;
}
section:last-of-type {
    padding-bottom: 50px;
}

h2 {
    width: fit-content;
    background-color: #f2c33594;
    font-size: 28px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
}

h2 span {
    font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
    font-size: 18px;
}

h3 {
    width: fit-content;
    font-size: 25px;
    margin: 20px auto 15px;
    text-align: center;
    position: relative;
}

h3::before {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #4f4f4f;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-120%, -50%);
}

h3::after {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #4f4f4f;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
}

@media (min-width: 767px) {
    * {
        font-size: 15px;
    }

    h2 {
        font-size: 35px;
    }
    h2 span {
        font-size: 20px;
    }

    h3 {
        font-size: 40px;
    }

    .pc {
        display: block;
    }
    .sp {
        display: none;
    }
    section {
        padding-bottom: 200px;
    }
    section:last-of-type {
        padding-bottom: 100px;
    }
}
/* header */
/* ハンバーガーメニュー */
.nav.sp {
    position: relative;
}

/* ハンバーガーボタン */
.sp-menu-btn {
    background: transparent;
    border: none;
    position: fixed;
    right: 10px;
    top: 10px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
}

.sp-menu-btn .line {
    display: block;
    position: absolute;
    width: 30px;
    height: 1px;
    right: 15px;
    background: #4d4d4d;
    transition: 0.3s ease-in-out;
}

.sp-menu-btn span:nth-child(1) {
    top: 20px;
}
.sp-menu-btn span:nth-child(2) {
    top: 28px;
}
.sp-menu-btn span:nth-child(3) {
    top: 36px;
}

/* メニューが開いているときのボタン */
.sp-menu-btn.active span:nth-child(1) {
    top: 28px;
    transform: rotate(-45deg);
}

.sp-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.sp-menu-btn.active span:nth-child(3) {
    top: 28px;
    transform: rotate(45deg);
}

/* SP NAV内容 */
.nav.sp nav {
    z-index: 3;
    position: fixed;
    top: -20%;
    left: -20%;
    background: #f2f0df;
    width: 140%;
    height: 140%;
    border-radius: 70vw;
    transform: translateX(100%) translateY(-100%);
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav.sp nav.active {
    transform: translateX(0) translateY(0);
}

.nav.sp nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav.sp nav li {
    margin-bottom: 30px;
    width: fit-content;
}

.nav.sp nav li a {
    font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
    color: #4d4d4d;
    display: flex;
    flex-direction: column;
    font-size: 28px;
    font-weight: bolder;
    text-align: center;
}

.nav.sp nav li a .small {
    font-size: 0.4em;
    line-height: 0;
}

/* pc-nav */
nav.pc ul {
    display: flex;
    justify-content: right;
    align-items: center;
    border: none;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 1000;
}

nav.pc ul li a {
    font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
    color: #4d4d4d;
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
    margin: 0px 20px;
    line-height: 1;
}
nav.pc li a .small {
    font-size: 0.4em;
}

/* hero */

.hero {
    position: relative;
    height: 100vh;
}

.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90vh;
    max-height: 90vw;
    aspect-ratio: 1/1.1;
}
.hero .sp {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    object-fit: contain;
}

.hero p {
    position: absolute;
    bottom: 20%;
    left: 2%;
    letter-spacing: 0.3em;
    font-weight: bold;
}

.hero span.text {
    font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
    font-size: clamp(16px, 3vw, 25px);
}

@media (min-width: 767px) {
    .hero .sp {
        display: none;
    }

    .hero-img {
        max-width: 120vh;
        max-height: 100vw;
        aspect-ratio: 1.5/1;
    }

    .hero .pc {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-height: 100%;
        object-fit: contain;
    }

    .hero p {
        position: absolute;
        bottom: 10%;
        left: 20%;
        letter-spacing: 0.5em;
    }

    .hero span.text {
        font-family: "Alumni Sans Pinstripe", "Zen Maru Gothic", sans-serif;
        font-size: clamp(18px, 4vw, 25px);
    }
}

/* スクロールダウン */
.scroll_down {
    position: absolute;
    right: 25px;
    bottom: 0px;
    animation: arrowmove 1.5s ease-in-out infinite;
}

.scroll_down a {
    position: absolute;
    left: -28px;
    bottom: 20px;
    color: #4d4d4d;
    font-size: 13px;
    font-weight: bolder;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

.scroll_down a:before {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -8px;
    width: 2px;
    height: 20px;
    background: #4d4d4d;
    transform: skewX(-31deg);
}

.scroll_down a:after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -2px;
    width: 2px;
    height: 65px;
    background: #4d4d4d;
}

@keyframes arrowmove {
    0% {
        bottom: 0%;
    }
    50% {
        bottom: 15px;
    }
    100% {
        bottom: 0%;
    }
}

/* ↑スクロールダウン */

/* MAIN */
main {
    position: relative;
}

/* ↓スクロールトップ */
.scroll_top {
    display: none;
    position: fixed;
    z-index: 2;
    right: 25px;
    bottom: 0px;
    cursor: pointer;
    animation: arrowmove 1.5s ease-in-out infinite;
}

.scroll_top.is-stop {
    position: absolute;
    right: 25px;
    bottom: 0;
    animation: arrowmove 1.5s ease-in-out infinite;
}

.scroll_top a {
    position: absolute;
    left: -28px;
    bottom: 20px;
    color: #4d4d4d;
    font-size: 13px;
    font-weight: bolder;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

.scroll_top:before {
    content: "";
    position: absolute;
    bottom: 50px;
    right: 4px;
    width: 2px;
    height: 20px;
    background: #4d4d4d;
    transform: skewX(31deg);
}

.scroll_top:after {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 10px;
    width: 2px;
    height: 65px;
    background: #4d4d4d;
}

/* ABOUT */
#about {
    width: 90%;
    margin: 0 auto 0 0;
    display: flex;
    justify-content: left;
    position: relative;
}

#about h2 {
    writing-mode: vertical-rl;
    padding: 10px 5px;
    align-items: end;
}

#about h2 span {
    padding: 15px 0 0 2px;
}

#about .inner-left {
    width: 0;
    position: sticky;
}

#about .inner-right {
    width: 88%;
    line-height: 2;
    margin: 0 0 0 50px;
}

#about .inner-right span:first-of-type {
    position: relative;
    display: inline-block;
    margin: 0 3px 0;
}

#about .inner-right span:first-of-type::after {
    content: "";
    position: absolute;
    left: -2%;
    bottom: -0.15em;
    width: 104%;
    border-bottom: 2px dotted #4d4d4d;
    opacity: 0.7;
}

#about .inner-right span:nth-of-type(2) {
    background: linear-gradient(transparent 60%, rgba(255, 200, 0, 0.35) 60%);
}

#about .inner-right a {
    display: block;
    border-radius: 50px;
    width: fit-content;
    padding: 5px 15px;
    margin: 10px 15px 0 auto;
    background-color: #4d4d4d;
    color: #f4f4f4;
    transition: background-color 0.5s;
}

#about .inner-right a:hover {
    background-color: #cfcfcf;
    color: #4d4d4d;
    font-weight: bold;
}

@media (min-width: 767px) {
    #about {
        margin: 100px auto 0 0;
    }

    #about .inner-right {
        width: fit-content;
        line-height: 3;
        margin: 0 auto 0 auto;
    }

    #about .inner-right p {
        padding: 0 0 0 50px;
    }

    #about .inner-right span:first-of-type::after {
        bottom: 0.3em;
    }
    #about .inner-right span:nth-of-type(2) {
        padding: 0 3px 0;
    }

    #about .inner-right a {
        padding: 10px 60px;
        margin: 30px -50px 0 auto;
        font-size: 16px;
    }
}

/* Skill */

#skill h2 {
    align-items: center;
    padding: 5px 10px;
}

#skill h2 span {
    padding: 0 0 2px 15px;
}

#skill h3:nth-child(2) {
    margin: 40px auto 0;
}

#skill small {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 100;
    margin: 0 0 20px;
}

.skill-flex {
    width: 80%;
    margin: 0 auto;
}

.skill-content {
    display: flex;
    justify-content: left;
    gap: 10px;
    align-items: center;
    padding: 0 0 20px;
}

.skill-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-icon h4 {
    font-size: 10px;
    text-align: center;
}

.skill-comment p {
    font-size: 12.5px;
    text-align: justify;
}

@media (min-width: 767px) {
    #skill h3 {
        margin: 60px auto 15px;
    }

    #skill h3:nth-child(2) {
        margin: 0 auto 0;
    }

    #skill small {
        font-size: 13px;
    }

    .skill-flex {
        display: flex;
        justify-content: center;
        gap: 2%;
    }

    .skill-content {
        width: 25%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0px;
        padding: 0 0 0px;
        border: #4d4d4dcc solid 2px;
        border-radius: 30px;
        overflow: hidden;
    }

    .skill-icon {
        padding: 5px;
    }
    .skill-icon img {
        width: auto;
        height: 60px;
        max-width: 150px;
    }
    .skill-comment {
        background-color: #f2c3351a;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px 10px 10px;
    }
    .skill-comment h4 {
        font-size: 18px;
        margin: 0 0 5px;
    }
    .skill-comment p {
        font-size: 14px;
        text-align: justify;
    }
}

/* Works */
#works {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
}

#works .inner-right {
    width: 10%;
    position: relative;
}

#works .inner-left {
    width: 80%;
    margin: 0 0 0 auto;
}

#works h2 {
    writing-mode: vertical-rl;
    padding: 10px 5px;
    margin: 0 0 0 auto;
    max-width: 100%;
    align-items: end;
    top: 60px;
    right: 0;
    overflow: hidden;
}

#works h2 span {
    padding: 15px 0 0;
}



.works-item {
    padding-bottom: 50px;
}

#works .works-item a {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

#works .works-item a p {
    position: absolute;
    bottom: 2%;
    right: 1%;
    display: block;
    background-color: #4d4d4d;
    color: #f4f4f4;
    box-shadow: 1px 1.5px 3px #f4f4f4;
    border-radius: 50px;
    padding: 8px 15px 10px;
    letter-spacing: 0.02em;
}

#works .works-item img {
    transition: 0.3s;
}

.works-type {
    margin: 5px 5%;
    display: flex;
    gap: 10px;
}

.works-type * {
    width: fit-content;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 7px;
}

.works-type .school {
    background-color: #4d4d4d;
    color: #f4f4f4;
}

.works-type .rwd {
    background-color: #f2c335;
    color: #4d4d4d;
    font-weight: bold;
}

.works-type .page {
    background-color: #ececec;
    color: #4d4d4d;
    border: 1px solid #4d4d4d;
    font-weight: bold;
}

#works h4 {
    font-size: 15px;
    font-weight: bolder;
}

.works-tool {
    font-size: 15px;
    font-weight: 100;
    line-height: 0.8;
    padding: 0 20px 10px;
}

.works-when {
    text-align: right;
    margin: 0 5%;
    line-height: 0;
}

.works-when span {
    font-size: 0.8em;
    line-height: 1;
    padding-left: 0.2em;
}

@media (min-width: 767px) {
    #works h2 span {
        padding: 15px 2px 0;
    }

    #works h3 {
        margin: 20px auto 30px;
    }

    #works .flex-works {
        display: grid;

        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 5%;
    }

    .works-item {
        width: 100%;
        padding-bottom: 50px;
    }

    #works .works-item img:hover {
        transform: scale(1.2);
    }

    #works .works-item a p {
        display: none;
    }
}



/* footer */
footer {
    background-color: #cfcfcf;
}

footer img {
    display: block;
    width: 40%;
    padding: 20px 0 50px;
    margin: 0 auto;
}

footer p {
    text-align: center;
    padding: 0 0 10px;
}

footer a {
    display: block;
    box-shadow: 3px 5px 0px #7adcab;
    border: 2px solid #4d4d4d;
    border-radius: 100px;
    background-color: #4d4d4d;
    color: #f4f4f4;
    width: 80%;
    padding: 1em 0 1.3em;
    margin: 0 auto;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-align: center;
    transition: 0.3s;
}

footer a:hover {
    background-color: #f4f4f4;
    color: #4d4d4d;
    border: 2px solid #7adcab;
}

footer p:last-child {
    font-size: 10px;
    width: fit-content;
    padding: 80px 0 10px;
    margin: 0 auto;
}

@media (min-width: 767px) {
    footer img {
        width: 300px;
        padding: 30px 0 50px;
    }

    footer p {
        padding: 0 0 20px;
    }

    footer a {
        width: 600px;
    }

    footer p:last-child {
        font-size: 12px;
        padding: 50px 0 10px;
    }
}
