@charset "utf-8";

main {
  margin: 0 auto;
}

body {
  background-color: #383838;
}

/* ここまでが基本設定 */

.fv {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../room-img/yuakari.jpg) no-repeat center/cover;
  height: 100vh;
  position: relative;
}

.fv h2 {
  position: absolute;
  top: 50%;
  left: 50%;
}

section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid #fcf6ee;
  margin: 150px 17% 0;
  padding: 20px 0;
}

section > div {
  width: 400px;
  padding: 1rem;
}

section .small {
  display: flex;
}

.small a:nth-of-type(1) {
  padding-right: 5px;
}

.small a:nth-of-type(2) {
  padding-left: 5px;
}

section form {
  width: 500px;
  padding-top: 1.5rem;
}

form {
  margin-left: 7%;
}

form p:nth-of-type(1) {
  margin-top: 60px;
}

form p:nth-of-type(2) {
  margin-top: 30px;
}

form label {
  display: block;
  margin-top: 15px;
}

form label:nth-of-type(1) {
  margin-top: 60px;
}

form a {
  /*波紋の基点とするためrelativeを指定*/
  position: relative;
  /*リンクの形状*/
  display: inline-block;
  text-decoration: none;
  color: #fcf6ee;
  outline: none;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 55%;
}

/*波形の設定*/
form a:hover::before {
  content: "";
  /*絶対配置で波形の位置を決める*/
  position: absolute;
  left: 30%;
  top: 0;
  /*波形の形状*/
  border: 1px solid #fcf6ee;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*アニメーションの設定*/
  animation: 1s circleanime2 forwards;
}

/*波形が広がるアニメーション*/
@keyframes circleanime2 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/*矢印の設定*/
form a::after {
  content: "";
  /*絶対配置で矢印の位置を決める*/
  position: absolute;
  top: 30%;
  right: -20px;
  /*矢印の形状*/
  width: 5px;
  height: 5px;
  border-top: 1px solid #fcf6ee;
  border-right: 1px solid #fcf6ee;
  transform: rotate(45deg);
}

@media (max-width: 700px) {
  section {
    margin: 150px 7% 0;
  }

  form {
    margin: 0 3%;
  }

  form a {
    margin-left: 0%;
  }
}
