/*
Theme Name: SugiyamaFutaba-Portfolio
Theme URI: https://www.sejuku.net/
Description:sugiyama futaba portfolio
Version: 1.0.0
Author: sugiyama futaba
Author URI: 
*/


a {
color:#84755A;
text-decoration: none;
}

nav a{
margin: 0px 5px;
color:#84755A;
text-decoration: none;
}

p{
  color: #70634A;
  font-family: Serif;
}

h4{
color: #31512B;
 font-family: Serif;
}

h3{
color: #31512B;
 font-family: Serif;
}

h2{
color: #31512B;
font-size: 30px;
 font-family: Serif;
text-align: center;
margin: 0;
padding: 50px;
}

body{
  margin: 0%;
}

body.fixed{
  overflow: hidden;
}

/*top*/
.header {
display: flex;
align-items: center;
position: fixed; /*位置固定スクロールしても表示*/
z-index: 9999; /*数字が大きいのが前に来る*/
background-color:rgba(255,222,207,0.9);
/*justify-content: space-between; // <div>3つを均等に配置*/
top: 0;
width: 80%;
height: 60px;
padding-left:1vw;
justify-content: center;
box-sizing: border-box;/*指定したサイズにパディング等が含まれるようになる*/
}

.logo img{
  width: 110px; /*vw横の大きさを画面の大きさに合わせて拡大縮小する*/
  padding-right: 3vw;
}

.nav {
color:#84755A;
font-family:Inria Serif; 
font-size: 18px;
align-items: center;/*アイテムが横に並んだ時に真ん中の線が揃う横に線を引いた際に中心が同じになる*/
}

nav a {
  position: relative;
}

.nav a::after{
 position: absolute;/*親要素を基準に位置を指定　この時親要素にposition: relativeまたはposition: fixdにする*/
 left: 0;
 bottom: -15%;
 content: '';
 width: 100%;
 height: 2px;
 background: #70634A;
 transform: scale(0,1); /*要素をx軸y軸に拡大縮小させる　今回のnavにカーソルを合わせて時のアンダーライン*/
 transform-origin: left top; /*変形の原点を指定　今回は上記のアンダーラインの基準点*/
 transition: transform .3s; /*速さ*/
}
.nav a:hover::after{ /*カーソルが上に乗った時に要素の見た目や動きの変化*/
  transform: scale(1,1);/*要素をx軸y軸に拡大縮小させる　今回のnavにカーソルを合わせて時のアンダーライン*/
}


@media screen and (max-width:690px) {
  .nav{
   font-size: 14px;
  }
  .logo img{
 width: 77px;
  }
}

@media screen and (max-width:540px) {
  .nav{
   font-size: 11px;
  }
 .logo img{
width: 70px;
  }
}

@media screen and (max-width:470px) {
  .nav{
   font-size: 9px;
  }
 .logo img{
width: 50px;
  }
}

@media screen and (max-width:380px) {
  .nav{
   font-size: 7px;
  }
 .logo img{
width: 45px;
  }
}

@media screen and (max-width:320px) {
  .nav{
   font-size: 6px;
  }
 .logo img{
width: 40px;
  }
}

.top{
  display: flex;
  width: 100%;
}


.left {
  height: 100vh; /*vw縦の単位大きさを画面の大きさに合わせて拡大縮小する*/
  height: 100dvh;
  width: 80%;
  display: flex;/*並列*/
  flex-direction:column;/*横並びか縦並び化を指定　columnは上から下*/
}

.over{
  position: relative;
  height: 90%;
  background-size: cover;/*画像の横縦の比を保ち覆いつくすように表示余白が出来ないように切り取られる*/
  background-image: url(images/ポートフォリオ背景虹色.png);
}

.topimage{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sugiyamafutabaportfolio h3{
  text-shadow: 2px 2px 5px #61855a; 
  font-size: 3vw;
}


.futaba > img{
  position: absolute;/*画面の左上からどの位置に設定するか指定*/
  width: 10vw;
  bottom:0% ;
  left: 45%;
}

.under{
  height: 10%;
  background-color: rgb(143, 190, 126);
}

.right{
  background-color: rgb(143, 190, 126,0.9);
  width: 20%;
  display: flex;
  align-items: center;
  text-shadow: 2px 2px 5px #61855a;
}

.catchcopy{
  writing-mode: vertical-rl;/*テキスト縦書きにする*/
  font-family: serif;
  font-size: 18px;
  line-height: 6vw;
  margin: 0 auto;
}

@media screen and (max-width:930px) {
  .catchcopy{
   font-size: 15px;
  }
}

@media screen and (max-width:600px) {
 .catchcopy{
 font-size: 11px;
  }
}

.main{
  background-color: #EBE4D7;
}

/*works*/

.works{
position: relative;
}

.futaba2 > img{
  width: 5vw;
}

/*worksの葉*/
.futaba2{
  z-index: 0px; /*数字が大きいのが前に重なる*/
  position: absolute;
  top: 0px;
  left: -8px;
}

.worksinner{
  max-width: 900px; 
  margin: 0 auto;
  text-align: center;
}

.worksimage{
  display: flex;
  flex-wrap: wrap;/*親要素よりはみ出る場合に折り返しになる*/
  row-gap: 30px; /*アイテム間行方向の隙間をまとめて指定*/
  column-gap: 30px;  /*アイテム間列方向の隙間をまとめて指定*/
  justify-content: space-between; /* display: flex;にした要素を均等に並べる*/
  
}

.worksitem{
  width: 280px;
  cursor: pointer;/*カーソルをのっけたときに矢印出る*/
}

.worksitem:hover{
  opacity: 0.8;/*透過を指定*/
}

.worksitem  img{
  width: 100%;
  height: 200px;
  box-shadow: 0 0 14px #848484;
  object-fit: cover;/* 領域内にピッタリ収める*/
}

@media screen and (max-width:930px) {
  .section-worksinner{
    margin: 0px 28px;
  }
  .worksimage{
    max-width: 590px;
    /*justify-content: center;*/
    margin: 0 auto 0 auto;
  }
}

@media screen and (max-width:600px) {
  .worksimage{
  justify-content: center;/* アイテムを中央寄せ*/
  }
}

@media screen and (max-width:300px) {
  .worksimage{
  justify-content: center;
  }
  .worksitem  img{
  width: 90%;
  object-fit: cover;
}
}

/*skill*/
.skill{
text-align: center;
max-width: 900px;
margin: 0 auto;
padding: 20px;
}

.skill1{
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 30px;
  justify-content: space-between;
   line-height: 190%;
}

.skillitem{
  width:170px;
  flex-wrap: wrap;
}

.skillitem img{
  width: 100%;
}

@media screen and (max-width:930px) {
  .skill{
    margin: 0 auto 28px;
  }
  .skill1{
    max-width: 590px;
    /*justify-content: center;*/
    margin: 0 auto 0 auto;
  }
}

@media screen and (max-width:600px) {
  .skill1{
  justify-content: center;
  }
}

/*about*/
.about{
  max-width: 900px; 
  margin: 0 auto;
  padding: 0px 15px 50px 15px;
}

.aboutover{
  display: flex;
  justify-content: center;
  position: relative;/* 親要素を基準に位置を決める*/
  align-items: center;
 line-height: 190%;
}

.aboutumder{
   display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  line-height: 190%;/* 行間スペース*/
}

.aboutimg{
  margin: 30px;
  width: 150px;
}

.aboutimg img{
  width: 150px;
   border-radius: 100px;
}

@media screen and (max-width:450px) {
  .aboutimg img{
  width: 120px;
  }
  .aboutimg{
  margin: 15px;
  width: 120px;
}
}

@media screen and (max-width:390px) {
  .aboutover{
   display: block;/*縦並び */
   margin: 0 auto;
   }
   .aboutimg img{
   width: 150px;
   border-radius: 100px;
   justify-content: center;
   }
   .aboutimg{
    justify-content: center;
    width: 150px;
    margin: 0 auto;
   }
  .about1{
    margin: 0 auto;
    justify-items: center;
  }
}

.tree img{
  position: absolute;
  width:7vw;
  bottom:-52px;
  right: 0%;
}

footer{
 background-color: #9EC68D;
 padding: 0px 0px 15px 0px;
}

.contact{
  text-align: center;
}

.line img{
  width: 85px;
  margin-bottom: 10px;
 }

 @media screen and (max-width:450px) {
  .line img{
  width: 90px;
  }
}

 .line img:hover{
  filter:brightness(90%)
 }

 .copy{
  font-size: 13px;
 }
 
  body.no-scroll {
  overflow: hidden;
 }

 .scroll{
  width: 100%
 }
 
.bg {
  display: none;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}
.bg.open {
  display: block;
}
.dialog {
   width: 50%;
  /* height: auto; */
  height: 70%;
  margin: 50px auto;
  background-color: #EBE4D7;
  overflow-y: scroll;
}

@media screen and (max-width:550px) {
  .dialog{
   width:85% ;
   height:70% ;
   }
} 

.dialog img {
  width: 100%;
  height: auto;
}

.dialog p {
  margin: 10px;
  font-size: 17px;
  
}
