@charset "utf-8";

*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #000000;
    line-height: 1;
    background-color: #ffffff;
}

img {
    max-width: 100%;
}

h2 {
    font-family: 'Poiret One', cursive;
    font-size: 48px;
    font-weight: lighter;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}


/* header-area-------------------- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #ffffff;
}

.logo {
    width: 150px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 20%;
    transition: all 0.5s ease-in-out;
}

.nav-links a {
    font-family: 'Poiret One', cursive;
    font-weight: bold;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 5px;
    transition: all 0.5s ease-in-out;
}

.nav-active {
    transform: translateX(0%) !important;
}

/* main-area-------------------- */
main {
    width: 100%;
}

.container {
    width: min(100% - 2rem, 860px);
    margin-inline: auto;
    padding-top: 8vh;
}

/*  > main-visual---------- */
#main-visual {
    height: 549px;
    background-color: #cfcfcf;
    box-shadow: 0 0 0 100vmax #cfcfcf;
    clip-path: inset(0 -100vmax);
    position: relative;
}

.top {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.top h2 {
    font-size: 48px;
    font-family: 'Courier Prime', monospace;
}

.top p {
    font-size: 20px;
    font-family: 'Bebas Neue', sans-serif;
}

/*  > about---------- */
#about {
    margin-top: -8vh;
    padding-top: 8vh;
}

.about-tit {
    padding-top: 80px;
}

.about-me {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    margin-bottom: 70px;
}

.box-left img {
    width: 280px;
    height: auto;
}

h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
}

h3::after {
    content: "";
    height: 1px;
    flex-grow: 0.3;
    background-color: #000000;
    margin-left: 1rem;
}

.box-right-profile p,
.box-right-license p {
    line-height: 1.5;
    font-weight: bold;
    padding-left: 3em;
    padding-top: 5px;
    padding-bottom: 5px;
}

/*  > works---------- */
#works {
    background-color: #cfcfcf;
    box-shadow: 0 0 0 100vmax #cfcfcf;
    clip-path: inset(0 -100vmax);
}

.works-tit {
    padding-top: 80px;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 20px;
    justify-content: center;
    padding-top: 5%;
    padding-bottom: 10%;
}

.works-item {
    position: relative;
    width: 250px;
}

.item-img {
    display: block;
    width: 100%;
}

.works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    cursor: pointer;
}

.works-overlay:hover {
    opacity: 1;
}

.img-tit {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.75em;
}

.img-text {
    font-family: 'Poiret One', cursive;
    font-weight: bold;
    font-size: 1em;
    margin-top: 0.5em;
}

/*  > contact---------- */
.contact-tit {
    padding-top: 80px;
}

.contact-form {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5%;
    padding-bottom: 10%;
    margin: 0 auto;
}

.item {
    overflow: auto;
    margin-bottom: 20px;
}

.label {
    float: left;
    margin-right: 20px;
    width: 135px;
    font-weight: bold;
}

.inputs {
    float: left;
    width: 500px;
    margin-top: 10px;
}

button,
input,
select,
textarea {
    background-color: transparent;
    border-style: solid;
}

input[type="text"],
input[type="email"] {
    border: solid 1px #000000;
    padding: 10px;
    font-size: 15px;
    border-radius: 5px;
}

textarea {
    border: 1px solid #000000;
    border-radius: 5px;
    padding: 10px;
    resize: none;
    height: 200px;
    width: 300px;
    font-size: 15px;
}

.button-area {
    text-align: center;
    margin-top: 30px;
}

input[type="submit"] {
    background-color: #cfcfcf;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    border-radius: 20px;
    margin: 0 5px;
    box-shadow: 1px 1px 3px grey;
    cursor: pointer;
}

input[type="reset"] {
    background-color: #ffffff;
    border: none;
    padding: 3px 10px;
    color: #cfcfcf;
    font-size: 17px;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 1px 1px 3px grey;
    cursor: pointer;
}

/* footer-area-------------------- */
.footer {
    color: #ffffff;
    background-color: #24211b;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.copyright {
    font-size: 14px;
}

/* Portfolio.html-style-------- */
#work-page .page-tit {
    font-family: 'Kiwi Maru', serif;
    font-size: 40px;
    font-weight: lighter;
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 5%;
}

.portfolio-data {
    margin-bottom: 5%;
}

.portfolio-data ul {
    margin-bottom: 5%;
}

.portfolio-data li {
    font-family: 'Poiret One', cursive;
    font-weight: bold;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 10px;
}

dl {
    display: flex;
    padding-bottom: 5px;
}

dt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
}

dd {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.portfolio-flyerimg {
    display: flex;
}

.flyer-item {
    width: 100%;
    margin: 5px;
}

.flyer-item img {
    width: 100%;
}

/* hover-marker↓ */
.marker {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.marker::after {
    content: "";
    width: 0%;
    height: 8px;
    background: #cfff6e;
    position: absolute;
    bottom: -4px;
    left: 0;
    z-index: -1;
    transition: all .3s;
}

.marker:hover::after {
    width: 100%;
}

/* thanks.html-style------ */
#thanks-top {
    height: 80vh;
}

.th-tit {
    font-size: 16px;
    text-align: center;
    padding-top: 40vh;
    padding-bottom: 40vh;
}

/* Tablet版(縦)------------------ */
@media screen and (max-width: 1200px) and (min-width: 768px) {
    .nav-links {
        width: 40%;
    }

    .top h1 {
        font-size: 45px;
    }

    .top p {
        font-size: 15px;
    }

    .works-list {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Mobile版---------- */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        height: 92dvh;
        top: 8vh;
        background-color: #d9d9d9;
        flex-direction: column;
        align-items: center;
        width: 50%;
        z-index: 1;
        transform: translateX(100%);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .main {
        overflow: hidden;
    }

    .about-me {
        flex-direction: column;
        align-items: center;
    }

    .box-right-profile,
    .box-right-license {
        margin-bottom: 1em;
    }

    .box-right-profile p,
    .box-right-license p {
        font-size: 14px;
        padding-left: 1em;
        padding-right: 1em;

    }

    .sma {
        display: none;
    }

    .works-list,
    .portfolio-flyerimg {
        display: flex;
        flex-wrap: wrap;
    }

    .contact-form {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .label,
    .inputs {
        float: none;
        width: 100%;
    }

    .inputs,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    .label {
        margin: 0 0 6px;
    }

    textarea {
        width: 100%;
        height: 200px;
    }

    .contact-form input[type="submit"],
    .contact-form input[type="reset"] {
        margin-bottom: 40px;
    }
}

@keyframes navLinksFade {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}   