@charset "UTF-8";

body {
  font-family: "Sawarabi Mincho", serif;
  color: #454141;
  font-size: 24px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.sp {
  display: none;
}

h2 {
  font-family: "Calligraffitti", cursive;
  font-size: 64px;
  color: #B79646;
}

header{
  position: relative;
}

header .scroll {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-family: "Calligraffitti", cursive
}

header .scroll img {
  margin-top: 8px;
}

h1 {
  position: absolute;
  left: 130px;
  top: 50%;
  transform: translateY(-50%);
  animation: fadeIn 3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

nav {
  padding: 10px 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 100px;
}

nav ul li:hover {
  text-decoration: underline;
}

.top-button {
  width: 80px;
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 100;
  display: none;
}

#message {
  text-align: center;
}

#message h2 {
  position: relative;
  padding: 136px 0 20px;
}

#message h2::before {
  position: absolute;
  content: "";
  background: url(../images/messagesec_deco1.png) no-repeat center/cover;
  width: 804px;
  height: 136px;
  top: 0;
  left: 50%;
  transform: translateX(-50%)
}

#message p:first-of-type {
  margin: 0 auto 35px;
  width: 536px;
  text-align: left;
  line-height: 1.6;
}

#message p:last-of-type {
  margin: 0 auto 136px;
  width: 536px;
  position: relative;
}

#message p:last-of-type::after {
  position: absolute;
  content: "";
  background: url(../images/messagesec_deco2.png) no-repeat center/cover;
  width: 804px;
  height: 136px;
  bottom: -136px;
  left: 50%;
  transform: translateX(-50%)
}

#event {
  padding: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #EEE0D4;
}

#event>p {
  margin-right: 10px;
  flex-basis: 700px;
}

.event-text {
  margin-left: 10px;
  padding-top: 130px;
  flex-basis: 530px;
  height: 710px;
  text-align: center;
  background: url(../images/frame.png) no-repeat center/cover;
}

.event-text h2,
.event-text p:first-of-type,
.event-text p:nth-of-type(3) {
  margin-bottom: 50px;
}

.event-text p:first-of-type {
  font-size: 40px;
}

.event-text p:nth-of-type(even) {
  font-size: 36px;
}

.deco::before,
.deco::after {
  margin: 0 10px;
  content: "―";
}

.time {
  font-size: 32px;
}

span {
  font-size: 24px;
}

#access {
  text-align: center;
}

#access h2 {
  margin: 60px 0 40px;
}

#access p:first-of-type {
  margin-bottom: 20px;
}

#access p:nth-of-type(2) {
  margin-bottom: 5px;
}

#access p:nth-of-type(3) {
  margin-bottom: 60px;
}

.map iframe {
  width: 1000px;
  height: 880px;
  margin-bottom: 100px;
}

#form {
  padding: 60px 0;
  background-color: #EEE0D4;
  text-align: center;
}

#form h2 {
  margin-bottom: 40px;
}

form {
  width: 600px;
  margin: 0 auto; 
}

form P {
  margin-bottom: 30px;
}

form p:not(:nth-of-type(1)) {
  text-align: left;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 5px 10px;
  width: 100%;
  
  background-color: #FFF;
}

.radio {
  margin-bottom: 40px;
  vertical-align: baseline;
}

.radio label{
  margin: 0 45px;
}

.radio input,
.checkbox input {
  margin: 0 10px;
  width: 16px;
  height: 16px;
}

.checkbox label {
  margin: 0 20px;
  vertical-align: middle;
}

.checkbox label:first-of-type {
  margin-left: 0;
}

.checkbox input:first-of-type {
  margin-left: 0;
}

textarea {
  height: 100px;
}

button {
  margin-top: 20px;
  padding-top: 10px;
  width: 202px;
  height: 66px;
  background: url(../images/button\ 1.png) no-repeat center/100%;
  font-family: "Calligraffitti", cursive;
  color: #FFF;
}

button:hover {
  filter: brightness(120%)
}

footer {
  padding: 20px 0;
  background-color: #A3BFD9;
  color: #FFF;
  text-align: center;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes scrollAnimation {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

header .scroll img {
  animation-name: scrollAnimation;
  animation-duration: 1.8s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}