/* CSS Document */
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 16px * 62.5% = 10px */
  width: 100%;
  min-width: 100vw;
}

body {
  min-width: 1000px;
  color: #333;
  background-color: #fefefe;
  font-family: "IBM Plex Serif", "Zen Old Mincho", serif;
  font-size: 1.6rem;
  line-height: 1.625;
  font-weight: 400;
  text-align: center;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;
}

h2 {
  font-size: 4.8rem;
  font-weight: 700;
}

h3 {
  font-size: 2.4rem;
  font-weight: 700;
}

p {
  font-size: 1.6rem;
}

a {
  font-size: 1.6rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a[href^="tel:"] {
  pointer-events: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.mobile {
  display: none;
}

.wrapper {
  width: 78%;
  max-width: 1440px;
  min-width: 900px;
  margin: 0 auto;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul,
ol {
  list-style: none;
}

.btn {
  display: block;
  width: fit-content;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 5px 20px;
  margin: 0 auto;
  text-transform: capitalize;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  background: transparent;
  z-index: 20;
  color: #ccd8e3;
  border: 1px solid #ccd8e3;
}

.btn:hover {
  border: 1px solid #ccd8e3;
  color: #003366;
}

.btn::before {
  content: "";
  width: 0%;
  height: 100%;
  display: block;
  background: #ccd8e3;
  position: absolute;
  transform: skewX(-20deg);
  left: -10%;
  opacity: 1;
  top: 0;
  z-index: -12;
  transition: all 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 2px 0px 14px rgba(0, 0, 0, 0.6);
}

.btn::after {
  content: "";
  width: 0%;
  height: 100%;
  display: block;
  background: #e8ece9;
  position: absolute;
  transform: skewX(-20deg);
  left: -10%;
  opacity: 0;
  top: 0;
  z-index: -15;
  transition: all 0.4s cubic-bezier(0.2, 0.95, 0.57, 0.99);
  box-shadow: 2px 0px 14px rgba(0, 0, 0, 0.6);
}
.btn:hover::before,
.btn:hover::before {
  opacity: 1;
  width: 116%;
}
.btn:hover::after,
.btn:hover::after {
  opacity: 1;
  width: 120%;
}

.btn.reverse {
  color: #003366;
  border: 1px solid #003366;
}

.btn.reverse::after {
  background: #fcfcfc;
}

.btn.reverse:hover {
  border: 1px solid #003366;
  color: #ccd8e3;
}

.btn.reverse::before {
  background-color: #003366;
}

@media (max-width: 520px) {
  body {
    min-width: auto;
    font-size: 1.4rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  p {
    font-size: 1.4rem;
  }

  a {
    font-size: 1.4rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }

  .flex {
    display: block;
  }

  .wrapper {
    width: 94%;
    min-width: auto;
  }

  .mobile {
    display: block;
  }

  .pc {
    display: none;
  }
}

/* header */
.header {
  width: 100%;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ccc;
  padding: 10px 0;
  z-index: 9999;
}

.header > .wrapper {
  width: 90%;
  min-width: 960px;
}

h1 a {
  font-size: 3.2rem;
}

.header__nav {
  flex: 1;
}

.header__nav__list {
  justify-content: flex-end;
  gap: 5px;
}

.header__nav__list a {
  font-size: 1.8rem;
}

.header__nav__list-item {
  padding: 10px;
}

.now {
  color: #898989;
  background-color: #efefef;
  border-radius: 10px;
}

.header__nav__list-item a {
  font-size: 1.8rem;
}

@media (max-width: 520px) {
  .header > .wrapper {
    display: flex;
    width: 90%;
    min-width: auto;
  }

  h1 a {
    font-size: 2.4rem;
  }

  .header > div {
    position: relative;
  }

  .header__nav {
    display: none;
  }

  #header-nav {
    width: 100vw;
    padding: 50px 0;
    position: absolute;
    top: 59px;
    right: 0;
    transform: translateX(100%);
    transition: 0.6s;
    background-color: #ccc;
    z-index: -10;
  }

  .header__nav__list {
    flex-direction: column;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 40px;
    padding: 5px;
    border: 1px solid #333;
    border-radius: 4px;
    position: relative;
  }

  .hamburger-arrow {
    display: inline-block;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background-color: #333;
  }

  .hamburger-arrow:first-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 10px));
    transition: 0.3s;
  }

  .hamburger-arrow:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 10px));
    transition: 0.3s;
  }

  /* .hamburger .active */

  .hamburger.active .hamburger-arrow:first-child {
    transform: translate(-50%, -50%) rotate(40deg);
  }
  .hamburger.active .hamburger-arrow:nth-child(2) {
    display: none;
  }

  .hamburger.active .hamburger-arrow:last-child {
    transform: translate(-50%, -50%) rotate(-40deg);
  }

  #header-nav.active {
    transform: translateX(0%);
  }
}

/* recruit */

.recruit {
  margin-bottom: 80px;
}

.recruit-link {
  display: block;
  background-image: url("../image/recruit.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 30px;
}

.recruit-link:hover {
  opacity: 0.6;
}

.recruit-text {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.recruit-text::before {
  content: "Recruit";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: "Konkhmer Sleokchher", cursive;
  font-size: 15rem;
  letter-spacing: 2rem;
  font-weight: 700;
  color: rgba(0, 51, 102, 0.15);
}

.recruit-text p {
  font-size: 2rem;
  padding: 10px 0 5px;
}

@media (max-width: 520px) {
  .recruit {
    width: 100%;
  }

  .recruit-link {
    padding: 20px;
  }

  .recruit-text {
    padding: 20px;
  }

  .recruit-text::before {
    font-size: 8.5rem;
    letter-spacing: 1rem;
  }

  .recruit-text p {
    font-size: 1.6rem;
    font-weight: 700;
  }
}

.footer {
  background-color: #003366;
  color: #fefefe;
  padding: 50px 0 3px;
}

.footer h2 {
  font-size: 4.8rem;
}

.footer h2 span {
  font-size: 2.4rem;
  padding-right: 10px;
}

.adress {
  text-align: left;
}

.adress p {
  font-size: 1.4rem;
}

.footer__company {
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.therms {
  margin-bottom: 10px;
}

.therms a {
  font-size: 1.4rem;
}

.therms a:first-child {
  margin-right: 20px;
}

footer > p {
  font-size: 1.4rem;
}

@media (max-width: 520px) {
  .footer {
    padding: 30px 0 3px;
  }

  .footer__company {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .footer h2 {
    font-size: 2.4rem;
  }

  .footer h2 span {
    font-size: 1.4rem;
    padding-right: 5px;
  }

  .adress {
    text-align: center;
  }

  .adress p {
    font-size: 1.2rem;
  }

  .therms a:first-child {
    margin-right: 10px;
  }

  footer > p {
    font-size: 1rem;
  }
}

/* main-visual */
.main-visual {
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background-color: #7c7c7c;
  background-image: url("../image/eyecatch.JPG");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: darken;
  position: relative;
}

.logo-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-area img {
  width: 30%;
}

.logo-area p {
  display: block;
  color: #ccc;
  font-size: 3.2rem;
  font-weight: 700;
}

.scroll {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll p {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ccc;
}

.scroll-arrow-contents {
  display: block;
  margin: 15px auto;
  position: relative;
}

.scroll-arrow-contents:last-child {
  margin-top: 0;
}

.arrow {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #ccc;
  position: absolute;
  top: 0;
  left: 50%;
}

.arrow-left {
  transform: translateX(-80%) rotate(40deg);
}

.arrow-right {
  transform: translateX(-10%) rotate(-40deg);
}

@media (max-width: 520px) {
  .main-visual {
    min-height: 600px;
  }
  .logo-area img {
    width: 50%;
  }

  .logo-area p {
    display: block;
    color: #ccc;
    font-size: 2rem;
    font-weight: 700;
  }

  .scroll p {
    font-size: 1.8rem;
  }
}

/* CSS animation */

.arrow1 {
  opacity: 0;
  animation: moveArrow 1.6s infinite;
}

.arrow2 {
  opacity: 0;
  animation: moveArrow 1.6s 0.7s infinite;
}

@keyframes moveArrow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* title-area */

.title-area {
  padding: 40px 0;
  background-color: #b2cbe4;
}

.title-area h2 {
  color: #003366;
}

.title-area h2 span {
  display: block;
  margin: 0 auto;
  font-size: 2.4rem;
}
