@charset "UTF-8";

:root {
  --loader-bg: #f8f8f8;
  --duration-in: 700ms;
  --duration-hold: 600ms;
  --duration-burst: 1600ms;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/*============================
#loader
============================*/
#loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--loader-bg);
  overflow: hidden;
  pointer-events: none;
}

#loader .logo-wrap {
  width: 160px;
  height: 160px;
  opacity: 0;
  transform: scale(0.4) rotate(-160deg);
  will-change: transform, opacity;
}

#loader .logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 1. 回転しながら中央に現れる */
#loader.play .logo-wrap {
  animation: logo-in var(--duration-in) var(--ease) forwards;
}

@keyframes logo-in {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-160deg);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* 2. 少し回転しながら一気に拡大してアウト */
#loader.burst .logo-wrap {
  animation: logo-burst var(--duration-burst) var(--ease) forwards;
}

@keyframes logo-burst {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: scale(18) rotate(120deg);
    opacity: 0;
  }
}

/* 3. 背景ごとフェードアウトして本編を見せる */
#loader.fade-out {
  animation: loader-fade calc(var(--duration-burst) * 0.6) ease-out forwards;
  animation-delay: calc(var(--duration-burst) * 0.35);
  pointer-events: none;
}

@keyframes loader-fade {
  to {
    opacity: 0;
  }
}

#loader.hidden {
  display: none;
}

/* ===== サイト本体（デモ用） ===== */
#site {
  opacity: 1;
  margin: 0 auto;
}

#site.show {
  opacity: 1;
}

/*============================
トップ共通
============================*/

.eng {
  display: block;
}

/*============================
.top_img
============================*/

.top_img {
  width: 100%;
  height: 750px;
  position: relative;
}

#slider {
  overflow: hidden;
  width: 100%;
  height: 750px;
  background-color: #fff;
}

.top_img h1 {
  position: absolute;
  content: '';
  font-size: 96px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
  top: 210px;
  left: 10%;
  z-index: 100;
  color: #fff;
}

.top_img p {
  position: absolute;
  content: '';
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  top: 500px;
  left: 11%;
  z-index: 100;
  color: #fff;
}

@media only screen and (max-width: 767px) {
  .top_img {
    margin-top: 55px;
    height: 450px;
  }

  #slider {
    height: 450px;
  }

  .top_img h1 {
    font-size: 40px;
    top: 120px;
  }

  .top_img p {
    font-size: 20px;
    line-height: 1.7;
    top: 250px;
  }
}

/*============================
container
============================*/

.container {
  position: relative;
}

.primary {
  width: 100%;
  float: none;
}

.primary > article {
  padding: 80px 0 80px;
}

@media only screen and (max-width: 768px) {
  .primary > article {
    padding: 50px 0;
  }

  .primary .inner {
    width: 90.625%;
  }
}

/*============================
h2
============================*/

h2 {
  margin-bottom: 40px;
  font-size: 36px;
  line-height: 1;
}

h2 span.eng {
  margin-left: 15px;
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  color: #1739d6;
}

@media only screen and (max-width: 768px) {
  h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }

  h2 span.eng {
    margin-left: 10px;
    font-size: 14px;
  }
}

/*============================
h3
============================*/

h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

@media only screen and (max-width: 768px) {
  h3 {
    font-size: 18px;
  }
}

/*============================
service
============================*/

#service {
  background: #FFFFFF;
}

#service .flex {
  margin-top: 35px;
}

#service .flex img {
  width: 485px;
}

#service .flex .details {
  width: 485px;
  counter-reset: no;
}

#service .flex ol li {
  padding: 0 0 15px 65px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border-bottom: 1px solid #d9dcdf;
  position: relative;
}

#service .flex ol li:last-of-type {
  margin-bottom: 0;
}

#service .flex ol li::before {
  counter-increment: no;
  display: block;
  content: counter(no, decimal-leading-zero) ' /';
  font-size: 18px;
  font-weight: 900;
  color: #1739d6;
  letter-spacing: 0.02em;
  font-family: "Special Gothic", sans-serif;
  position: absolute;
  top: 2px;
  left: 5px;
}

#service .link {
  padding-top: 30px;
  justify-content: flex-start;
}

@media only screen and (max-width: 768px) {

  #service .flex img,
  #service .flex .details {
    width: 100%;
  }

  #service .flex ol {
    margin-top: 30px;
  }

  #service .flex ol li {
    padding-left: 55px;
    font-size: 16px;
  }

  #service .flex ol li::before {
    font-size: 16px;
  }

  #service .link {
    justify-content: center;
  }
}

/*============================
works
============================*/

#works {
  background-color: #1c2a68;
}

#works h2,
#works h2 .eng {
  color: #fff;
}

#works .works_box {
  -js-display: flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.works_box > a.box {
  display: block;

  overflow: hidden;
  width: 330px;
  position: relative;
}

.works_box .box img {
  width: 330px;
}

.works_box .box .details {
  padding: 15px;
  background-color: #fff;
}

.works_box .title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  border: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

.works_box p {
  font-size: 13px;
  font-weight: 500;
}

#works .link a {
  background-color: #deff00;
  color: #15191e;
}

#works .link a::before {
  border-color: #15191e;
}

@media only screen and (max-width: 768px) {

  #works {
    background-image: url(../images/home/works/bg_sp.jpg);
  }

  .works_box > a.box {
    width: 100%;
  }

  .works_box > a:nth-of-type(n+2) {
    margin-top: 20px;
  }

.works_box .box img {
width: 100%;
}

  .works_box .box .details {
    padding: 10px;
  }
}

/*============================
recruit
============================*/

#recruit .details {
  width: 485px;
}

#recruit .link {
  padding-top: 40px;
  justify-content: flex-start;
}

#recruit .link a {
  background-color: #d7d7d7;
}

#recruit img {
  width: 525px;
}

@media only screen and (max-width: 768px) {
  #recruit .flex {
    flex-direction: column-reverse;
  }

  #recruit .details,
  #recruit img {
    width: 100%;
  }

  #recruit img {
    margin-bottom: 20px;
  }

  #recruit .link {
    justify-content: center;
  }
}

/*============================
company
============================*/

#company {
background-color: #f8f8f8;
}

#company table {
  display: flex;
  justify-content: space-between;
}

#company table tbody {
  display: block;
  width: 510px;
}

#company table tbody:first-of-type tr:nth-child(-n+2) td {
  padding: 20.5px;
}

#company table.info th {
  color: #15191e;
  background-color: rgba(255, 255, 255, 0.9);
}

#company table.info td {
  width: 360px;
  background-color: rgba(255, 255, 255, 0.9);
}

@media only screen and (max-width: 768px) {

/*
  #company {
    background-image: url(../images/home/company/bg_sp.jpg);
  }
*/

  #company table.info {
    display: block;
    width: 100%;
  }

  #company table tbody {
    width: 100%;
  }

  #company table tbody:last-of-type {
    padding-top: 10px;
  }

  #company table.info td {
    width: 70%;
  }
}
