body {
  font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}



.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* テキストの選択を無効にする */
.no-select {
  user-select: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(even) {
  /* background-color: #f7f7f7; */
  background-color: #edebcf;
}
.section:nth-of-type(odd) {
  /* background-color: #f7f7f7; */
  background-color: #0e1f4e;
}
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.title-odd{
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #d5d5d5;
}
.title-odd-h3{
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 20px;
  margin-top: 50px;
  text-align: center;
  letter-spacing: .05em;
  color: #d5d5d5;
  text-decoration: underline;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/* ハンバーガーメニューアイコンのスタイル */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px auto;
  transition: 0.3s;
  transform-origin: center;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
  background: linear-gradient(to right, #edebcf 50%, #0e1f4e 50%);
  margin-bottom: 5px;
}

.mv-container {
  position: relative;
  padding: 0 20px;
}

.mv-container img {
  width: 100%;
  height: auto;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  /* display: flex;
  flex-wrap: wrap; */
  /* margin-bottom: -40px; */
  
  /* カルーセル対応 */
  margin: 0px 20px;
}

.works-item {
  /* width: 31.74603%; */
  /* margin-right: 1.58730%;
  margin-bottom: 40px; */
  /* color: #333; */
  color: #d5d5d5;

  /* カルーセル対応 */
  padding: 10px;
}

.works-item:hover {
  opacity: .9;
}

/* .works-item:nth-of-type(3n) {
  margin-right: 0;
} */

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/* カルーセル対応 */
.slide-dots{
  color: #dddddd;
  text-align: center;
  li{
    display: inline-block;
    margin: 0 15px;
    button{
      position: relative;
      text-indent: -9999px;
      &:before{
        content: '○';
        font-size: 20px;
        text-indent: 0px;
        position: absolute;
        top: 0;
        left: 0;
      }
    }
    &.slick-active{
      button:before{
        content: '●';
      }
    }
  }
}
.slide-arrow{
  position: absolute;
  top: 40%;
  margin-top: -15px;
}
.prev-arrow{
  left: -30px;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 15px solid #10468c;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.next-arrow{
  right: -30px;
  width: 0;
  height: 0;
  border-right: 0 solid transparent;
  border-left: 15px solid #10468c;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-container{
  /* max-width: 1270px; */
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-item {
  display: inline-block;
  max-width: 20%;
  min-width: 20%;
  height: 100px;
  margin-bottom: 20px;
  /* margin-right: 20px; */
}

.skill-img {
  min-width: 60px;
  min-height: 60px;
  width: 60px;
  height: auto;
  margin: 0 auto;
}

.skill-body {
  /* display: none; */
}

.skill-name {
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

.text-tooltip {
  /* border-bottom: dotted 1px #333; */
  position: relative;
}

.tooltip-content {
  opacity: 0;
  visibility: hidden;
  font-size: 80%;
  white-space: normal;
  border-radius: 5px;
  background-color: #555;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  top: -90%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 220px;
  height: auto;
  transition: all .6s ease-in-out;

}
  
.tooltip-content:before {
  content: '';
  position: absolute;
  top: calc(100% + 3px);
  left: calc(50% - 9px);
  border: 9px solid transparent;
  border-top: 9px solid #555;
}
  
.text-tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

.skill-container > p{
  text-align: center;
  color: #4c4c4c;
  font-size: 10px;
  margin-top: 10px;
}

/*--------------------------------
 Skill-slider
---------------------------------*/
.skill-title{
  margin-bottom: 10px;
}
.skill-slider-container {
  overflow: hidden;
}
.skill-slider {
  width: 100%;
  position: relative;
}
.skill-slides {
  display: flex;
  width: 200%;
  padding-bottom: 10px;
}
.skill-slide {
  flex-basis: 50%;
  display:flex;
  align-items: center;
}
.skill-slides-top{
  padding-top: 90px;
  padding-bottom: 40px;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 30%;
  margin-right: 30px;
  border-radius: 50%;
}
.profile-img img {
  border-radius: 50%;
}
.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #d5d5d5;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
.contact-img{
  max-width: 100px;
  height: auto;
  margin: 0 10px;
}
.contact-page{
  background-color: #edebcf;
  text-align: center;
}

/* contact-page */
#contact-page{
  margin: 0 auto;
  padding: 50px 0;
}
.contact-container{
  display: flex;
  justify-content: center;
  align-items: center;
}
#form{
  /* text-align: center; */
  /* margin: 0 auto; */
  /* display: inline-block;
  justify-content: center; */
  /* display: grid;
  place-items: center;
  height: 100vh; */
  /* > div{
    justify-content: center;
    align-items: center;
  } */
  margin-left: 150px;
}
#form > div{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.contact-heading{
  width: 240px;
  align-self: center;
}
.contact-label{
  font-weight: bold;
  text-align: left;
  display: block;
}
.contact-span{
  color: #ce2222;
  margin-left: 20px;
  font-weight: bold;
}
.contact-textbox {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom-width: 1px;
  border-bottom-color: #707070;
  border-bottom-style: solid;
  background-color: #eeeeee;
  width: 400px;
  height: 56px;
}
.contact-textarea {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom-width: 1px;
  border-bottom-color: #707070;
  border-bottom-style: solid;
  background-color: #eeeeee;
  width: 400px;
  height: 200px;
}
details {
  width: 700px;
  text-align: left;
}
details > div {
  background-color: #dddddd;
  padding: 20px;
} 
details > div > span {
  font-weight: bold;
}
.detail-check{
  text-align: left;
}
.radiobutton{
  margin-left: 10px;
}
#submit{
  margin-left: -200px;
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body img {
  width: 100%;
  height: auto;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

.medakabu-img{
  display: flex;
  margin: 0;
  > img{
    width: 300px;
    max-width: 50%;
  }
}

/* Fadein */
.fadein{
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: opacity 1s, visibility 1s, transform 1s;
}

.scroll{
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/*media Queries 768
----------------------------------------------------*/
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title .title-odd{
    font-size: 26px;
    margin-bottom: 20px;
  }
  .title-odd-h3{
    font-size: 18px;
    margin-top: 50px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /* ハンバーガーメニュー */
  .menu-toggle {
    display: flex;
  }
  .gnav {
    display: none;  /* メニューを非表示に */
    flex-direction: column;
    position: absolute;
    top: 60px; /* ヘッダーの高さに合わせる */
    right: 0;
    width: 40%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    text-align: center;
  }
  .gnav-list {
    display: flex;  /* メニューアイテムを縦に並べる */
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .gnav-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
  }
  .gnav.active {
    display: flex;  /* メニューを表示するためのクラス */
  }
  
  /* メニューが開かれたときのバツ印スタイル */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7.5px, -7.5px);
  }

  /*  メインビジュアル */
  .mv {
    /* height: 40vh; */
    height: 100%;
  }

  .mv-container {
    padding: 0 10px;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    top: 75%;
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .slide-dots{
    li{
      button{
        &:before{
          font-size: 8px;
        }
      }
    }
  }

  /* Skill */
  .skill-container{
    padding: 25px;
  }
  .skill-list {
    justify-content: space-between;
    margin-bottom: 0;
  }

  .skill-item {
    /* width: 40%; */
    max-width: 20%;
    min-width: 120px;
    margin-bottom: 20px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 10px;
    line-height: 1.7;
  }
  .tooltip-content{
    min-width: 195px;
  }
  .tooltip-content{
    top: -80%;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* Contact */
  #contact-page{
  }
  #contact-page > form > div{
    margin-bottom: 20px;
    width: 100%;
  }
  #form{
    margin: 0;
    padding: 10px 10px;
  }
  #form > div{
    display: inline;
    margin-bottom: 20px;
  }
  .contact-heading{
    margin-bottom: 20px;
  }
  .contact-span{
    color: #ce2222;
    margin-left: 20px;
  }
  .contact-label{
    font-weight: bold;
  }
  .contact-textbox{
    margin-bottom: 30px;
    height: 56px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    background-color: #fafafa;
    border-bottom-color: #707070;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    min-width: 300px;
    width: 100%;
  }
  .contact-textarea{
    margin-bottom: 30px;
    height: 150px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    background-color: #fafafa;
    width: 100%;
  }
  .radiobutton{
    margin-bottom: 20px;
  }
  .radiobutton + label::after{
    /* content: "\A"; */
    white-space: pre;
  }
  details {
    width: 100%;
    font-size: 12px;
  }
  .detail-check{
    margin: 10px 0px;
    font-size: 12px;
  }
  #submit{
    margin-left: 0;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}
