@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: ZenKakuGothicNew;
    src: url(../font/ZenKakuGothicNew-Regular.ttf);
}

@font-face {
    font-family: MontserratUnderline;
    src: url(../font/MontserratUnderline-VariableFont_wght.ttf);
}

@font-face {
    font-family: MPLUS1-Light;
    src: url(../font/MPLUS1-Light.ttf);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ZenKakuGothicNew;
    color: #333;
}

a {
    text-decoration: none;
    color: #666;
}

ul {
    list-style-type: none;
}

/* header */
header {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75% 0;
    z-index: 100;
}

header h1 {
    width: 15%;
    min-width: 150px;
    margin-left: 5%;
    transition: 0.3s;
}

.is-animation h1 a {
    font-size: 0;
    opacity: 0;
    transition: opacity 0.3s,font-size 1s;
}

header h1 a {
    display: block;
    font-size: max(2.2vw,24px);
    font-weight: normal;
    line-height: 2.4;
    font-family: MontserratUnderline;
    text-align: center;
}

header nav {
    width: 20%;
    margin-left: auto;
    margin-right: 10%;
}

header nav ul {
    display: flex;
}

header nav ul li {
    width: calc(100% / 3);
    padding: 3%;
}

header nav ul li a {
    position: relative;
    display: block;
    text-align: center;
    font-size: max(1vw,16px);
    width: 3.8vw;
    min-width: 56px;
    height: 3.8vw;
    min-height: 56px;
    line-height: 3.4;
    background-color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    border: 1px solid #4AB6E7;
    border-radius: 50%;
}

header nav ul li a::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 3.8vw;
    min-width: 56px;
    height: 3.8vw;
    min-height: 56px;
    background-color: #4AB6E7;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    z-index: -1;
}

header nav ul li a:hover {
    background-color: transparent;
    color: #fff;
    transition: 0.5s;
}

header nav ul li a:hover::before {
    transform: scale(1);
    opacity: 1;
    transition: 0.3s;
}

.is-animation nav {
    position: absolute;
    right: -10%;
    width: 8%;
}

.is-animation nav ul {
    display: block;
}

.is-animation nav ul li {
    margin-top: 20%;
}

.is-animation nav ul li a {
    width: 2vw;
    height: 2vw;
    font-size: max(0.8vw,12px);
    width: 2.2vw;
    min-width: 30px;
    height: 2.2vw;
    min-height: 30px;
    line-height: 2.4;
    transition: 0.3s;
}

.is-animation nav ul li a::before {
    width: 2.2vw;
    min-width: 26.2px;
    height: 2.2vw;
    min-height: 26.2px;
}


/* main */

main {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

main section {
    margin-top: 15%;
}


main section h2 {
    font-weight: normal;
    font-family: MontserratUnderline;
    font-size: max(2vw,20px);
}

.about-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.about-e {
    width: 49%;
}

.about-wrapper img {
    width: 100%;
    display: block;
}

.about-text {
    padding: 3%;
    width: 45%;
}

.about-text p {
    line-height: 1.7;
    font-size: max(1vw,16px);
}

.about-text p:first-of-type {
    font-size: max(1.25vw,18px);
    margin-bottom: 2%;
}

.about-text p:nth-of-type(4) {
    margin-top: 4%;
}


.button {
    width: 24%;
    margin-top: 5%;
    margin-left: auto;
}

.button a {
    display: block;
    text-decoration: underline;
    font-size: max(1.2vw,16px);
}


main section h3 {
    font-weight: normal;
    font-size: max(1.8vw,16px);
    font-family: MPLUS1-Light;
}

.works p {
    font-size: max(1vw,16px);
    line-height: 1.7;
}

.works-grid {
    width: 70%;
    margin-left: auto;
    margin-right: 8%;
    padding: 2% 2%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3vw;
    background-color: rgb(252, 252, 253);
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
    transform: translateY(150px);
}

.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.box {
    position: relative;
}

.hidden {
    display: none;
}


.works-title-wrap {
    display: flex;
}

.works-title-wrap p {
    font-size: max(1.2vw,15px);
    width: 55%;
    margin-left: 10%;
    line-height: 2;
}

.works .web {
    position: relative;
    margin-top: 8%;
}

.web .box::after {
    content: "クリックして詳細ページ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    line-height: 11;
    font-size: 1vw;
    visibility: hidden;
    transition: 0.2s;
    opacity: 0;
}

.web .box:hover::after {
    visibility: visible;
    transition: 0.2s;
    opacity: 1;
}

.works .web h3 {
    position: absolute;
    top: 10%;
    left: 3%;
}

.works .photoshop {
    position: relative;
    margin-top: 5%;
}

.works .photoshop h3 {
    position: absolute;
    top: 10%;
}

.works .illustlator {
    position: relative;
    margin-top: 5%;
}

.works .illustlator h3 {
    position: absolute;
    top: 10%;
    left: 1%;
}

.works .other {
    position: relative;
    margin-top: 5%;
}

.works .other h3 {
    position: absolute;
    top: 10%;
}

.photoshop .box::after,
.illustlator .box::after,
.other .box::after {
    content: "クリックして拡大";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    line-height: 11;
    font-size: 1vw;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;

}

.photoshop .box:hover::after,
.illustlator .box:hover::after,
.other .box:hover::after {
    visibility: visible;
    opacity: 1;
    transition: 0.2s;
}


footer {
    margin-top: 10%;
    padding: 1% 0;
    border-top: 1px solid#4AB6E7;
}

footer p {
    text-align: center;
    font-size: 14px;
    color: #4AB6E7;
}