@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

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

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

html {
    scroll-behavior: smooth;
}

header {
    background-color: #c0be9d;
}


.title {
    text-align: left;
    padding-top: 10px;
    padding-left: 10px;
}

.title img {
    width: 300px;
    max-width: 20%;
}

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

.gnav {
    background-color: #ae9674;
    color: #c0be9d;
}

.gnav ul {
    display: flex;
    justify-content: end;
}

.gnav a {
    margin-right: 10px;
    padding: 10px 30px 10px;
    display: inline-block;
    color: black;
    text-decoration: none;
    font-size: 24px;
}

.gnav .current {
    color: #f9f8e7;
    font-weight: bold;
    border-bottom: 5px solid #f9f8e7;
}

.about {
    background-color: #fdf2dd;
}

.contact {
    background-color: #e8e6d0;
}

.works {
    background-color: #e8e6d0;
}

section {
    padding: 40px 0;
}


h2 {
    text-align: center;
    font-size: 80px;
    margin-bottom: 40px;
    font-family: "Sour Gummy", sans-serif;
    font-optical-sizing: auto;
    }

.inner {
    width: 80%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;

}

.inner p {
    margin-bottom: 10px;
    font-size: 14px;
}

.center {
    text-align: center;
}

.work_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.work p:first-child {
    font-size: 1.25rem;
    /* 大きめ文字 */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

/* 説明文全体 */
.work {
    text-align-last: left;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #f9f8e7;
    background-color: #fff;
    margin-bottom: 20px;
}

.work p {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
    margin: 0 0 12px 0;
    width: 100%;
    padding-bottom: 10px;
}

.work img {
    width: 250px;
    padding-bottom: 30px;
    flex-wrap: wrap;
    display: inline-block;
}

.more_link {
    text-align: right;
    margin-top: 10px;
    font-style: #c0be9d;
}

.totop {
    position: fixed;
    bottom: 15px;
    right: 49%;
    z-index: 99;
}

.totop img {
    width: 30px;
}

footer {
    background-color: #ae9674;
    padding-bottom: 20px;
}

footer p {
    padding: 30px 30px;
    text-align: center;
}

.snapwidget-widget{
    display: flex;
    justify-content: center;
}

/* 下層ページ　about.html */

.profile_img {
    width: 25%;
    float: right;
    margin-left: 15px;
}

.skill_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill {
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #eee;
}

h3 {
    font-size: 30px;
}


iframe {
    max-width: 90%;
}

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

    section {
        padding: 20px 0;
    }
    
    
    h2 {
        font-size: 30px;
        margin-bottom: 20px;

    }

    h3 {
        font-size: 20px;
        margin-bottom: 10px;

    }

    .gnav a {
        margin-right: 10px;
        padding: 10px 10px 10px;
        display: inline-block;
        color: black;
        text-decoration: none;
        font-size: 20px;
    }

    .inner p {
        font-size: 16px;
    }


    /* PC〜タブレット対応：グリッドベースに変更 */
    .work_wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* 各バナーカード */
    .work {
        background: #fff;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    /* バナー画像 */
    .work img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

    .skill_wrap {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* バナーのタイトル */
    /* タイトル */


}

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

    .work_wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}