* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
  min-height: 100%;
  position: relative;
}
body {
    padding: 0px;
    margin: 0px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    color: #4D2F38;
	margin-bottom: 120px;
}
p {
    margin: 0;
	line-height: 1.5;
}

tr, td {
	padding: 5px;
}

/*-----------------------------------
お問い合わせフォーム
-----------------------------------*/
.wpcf7 {  
  max-width:300px;
  margin: 40px auto;
}
.wp-block-heading {
	margin: 60px auto 40px auto;
}
.wp-block-group {
    max-width: 500px;
    margin: 40px auto 60px auto;
}
.wpcf7 input[type="submit"] {
  display: block;
  margin: 40px auto;
  line-height: 1.5;
  padding: 10px 60px;
  cursor: pointer;
  transition: all 0.5s;
  color: #4D2F38;
  background-color: #FFEFEB;
  border: 1px solid #4D2F38;
  border-radius: 5px;
}

/*-----------------------------------
sakura_block
-----------------------------------*/
#sakura_block{
  width: 100%;
}
#sakura_block .sakura_parts{
  position: relative;
}
#sakura_block .sakura_parts img{
  position: absolute;
}
/*-----------------------------------
桜の花びらパーツの表示位置
-----------------------------------*/
img.sakura1{top: 10%; left: 40%;}
img.sakura2{top: 0; right: 40%;}
img.sakura3{top: 0; left: 50%;}
img.sakura4{top: 10%; left: 40%;}
img.sakura5{top: 0; right: 40%;}
img.sakura6{top: 0; left: 50%;}
img.hanabira1{top: 0; right: 5%;}
img.hanabira2{top: 0; right: 15%;}
img.hanabira3{top: 10%; left: 5%;}
img.hanabira4{top: 0; left: 15%;}
img.hanabira5{top: 0; left: 50%;}

/*-----------------------------------
舞い散るアニメーション
回転しつつ上から下へ
-----------------------------------*/
@keyframes sakura {
    0% {
      opacity: 0;
    }
    20% {
      transform:translate(3px,30px) rotate(30deg);
      opacity: 0.2;
    }
    30% {
      transform:translate(0,50px);
    }
    50% {
      transform:translate(-20px,80px);
    }
    70% {
      transform:translate(-40px,150px) rotate(50deg);
      opacity: 0.3;
    }
    90% {
      transform:translate(-60px,200px) rotate(-90deg);
    }
    100% {
      transform:translate(-70px,250px);
      opacity: 0;
    }
  }
  @keyframes hanabira {
        0% {
      opacity: 0;
    }
    20% {
      transform:translate(3px,330deg) rotate(30deg);
      opacity: 0.2;
    }
    30% {
      transform:translate(0,350px);
    }
    50% {
      transform:translate(-20px,380px);
    }
    70% {
      transform:translate(-40px,450px) rotate(50deg);
      opacity: 0.3;
    }
    90% {
      transform:translate(-60px,500deg) rotate(-90deg);
    }
    100% {
      transform:translate(-70px,650px);
      opacity: 0;
    }
}

.sakura_parts > img {
    animation: sakura linear 6s infinite;
    /*アニメーションが始まるまで画像を見えなくしておく*/
    opacity: 0;
}

/*-----------------------------------
アニメーションが始まるまでの時間
-----------------------------------*/
img.sakura1, img.hanabira4 {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
img.sakura2, img.hanabira3 {
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
}
img.sakura3, img.hanabira1, img.sakura4 {
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
}
img.hanabira5, img.hanabira2, img.sakura6 {
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}
img.hanabira6, img.sakura5{
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

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

@media screen and (min-width: 768px) {
/* header */
.header {
  position: fixed;
	top: 0;
	left: 0;
  background-color: #FFEFEB;
  height: 60px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  font-size: 20px;
  z-index: 100;
}
.header > p {
  margin: auto 20px;
}
.header > ul {
  display: flex;
}
li {
  list-style: none;
  margin-left: 40px;
}
.nav {
  text-decoration: none;
  color: #4D2F38;
}
.nav:hover {
  text-decoration-line: underline;
  text-decoration-color: #4D2F38;
}
#menu-sp {
  display: none;
}
#nav-sp {
  display: none;
}

/* first view */
#firstview {
  height:  800px;
	position: relative; /* 子要素のabsolute配置の基準にする */
    overflow: hidden; /* 子要素がはみ出さないように */
 
}
.firstview_bg {
    width: 100%; /* 親要素の幅いっぱいに */
    height: 100%; /* 親要素の高さに合わせる */
    object-fit: cover; /* 画像の縦横比を保ちつつ、要素を埋める */
    position: absolute; /* firstviewに対して絶対配置 */
    top: 0;
    left: 0;
	opacity: 0.2;
}
.fw_p > p {
  position: relative;
  top: 400px;
  left: 200px;
}
.fw_p > h2 {
  position: relative;
  top: 400px;
  left:200px;
  margin-top: 0px;
  font-size: 40px;
  font-weight: normal;
 line-height: 1.2;
}
.fw_p > h2 > span {
  font-size: 32px;
}
.fw1 {
  animation: spin 20s linear infinite;
  opacity: 0.4;
  position: absolute;
  top: 60px;
  left: 0px;
  max-height: 280px;
  max-width: 280px;
}
.fw2 {
  animation: spin 20s linear infinite;
  opacity: 0.4;
  position: absolute;
  top: 80px;
  right: 0px;
  max-height: 300px;
  max-width: 300px;
}
.fw3 {
  animation: spin 20s linear infinite;
  opacity: 0.4;
  position: absolute;
  top: 500px;
  right: -100px;
  max-height: 250px;
  max-width: 250px;
}
#sakura_block .sakura_parts img{
  position: absolute;
  max-width: 100px;
}

/* works */
#works {
  text-align: center;
  margin: 0px auto;
}
h1 {
  text-align: center;
  font-size: 56px;
  margin: 100px auto;
}
.works {
  display: flex;
  flex-wrap: wrap;
  margin: auto 20px;
  text-align: center;
}
.works-content {
  margin: 40px auto;
}
.content-img {
  width: 350px;
  height: 200px;
  border: 10px solid #FFEFEB;
  border-radius: 0.5rem;
  object-fit: contain;
  object-position: top;
}
.content-img:hover {
  opacity: 0.5;
}

.btn {
  font-size: 16px;
  line-height: 1.5;
  display: inline-block;
  padding: 10px 60px;
  margin: 40px auto;
  cursor: pointer;
  transition: all 0.5s;
  text-decoration: none;
  color: #4D2F38;
  background-color: #FFEFEB;
  box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
}
.btn:hover {
  color: #4D2F38;
  opacity: 0.5;
}

/* skill */
#skill {
  margin: 60px auto;
}
.skill > p {
  text-align: center;
}
.skill > table {
  margin: 50px auto;
}
.skill-bg-1 {
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 30px;

}
.skill-bg-2 {
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 40px;

}
.skill-bg-3 {
  animation: spin 20s linear infinite;
  width: 200px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 200px;

}
.skill-bg-4 {
  animation: spin 20s linear infinite;
  width: 200px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 200px;
}
.profile {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  margin: 60px auto;
} 

.profile-img > img {
  width: 220px;
  height: 220px;
	  margin-right: 50px;
	object-fit: contain;
	border-radius: 50rem;
	 border: 10px solid #FFEFEB;
	
}

/* contact */
#contact {
  margin: 60px auto;
  text-align: center;
}
#contact > p {
  margin: 40px auto;
}

/* footer */
.footer {
  background-color: #FFEFEB;
  height: 120px;
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.footer > ul {
  display: flex;
  margin: auto;
  padding: 0;
}
li {
  list-style: none;
  margin: auto 20px;
}
.footer-nav {  
  text-decoration: none;
  color: #4D2F38;
}
.footer-nav:hover {
  text-decoration-line: underline;
  text-decoration-color: #4D2F38; 
}

.pagetop {
    height: 80px;
    width: 80px;
	margin: -11px 0;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background:#FFEFEB;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    text-decoration: none;
    border: 2px solid #FF9EBA;
}
.pagetop > span {
  color: #4D2F38;
  font-size: 20px;
}
	
/*お問い合わせページ*/
.contact-hanabira-1 {
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 30px;
	top: 400px;

}
.contact-hanabira-2 {
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 40px;
	top: 300px;

}
.contact-bg-3 {
  animation: spin 20s linear infinite;
  width: 200px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 200px;
	top: 200px;

}
.contact-bg-4 {
  animation: spin 20s linear infinite;
  width: 200px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 200px;
	top: 100px;
}
	
}
	
@media screen and (max-width: 767px) {
/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #FFEFEB;
  height: 60px;
  width: 100%;
  font-size: 16px;
  padding: 20px;
  z-index: 100;
}
.header > p {
  float: left;
}
#menu-sp {
  position: absolute;
  top: 20px;
  right: 10px;
  margin: 0;
}
.nav {
  display: none;
}
.nav-sp {
  text-decoration: none;
  display: block;
  color: #4D2F38;
  padding: 25px 40px;
  background-color: #FFEFEB;
}
.nav-sp:hover {
  text-decoration-line: underline;
  text-decoration-color: #4D2F38;
}
#nav-sp {
  display: block;
  background-color: #FFEFEB;
  position: absolute;
  left: 0;
  top: 0;
  height: 50%;
  width: 100%;
  display: none;
  z-index: 100;
}
#close {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* first view */
#firstview {
  height:  500px;
	position: relative; /* 子要素のabsolute配置の基準にする */
    overflow: hidden; /* 子要素がはみ出さないように */
 
}
.firstview_bg {
    width: 100%; /* 親要素の幅いっぱいに */
    height: 100%; /* 親要素の高さに合わせる */
    object-fit: cover; /* 画像の縦横比を保ちつつ、要素を埋める */
    position: absolute; /* firstviewに対して絶対配置 */
    top: 0;
    left: 0;
	opacity: 0.2;
}
.fw_p > p {
  position: relative;
  top: 280px;
  left: 30px;
}
.fw_p > h2 {
  position: relative;
  top: 280px;
  left:30px;
  margin-top: 0px;
  font-size: 32px;
  font-weight: normal;
  line-height: 1.3;
}
.fw_p > h2 > span {
  font-size: 24px;
}
.fw1 {
  animation: spin 20s linear infinite;
  opacity: 0.3;
  position: absolute;
  top: 60px;
  left: 0px;
  max-height: 150px;
  max-width: 150px;
}
.fw2 {
  animation: spin 20s linear infinite;
  opacity: 0.3;
  position: absolute;
  top: 250px;
  right: 0px;
  max-height: 130px;
  max-width: 130px;
}
.fw3 {
  animation: spin 20s linear infinite;
  opacity: 0.3;
  position: absolute;
  top: 400px;
  right: -20px;
  max-height: 100px;
  max-width: 100px;
}
#sakura_block .sakura_parts img{
  position: absolute;
  width: 10%;
}

/* works */
#works {
  text-align: center;
  margin: 0px auto;
}
h1 {
  text-align: center;
  font-size: 40px;
  margin: 80px auto;
}
.works {
  display: flex;
  flex-wrap: wrap;
  margin: auto 20px;
  text-align: center;
}
.works-content {
  margin: 40px auto;
}
.content-img {
  width: 350px;
  height: 200px;
  border: 10px solid #FFEFEB;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top;
}
.content-img:hover {
  opacity: 0.5;
}

.btn {
  font-size: 16px;
  line-height: 1.5;
  display: inline-block;
  padding: 10px 60px;
  margin: 40px auto;
  cursor: pointer;
  transition: all 0.5s;
  text-decoration: none;
  color: #4D2F38;
  background-color: #FFEFEB;
}
.btn:hover {
  color: #4D2F38;
  opacity: 0.5;
}

/* skill */
#skill {
  margin: 60px auto;
}
.skill > p {
  text-align: center;
}
.skill > table {
  margin: 50px auto;
}

.skill-bg-1 {
  width: 50px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  top: 2400px;
  left: 30px;

}
.skill-bg-2 {
  width: 50px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  top: 2000px;
  right: 40px;

}
.skill-bg-3 {
  animation: spin 20s linear infinite;
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  top: 2150px;
  left: 30px;

}
.skill-bg-4 {
  animation: spin 20s linear infinite;
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  top:2100px;
  right: 30px;
}
.profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: left;
  margin: 40px;
} 
.profile-img > img {
  width: 180px;
  height: 180px;
	object-fit: contain;
	border-radius: 50rem;
	 border: 10px solid #FFEFEB;
}
/* contact */
#contact {
  margin: 60px 40px;
  text-align: center;
}
#contact > p {
  margin: 40px auto;
}

/* footer */
.footer {
  background-color: #FFEFEB;
  height: 120px;
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.footer > ul {
  display: flex;
  margin: auto;
  padding: 0;
}
li {
  list-style: none;
  margin: auto 20px;
}
.footer-nav {
  text-decoration: none;
  color: #4D2F38;
}
.footer-nav:hover {
  text-decoration-line: underline;
  text-decoration-color: #4D2F38; 
}
.pagetop {
  display: none;
}
	/*お問い合わせページ*/
.contact-hanabira-1 {
  width: 50px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 30px;
	top: 500px;

}
.contact-hanabira-2 {
  width: 50px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 40px;
	top: 450px;

}
.contact-bg-3 {
  animation: spin 20s linear infinite;
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  left: 20px;
	top: 80px;

}
.contact-bg-4 {
  animation: spin 20s linear infinite;
  width: 100px;
  height: auto;
  opacity: 0.3;
  position: absolute;
  right: 20px;
	top: 100px;
}
	
}