@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Zen Kurenaido", sans-serif;
  list-style: none;
  text-decoration: none;
  color: darkgreen;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

body {
  width: 100%;
  margin: 0 auto;
  background-image: url(../assets/image/ogasuta458A7873_TP_V.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* header */

header {
  height: 20vh;
  position: fixed;
  background-color: snow;
  width: 100%;
  z-index: 1;
}

.headercontainer {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.hero {
  width: 25%;
  margin-left: 50px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 100px;
  font-weight: bold;
  font-size: 2em;
  margin-top: 50px;
  margin-right: 30px;
}

nav li {
  position: relative;
  font-size: 1em;
}

li a:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  /*波形の形状*/
  border: 1px solid #333;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*アニメーションの設定*/
  animation: 1s circleanime2 forwards;
}

li a:hover {
  color: midnightblue;
  opacity: 0.8;
}

.mainitem03 a {
  color: snow;
}

a:hover {
  color: midnightblue;
  opacity: 0.8;
}

/*波形が広がるアニメーション*/
@keyframes circleanime2 {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* main */

.maincontainer {
  animation: fadein-top 2s ease-out forwards;
  width: 70%;
  height: 90%;
  margin: 0 auto;
  padding-top: 200px;
  color: midnightblue;
}

.mainitem01 {
  margin-bottom: 100px;
  padding: 30px;
  width: 80%;
}

.subcontainer {
  background-color: rgba(255, 250, 250, 0.8);
  display: flex;
  justify-content: space-between;
}

.mainitem02 {
  width: 50%;
  padding: 30px;
}

iframe {
  background-color: rgba(255, 250, 250, 0.8);
  width: 100%;
  height: 60vh;
  padding: 0 30px 30px;
  margin: 0px auto 100px;
}

@keyframes fadein-top {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 2em;
  font-weight: bold;
  padding-left: 10px;
  padding-top: 60px;
  letter-spacing: 5px;
  width: 200px;
  color: darkgreen;
}

.box01,
.box02,
.box03,
.box04,
.box05 {
  display: flex;
  justify-content: start;
  line-height: 30px;
}

.box01 h2 {
  width: 210px;
  opacity: 1;
}

.line {
  color: darkgreen;
  border: solid 1px;
  margin: 20px 0 20px;
  animation: lineGrow 1.8s ease-in-out forwards;
}

@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 90%;
  }
}

main li {
  color: midnightblue;
  font-size: 1.3em;
  opacity: 1;
}

footer {
  height: 20vh;
  background-color: snow;
  width: 100%;
  margin-bottom: 30px;
}

footer p {
  padding-top: 10px;
}

.footercontainer {
  display: block;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footercontainer img {
  width: 100px;
  margin: 20px 10px;
}

.footercontainer p {
  padding-top: 50px;
  display: block;
  width: 60%;
  text-align: center;
}
