@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=キウイ+マル:wght@300;400;500&display=swap');

:root {
    --base-color: #FDE5E1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #14171a;
    font-family: 'キウイ丸', sans-serif;
}

html {
    font-size: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    width: 90%;
    transform: scale(1.1);
    transition-duration: 0.5s;
}

.wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 150px;
}

header {
    position: fixed;
    background-color: #fff;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

header .wrapper,
.wrapper p {
    margin-left: 1%;
    margin-right: 1%;
}


header h1 a {
    color: #24292e;
    padding: 0 1rem;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #24292e;
    font-weight: 700;
}

header li a:hover {
    opacity: 0.7;
}

main {
    margin-top: 90px;
}

#mainvisual {
    margin-bottom: 80px;
    text-align: center; 
    height: auto;
}

#mainvisual img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto; 
    object-fit: cover; 
}

#PROFILE .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#PROFILE img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-right: 100px;
    object-fit: cover;
}

#PROFILE .text {
    line-height: 1.7;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-decoration-color: #FDE5E1; 
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
}

footer {
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

@media screen and (max-width: 599px) {
    .wrapper {
        margin-bottom: 100px;
    }

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #mainvisual img {
        width: auto; 
        max-height: 100%;
    }

    #PROFILE .content {
        flex-direction: column;
    }

    #PROFILE img {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    #PROFILE .text {
        text-align: center;
    }

    #MENU ul {
        flex-direction: column;
    }

    #MENU li {
        flex: 0 0 calc(100% - 20px); 
        margin: 10px;
    }

    #WORKS .content {
        flex-direction: column;
    }

    #WORKS a {
        flex: 0 0 100%;
        margin: 10px;
    }

    #WORKS img {
        width: 100%;
        margin: 0;
    }
    #WORKS .lightbox.work-square img {
        width: 100%;
        height: auto;
    }
}

.site-header-navbtn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 1;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform 0.4s;
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}

@media screen and (max-width: 767px) {
    .site-header-navbtn {
        display: block;
        top: 50%;
        transform: translateY(-50%);
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: var(--base-color);
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: 100%;
    }

    .site-header-nav ul li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.5em;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
    }

    main {
        margin-top: 150px;
        margin-left: 5px; 
        margin-right: 5px; 
    }

}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #999;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}

.contact-button:hover {
    background-color: #383e45;
}

a.privacy-policy-link {
    color: #007bff; 
}

#MENU {
    overflow: auto;
}

#MENU .wrapper {
    max-width: 100%; 
    margin: 0; 
}

#MENU ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#MENU li {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-decoration-color: #FDE5E1; 
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
}


.content-title {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

p {
    color: #666;
    padding: 3px;
}

#WORKS .content {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#WORKS a {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    position: relative;
}

#WORKS img {
    width: auto;
    height: auto;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;   
}

#WORKS .work-square img {
    object-fit: cover;
    height: 100%; 
}