@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-size: 16px;
    background-color: #f9fef1;
}

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

a:hover {
    color: #f5a623;
}

nav {
    background-color: #529f71;
    margin: 0 auto;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    list-style: none;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

nav li {
    font-family: "Merriweather", serif;
    font-weight: 400;
    /* Regular */
    padding: 0px 32px;
}

.main_visual {
    font-family: "Shippori Mincho", serif;
    text-align: center;
}


h1 {
    color: #2e774c;
    font-size: 53px;
    padding: 80px 0 56px;
    font-weight: 700;
}

.h1-s {
    font-size: 40px;
    padding: 0 8px;
}

.msg_p {
    color: #00ac81;
    font-size: 28px;
    line-height: 60px;
}

.forest {
    font-size: 42px;
    padding: 0 8px;
}

.design {
    font-size: 40px;
}

.main_visual {
    background-image: url(./images/mv_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 752px;
}

h2 {
    font-family: "Merriweather", serif;
    font-weight: 500;
    font-size: 28px;
    text-align: center;
    color: #35684a;
    padding: 64px 0 8px;
}

.about {
    background-color: #dbf8b0;
    padding-bottom: 64px;
}

.about-contents {
    padding-bottom: 48px;
}

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

.about-title img {
    margin-bottom: 48px;
}

.ayumi {
    width: 90%;
    max-width: 920px;
    height: auto;
    background-color: #fff;
    padding: 42px 0;
    border-radius: 20px;
    margin: 0 auto;
}

.ayumi-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    color: #35684a;
    text-align: center;
}

.ayumi-explanation p {
    padding: 40px 75px 48px 88px;
    line-height: 32px;
    color: #5c4434;
}

.orange {
    color: #c77942;
}

.web-skill {
    position: relative;
    border-top: 1px solid #58b530;
    width: 90%;
    max-width: 752px;
    margin: 0 auto;
}

.web-skill h3 {
    position: absolute;
    top: 0px;
    left: 50%;
    padding: 0 24px;
    transform: translateY(-50%) translateX(-50%);
    background-color: #fff;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    color: #5c4434;
}

.green {
    color: #35684a;
    font-weight: 700;
}

.self-introduction {
    background-image: url(./images/about_msg_frame.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    max-width: 920px;
    min-height: 265px;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 24px 120px;
}

.message {
    width: 70%;
}

.message p {
    color: #5c4434;
    line-height: 29px;
}


.my-photo {
    width: 20%;
}

.works {
    background-color: #c0efb8;
    padding-bottom: 64px;
}

.works-contents {
    margin: 0 auto;
    position: relative;
    width: 1000px;
}

.tree-left {
    position: absolute;
    left: 32px;
    top: 40px;
    width: 147px;
    height: 171px;
}

.tree-right {
    position: absolute;
    right: 32px;
    top: 62px;
    width: 124px;
    height: 144px;
}

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

.works-description {
    color: #35684a;
    padding: 48px 0;
    text-align: center;
    line-height: 1.65;
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    justify-items: center;
}

.item {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
}

.item .image-box {
    width: 100%;
    height: 300px;
    background-color: #fff;
    border: solid #58b530 1px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box img,
.image-box-web img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-title {
    color: #35684a;
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 2;
}

.type-bnr {
    background-color: #58b530;
    border-radius: 10px;
    padding: 4px 32px;
    color: #fff;
}

.type-web {
    background-color: #2fddd1;
    border-radius: 10px;
    padding: 4px 32px;
    color: #fff;
}

.image-box-web {
    width: 100%;
    height: 300px;
    background-color: #fff;
    border: solid #2fddd1 1px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact {
    background-image: url(./images/contact_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 80px;
}


.contact-title {
    background-image: url(./images/contact_title.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 215px;
    position: relative;
    margin-bottom: -60px;
}

.contact-title h2 {
    padding-top: 120px;
}

.form-wrapper {
    background-color: #fff;
    width: 950px;
    height: auto;
    margin: 0 auto;
    padding-bottom: 80px;
}

.form-msg {
    color: #35684a;
    text-align: center;
    line-height: 32px;
    padding: 90px 0 24px;
}

.form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: #5c4434;
    margin-bottom: 24px;
}

.form-group label {
    width: 30%;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 70%;
    padding: 8px;
    border: 1px solid #5c4434;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#name,
#email,
#message {
    width: 100%;
    border: 1px solid #5c4434;
    padding: 5px;
    border-radius: 5px;
}

#message {
    height: 96px;
}

.button {
    text-align: center;
}

button {
    background-color: #85d200;
    border-radius: 10px;
    width: 130px;
    height: 32px;
    padding: 0px 41px;
    color: #fff;
    font-size: 16px;
    border: none;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    color: #5c4434;
    margin: 16px 0;
}


/* ここからworksページのCSS */

.header-img {
    background-image: url(./images/works_page_title.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100px;
    position: relative;
    text-align: center;
    margin-bottom: 64px;
}

.header-works {
    font-family: "Merriweather", serif;
    font-weight: 500;
    font-size: 28px;
    color: #35684a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.works-img {
    width: 1000px;
    margin: 0 auto;
}

.works-img img {
    padding: 0 100px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.works-name {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #c77942;
    margin-bottom: 40px;

}

.works-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px 64px;
    border-top: 1px solid #529f71;
}

.works-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 16px;
    margin-top: 24px;
    padding-bottom: 32px;
}

.works-section-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.works-item,
.works-item2 {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
}

.works-label {
    min-width: 140px;
    font-weight: 600;
}

.works-content {
    color: #5c4434;
    flex: 1;
    line-height: 24px;
}

.title-green {
    color: #35684a;
}

.title-brown {
    color: #5c4434;
    font-weight: 500;
}

.list {
    text-align: right;
    padding-top: 16px;
    color: #529f71;
    width: 100%;
    margin: 0 auto;
}

.list-a {
    color: #529f71;
    text-decoration: none;
}


/* ここからレスポンシブ対応 */


/* タブレット（1024px以下） */
@media (max-width: 1024px) {

    .ayumi,
    .self-introduction,
    .works-contents,
    .works-gallery,
    .works-img,
    .form-wrapper,
    .works-detail,
    .list {
        width: 90%;
    }

    .skills {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .self-introduction {
        background-image: none;
        background-image: url(./images/self_bg.png);
        background-repeat: no-repeat;
        background-size: cover;
        border: 5px double #58b530;
        padding: 24px;
    }

    .tree-left {
        width: 127px;
        height: auto;
    }

    .tree-right {
        width: 104px;
        height: auto;
    }

    .works-img img {
        padding: 0 16px;
    }

}


/* スマホ（768px以下） */
@media (max-width: 768px) {

    /* 横並びを縦並びに */
    .skills,
    .works-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ayumi-title {
        flex-direction: column;
        gap: 16px;
    }

    .self-introduction {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .my-photo {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding-right: 24px;
    }

    .message {
        width: 100%;
    }



    /* 画像エリアの高さ調整 */
    .main_visual {
        height: 500px;
    }

    .contact {
        padding-bottom: 80px;
    }

    /* フォントサイズ調整 */
    h1 {
        font-size: 42px;
        padding: 40px 0 28px;
    }

    .msg_p {
        font-size: 24px;
        line-height: 48px;
    }

    .forest {
        font-size: 32px;
    }

    .design {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
        padding: 48px 0 8px;
    }

    h3 {
        font-size: 18px;
    }

    .tree-left {
        width: 90px;
        height: auto;
        top: 16px;
        left: 20px;
    }

    .tree-right {
        width: 67px;
        height: auto;
        top: 38px;
        right: 20px;
    }

    .form-wrapper {
        width: 100%;
        padding: 40px 20px 100px;
        box-sizing: border-box;
    }

    .form {
        max-width: 90%;
        padding: 0;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-group label {
        width: 100%;
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
    }



    /* フォーム入力エリア */
    #name,
    #email,
    #message {
        width: 100%;
    }

    /* メッセージ周り余白 */
    .message p {
        padding: 24px 0 0 24px;
    }

    .footer-nav {
        position: relative;
    }

}

/* 超スマホ（480px以下） */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .main_visual {
        height: 400px;
    }

    nav li {
        padding: 0 16px;
    }

    h1 {
        font-size: 32px;
    }

    .h1-s {
        font-size: 24px;
    }

    .msg_p {
        font-size: 18px;
        line-height: 30px;
    }

    .forest {
        font-size: 24px;
    }

    .design {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }


    .ayumi-explanation p {
        padding: 24px 24px 32px;
        line-height: 32px;
    }


    .tree-left,
    .tree-right {
        display: none;
    }

    .works-description {
        padding: 24px 16px;
    }

    .header-img {
        height: 72px;
    }

    .header-works {
        font-size: 20px;
    }

    .works-name {
        font-size: 18px;
    }

    .works-item {
        flex-direction: column;
        /* ← 子要素を縦並びに */
        gap: 8px;
    }

    .works-label {
        min-width: auto;
        /* ← 横幅指定を解除 */
        font-weight: 600;
    }

    .works-content {
        padding-left: 1em;
    }

    .photoshop {
        margin-left: -1em;
    }
}