@charset "utf-8";

/* --- 全体設定 --- */
body {
    font-family: 'Zen Maru Gothic', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #80674F;
}
h2 {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}
img {
    max-width:100%;
}
#services,
#contact {
    background-color:antiquewhite;
}
#about,
#services,
#works,
#contact {
    padding: 0 0 60px 0;
}
.SP_only{
    display: none;
}
.openbtn {
    display:none;
}
/* --- アンカー位置調整 --- */
html {
    scroll-padding-top: 100px;
  }
/* --- ヘッダー --- */
header .header_bar{
    position: fixed;
    top:0;
    height: 100px;
    width: 100%;
    background:#fff;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
    display: flex;
    justify-content: space-between;
    z-index: 100;
}
header img {
    padding: 30px;
}
header ul{
    display: flex;
    padding: 30px;
}
header ul li {
    margin: 0 10px;
}
header ul li a{
    font-size: 21px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 5-3-1 中心から外に線が伸びる（下部） */
.gnavi li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}
.gnavi li.current a,
.gnavi li a:hover{
	color:#BFB3A7;
}
.gnavi li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 2px;
    background:#BFB3A7;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: center top;/*上部中央基点*/
}
/*現在地とhoverの設定*/
.gnavi li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}

/* --- メイン部分 --- */
/* --- アイキャッチ --- */
.wrap {
    overflow: hidden;
}
.eyecatch_stripe {
    background: repeating-linear-gradient(135deg, #FBD8AC, #FBD8AC 20px, #FDE2B9 20px, #FDE2B9 40px);
    border-bottom-left-radius: 1000px 200px;
    border-bottom-right-radius: 1000px 200px;
    height: 800px;
    margin-left: -100px;
    margin-right: -100px;
    padding-left: 100px;
    padding-right: 100px;
    position: relative;
}
.catch_text {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.border {
    background:linear-gradient(transparent 70%, rgba(255, 185, 104, 50%) 60%);
    background-position: 0;
    background-size: 0;
    background-repeat: no-repeat;
    transition: background 2s;
}
.border.active {
    background-size: 100% ;
  }
.catch_subtext {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.eyecatch_stripe::before {
    content: '';
    position: absolute;
    background: url(../images/cats_hand.png) no-repeat;
    width: 350px;
    height: 250px;
    left: 12%;
    top: 0%;
    display: inline-block;
    background-size: contain;
    filter: drop-shadow(1px 2px 3px #7F624C);
}
.eyecatch_stripe::after {
    content: '';
    position: absolute;
    background: url(../images/cats_illust.png) no-repeat;
    width: 350px;
    height: 250px;
    right: 5%;
    bottom: 1%;
    display: inline-block;
    background-size: contain;
    filter: drop-shadow(1px 2px 3px #7F624C);
}
/* --- ABOUT --- */
#about,
#services p {
    text-align: center;
}
#about img {
    margin-bottom: 20px;
}
/* --- SERVICES --- */
#services ul {
    display: flex;
    justify-content: center;
}
#services ul li {
    width: 300px;
    height: 300px;
    margin:0 20px;
    text-align: center;
    background-color: #F2C48D;
    border-radius: 100px;
}
.services_img {
    height: 100px;
    margin-top: 30px; 
}
.services_title {
    font-size: 21px;
    font-weight: bold;
    margin-top: 10px;
}
.services_text {
    padding:0 30px;
}
/* --- WORKS --- */
.gallery {
    display:grid;
    grid-template-rows: 30vw 30vw 30vw;
    grid-template-columns: 30% 30% 30%;
    place-content: center;
    place-items: center;
}
.gallery li img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}
/* --- CONTACT --- */
.contact_text {
    text-align: center;
}
form {
    width: 768px;
    margin: 30px auto;
}
form p {
    line-height: 1.7;
    margin-top: 20px;
}
form span {
    font-size: 12px;
}
input[type="text"],
input[type="email"],
textarea {
    border: 1px solid #BFB3A7;
    background-color: #fff;
    width: 100%;
    margin-top: 5px;
    padding: 4px 8px;
}
textarea {
    height: 150px;
}
.send_button {
    text-align: right;
}
input[type="submit"] {
    background-color: #bfb3a7;
    color:#fff;
    padding: 10px 20px;
    margin-top: 20px;
}
input[type="submit"]:hover {
    background-color: rgba(191, 179, 167,60%);
}
/* --- フッター --- */
footer {
    height: 60px;
    background: repeating-linear-gradient(135deg, #7F624C, #7F624C 20px, #735646 20px, #735646 40px);
    color:#fff;
    text-align: center;
    padding: 15px;
}

/* --- スマホ用設定 --- */
@media screen and (max-width: 640px) {
    .SP_only {
        display:block;
    }
    .openbtn {
        display:block;
    }
    .g-nav {
        display:block;
    }
    header ul {
        display:block;
    }
    #services ul {
        display:block;
    }
    /* ハンバーガーメニュー表示用 */
    /*========= ナビゲーションのためのCSS ===============*/

    #g-nav{
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position:fixed;
        z-index: 999;
        /*ナビのスタート位置と形状*/
	    top:-120%;
        left:0;
	    width:100%;
        height: 100vh;/*ナビの高さ*/
	    background:rgb(127, 98, 76,0.8);
        /*動き*/
	    transition: all 0.6s;
    }

    /*アクティブクラスがついたら位置を0に*/
    #g-nav.panelactive{
        top: 0;
    }
    /*ナビゲーション*/
    #g-nav ul {
    /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 999;
        top:50%;
        left:50%;
        transform: translate(-50%,-50%);
    }

    /*リストのレイアウト設定*/

    #g-nav li{
        text-align: center;
    }

    #g-nav li a{
	    color: #fff;
	    text-decoration: none;
	    padding:10px;
	    display: block;
	    letter-spacing: 0.1em;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn{
	    position:fixed;
        z-index: 9999;/*ボタンを最前面に*/
	    top:10px;
	    right: 10px;
	    cursor: pointer;
        width: 50px;
        height:50px;
    }
	
    /*×に変化*/	
    .openbtn span{
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
	    background-color: #80674F;
  	    width: 45%;
    }

    .openbtn span:nth-of-type(1) {
    	top:15px;	
    }

    .openbtn span:nth-of-type(2) {
    	top:23px;
    }

    .openbtn span:nth-of-type(3) {
    	top:31px;
    }

    .openbtn.active span:nth-of-type(1) {
       top: 18px;
       left: 18px;
       transform: translateY(6px) rotate(-45deg);
       width: 30%;
    }

    .openbtn.active span:nth-of-type(2) {
    	opacity: 0;
    }

    .openbtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }
    .gnavi {
        transform: none;
    }
    .border {
        transition: unset;
    }
    body {
        font-size: 14px;
    }
    header img {
        max-width: 250px;
    }
    form {
        width: 80%;
    }
    .eyecatch_stripe::before,
    .eyecatch_stripe::after,
    #about img,
    .services_img {
        transform:scale(0.7);
    }
    header .header_bar {
        flex-direction: column;
    }
    .catch_text {
        font-size: 32px;
        white-space: nowrap;
    }
    .catch_subtext {
        font-size: 18px;
    }
    .eyecatch_stripe {
        height: 600px;
    }
    .eyecatch_stripe::before {
        top: -5%;
    }
    h2 {
        font-size: 24px;
        padding-top: 20px;
    }
    #about img {
        margin-bottom: 0;
    }
    .about_text{
        margin: auto;
        width: 80%;
    }
    #services ul {
        max-width:100%;
    }
    #services ul li {
        width: 250px;
        height: 250px;
        margin: 20px auto;
        text-align: center;
    }
    .services_title {
        font-size: 18px;
    }
    .gallery {
        grid-template-rows: 45vw 45vw 45vw 45vw 45vw;
        grid-template-columns: 45% 45%;
    }
    .contact_text {
        width:80%;
        margin: auto; 
    }
}