/*
Theme Name  : 阪口拓海のポートフォリオ
*/

/*共通*/
/* @media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} */
  body{
    color: #000306;
    font-family: "Averta-Regular", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 1px;
  }
  
  
  .head_title,#slider{
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
  }
  
  .title h2{
    letter-spacing: 10px;
  }
  
  
  
  /* メニュバー */
  /*TOPヘッダー*/
  /*ボタン*/
  
  
  
  .menu-toggle{
    display: block!important;
    position: fixed;
    left: 20px;
    z-index: 9999;
  }
  
  button:focus { outline:0; }
  button.menu-toggle{
    background-color: transparent;
    border: none;
    width: 35px;
    height: 30px;
    position: absolute;
    top: 30px;
    transform: translate(0, -50%);
    z-index: 1010;
  }
  button.menu-toggle,
  button.menu-toggle span {
    display: inline-block;
    transition: all .4s;
    box-sizing: border-box;
  }
  button.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F9F9FF;
    border-radius: 4px;
    transition: 0.5s;
  }
  
  button.menu-toggle span:nth-of-type(1) {
    top: 0;
  }
  button.menu-toggle span:nth-of-type(2) {
    top: 14px;
  }
  button.menu-toggle span:nth-of-type(3) {
    bottom: 0;
  }
  
  .after-btn span{
    background-color: #000306 !important;
  }
  
  button.after-btn span:nth-of-type(1) {
    top: 15px;
    transform: rotate(45deg);
  }
  
  button.after-btn span:nth-of-type(2) {
    top: 15px;
    transform: rotate(-45deg);
  }
  
  button.after-btn span:nth-of-type(3) {
    bottom: 13px;
    transform: rotate( -45deg);
  }
  
  .menu-bg{
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000306;
    z-index: 0;
    opacity: 0.6;
    display: none;
  }
  
  
  header{
    position: fixed;
    z-index: 50;
  }
  
  header .menu{
    background: #F9F9FF;
    position: absolute;
    top: 0;
    left: -1000px;
    width: 25vw;
    height: 100vh;
    background-color: #ccc;
    padding: 100px 0;
    z-index: 1;
  }
  
  .menu li{
    padding: 5px 100px;
    font-size: 30px;
    font-family: 'LIBRARY 3 AM', sans-serif;
    cursor: pointer;
    border-bottom: 1px solid #000306;
    margin-left: 70px;
    margin-bottom: 10px;
    margin-right: 20px;
  }
  
  .top_head{
    margin: 0 auto;
    position: relative;
    height: 100vh;
  }
  
  .head_title{
    max-width: 1200px;
    margin: 0px auto 70px;
    padding: 0px;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 95px;
    color: #F9F9FF;
    font-family: 'LIBRARY 3 AM', sans-serif;
  }
  
  .head_title h1{
    font-size: 9em;
    line-height: 1.5em;
  }
  
  .last-n{
    font-size: 1em;
    position: relative;
    left: 0;
    font-weight: normal;
  }
  
  .first-n{
    font-size: 1em;
    position: relative;
    right: 0px;
    top: -27px;
    font-weight: normal;
  }
  
  
  @media screen and (max-width: 1300px) {
    header .menu{
      width: 50vw;
    }
  }
  
  @media screen and (max-width: 700px) {
    header .menu{
      width: 100vw;
    }
  }
  
  
  /* スクロールダウンのCSS */
  
  .scroll{
    position: absolute;
    bottom: 0px;
    left: 30px;
    color: #F9F9FF;
    padding: 12px 0 59px;
  }
  
  .scroll .text{
    writing-mode: tb;
    font-size: 18px;
  }
  
  /*Scrollテキストの描写*/
  .scroll .icon{
    /*描画位置*/
  position: absolute;
  left:10px;
  bottom:10px;
    /*テキストの形状*/
  color: #eee;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
  }
  
  
  
  /* 丸の描写 */
  .scroll:before {
    content: "";
    position: absolute;
    bottom:0;
    left: 50%;
    width:10px;
    height:10px;
    border-radius: 50%;
    background:#eee;
    animation:
    circlemove 1.6s ease-in-out infinite,
    cirlemovehide 1.6s ease-out infinite;
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
  }
  
  /*下からの距離が変化して丸の全体が上から下に動く*/
  @keyframes circlemove{
    0%{bottom:45px;}
    100%{bottom:-5px;}
  }
  
  /*上から下にかけて丸が透過→不透明→透過する*/
  @keyframes cirlemovehide{
    0%{opacity:0}
    50%{opacity:1;}
    80%{opacity:0.9;}
    100%{opacity:0;}
  }
  
  .scroll:after{
    content:"";
    position: absolute;
    bottom:0;
    left: 50%;
    width:2px;
    height: 50px;
    background:#eee;
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
  }
  
  @media screen and (max-width: 550px) {
    .scroll {
      left: 15px;
    }
  }
  
  
  
  
  /*背景スライドショー*/
  #back_slider{
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: -250;
    -ms-filter: blur(2px);
    filter: blur(2px) grayscale(1) brightness(0.5);
  }
  
  #back_slider .slick-slide div{
    width: 100%;
    left: 0;
    opacity: 1;
  }
  
  
  /*トップスライダー*/
  
  .slider{
    display: none;
  
  }
  #slider.slick-initialized{
    display: block; /*slick-initializedが付与されたら表示*/
    /* transition: 3s; */
  }
  #slider{
    width: 50%;
    padding-right: 50px;
    position: absolute;
    height: 75vh;
    top: 50%;
  
    right: 0;
  }
  
  .slick-list,.slick-slide,.slick-track{
    height: 100%;
  }
  
  #slider .slick-active div{
    opacity: 1;
    -webkit-transform: translate(7em, 0);
    transform: translate(7em, 0);
    transition: opacity 700ms linear, -webkit-transform 15s linear;
    transition: opacity 700ms linear, transform 7s linear;
    transition: opacity 700ms linear, transform 15s linear, -webkit-transform 15s linear;
  }
  
  .slick-slide div{
    left: -5em;
    width: calc(50vw + 7em);
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: absolute;
      height: 100%;
      left: -5em;
      opacity: 0;
      position: absolute;
      top: 0;
      transition: opacity 750ms linear, -webkit-transform 5s 0.75s linear;
      transition: opacity 750ms linear, transform 5s 0.75s linear;
      transition: opacity 750ms linear, transform 5s 0.75s linear, -webkit-transform 5s 0.75s linear;
      will-change: opacity, transform;
  }
  
  @media screen and (max-width: 830px) {
    .head_title h1 {
      font-size: 7em;
    }
  }
  
  
  @media screen and (max-width: 750px) {
  
    .head_title{
      top: 50%;
      left: 55px;
    }
  
    .head_title h1 {
      font-size: 6em;
    }
  
    #slider {
      width: 70vw;
      height: 50vh;
      padding: 0 50px;
      top: 55%;
    }
  
    .slick-slide div{
      width: calc(70vw + 7em);
    }
  }
  
  @media screen and (max-width: 550px) {
    #slider {
      padding: 0 20px;
    }
  
    .head_title{
      top: 50%;
      left: 20px;
    }
  
    .head_title h1 {
      font-size: 5em;
    }
  
    #slider {
      width: 85vw;
    }
  
    .slick-slide div{
      width: calc(85vw + 7em);
    }
  
  
  }
  
  @media screen and (max-width: 470px) {
    .head_title h1 {
      font-size: 4em;
    }
  
  }
  
  
  @media screen and (max-width: 360px) {
    .head_title h1 {
      font-size: 3.5em;
    }
  }
  
  
  
  /* front-page.phpのCSS */
  
  .wrap{
    background-color: #fff;
    width: 100%;
  }
  
  .title_h3 h3{
    font-size: 40px;
  }
  
  .title_h3 p{
  
  }
  
  p{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1px;
  }
  
  /* サービス */
  .service_box{
    display: flex;
    height: 400vh;
    max-height: 4000px;
    min-height: 4000px;
  }
  
  .service_box .img{
    width: 40%;
    /* padding: 290px 0 200px; */
    padding: 17vh 0 17vh;
  }
  
  .service_box .img div .img_box img{
    width: 100%;
  }
  
  .service_box .img>div{
    margin-bottom: 320px;
  }
  
  .service_box .img .img_box{
    margin: 30px auto;
    max-height: 500px;
    overflow: hidden;
    filter: grayscale(1);
    max-width: 700px;
    transition: 0.5s;
  }
  
  .service_box .img .img_box.color{
    filter:unset;
  }
  
  .service_box .img .one{
    transform: rotate(5deg);
  }
  
  .service_box .img .two{
    transform: rotate(-5deg);
  }
  
  .service_box .text{
    width: 60%;
    height: calc(50vh + 8.5%);
    position: sticky;
    top: 0;
    min-height: 590px;
    max-height: 910px;
  }
  
  .service_box .text>div{
    position: absolute;
    top: 0%;
    padding: 22vh 17% 17%;
    background-color: #fff;
    transition: 0.5s;
    opacity: 0;
  }
  
  .service_box .text>.high{
    z-index: 10;
    opacity: 1;
  }
  
  .service_box .text .title_h3{
    margin-bottom: 40px;
  }
  
  
  
  @media screen and (max-width: 1830px) {
    .service_box .text{
      width: 50%;
    }
  
    .service_box .img{
      width: 50%;
    }
  
    .service_box .text>div{
      padding: 22vh 10% 17% 17%;
    }
  }
  
  @media screen and (max-width: 1430px) {
    .service_box .img .img_box{
      max-width: 550px;
      max-height: 400px;
    }
  
    .service_box{
      max-height: 3430px;
      min-height: 3430px;
    }
  }
  
  @media screen and (max-width: 1200px) {
    .service_box{
      display: block;
      max-height: none;
      min-height: unset;
      height: auto;
      padding-bottom: 120px;
    }
  
    .service_box .img {
      width: 100%;
      padding: 17vh 0 0;
    }
  
    .service_box .text{
      width: 100%;
      bottom: 0;
      min-height: unset;
      height: 45vh;
      background-color: #fff;
    }
  
    .service_box .text>div{
      padding: 5vh 12% 19%;
      background-color: #fff;
    }
  
    .service_box .img>div{
      margin-bottom: 0;
    }
  }
  
  
  @media screen and (max-width: 700px) {
    .service_box .img{
      padding: 6vh 50px 0;
    }
  
    .service_box .img .img_box{
      max-height: 350px;
    }
  }
  
  @media screen and (max-width: 550px) {
    .service_box{
      padding-bottom: 40px;
    }
  
    .service_box .img{
      padding: 6vh 25px 0;
    }
  
    .service_box .text {
      height: 50vh;
    }
  
    .service_box .text>div{
      padding: 25px 20px;
    }
  
    .title_h3 h3{
      font-size: 30px;
    }
  
    .service_box .text .title_h3{
      margin-bottom: 15px;
    }
  
    .service_box .text>div p{
      font-size: 12px;
    }
  
    .service_box .img .img_box{
      max-height: 300px;
    }
  }
  
  @media screen and (max-width: 450px) {
    .service_box .img .img_box{
      max-height: 250px;
    }
  }
  
  
  
  /* プロフィール */
  .profile{
    height: 100vh;
    display: flex;
  }
  
  .blank{
    width: 25%;
    position: relative;
  }
  
  .second{
    position: absolute;
    background-color: #ededf5;
    bottom: 0;
    width: 100%;
    height: 35vh;
  }
  
  .box{
    background-color:rgb(235,236,237);
    width: 75%;
    padding: 100px 0px 100px 100px;
    display: flex;
  }
  
  .box .text{
    width: 65%;
  }
  
  .box .text h3{
    font-size: 95px;
  }
  
  .box .images{
    width: 35%;
    position: relative;
  }
  
  .box .images img{
    width: 100%;
    position: absolute;
    bottom: 10%;
    right: 0;
    max-width: 380px;
    filter: grayscale();
  }
  
  /* お問い合わせ */
  .contact{
    position: relative;
    height: 100vh;
  }
  
  .contact .back{
    /* background-color: #000;
    opacity: 0.5; */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
  }
  .contact .backimg{
    background-image: url("../images/contact_back.jpg");
    background-size: cover;
    height: 100vh;
    filter:brightness(0.5);
  }
  
  .contact .c_content{
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .contact_form{
    width: 700px;
  }
  
  /* .wpcf7-form-control-wrap{
    display: block;
  } */
  
  .c_content .title h2{
    font-size: 60px;
    margin: 40px 0 80px;
    color: #fff;
    text-align: center;
  }
  
  .contact_box{
    margin: 20px 0;
  }
  
  .contact_box label{
    color: #fff;
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
  }
  
  .contact_box > span{
    display: block;
  }
  
  .contact_box input{
    padding: 5px 0;
  }
  
  .contact_box input,.contact_box textarea{
    background-color: #fff;
    width: 100%;
  }
  
  .wpcf7-submit{
    padding: 10px 70px;
    background: #fff;
    margin: 40px auto 0;
    display: block;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 20px;
  }
  
  @media screen and (max-width: 750px) {
    .contact_form{
      width: 100%;
    }
  
    .contact .c_content{
      padding: 0 40px;
      width: 100%;
    }
  }
  
  @media screen and (max-width: 550px) {
    .contact{
      min-height: 750px;
    }
  
    .c_content .title h2{
      font-size: 45px;
      margin: 15px 0 40px;
    }
  
    .contact .c_content{
      padding: 0 20px;
    }
  
    .contact .backimg{
      height: 100%;
    }
  }