@charset "utf-8";

/*共通*/
h2 {
  color: #505b66;
  font-size: 26px;
  padding-top: 60px;
  text-align: center;
  margin: 0;
}

.about-me  {
  color: #505b66;
  font-size: 22px;
  position: relative;
  padding: 0.7rem 0;
  margin-bottom: 0.2rem;
  background-image: repeating-linear-gradient(45deg, transparent 0 4px, #FFF566 3px 6px);
  background-repeat: no-repeat;
  background-size: 50% 19px;
  background-position: 50% 80%;
  text-align: center;
}

.card-title {
  color: #505b66;
  font-size: 20px;
  /*吹き出し*/
  position: relative;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #597a91;
  border-left: 2px solid #597a91;
  border-radius: 0 0 0 10px;
  /*マーカー*/
  position: relative;
  padding: 0.7rem 0;
  margin-bottom: 0.2rem;
  background-image: repeating-linear-gradient(45deg, transparent 0 4px, #FFF566 3px 6px);
  background-repeat: no-repeat;
  background-size: 70% 19px;
  background-position: 50% 80%;


  text-align: center;
}

.card-title:before {
  position: absolute;
  bottom: -13px;
  left: 1em;
  width: 0;
  height: 0;
  content: '';
  border-width: 14px 12px 0 12px;
  border-style: solid;
  border-color: #597a91 transparent transparent transparent;
}

.card-title:after {
  position: absolute;
  bottom: -10px;
  left: 1em;
  width: 0;
  height: 0;
  content: '';
  border-width: 14px 12px 0 12px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

p {
  color: #505b66;
  line-height: 1.8;
}

a {
  color: #505b66;
}

.small-text {
  text-align: center;
  color: #cadae5;
  padding-bottom: 40px;
}

.small-text2 {
  text-align: center;
  color: white;
  padding-bottom: 40px;
}

/*header*/
header {
  padding: 40px 0;
}

.logo {
  height: 50px;
}

.top-right {
  display: flex;
}

.nav-item-2 {
  font-size: 18px;
}

.nav-item-3 {
  font-size: 18px;

}

.nav-link-2 {
  color: #505b66;
  margin-right: 30px;
}

.nav-link-3 {
  color: #505b66;

}

.dropdown-item{
  color: #505b66;
  font-size: 14px;
}


a:hover {
  text-decoration-color: #505b66;
  color: #505b66;
}

.top-icon {
  text-align: right;
  padding: 8px 16px;
}

.twitter-icon {
  height: 25px;
  padding-right: 15px;
}

.twitter-icon-sp {
  display: none !important;
}

.mail-icon {
  height: 25px;
}

.mail-icon-sp {
  display: none !important;
}

.nav-icon-sp {
  display: none !important;
}




/*top*/
.top {
  background-image: url(../img/top-img.jpg);
  max-width: 100%;
  background-size: cover;
  padding: 250px 0;
}

h1 {
  color: white;
  font-size: 48px;
  text-shadow: 1px 2px 5px black;
}

.top-text {
  color: white;
  font-size: 16px;
  text-shadow: 1px 2px 3px black;
}

/*about me*/
.about {
  margin: 60px 0 140px 0;
}



.about-flex {
  display: flex;
  align-items: center;
}

.about-item {
  width: 50%;
  border-radius: 50%;
  border: 2px solid #cadae5;
  display: block;
  margin-left: auto;
}

.about-text {
  word-break: break-all;
}

/*service*/
.service {
  background: #cadae5;
  padding: 60px 0 100px 0;
}

.card1 {
  margin: auto;
}

.card2 {
  margin-left: 10px;
  margin: auto;
}

.card-left {
  margin: auto;
  text-align: center;
}

.service-img {
  max-width: 70%;
}

.service-img2 {
  max-width: 90%;
}

/*work*/
.work {
  margin: 60px 0 150px 0;
}

.work-card {
  display: flex;
}

.card{
  border: none;
}

.card-body{
  padding: 0;
}

.button{
 text-align: center;
 margin-bottom: 10px;
 margin-top: 20px;
  }

  .button a:hover{
    background: #597a91;
    color: #fff;
    text-decoration: none;
  }

.button a{
border:1px solid #597a91;
padding: 10px 20px;
font-weight: 600;
transition: color 0.3s ease 0s;
}

.card-text{
  margin-bottom: 0;
}

.sobolon-pass{
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
}

small{
  color: #505b66;
  font-size: 12px;
}

/*contact*/
.contact {
  padding: 60px 0 40px 0;
  background: #cadae5;
}

.contact-text {
  text-align: center;
}

.flexbox {
  display: flex;
  flex-direction: column;
  margin-left: 37%;
  margin-top: 30px;
}

.contact-flex {
  text-align: left;

}

.twitter-img {
  width: 70px;
  padding: 10px 20px 10px 0;
}

.mail-img {
  width: 70px;
  padding: 10px 20px 10px 0;
}


/*footer*/
footer {
  background: #cadae5;
  padding: 40px 0 20px 0;
}

.copyright {
  text-align: right;
  margin: 0;
  font-size: 14px;
  color: white;
}

 /***追従するトップへ戻るボタン***/
 #js-pagetop {
  position: fixed;
  right: -15px;
  bottom: 30px;
  height: 50px;
  transform: rotate(90deg);
  font-size: 90%;
  line-height: 2rem;
  color: #597a91;
  padding: 0 0 0 0px;
  border-top: solid 1px;
  width: 100px;
  }

  #js-pagetop-text{
    position: fixed;
    right:  0px;
    bottom: 15px;
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    transform: rotate(90deg);
    font-size: 90%;
    line-height: 2rem;
    color: #597a91;
    padding: 0 0 0 0px;
  }

#js-pagetop::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: 0px;
  width: 15px;
  border-top: solid 1px;
  transform: rotate(35deg);
  transform-origin: left top;
}
/***トップへ戻るボタンここまで***/



/*スマホ*/

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

  p {
    font-size: 18px;
  }

  /*header*/
  header {
    padding: 0;
  }

  .logo {
    height: 40px;
  }

  .top-icon {
    display: none;
  }

  .nav-icon-sp {
    display: flex !important;
    margin-top: 10px;
  }

  .twitter-icon-sp {
    height: 30px;
    display: block !important;
  }

  .twitter-icon {
    display: none !important;
  }

  .mail-icon-sp {
    height: 30px;
    padding-right: 0;
    display: block !important;
  }

  .mail-icon {
    display: none !important;
  }

  .navbar-toggler {
    padding: 10px 10px;
  }

  /*top*/
  .top {
    padding: 150px 0;
  }

  .top-text {
    font-size: 18px;
  }

  /*about me*/
  .about {
    margin: 20px 0 50px 0;
    padding: 0;
  }

  .about-item {
    width: 70%;
    margin: auto;
    margin-bottom: 20px;
  }

  .about-me {
    text-align: center;
  }

  .about-flex {
    flex-direction: column;
  }

  .col-md-2 {
    display: none !important;
  }

  /*service*/
.card-title {
    font-size: 24px;
    text-align: center;
  }

  .service {
    margin: 0;
    padding: 20px 0 50px 0;
  }

  .service-img {
    max-width: 50%;
    padding-top: 20px;
  }

  .service-img2 {
    max-width: 70%;

  }

  /*work*/
  .work {
    margin: 0;
    padding: 20px 0 45px 0;
  }

  /*contact*/
  .contact {
    margin: 0;
    padding: 20px 0 50px 0;
  }

  .flexbox {
    margin-left: 15%;
    margin-top: 30px;
  }

  /*footer*/
  footer {
    padding: 0 0 20px;
  }

  .copyright {
    text-align: center;
  }

}