@charset "UTF-8";

/*----------------------------------------------------------------default*/
html {
    margin: 0;
    padding: 0;
    font-size: 62.5%;
}

/*===============================================================All*/
body {
    margin: 0;
    padding: 0;
    color: #797e81;
    font-family: "メイリオ", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
    font-size: 1.6rem;
    text-align: center;
    line-height: 2;
    -webkit-text-size-adjust: 100%;
}

p {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    /* 親要素の色を継承 */
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

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

ul {
    margin: 0;
    padding: 0;
}

ul li {
    list-style-type: none;
    padding: 0;
}

dl,
dt,
dd {
    margin: 0;
    padding: 0;
}

dt {
    font-weight: normal;
}

table {
    border-collapse: collapse;
}

input {
    cursor: pointer;
}

main {
    padding: 80px 0 0;
}

.inner {
    width: 1024px;
    margin: 0 auto;
}

.header-nav {
    font-family: "Winky Rough", sans-serif;
}

:root {
    scroll-padding: 100px;
    scroll-behavior: smooth;
}

/*===========================================================ヘッダー*/

header .menu-btn {
    display: none;
}

header {
    box-sizing: border-box;
    height: 80px;
    padding: 10px;
    position: fixed;
    width: 100%;
    background: #fff;
    z-index: 10;
    box-shadow: 0px 6px 3px -3px rgba(0, 0, 0, .1);
}

header .inner {
    display: flex;
    width: 1024px;
    justify-content: space-between;
}

header .header-nav h1 {
    margin: auto 0;
}

header .header-nav ul {
    display: flex;
    margin: auto 0;
}

header .header-nav li {
    margin: 0 0 0 25px;
}

/*===========================================================フッター*/

footer {
    margin: 40px auto 20px;
}

.contact {
    margin: 20px 0;
}

.contact a {
    display: inline-block;
    box-sizing: border-box;
    width: 140px;
    height: 42px;
    border: 2px solid yellowgreen;
    background-color: white;
    border-radius: 21px;
    color: yellowgreen;
    font-size: 1.5rem;
    line-height: 38px;
}

.advertisement {
    margin: 20px auto;
    width: 480px;
}

/*===========================================================ホーム*/

#home #top .intro {
    width: 100%;
    height: 300px;
    background: url(images/top.png) no-repeat center top;
    background-size: contain;
    margin: 0 auto 100px;
}

#home #top .intro p {
    display: none;
}

#home #category .wrap-blk {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

#home #category .item {
    box-sizing: border-box;
    width: 240px;
}

#home #category .item img {
    border-radius: 20px;
    /* 角を20px丸くする */
    border: 1px solid #000000;
}

#home #category .btn {
    display: inline-block;
    box-sizing: border-box;
    width: 140px;
    height: 24px;
    background-color: rgb(0, 0, 0);
    border-radius: 12px;
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    line-height: 24px;
}

/* #home #category .btn a:hover,a:visited{
    color: inherit;
} */

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

#self-portrait img {
    margin: 50px auto 0;
    width: 200px;
    height: 200px;
    border-radius: 20px;
}

#profile .info {
    width: 600px;
    margin: 0 auto 100px;
    text-align: justify;
}

#profile h2 {
    margin: 0 auto 20px;
}

/*===========================================================works*/

#works h2 {
    margin: 30px auto;
}

#works h3 {
    margin: 0 auto 20px;
}

#works #sample ul {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    width: 900px;
    justify-content: space-between;
}

#works #sample li {
    box-sizing: border-box;
    width: 240px;
    height: 320px;
}

#works #sample li img {
    border-radius: 20px;
    /* 角を20px丸くする */
    border: 1px solid #000000;
}

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

#contact h2 {
    margin: 30px auto;
}

#contact h3 {
    font-size: 1.5rem;
    margin: 30px auto;
}

.add {
    width: 300px;
    margin: 0 auto 100px;
}

#contact .note {
    width: 500px;
    margin: 0 auto 100px;
    font-size: 1.5rem;
    text-align: justify;
}


/*---------------------------スマホ----------------------------------*/

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

    .inner {
        width: 94%;
        margin: 0 auto;
    }

    header .menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        padding: 0;
        width: 34px;
        height: 34px;
        line-height: 32px;
        text-align: center;
        border: 1px solid #666;
        background: transparent;
        border-radius: 50%;
    }

    .menu-btn:focus {
        outline: none;
    }

    header .header-nav {
        width: 120px;
        position: fixed;
        display: block;
        top: 80px;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, .8);
        transition: all 0.2s;
        transform: translate(120px);
    }

    header .header-nav.open {
        transform: translate(0);
    }

    header .header-nav ul {
        display: block;
    }

    header .header-nav li {
        margin: 0;
    }

    header .header-nav li a {
        display: block;
        width: 100%;
        padding: 0 10px;
        height: 30px;
        line-height: 30px;
        box-sizing: border-box;
        margin: 0;
    }

    footer {
        font-size: 1.2rem;
    }

    body {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    h2 {
        font-size: 1.8rem;
    }

    #home h2 {
        font-size: 1.6rem;
        margin: 10px auto;
    }

    #home #top .intro {
        margin: 0 0 30px 0;
        width: 100%;
        height: 300px;
        background: url(images/mobile_top.jpg) no-repeat center top;
        background-size: contain;
    }

    #home #category {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    #home #category .wrap-blk {
        margin: 0 auto;
        display: block;
    }

    #home #category .item {
        box-sizing: border-box;
        width: 200px;
        display: block;
        margin: 0 auto;
    }

    #home #category .btn {
        margin: 20px auto 40px;
        font-size: 1.4rem;
    }

    #profile .info {
        width: 90%;
    }

    #works #sample ul {
        width: 90%;
    }

    #works h2 {
        margin: 20px auto 10px;
    }

    #works #sample li {
        width: 150px;
        height: 180px;
    }

    #contact .note {
        width: 90%;
    }

    .advertisement {
        margin: 20px auto;
        width: 80%;
    }

}