/* =================================== */
/*  Basic Style 
/* =================================== */

* {
    box-sizing: border-box;
}

body,
html {
    min-height: 100vh;
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto;
    }
}

body {
    background: #FFF9EE;
    color: #334547;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-style: normal;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

section {
    margin: 0 0 0 370px;
    padding: 0 5%;
    text-align: center;
    height: 100%;
}

section .container {
    text-align: center;
    padding: 80px 0;
}

li {
    list-style-type: none;
}

img {
    vertical-align: middle;
    object-fit: contain;
}

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

a:hover {
    cursor: pointer;
}

h2 {
    margin-bottom: 40px;
}

h3,
.large {
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    margin: 0 0 20px 0;
}

p {
    font-size: 18px;
    line-height: 28px;
    margin: 0;
}

p.bold,
.bold {
    font-weight: 500;
}

p.small,
span.small,
a.small {
    font-size: 15px;
    line-height: 25px;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between !important;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: start;
}

.txt-center {
    text-align: center !important;
}

.txt-left {
    text-align: left !important;
}

.d-flex {
    display: flex;
}

.box-shadow {
    box-shadow: 0px 2px 4px rgba(87, 87, 87, 0.25);
}

.m-0 {
    margin: 0;
}

.sp-show {
    display: none;
}

@media (max-width: 480px) {
    section {
        margin: 0;
        padding: 0;
        text-align: center;
    }

    section .container {
        text-align: center;
        padding: 60px 20px;
    }

    p {
        font-size: 16px;
        line-height: 28px;
    }

    h2 {
        margin-bottom: 30px;
    }

    h2 img {
        height: 60px;
        width: auto;
    }

    h3,
    p.large {
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
    }

    p.small,
    span.small,
    a.small {
        font-size: 13px;
        line-height: 23px;
    }

    .sp-hide {
        display: none;
    }

    .sp-show {
        display: block;
    }

    .sp-block {
        display: block;
    }
}

/* =================================== */
/* slide
/* =================================== */
.animation-bottomin {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transition-delay: 0.1s;
}

.animation-bottomin.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* =================================== */
/* loading
/* =================================== */

/* =================================== */
/* header
/* =================================== */

.menu-button {
    width: 50px;
    height: 50px;
    background-color: #2D7780;
    /* メニューボタンの色 */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    margin: 20px;
    top: 90px;
    right: 50px;
    z-index: 100;
    transition: background-color 0.3s;
    /* 背景色のトランジション */
    z-index: 200;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: #FCFCFC;
    /* バーの色 */
    margin: 3px 0;
    transition: all 0.3s;
    /* アニメーション */
}

.navbar {
    display: none;
    /* デフォルトでは非表示 */
    width: 40vw;
    height: 100%;
    background-color: rgba(45, 119, 128, 0.96);
    position: absolute;
    top: 50%;
    /* 中央寄せのために50% */
    right: -100%;
    transform: translateY(-50%);
    padding: 10px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 200;
}

.navbar.show {
    display: block;
    position: fixed;
    right: 0;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 200;
}

.navbar li {
    margin: 20px 0;
    color: #FCFCFC;
    z-index: 200;
}

.navbar a {
    text-decoration: none;
    color: #FCFCFC;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FCFCFC;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.menu-open .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.menu-open .bar:nth-child(2) {
    opacity: 0;
}

.menu-open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

.menu-open {
    background-color: #FCFCFC;
}

.menu-open .bar {
    background-color: #2D7780;
}


@media (max-width: 480px) {
    .menu-button {
        top: 55px;
        right: 0;
    }

    .navbar {
        width: 100vw;
    }
}

/* =================================== */
/*  main
/* =================================== */

.top-line {
    position: fixed;
    top: 0;
    z-index: 200;
    width: auto;
    height: 59px;
    opacity: 0;
    /* 初期状態は透明 */
    transform: translateY(-40px);
    /* 上に少し移動 */
    transition: opacity 0.5s ease, transform 1s ease;
}

/* フェードイン時のスタイル */
.top-line.visible {
    opacity: 1;
    /* 不透明にする */
    transform: translateY(0);
    /* 元の位置に戻す */
}

/* =================================== */
/*  aside
/* =================================== */

aside {
    padding: 60px 0 20px;
    position: fixed;
    top: 0;
    width: 26%;
    background-color: #F8DFC8;
    text-align: center;
    width: 370px;
    -webkit-transform: translateZ(0);
    animation-name: leftIn;
    animation-duration: 1.2s;
    animation-timing-function: ease;
    transition: transform 0.5s ease;
}

@keyframes leftIn {
    from {
        opacity: 0;
        left: -100px;
    }

    to {
        opacity: 1;
        left: 0;
    }
}

aside .content {
    padding-left: 40px;
    padding-right: 40px;
    height: 100vh;
}

aside ul.profile img {
    width: 70%;
    height: auto;
}

aside ul.profile p {
    padding: 5px 0;
}

aside ul.profile p.name {
    position: relative;
    margin: 0;
}

aside ul.profile p.name::after {
    content: '';
    display: block;
    width: 50%;
    height: 1px;
    background-color: #334547;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

aside ul.detail {
    text-align: left;
    padding: 20px 0;
}

aside ul.detail li {
    padding: 10px;
}

aside ul.detail span {
    margin-right: 8px;
}

aside ul.sns {
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin: 0 auto;
}

/* =================================== */
/*  mv
/* =================================== */

#mv .container {
    position: relative;
    padding-bottom: 40px;
}

#mv .container img {
    margin-top: 40px;
    animation: floating 1.8s ease-in-out infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translateY(-1%);
    }

    100% {
        transform: translateY(1%);
    }
}

#mv .btn {
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s;
    width: 273px;
}

#mv .btn a {
    color: #FCFCFC;
    line-height: 50px;
    padding: 16px 100px;
    transition: transform 0.3s;
    background-color: #D75637;
    border: 1px #D75637 solid;
    border-radius: 30px;
}

#mv .btn:hover {
    transform: scale(1.1);
}

#mv .btn a span {
    position: absolute;
    right: 20px;
    margin-bottom: 4px;
}

#mv .scroll-downs {
    margin: 40px auto 80px;
    width: 34px;
    height: 55px;
}

#mv .mousey {
    width: 3px;
    padding: 10px 15px;
    height: 35px;
    border: 2px solid #334547;
    border-radius: 25px;
    opacity: 0.75;
    box-sizing: content-box;
}

#mv .scroller {
    width: 3px;
    height: 10px;
    border-radius: 25%;
    background-color: #334547;
    animation-name: scroll;
    animation-duration: 2.2s;
    animation-timing-function: cubic-bezier(.15, .41, .69, .94);
    animation-iteration-count: infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}


@media (max-width: 480px) {
    #mv .container img {
        width: 100%;
        height: auto;
        margin-top: 100px;
    }

    #mv .btn a {
        color: #FCFCFC;
        line-height: 40px;
        padding: 10px 100px;
    }

    #mv .btn a span img {
        width: 23px;
        height: 23px;
        margin-bottom: 4px;
    }
}


/* =================================== */
/*  about me
/* =================================== */

#about-me ul.detail {
    text-align: left;
}

#about-me ul.detail li {
    padding: 0 30px 20px 0;
    width: 280px;
}

#about-me ul.detail span {
    margin-right: 8px;
}

#about-me .txt-about-me {
    width: 90%;
}

#about-me ul.profile img {
    height: auto;
}

#about-me ul.profile p {
    padding: 5px 0;
}

#about-me ul.profile p.name {
    position: relative;
    margin: 0;
}

#about-me ul.profile p.name::after {
    content: '';
    display: block;
    width: 50%;
    height: 1px;
    background-color: #334547;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

@media (max-width: 480px) {
    #about-me .profile img {
        width: 70%;
    }

    #about-me ul.detail li {
        padding: 0 10px 10px 0;
        width: 100%;
    }

    #about-me ul.detail span img {
        width: 23px;
        height: 23px;
    }

    #about-me ul.detail p {
        font-size: 13px;
        line-height: 23px;
    }

    #about-me .txt-about-me {
        width: 100%;
        margin-top: 20px;
    }
}


/* =================================== */
/*  skills
/* =================================== */

#skills h3 span img {
    margin-right: 8px;
}

#skills .design-skills ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

#skills .design-skills ul li:first-child {
    font-weight: 500;
}

#skills .coding-skills ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

#skills .coding-skills ul li span img {
    margin-right: 8px;
}

@media (max-width: 480px) {
    #skills .design-skills ul {
        display: flex;
        margin-bottom: 30px;
        justify-content: space-between;
        gap: 0;
    }

    #skills .design-skills ul img {
        width: 51px;
        height: 51px;
    }

    #skills .coding-skills ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 0 15px;
    }

    #skills .coding-skills ul li {
        display: flex;
    }
}

/* =================================== */
/*  what i do
/* =================================== */

#what-i-do .d-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#what-i-do ul {
    background-color: #FCFCFC;
    padding: 20px;
    min-height: 400px;
    border: solid transparent;
    border-radius: 30px;
    transition: all 0.3s;
}

#what-i-do ul:hover {
    transform: scale(1.03);
}

#what-i-do ul li h3 {
    font-weight: normal;
}

#what-i-do ul li img {
    margin: 20px 0;
}

#what-i-do ul li .balloon {
    position: relative;
    width: 100%;
    background: #2D7780;
    padding: 12px;
    text-align: center;
    color: #FCFCFC;
    border-radius: 50px;
}

#what-i-do ul li .balloon::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border: solid transparent;
    border-top-color: #2D7780;
    border-width: 15px 10px 0 10px;
    pointer-events: none;
}

#what-i-do ul.uiux-design li .balloon {
    background: #F2B986;
}

#what-i-do ul.uiux-design li .balloon::after {
    border-top-color: #F2B986;
}

#what-i-do ul.web-coding li .balloon {
    background: #D75637;
}

#what-i-do ul.web-coding li .balloon::after {
    border-top-color: #D75637;
}

@media (max-width: 480px) {
    #what-i-do .d-flex {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin: 0 15px;
    }

    #what-i-do ul li p {
        text-align: left;
    }
}

/* =================================== */
/*  work
/* =================================== */

#work ul li {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: calc(33.333% - 20px);
    margin: 10px;
    height: 184px;
}

#work ul li img {
    width: 100%;
    height: 100%;
}

#work ul#tab3 li img {
    border-radius: 10px;
    object-fit: cover;
}

#work ul#tab4 li.darts img {
    object-fit: contain;
}

#work ul#tab4 li img,
#work ul#tab2 li img {
    border-radius: 10px;
    object-fit: cover;
}

#work ul li .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 69, 71, 0.86);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: #FCFCFC transparent 1px;
    border-radius: 10px;
    transform: translateY(20px);
}

#work ul li p {
    color: #fff;
    text-align: center;
}

#work ul li p:nth-child(2) {
    display: block;
}

#work ul li:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

#work .tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#work .tab-button {
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 15px;
    border: 2px solid #2D7780;
    border-radius: 30px;
    color: #2D7780;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#work .tab-button.active {
    background-color: #2D7780;
    color: #FCFCFC;
}

#work .tab-panel {
    display: none;
}

#work .tab-panel.active {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    #work .work-content {
        display: none;
    }

    #work .work-content.show {
        display: block;
    }

    #work ul {
        padding: 0;
        display: block;
        flex-wrap: nowrap;
        justify-content: center;
    }



    #work ul li {
        position: relative;
        display: inline-block;
        overflow: hidden;
        width: calc(100% - 20px);
        margin: 10px;
        height: 184px;
    }

    #work #loadMore {
        margin: 20px auto;
        position: relative;
        border: none;
        border-bottom: 1px solid #2D7780;
        width: fit-content;
        color: #2D7780;
    }

    #work #loadMore::after {
        content: ">";
        margin-left: 20px;
    }

    #work .tab-button {
        font-size: 14px;
        padding: 6px 15px;
    }
}

/* =================================== */
/*  work popup
/* =================================== */

.popup {
    display: none;
    /* 初期状態では非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 背景を半透明に */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #2D7780;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    width: 70%;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 30px;
    padding: 40px 22px;
    color: #F6E9D4;
}

.popup-content h3 {
    margin-bottom: 30px;
}

.popup-content .d-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.popup-content .d-flex p {
    padding: 15px 0;
}

.popup-content .d-flex p:nth-child(4),
.popup-content .d-flex p:nth-child(3) {
    padding: 0;
}

#popup .popup-content .popup-disc a {
    color: #F6E9D4;
    text-decoration: underline;
}

#popup .popup-content .popup-disc span {
    margin-right: 8px;
}

#popup .popup-content .d-flex img {
    border-radius: 10px;
}

#popup .popup-content .popup-disc #popup-image-b {
    margin-top: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 30px;
    height: 30px;
    background: #F6E9D4;
    color: #2D7780;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    line-height: 30px;
    padding-bottom: 6px;
    transition: all 0.3s;
}

.close:hover {
    opacity: .7;
}

@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        max-height: 98%;
        border-radius: 30px;
        padding: 40px 15px;
    }

    .popup-content h3 {
        margin-bottom: 20px;
    }

    .popup-content .d-flex p {
        padding: 10px 0;
    }
}

/* =================================== */
/*  contact
/* =================================== */

#contact .contact-form {
    margin: auto;
    width: 100%;
    margin-left: 30px;
}

#contact .form-group {
    margin-bottom: 20px;
    display: flex;
}

#contact input[type="text"] {
    margin-right: 20px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background-color: #FCFCFC !important;
    transition: border-color 0.3s ease;
    color: #334547;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #7F8A8B;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border: 2px solid #D75637;
}

#contact .btn {
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s;
    width: 273px;
}

#contact .btn button {
    color: #FCFCFC;
    line-height: 50px;
    transition: transform 0.3s;
    background-color: #D75637;
    border: 1px #D75637 solid;
    border-radius: 30px;
}

#contact .btn button:hover {
    transform: scale(1.1);
}

#contact .btn button span {
    position: absolute;
    right: 20px;
    margin-bottom: 4px;
}

#responseMessage {
    margin-top: 15px;
    color: #2D7780;
}

#contact label {
    display: none;
}

@media (max-width: 480px) {
    #contact .contact-form {
        margin-left: 0;
    }

    #contact .d-flex img {
        width: 80%;
    }

    #contact .form-group {
        display: block;
        width: 100%;
    }

    #contact input[type="text"] {
        margin-bottom: 20px;
        margin-top: 20px;
    }

    #contact .btn {
        margin-top: 20px;
    }

    #contact .btn button {
        line-height: 40px;
        transition: transform 0.3s;
        background-color: #D75637;
        border: 1px #D75637 solid;
        border-radius: 30px;
    }

    #contact .btn button span {
        width: 23px;
        height: 23px;
    }

    #contact .btn button span img {
        width: 100%;
        margin-bottom: 4px;
    }
}

/* =================================== */
/*  footer
/* =================================== */

footer {
    background-color: #FCFCFC;
    margin: 0 0 0 370px;
    padding: 0 5%;
    text-align: center;
}

footer .d-flex {
    padding-top: 20px;
    padding-bottom: 50px;
}

footer .d-flex p {
    font-size: 12px;
    line-height: 28px;
}

@media (max-width: 480px) {

    footer {
        background-color: #FCFCFC;
        margin: 0;
        padding: 0 15px;
        text-align: center;
    }
}