body {
    background-color: var(--white);
}

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


header,
main,
.KV,
footer {
    opacity: 0;
}

header h1 {
    font-weight: 200;
}

header h1 span {
    color: var(--sub-color);
}

header ul {
    display: flex;
    font-weight: 200;
}

header ul li {
    margin-right: 30px;
}

header ul li a:hover {
    color: var(--sub-color);
}


.loading {
    position: fixed;
    inset: 0;

    background: var(--light-gray);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    z-index: 99999;
}

.loading-visual {
    position: relative;
}

.mountain {
    width: 220px;
    display: block;
}

.cat {
    position: absolute;

    top: -10px;
    left: 50%;

    transform: translateX(-50%);

    width: 60px;
}

.loading-text {
    margin-top: -30px;
    font-size: 16px;
    letter-spacing: .05em;
}

.loading-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
}

.KV {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.KV img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform .1s linear;
}


.profile {
    display: block;
    text-align: center;
    margin: 100px 0 150px 0;
}

.profile img {
    margin: 0 auto;
}

.profile h2 {
    font-weight: 200;
    font-size: 24px;
    color: var(--sub-color);
    margin-bottom: 20px;
}

.p-text {
    text-align: left;
    width: 340px;
    margin: 30px auto;
    padding: 20px 20px 30px 20px;
    background-color: var(--light-gray);
    border-radius: 3px;
    color: var(--right-black);
}

.p-text h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

.p-text p {
    font-size: 12px;
}

.works {
    display: block;
    text-align: center;
}

.works h2 {
    font-weight: 200;
    font-size: 24px;
    color: var(--sub-color);
    margin-bottom: 20px;
}

.works p {
    font-size: 13px;
    margin-bottom: 60px;
    color: var(--right-black);
}

.web {
    margin-bottom: 150px;
}

.web h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;

}

.web h4 {
    color: var(--sub-color);
}

.web dl {
    color: var(--right-black);
}

.web dt span {
    color: var(--sub-color);
}

.web dl dd ul {
    list-style-type: disc;
}

.web dl dt {
    margin-bottom: 10px;
}

.web dl dd {
    margin-bottom: 20px;
}

.website01 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 100px;
}

.pc01 img {
    width: 100%;
    max-width: 404px;
    display: block;
}

.w-text01 {
    text-align: left;
    max-width: 500px;
    width: 100%;
    font-size: 13px;
}

.website_link {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;

}

.website_link a {
    display: inline-block;
    color: var(--white);
    background-color: var(--dark-gray);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 300;
    text-decoration: none;
    transition: .3s;
}

.website_link a:hover {
    background-color: var(--sub-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.website02 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pc02 img {
    width: 100%;
    max-width: 404px;
    display: block;
}

.w-text02 {
    text-align: left;
    width: 100%;
    max-width: 500px;
    font-size: 13px;
}

.flyer {
    margin-bottom: 150px;
}

.flyer h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.flyerimg {
    max-width: 1000px;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.logo {
    margin-bottom: 150px;
}

.logo h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.logo h4 {
    color: var(--right-black);
}

.logo01 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 100px;
}

.logo02 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
}

.l-text {
    text-align: left;
}

.l-text h4 {
    margin-bottom: 10px;
}

.banner {
    margin-bottom: 150px;
}

.banner h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.bannerimg {

    width: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.typography {
    margin-bottom: 150px;
}

.typography h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.typography img {
    width: 400px;
    max-width: 80%;
    display: block;
    margin: 0 auto 40px;
}


.retouch {
    margin-bottom: 150px;
}

.retouch h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.retouch ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 40px 0;
    list-style: none;
}

.retouch li {
    width: 20%;
    max-width: 200px;
}

.retouch img {
    width: 100%;
    height: auto;
    display: block;
}

.retouch figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--right-black);
}

.illustration {
    margin-bottom: 150px;
}

.illustration h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 300;
}

.illustimg {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 100px auto 0;
}

.skills {
    display: block;
    text-align: center;
    margin-top: 100px;
}

.skills h2 {
    font-weight: 200;
    font-size: 24px;
    color: var(--sub-color);
    margin-bottom: 20px;
}

.skills p {
    color: var(--right-black);
}

.skillsicon {
    max-width: 500px;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 50px auto 0;
}

.skillsicon figcaption {
    font-size: 12px;
    color: var(--right-black);
}


/* ===== Contact ===== */

.contact {
    display: block;
    text-align: center;
    margin-top: 80px;
    padding: 50px 20px;
    background: var(--white);
    color: var(--right-black);
}

.contact h2 {
    font-weight: 200;
    font-size: 24px;
    color: var(--sub-color);
    margin-bottom: 20px;
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact form {
    background: var(--white);
    border-radius: 3px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.contact label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
}

.contact input:not([type="checkbox"]),
.contact textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    transition: .3s;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.contact textarea {
    min-height: 180px;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--sub-color);
    box-shadow: 0 0 0 3px rgba(0, 150, 120, .15);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;

}

.text-center {
    text-align: center;
    margin-top: 40px;
}

.btn {
    border: none;
    border-radius: 5px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    background: var(--dark-gray);
    color: #fff;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    background-color: var(--sub-color);
}

.text-danger {
    color: #dc3545;
}

footer {
    text-align: center;
    margin: 50px 0;
}

/* スライドのCSS */
.fade-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: 1.2s ease;
}

.fade-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}


/* header固定 */
header {
    position: relative;
    top: 20px;

    width: 90%;
    max-width: 1512px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 0 auto 40px;
    padding: 15px 40px;

    transition: background-color .3s ease;
}

header.fixed {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 1512px;

    background: #ffffffbf;
    z-index: 1000;
}


/* topボタン */
.to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(75, 75, 75, 0.7);
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    border-radius: 50%;

    opacity: 0;
    visibility: hidden;
    transition: .3s;

    z-index: 999;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: var(--sub-color);
    transform: translateY(-3px);
}

/* 写ルンです */
.anim-wobble .preview-box {
    animation: wobble 1.6s ease-in-out infinite;
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-3deg);
    }
}

/* ケーキ */
.anim-rotate .preview-box {
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* コーヒー */
.anim-scale .preview-box {
    animation: scale 1.6s ease-in-out infinite;
}

@keyframes scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {

    header {
        padding: 0 20px;
    }

    header ul li {
        margin-right: 20px;
    }

    .website01,
    .website02,
    .logo01,
    .logo02 {
        width: 90%;
        margin: 0 auto 80px;
    }

    .w-text01,
    .w-text02 {
        font-size: 10px;
    }

    .flyerimg,
    .bannerimg,
    .illustimg {
        width: 90%;
        gap: 20px;
    }

    .skillsicon {
        width: 70%;
    }

}

@media screen and (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    header ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    header ul li {
        margin: 0;
    }


    .profile h2,
    .works h2,
    .skills h2,
    .contact h2 {
        font-size: 20px;
    }



    /* プロフィール */
    .profile {
        margin: 60px 0 120px;
    }

    .profile img {
        width: 140px;
        margin: 0 auto;
    }

    .p-text {
        width: 90%;
        max-width: 300px;
        margin: 30px auto;
        text-align: left;
    }

    /* Webサイト紹介 */

    .website01,
    .website02 {
        flex-direction: column;
        width: 90%;
        margin: 0 auto 50px;
    }


    .pc01 img,
    .pc02 img {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .w-text01,
    .w-text02 {
        width: 100%;
        margin-top: 30px;
    }

    /* ロゴ */

    .logo01,
    .logo02 {
        flex-direction: column;
        width: 90%;
        margin: 0 auto 80px;
    }

    .logoimg img {
        width: 70%;
        margin: auto;
    }

    .l-text {
        max-width: 300px;
        margin: 0 auto;
        text-align: left;
    }

    /* 画像一覧 */

    .flyerimg,
    .bannerimg,
    .illustimg {
        width: 70%;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;

    }

    .flyerimg img,
    .bannerimg img,
    .illustimg img {
        width: 70%;
    }


    .typography img {
        width: 250px;
        max-width: 80%;
    }

    /* スキル */

    .skillsicon {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .web,
    .flyer,
    .logo,
    .banner,
    .illustration,
    .skills {
        margin-bottom: 100px;
    }

    .web h3 {
        margin-bottom: 30px;
    }

    .to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {

    .flyerimg,
    .bannerimg {
        grid-template-columns: 1fr;
    }

    .illustimg,
    .skillsicon {
        grid-template-columns: 1fr 1fr;
    }

    header h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 10px;
    }

    p {
        font-size: 10px;
    }

    .p-text h3 {
        font-size: 16px;
    }

    .p-text p {
        font-size: 10px;
    }

    .works p {
        font-size: 10px;
        margin-bottom: 30px;
    }


    .to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
        font-size: 18px;
    }



}

/* モーダル */

.modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .8);

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;

    top: 30px;
    right: 40px;

    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.modal.show {
    display: flex;
}

.modal img.large {
    width: 300px;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

.modal-open:hover {
    transform: scale(1.05);
    transition: .3s;
}