* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3 {
  font-family: "Noto Serif JP", serif;
  color: #333;
  letter-spacing: 0.2em;
}

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

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  height: 60px;
}

.shapedividers_com-1310 {
  overflow: hidden;
  position: relative;
  height: 150px;
}

.shapedividers_com-1310::before {
  content: "";
  font-family: "shape divider from ShapeDividers.com";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background-repeat: no-repeat;
  bottom: -0.1vw;
  left: -0.1vw;
  right: -0.1vw;
  top: -0.1vw;
  background-size: 100% 100px;
  background-position: 50% 0%;
  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.28 2.17" preserveAspectRatio="none"><path d="M0 .5c3.07.55 9.27-.42 16.14 0 6.88.4 13.75.57 19.14-.11V0H0z" fill="%23ffee55"/><path d="M0 1c3.17.8 7.29-.38 10.04-.55 2.75-.17 9.25 1.47 12.67 1.3 3.43-.17 4.65-.84 7.05-.87 2.4-.02 5.52.88 5.52.88V0H0z" opacity=".5" fill="%23ffee55"/><path d="M0 1.85c2.56-.83 7.68-.3 11.79-.42 4.1-.12 6.86-.61 9.58-.28 2.73.33 5.61 1.17 8.61 1 3-.19 4.73-.82 5.3-.84V.1H0z" opacity=".5" fill="%23ffee55"/></svg>');
}

ul {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 50px 10px 0px;
  padding-bottom: 5px;
}

nav ul li {
  list-style-type: none;
  margin: 10px 80px;
}

nav ul li a {
  position: relative;
  overflow: hidden;
  color: #333;
  text-decoration: none;
  font-size: 11pt;
}

nav ul li span {
  position: absolute;
  left: 50%;
  top: 0;
  /*アニメーションの指定*/
  transition: all 0.5s;
  transform: translate(-50%, 0); /*X方向に-50% ※中央寄せにするため*/
  /*ブロック要素にして透過なし、テキスト折り返しなし*/
  display: block;
  opacity: 1;
  white-space: nowrap;
}

nav ul li span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 100%);
}

nav ul li:hover span:nth-child(2) {
  opacity: 1;
  transform: translate(-50%, 0);
}

nav ul li:hover span:nth-child(1) {
  opacity: 0;
}

@media (min-width: 2100px) {
  .shapedividers_com-1310::before {
    background-size: 100% calc(2vw + 147px);
  }
}

article {
  text-align: center;
  line-height: 4em;
  margin: 100px 0 260px 0;
}

h1 {
  margin: 10px 0 10px 50px;
  font-size: 38pt;
}

section {
  margin-top: 50px;
  padding-top: 30px;
}

.section_title {
  position: relative;
}

.round {
  opacity: 0;
}

section .fadeUp {
  width: 120px;
  height: 120px;
  background-color: #669933;
  border-radius: 50%;
  position: absolute;
  bottom: 45px;
  left: 100px;
  z-index: 10;
  animation-name: fadeUpAnime;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

section h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 150px;
  position: relative;
  z-index: 20;
}

section h2 span:first-child {
  font-size: 24pt;
}

section h2 span:last-child {
  font-size: 12pt;
  margin-left: 70px;
}

#service {
  position: relative;
}

#service h2 {
  text-align: center;
}

#service .wrap {
  display: flex;
  justify-content: space-evenly;
  margin: 20px 50px;
}

#service .wrap > div {
  width: 250px;
}

.wrap img {
  display: block;
  width: 150px;
  margin: 0 auto;
  padding: 5px 15px;
}

h3 {
  text-align: center;
  margin: 10px 0 15px 0;
}

.wrap p {
  font-size: 11pt;
  line-height: 1.8em;
  overflow-wrap: break-word;
}

#works {
  text-align: center;
}

.grid_parent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  justify-items: center;
  margin: 30px 50px;
}

.grid_child {
  margin: 20px;
  width: 320px;
  height: 320px;
  border: #afafaf6c 2pt solid;
  border-radius: 25px;
}

.grid_child img {
  width: 300px;
  height: 300px;
  border-radius: 25px;
  padding: 10px;
}

.more {
  border: #fe5 solid 3pt;
  border-radius: 50px;
  padding: 10px 10px;
  width: 500px;
  margin: 50px auto;
  text-align: center;
}

.triangle {
  margin: 10px auto;
  padding: 40px 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 33px solid #fe5; /* ここで三角形の色を指定 */
}

.about_wrap {
  display: flex;
  justify-content: space-between;
  margin: 10px 200px;
}

#about p {
  text-align: left;
  line-height: 2em;
  font-size: 10pt;
}

#about img {
  padding: 0 50px;
  width: 350px;
}

#otoiawase {
  margin: 100px auto;
  text-align: center;
}

#otoiawase p {
  text-align: center;
  line-height: 2em;
  margin: 30px 0 5px 0;
}

#otoiawase a {
  color: #333;
  text-decoration: none;
}

#otoiawase>span{
  font-size: 16pt;
  display: block;
  margin:15px auto;
}

form {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form > div {
  margin: 20px 0;
}

.checkbox {
  display: flex;
  justify-content: center;
}

.checkbox_l {
  margin: 0 20px;
}

.checkbox_r {
  text-align: left;
  margin: 0 -20px;
}

.checkbox_r label {
  display: block;
}

.checkbox input {
  margin: 0 10px;
}

.name label,
.email label,
.message label {
  width: 150px;
}

.name input,
.email input {
  width: 500px;
}

.checkbox label {
  width: 250px;
}

.message {
  position: relative;
}

.message label {
  position: absolute;
  top: 0;
  left: 0;
}

.message textarea {
  width: 500px;
  height: 250px;
  margin-left: 130px;
}

input[type="submit"] {
  border: #fe5 solid 3pt;
  background-color: #fff;
  border-radius: 50px;
  padding: 10px 10px;
  width: 150px;
  margin: 50px auto;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background-color: #dadadd;
}

footer p {
  font-size: 8pt;
}
