@charset "UTF-8";

html {
  font-size: 4vw;
}

body {
  position: relative;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}

header > div {
  margin-bottom: 0.5em;
}

.logo {
  position: relative;
  left: -0.5em;
}

.logo img:nth-of-type(1) {
  width: 2.5em;
}

.logo img:nth-of-type(2) {
  width: 6.5em;
}

header > div a:nth-of-type(2) {
  width: 6em;
}

header button {
  display: block;
  width: 2em;
  margin-left: 1em;
  position: relative;
  top: -0.1em;
  z-index: 2;
}

header button:hover {
  opacity: 1;
}

header span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.15em;
  border-top: 0.15em solid var(--white);
  transition: 0.4s;
  box-shadow: 0 0 0.2em black;
}

header span:nth-of-type(1) {
  top: -0.5em;
}

header span:nth-of-type(2) {
  top: 0;
  transform-origin: center;
}

header span:nth-of-type(3) {
  top: 0.5em;
}

header p {
  font-size: 0.6em;
  font-weight: bold;
  color: var(--white);
  white-space: nowrap;
  position: absolute;
  top: 1.3em;
  left: -0.2em;
  transition: opacity 0.4s;
  text-shadow: 0 0 0.1em black, 0 0 0.1em black, 0 0 0.1em black,
    0 0 0.1em black;
}

header.active span {
  width: 80%;
  top: 0 !important;
  box-shadow: none;
  border-top: 0.2em solid var(--blue);
}

header.active button span:nth-of-type(1) {
  transform: rotate(-45deg) translate(0.5em, 0.3em);
}

header.active button span:nth-of-type(2) {
  transform: scale(0);
}

header.active button span:nth-of-type(3) {
  transform: rotate(45deg) translate(0.3em, -0.5em);
}

#menuBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(4px);
}

header.active nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

header ul {
  position: fixed;
  top: 0;
  right: -50vw;
  background: url(../img/bg/bg_white.jpg.webp) no-repeat center;
  background-size: cover;
  height: 100%;
  flex-direction: column;
  border-bottom: none;
  transition: right 0.4s ease-in-out;
}

.no-webp header ul {
  background-image: url(../img/bg/bg_white.jpg);
}

header.active ul {
  right: 0;
}

header li {
  width: 100%;
}

header li:nth-of-type(1) {
  margin-top: 3em;
}

header li:last-of-type {
  height: 100%;
}

header li a {
  text-shadow: none;
  text-align: left;
  padding: 1em 1.5em 1em 2.5em;
  position: relative;
  color: var(--black);
  font-size: 1.1em;
  line-height: 1.1;
}

header li a::before {
  content: "";
  width: 1.2em;
  height: 1.2em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1em;
  background: no-repeat center;
  background-size: contain;
  filter: contrast(0.3);
}

header li:nth-of-type(1) a::before {
  background-image: url(../img/icon/top.svg);
}

header li:nth-of-type(2) a::before {
  background-image: url(../img/icon/service.svg);
}

header li:nth-of-type(3) a::before {
  background-image: url(../img/icon/about.svg);
}

header li:nth-of-type(4) a::before {
  background-image: url(../img/icon/recruit.svg);
}

header li:nth-of-type(5) a::before {
  background-image: url(../img/icon/contact.svg);
}

.topimg h1 {
  font-size: 2em;
}

section {
  padding: 4em 1em;
}

.recruit table {
  width: 100%;
  float: none;
  margin: 0 0 1em 0;
}

.recruit ~ .btn {
  margin-top: 2em;
}

.contact {
  display: block;
}

.contact dl:nth-of-type(-n + 3) {
  margin-right: 0;
}

.contact dl:nth-of-type(4) {
  margin: 1em 0 0 0;
}

.contact .btn {
  display: flex;
  margin: 0 auto;
}

footer li:first-of-type {
  display: none;
}

#toTop.stop {
  position: absolute;
  top: -4em;
  bottom: auto;
}
