@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

body {
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

/**
 * ヘッダー
 */

#header {
  width: 100%;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
}

@media screen and (min-width:768px) {

  #header {
    padding: 25px 0;
  }

}

/**
 * メイン
 */

#main {
  padding: 20px 0;
  background-color: rgb(var(--accentcolor-4));
}

@media screen and (min-width:768px) {

  #main {
    padding: 30px 0;
  }

}

/** ***************************************************************************
 * ビジュアル
 * ************************************************************************* */

#visual {
  background-color: rgb(var(--accentcolor-4));
  overflow: hidden;
  position: relative;
  z-index: 0;
}

#visual::after {
  content: '';
  width: 100vw;
  max-width: none;
  height: 100%;
  background: url("../image/index-visual-bg-sp.png") center bottom / 100% auto no-repeat;
  position: absolute;
  z-index: -1;
  top: 0;
  left: calc(50% - 50vw);
  animation: visual-bg 40.0s cubic-bezier(0, 0, 0.6, 0.8) 0.0s infinite;
}

#visual div.body {
  max-width: 1040px;
  padding: 0;
}

@keyframes visual-bg {
  0%{
    transform: translateY(0) skew(0) scale(1);
  }
  33%{
    transform: translateY(-20px) skew(5deg) scale(1.2);
  }
  66%{
    transform: translateY(10px) skew(-3deg) scale(1.15);
  }
  100%{
    transform: translateY(0) skew(0) scale(1);
  }
}

@media screen and (min-width:768px) {

  #visual::after {
    background-image: url("../image/index-visual-bg-pc.png");
    background-size: auto;
  }

}

/**
 * 30秒であなたの性格・強みがわかる！
 */

#visual div.text {
  width: 51.47%;
  text-align: center;
  position: absolute;
  z-index: 2;
  top: 29.34vw;
  left: calc((100% - 51.47%) / 2);
  transition:
    transform 0.3s ease-in-out 0.3s,
    opacity 0.6s ease-in-out 0.3s;
  transform: translateY(20px);
  opacity: 0;
}

body.loaded
#visual div.text {
  transform: translateY(0);
  opacity: 1;
}

@media screen and (min-width:768px) {

  #visual div.text {
    width: 32.7%;
    top: calc(min(12.5vw, 130px) + 20px);
    left: calc((100% - 32.7%) / 2);
  }

  body.loaded
  #visual div.text {
    top: min(12.5vw, 130px);
    opacity: 1;
  }

}

/**
 * リクナビ簡単30秒診断
 */

#visual .title {
  width: 61.34%;
  text-align: center;
  position: absolute;
  z-index: 2;
  top: 46vw;
  left: calc((100% - 61.34%) / 2);
  animation: visual-title 0.3s cubic-bezier(0, 0, 0.6, 0.8) 0.8s backwards;
}

@keyframes visual-title {
  0%{
    transform: scale(0);
  }
  65%{
    transform: scale(1.2);
  }
  85%{
    transform: scale(0.8);
  }
  100%{
    transform: scale(1);
  }
}

@media screen and (min-width:768px) {

  #visual .title {
    width: 38.46%;
    top: min(24.04vw, 250px);
    left: calc((100% - 38.46%) / 2);
  }

}

/**
 * イラスト
 */

#visual div.illust {
  text-align: center;
}

/**
 * いますぐ診断スタート
 */

#visual div.button {
  width: 84.54%;
  text-align: center;
  position: absolute;
  z-index: 2;
  left: 7.73%;
  bottom: 35px;
}

#visual div.button a {
  text-decoration: none;
  display: inline-block;
  animation: visual-button 2.0s cubic-bezier(0, 0, 0.6, 0.8) 1.0s infinite;
}

#visual div.button a:hover {
  animation: none;
}

#visual div.button a img {
  transition:
    transform 0.15s ease-in-out 0.0s,
    filter 0.15s ease-in-out 0.0s;
  transform: scale(1);
  filter: drop-shadow(0 6px 0 #45699d);
}

#visual div.button a:hover img {
  transform: scale(0.99);
  filter: drop-shadow(0 3px 0 #45699d);
}

@keyframes visual-button {
  0%{
    transform: rotate(0);
  }
  5%{
    transform: rotate(5deg);
  }
  10%{
    transform: rotate(-5deg);
  }
  15%{
    transform: rotate(5deg);
  }
  20%{
    transform: rotate(0);
  }
  100%{
    transform: rotate(0);
  }
}

@media screen and (min-width:768px) {

  #visual div.button {
    width: 53.85%;
    left: 23.075%;
    bottom: 45px;
  }

  #visual div.button a img {
    filter: drop-shadow(0 10px 0 #45699d);
  }

}

/** ***************************************************************************
 * コンテンツ
 * ************************************************************************* */

#main div.contents {
  padding: 1em;
  border-radius: 10px;
  border: 2px solid #005ce2;
  background-color: #fff;
}

@media screen and (min-width:768px) {

  #main div.contents {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25em 1.5em;
    border-radius: 20px;
    border-width: 4px;
  }

}
