@charset "UTF-8";

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 100%;
  position: static;
  display: flex;
  background: beige;
}

main div {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  margin: auto;
  overflow: hidden;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  animation: bganim 20s infinite;
}

.src1 {
  background-image: url(../assets/img/jvoi.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.src2 {
  background-image: url(../assets/img/jsagyo.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  animation-delay: 5s;
}
.src3 {
  background-image: url(../assets/img/jcle.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  animation-delay: 10s;
}
.src4 {
  background-image: url(../assets/img/rcle.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  animation-delay: 15s;
}

@keyframes bganim {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

message {
  display: block;
  width: 70%;
  margin: 0 auto;
  text-align: left;
  border-left: 3px dotted #333;
  border-right: 3px dotted #333;
  padding: 12px 24px;
}

.tar {
  text-align: right;
}

main article {
  position: absolute;
  display: inline-block;
  padding: 20px;
  color: #fff;
  font-size: 120%;
  top: 50%;
  left: 50%;
  background: #333;
  transform: translate(-50%, -50%);
  z-index: 11;
  opacity: 0.7;
  width: 50vw;
}

main section {
  margin-top: 10vh;
  margin: 0 auto 0 0;
  width: 80vw;
}

main h1 {
  text-align: center;
  font-size: 200%;
  padding-top: 1em;
}

main h1 small {
  font-size: 60%;
}

main h1 + span {
  display: block;
  margin: 0 auto;
  width: 2.5em;
  height: 2px;
  padding-bottom: 3px;
  border-radius: 6px;
  border-bottom: 2px dotted #333;
  background: #333;
}

dl {
  display: flex;
  flex-wrap: wrap;
  background: white;
  width: 80%;
  margin: 2em auto;
}

dl dt {
  width: 7em;
  text-align: center;
  padding: .5em;
  background: wheat;
}

dl dd {
  width: calc(80% - 7em);
  padding: .5em;
  min-width: 100%;
}

#r img,
#j img {
  width: 60%;
  margin: 2em auto;
  display: block;
}

table {
  border-collapse: collapse;
  border: 1px solid #777;
  width: 80%;
  margin: 2em auto;
}

table th {
  background: wheat;
  text-align: center;
  width: 15em;
  max-width: 15%;
  border: 1px solid #c3c3c3;
}

table td {
  padding: 8px 12px;
  border: 1px solid #c3c3c3;
  max-width: 85%;
  background: white;
}

content {
  display: block;
  width: 80%;
  margin: 2em auto;
  background: white;
  border: 1px solid #333;
}

content p {
  text-align: center;
  font-size: 120%;
}

content p.mail {
  font-size: 200%;
  font-weight: bold;
  word-wrap: break-word;
}

#employ a {
  text-decoration: none;
  color: #222;
  display: block;
}

#recruit:hover {
  background: pink;
  transition: .2s;
}

walk {
  display: block;
}

.n1 walk {
  display: flex;
  justify-content: center;
}

.n1 walk walk {
  border: #404a4a solid 2px;
  width: 32px;
  height: 4px;
  margin: 16px;
}

.n1 walk walk:nth-child(odd) {
  margin-top: 8px;
}

.n1 walk walk:nth-child(even) {
  margin-bottom: 8px;
}

.n1 walk walk:nth-child(3n+1) {
  margin-top: 12px;
}

.n1 walk walk:nth-child(3n+2) {
  margin-bottom: 12px;
}

.n1 walk walk:nth-child(3n) {
  margin-bottom: 16px;
}

.n5 walk {
  display: flex;
  justify-content: center;
}

.n5 walk walk {
  border: #404a4a solid 2px;
  border-radius: 8px;
  width: 8px;
  margin: 12px;
}

.n5 walk walk:nth-child(odd) {
  transform: rotate(30deg);
}

.n5 walk walk:nth-child(3n+1){
  margin-bottom: 4px;
}

.n5 walk walk:nth-child(even) {
  transform: rotate(-30deg);
}

.n5 walk walk:nth-child(3n+2){
  margin-top: 4px;
}

.n5 walk walk:nth-child(3n){
  margin: 4px;
}

#map figure {
  width: 90%;
  margin: 0 auto;
}

#map h2 {
  text-align: center;
}

#map h2 + span {
  display: block;
  margin: 0 auto;
  width: 2.5em;
  height: 2px;
  padding-bottom: 3px;
  border-radius: 6px;
  border-bottom: 2px dotted #333;
  background: #333;
}

#map p {
  text-align: center;
  padding: 1em 0;
}

iframe {
  width: 100%;
}

aside {
  z-index: 100;
  height: auto;
  width: 20vw;
  max-width: 20em;
  background: white;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
}

aside img {
  margin: 0 auto;
  display: block;
  width: 80%;
  height: 80%;
  padding: 1em;
}

aside article {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

aside ul {
  list-style-type: none;
  padding-left: 0;
}

aside li {
  border-bottom: 1px solid beige;
  width: 100%;
}

aside li:hover {
  background: pink;
  transition: 0.2s;
}

aside a {
  text-decoration: none;
  display: block;
  padding: 0.5em 1em;
  color: #333;
}

aside a::before {
  content: "-  ";
}

footer {
  height: 2em;
  text-align: center;
  font-style: normal;
  padding: 8px 12px;
  font-size: 14px;
  width: 90%;
  flex: 1;
}

.rwd {
  display: none;
}

@media screen and (max-width: 800px) {
  main {
    margin-top: 75px;
    width: 100%;
  }

  main section {
    width: 100%;
  }

  main h1 {
    font-size: 150%;
  }

  main article {
    font-size: 110%;
    height: auto;
    width: 80%;
  }

  dl {
    width: 80%;
  }
  
  dl dd {
    width: 100%;
    min-width: auto;
  }

  #r img,
  #j img {
    width: 80%;
  }

  content p.mail {
    max-width: 100%;
    font-size: 18px;
    word-wrap: break-word;
    padding: 1em;
  }

  table th {
    width: 100%;
  }

  table td,
  table th {
    max-width: calc(100% - 4px);
    display: block;
  }

  aside {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 75px;
  }

  aside article {
    text-indent: 2em;
  }

  aside section:first-of-type article {
    padding: 1.5em 0;
  }

  aside section:first-of-type img {
    width: 45px;
    height: 45px;
    display: block;
    position: absolute;
    left: 0;
  }

  aside section:last-of-type {
    display: none;
  }

  .rwd {
    display: inline;
  }
}
