/*-----------------------------------------------------------
* Template Name    : Kerri | Responsive Bootstrap 4 Personal Template
* Author           : SRBThemes
* Version          : 1.0.0
* Created          : March 2018
* File Description : Main css file of the template
*------------------------------------------------------------
*/


/***********************
    1.BASIC
    2.HELPER
    3.NAVBAR
    4.HOME
    5.ABOUT 
    8.PORTFOLIO
    9.CONTACT
    10.FOOTER
    11.RESPONSIVE
************************/

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600|Nunito:400,600,700');


/*======================
        1.BASIC
========================*/
*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
    font-family: Arial, 游ゴシック, sans-serif, 'Nunito', sans-serif;
    overflow-x: hidden;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

a,
a:hover,
a:focus,
button,
button:focus {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

::selection {
    background: rgba(166, 175, 189, 0.3);
}

::-moz-selection {
    background: rgba(166, 175, 189, 0.3);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999999;
}

#status {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -20px;
}

.spinner {
    margin: 0 auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 5px solid rgba(0, 0, 0, 0.2);
    border-right: 5px solid rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid rgba(0, 0, 0, 0.2);
    border-left: 5px solid #000;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*==========================
        2.HELPER
============================*/

.section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    background-color: #fff;
}

.text-custom{
    color: #2962ff !important;
}

.h-100vh{
    height: 100vh;
}

.z-index{
    z-index: 2;
}

.clippath_none{
    clip-path: none !important;
}

.section-subtitle{
    max-width: 500px;
}

.btn {
    padding: 15px 32px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.5s;
    letter-spacing: 0.6px;
    color: #fff;
    box-shadow: none !important;
    text-transform: uppercase;
    outline: none !important;
}

.btn-custom{
    border:1px solid #2962ff;
    background-color: #2962ff;
}

.btn-round {
    border-radius: 30px;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active,
.btn-custom.active,
.btn-custom.focus,
.btn-custom:active,
.btn-custom:focus,
.btn-custom:hover,
.open > .dropdown-toggle.btn-custom {
    color: #f3f3f3;
    background-color: #2962ff;
    border-color: #2962ff;
}

.btn-outline-custom {
    border: 2px solid #f5f5f5;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:active,
.btn-outline-custom.active,
.btn-outline-custom.focus,
.btn-outline-custom:active,
.btn-outline-custom:focus,
.btn-outline-custom:hover,
.open > .dropdown-toggle.btn-outline-custom {
    color: #000;
    background-color: #fff;
    border-color: #fff;
}

.bg-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/*==========================
        3.NAVBAR CUSTOM
============================*/

.custom-nav {
    background-color: transparent;
    padding: 20px 0px;
    width: 100%;
    border-radius: 0px;
    z-index: 999;
    margin-bottom: 0px;
    transition: all 0.5s ease-in-out;
}

.custom-nav .navbar-nav li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px;
    background-color: transparent !important;
    margin: 0 7px;
    letter-spacing: 0.05em;
    line-height: 24px;
    transition: all 0.5s;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
}

.custom-nav .navbar-brand .logo-light,.custom-nav .navbar-brand .logo-dark {
    height: 27px;
}

.logo .logo-light {
  display: inline-block;
}

.stickyadd .logo .logo-dark {
  display: inline-block;
}

.stickyadd .logo .logo-light {
  display:none;
}

.logo .logo-dark {
  display: none;
}

.custom-nav .navbar-brand {
    color: #fff !important;
    text-transform: uppercase;
}

.custom-nav .navbar-toggler {
    color: #fff;
    font-size: 35px;
    padding: 0px;
}

.custom-nav .navbar-nav li a:hover,
.custom-nav .navbar-nav li a:active,
.custom-nav .navbar-nav li.active a,
.custom-nav.stickyadd .navbar-nav li a:hover,
.custom-nav.stickyadd .navbar-nav li a:active,
.custom-nav.stickyadd .navbar-nav li.active a {
    color: #2962ff !important;
}

.custom-nav.stickyadd {
    background-color: #fff  !important;
    box-shadow: 0 1px 8px 3px rgba(0, 0, 0, 0.050980392156862744);
    padding: 15px 0px;
}

.custom-nav.stickyadd .navbar-nav li a {
    color: rgba(0, 0, 0, 0.6) !important;
}

/*===========================
        4.HOME
=============================*/

.header-bg-img {
    background-image: url(../images/andy-holmes-698828-unsplash.jpg);
    position: relative;
    background-size: cover;
    background-position: center center;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 70% 100%, 0 80%);
}

.header-content{
    max-width: 800px;
}

.header-table-center {
    display: table-cell;
    vertical-align: middle;
}

.header-table {
    display: table;
    width: 100%;
    height: 100%;
}

.header-name{
    font-size: 54px;
}

.header-desc{
    max-width: 500px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75) !important;
}

/*===========================
        5.ABOUT
=============================*/
.name {
    font-size: 17px;
}
.about p {
    font-size: .9rem;
}
.about-social li a {
    color: #000;
    display: inline-block;
    height: 42px;
    width: 42px;
    font-size: 20px;
    border-radius: 50%;
    border: 2px solid #d4d4d4;
    line-height: 40px;
    transition: all 0.5s;
    text-align: center;
}


.profile {
    width: 65%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.profile-img {
    background-color: #000;
    margin-bottom: 1.2rem;
    margin-left: 80px;
}
.profile-text {
    margin-bottom: 20px;
}
.profie-text p {
    margin: 0;
}
.profile-text a {
    margin-left: 5px;
}
.about-social li a:hover {
    color: #2962ff;
    border-color: #2196f3;
}
.code-box {
    width: 100px;
    margin: 0 3px;
}
.adobe h6 {
    margin-top: .2rem;
}
.adobe p {
    font-size: .9rem;
}
.adobe img, .skill-icon img{
    width: 60px;
    height: 60px;
    margin: 0 20px;
}
 .works-modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    overflow: auto;
  }
  
  .works-modal_inner {
    position: absolute;
    top: 18%;
    left: 22%;
    background-color: #e6ecf0;
    padding: 20px 0px;
    border-radius: 10px;
    width: 800px;
    height: auto;
    text-align: center;
  }
  .fa-times {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(128, 128, 128, 0.46);
    cursor: pointer;
  }
.works-title p {
    font-size: 10px;
    line-height: 16px;
}

/*--------------------------------
SKILL
---------------------------------*/
.skill {
    width: 80%;
    margin: 50px auto 0 auto;
    border: solid 1px rgb(143, 143, 143);
    padding: 2rem 0;
    display: flex;
    flex-flow: row wrap;
}
.skill h6 {
    padding-top: 1.2rem;
}
.skill-box {
    justify-content: space-between;
    flex-basis: 33.333%;
    padding: 20px;
    display: flex;
}

  #skill .skill-desc {
    flex-basis: calc(100% - 60px - 30px);
  }
  
  #skill .skill-desc-title {
    margin-bottom: 3px;
  }
  
  #skill .rate {
    font-size: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
    height: 20px;
    letter-spacing: .3em;
  }
  
  #skill .rate:before,
  #skill .rate:after {
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    height: 20px;
    content: "★★★★★";
  }
  
  #skill .rate:before {
    color: #ddd;
  }
  
  #skill .rate:after {
    overflow: hidden;
    white-space: nowrap;
    color: #1e53ff;
  }
  
  #skill .rate1:after {
    width: 20px;
  }
  
  #skill .rate2:after {
    width: 40px;
  }
  
  #skill .rate3:after {
    width: 60px;
  }
  
  #skill .rate4:after {
    width: 80px;
  }
  
  #skill .rate5:after {
    width: 100px;
  }
  



/*===========================
        8.PORTFOLIO
=============================*/

.bg-dark {
    background-color: #eceff1!important;
}
.work_menu li a {
    cursor: pointer;
    display: block;
    border-radius: 30px;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 16px;
    transition: all 0.5s;
    margin-top: 5px;
}

.work_menu a.active,
.work_menu a:hover {
    background-color: #2196f3;
    color: #fff !important;
}

.work_item {
    position: relative;
    padding: 15px;
}

.work_box {
    overflow: hidden;
    position: relative;
}

.work_box .work_img  {
    position: relative;
    overflow: hidden;
}
.work_mv {
    height: 233px;
    background-color: black;
    border-radius: 1.3%; 
    position: relative;
    overflow: hidden;
    display: flex;
}

.work_box .work_img:after {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
    transition: all 0.27s cubic-bezier(0.3, 0.1, 0.58, 1);
}

.work_box .work_img>img {
    transition: all 0.3s cubic-bezier(0.3, 0.1, 0.58, 1);
    border-radius: 0;
}

.work_box .work_detail {
    opacity: 0;
    color: #ffffff;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    overflow: hidden;
    transition: all 0.27s cubic-bezier(0.3, 0.1, 0.58, 1);
}

.work_box .work_detail h4 {
    font-size: 18px;
}

.work_box .work_detail p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.work_box:hover .work_detail {
    top: 50%;
    transform: translate(0, -50%);
    opacity: 1;
}

.work_box:hover .work_img:after {
    background: rgba(0, 0, 0, 0.8);
}

.work_box:hover .work_img>img {
    transform: scale(1.05);
}



/*! 埋め込み動画をレスポンシブ対応させる */ 
.video { 
    position: relative; 
    height: 0; 
    padding: 0 0 56.25%; 
    overflow: hidden; 
}
 .video iframe {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    }
      
.vimeo-id-outer input {
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .vimeo-id-outer button {
    margin-bottom: 10px;
  }
   
  /* iframe外側のdiv */
  .video-outer {
    position: relative;
    height: 0;
    padding: 0 0 56.25%;
    overflow: hidden;
    margin-bottom: 20px;
  }
   
  /* iframe */
  .video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
  }



/*=========================
        9.CONTACT
===========================*/
#formWrapper {
    background-color: #232323;
    border-radius: 10px;
    width: 80%;
    margin: 0 auto;
    padding: 8px;
}
.email {
    font-size: 20px;
    padding: 20px 0;
}
.contact-alt ul li a i{
    border-radius: 50%;
    transition: all 0.5s;
    width: 42px;
    height: 42px;
    display: block;
    font-size: 18px;
    line-height: 42px;
    text-align: center;
    background-color: black;
    color: white;
}

/*======================
        10.FOOTER
========================*/

.footer{
    padding: 30px 0px;
    background-color: #242424 !important;
}
.footer .footer-alt p {
    font-size: .8rem;
}

.footer .footer-alt ul li a {
    border-radius: 50%;
    transition: all 0.5s;
    background-color: rgba(241, 241, 241, 0.08);
    width: 42px;
    height: 42px;
    display: block;
    font-size: 18px;
    line-height: 42px;
    text-align: center;
}

/*===========================
        11.RESPONSIVE
=============================*/

@media (min-width: 200px) and (max-width: 768px) {
    .custom-nav {
        background-color: #fff !important;
        padding: 10px 0px !important;
    }
    .custom-nav .container {
        width: 85%;
    }
    .custom-nav .navbar-toggler {
        color: #000;
        font-size: 26px;
        border: none;
    }
    .custom-nav .logo .logo-dark {
        display:inline-block;
    }
    .custom-nav .navbar-nav li a {
        color: rgba(0, 0, 0, 0.6) !important;
    }
    .custom-nav .logo .logo-light {
        display:none;
    }
    .h-100vh{
        height:auto;
    }
    .header-bg-img{
        clip-path: none;
    }
    .custom-nav .navbar-nav li a {
        margin: 0 0px;
        line-height: 15px;
    }
    .header-name{
        font-size:38px;
    }
    .profile {
        width: 100%;
    }
    .profile-text h3{
        text-align: center;
    }
    .about p {
        font-size: 13px;
    }

    .works-modal_inner {
        position: absolute;
        top: 13%;
        left: 0%;
        background-color: #e6ecf0;
        padding: 20px 0px;
        border-radius: 10px;
        width: 100%;
        
      }
    .works-title h6 {
        font-size: 10px;
    }
    .works-title p{
        font-size: 8px;
        line-height: 10px;
    }
    .code-box {
        margin: 0;
    }
    .adobe img {
        width: 50px;
        height: 50px;
        margin: 0 1px;
    }
    
    .skill {
        width: 100%;
        margin-top: 0;
        padding: 10px 0px;

    }
    .skill h6 {
        margin-top: .9rem;
    }
    .s-text{
        font-size: 10px;
    }
    .skill h3 {
        margin-top: 10px;
        font-size: 18px;
    }
    .skill-box {
        justify-content: flex-start;
        flex-basis: 50%;
        padding: 0 0 20px 0;
    }
    .skill-desc-title {
        font-size: 11px;
    }
    .skill-icon img {
        width: 40px;
        height: 40px;
        margin: 0 12px;
    }
    #skill .rate {
        font-size: 12px;
    }
    #skill .rate1:after {
        width: 15px;
      }
      #skill .rate2:after {
        width: 30px;
      }
      
      #skill .rate3:after {
        width: 45px;
      }
      
      #skill .rate4:after {
        width: 60px;
      }
    
    .work_menu li a {
        font-size: 13px;
        padding: 4px 8px;
        margin: 0px;
    }
    #formWrapper {
        width: 100%;
    }
}