/*
//YugeJuku-Task09 --Create PortfolioSite part
//FileName: style.css
//Author: NANJO
//Date: 2022-08-12
*/
@charset "UTF-8";
html {
  font-family: 
  "Montserrat"
  ,"Helvetica Neue"
  ,Arial
  ,"Hiragino Kaku Gothic ProN"
  ,"Hiragino Sans"
  ,Meiryo
  ,sans-serif;
  color: rgba(50, 50, 50,.7);  
  background-color: rgba(241, 235, 224,.2);
  scroll-behavior: smooth;
}

body {
  text-align: center;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: rgba(50, 50, 50,.7);  
}


.section {
  scroll-snap-type: y mandatory;
	overflow: scroll;
}
.section:nth-of-type(odd) {
  background-color:rgb(241,235,224);
}

section#top {
  margin-top: 62px;
}

.container {
  padding: 50px 15px;
}

.title {
  font-weight: 600;
  color: rgba(50,50,50,.7);
  letter-spacing: .08em;
  text-align: center;
}

h2.title {
  padding-bottom: 30px;
} 

h3.sub-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .09em;
  margin-bottom: 30px;
}
/* --Sdgs h3-- */
.resp-p {
  display: none;
}

/* --Header-- */
.header {
  display: flex;
  position: fixed;
  top: 0;
  /* padding: 0 15px; */
  width: 100%;
  background-color: rgb(250,249,248);
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.3);
  z-index: 100;
  justify-content: space-between;
  align-items: center;
}
.icon {
  max-height: 48px;
  margin: 5px 10px 5px 10px;
  padding: 0 10px;
}
/* --Menu Amination-- */
.icon:before {
    position: absolute;
    bottom: 0;
    width: 0%;
    height: 3px;
    content: "";
    transition: .3s;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    background-color: rgba(50,50,50,.7);
}
.icon a:hover:before {
  width: 100%;
}

.header .title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: .04em;
  margin-right: 20px;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}
.nav-item a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  display: inline-block;
  margin: 14px 10px 0 0;
  transition: .3s;
  letter-spacing: .08em;
  color: rgba(50,50,50,.7);
}
.nav-item a:after {
  position: absolute;
  bottom: 0;
  width: 0px;
  height: 3px;
  content: "";
  transition: .3s;
  /* -webkit-transform: translateX(-50%); */
  transform: translateX(-100%);
  background-color: rgba(50,50,50,.7); 
}
.nav-item a:hover:after {
  width: 100%;
}

/* --NowLoading Animation */
.header-line {
  display: block;
  position: absolute;
  width: 10px;
  height: 2px;
  margin: 60px 0 0 0;
  content: "";
  background-color: rgba(202, 202, 202, 1);
  box-shadow:4px 4px 10px rgba(0, 0, 0, 0.5);
  animation: anim-slide 2s forwards;
  animation-timing-function : ease-in-out;
}
@keyframes anim-slide {
  0%{transform: translateX(0px);}
  100%{transform: translateX(1380px);}
}

/* --Main-- */
.main{
  padding: 20px 0;
}

/* --Top-- */
.top .title {
  font-weight: 600;
  color: rgba(50,50,50,.7);
  letter-spacing: .08em;
  line-height: 1.5;
}
.top p {
  font-family: serif;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .3em;
}



/* Works,Sdgs */
.works {
  scroll-snap-align: start;
}
.works-items {
  display: grid; 
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 150px 150px; */
  gap: 15px;
}

.works-item:hover {
  opacity: .8;
}

.works-img img,
.sdgs-img img {
  object-fit: cover;
  width: 400px;
  height: 300px;
  border: .5px solid rgba(50,50,50,.2);
  box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4);
}

.works-name,
.sdgs-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 4px;
}

.works-item, 
.sdgs-item {
  font-size: 10px;
  margin-top: 5px;
}

/* --ToolTips-- */
.works-item:hover .tooltips {
  display: block;
  position: absolute;
  margin-left: 23%;
}
.sdgs-item:hover .tooltips {
  display: block;
  position: absolute;
  margin-left: 50%;
}

.tooltips {
  display: none;
  margin-top: 5px;
  padding: 10px;
 
  background: rgba(202, 202, 202, 1);
  border-radius: 20px;
  box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 1010;

  width: 13em; 
  /* height: 50px; */
  text-align: center;
  color: rgba(50,50,50,.9);
  font-family: serif;
  font-size:14px;
}
.tooltips::after {
  width: 100%;
  content: '';
  position: absolute;
  left: 0.5em;
  top: -6px;
  border-top:12px solid transparent;
  border-left:12px solid  rgba(202, 202, 202, 1);
  z-index: 1000;
}

.works-item:hover .tooltips {
  margin-left: 25%;
}
.sdgs-item:hover .tooltips {
  margin-left: 20%;
}


/* --Profile-- */
.profile {
  display: flex;
  flex-wrap: wrap;
  scroll-snap-align: start;
}
.profile-img img{
  width: 200px;
  margin:0 30px 0 50px;
  border-radius: 50%;
  box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4);
}
.profile-body {
  flex: 1;
  margin-right: 20px;
  text-align: left;
}
.profile-body p {
  font-family: serif;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.7;
  /* white-space: pre-wrap; */
  /* word-wrap: break-word; */
  justify-content: left;
  align-content: flex-start;
}

/* --SDGs-- */
.sdgs {
  background-image:
    linear-gradient(rgba(0, 0, 255, 0.4),
    rgba(255, 255, 0, 0.34));
}
.sdgs-items {
  display: grid; 
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 150px 150px; */
  gap: 15px;
  margin: 20px 0;
}
.sdgs h2.title {
  font-size: 72px;
  letter-spacing: .2em;
}
.sdgs .sub-title {
  font-size: 20px;
}
.sdgs p {
  font-family: serif;
  font-weight: 500;
  letter-spacing: .3em;
}


/* --Contact-- */
.contact {
  scroll-snap-align: start;
  padding-bottom: 40px;
}
.contact-item {
  justify-content: center;
  align-content: center;
}
.contact-item img.contact-icon-tum {
  margin-left: 30px;
}
img.contact-icon-tum {
  height: 25px;
  margin-bottom: 8px;
}
img.contact-icon-twi {
  height: 40px;
}


.bottom-line {
  width: 100%;
  height: 2px;
  background-color: rgba(202, 202, 202, 1);
  /* border: .5px solid rgba(50,50,50,.2); */
  box-shadow:4px 4px 10px rgba(0, 0, 0, 0.5);

}

/* --Footer-- */
.footer {
  padding: 30px;
  background-color: rgba(241 235 224);
  text-decoration: none; 
  justify-content: center;
  align-content: center;
  text-align: center;
}

h3.footer-heading {
  font-weight: 500;
  font-size: smaller;
}
.footer-items {
  display:flex;
  justify-content: center;
  /* align-items: center; */
  font-size: smaller;
  margin-bottom: 30px;
}
.footer-items a{
  padding-right: 18px;
}

.footer-item-b {
  margin-right: 3.5px;
}

/* --Copyright-- */
.copyright {
  justify-content: center;
  /* align-items: center; */
  font-size: 12px;
  color: #797979;
}
.copy-title {
  display: flex;
  height: 26px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .3em; 
  justify-content: center;
  text-align: center;

  margin: 20px 0 20px 10px;
}
.copy-title span {
  padding-top: 3.5px;
}
.copy-title .hanass {
  letter-spacing: .2em;
}
.copy-title .nanjotz {
  letter-spacing: .1em;
  margin-left: 3px;
}

img.copy-icon {
  height: 25px;
  margin: 0 3px 0 3px;
}
.copy {
  margin-right: 3px;
}


/*media Queries 850 tablet
----------------------------------------------------*/
@media screen and (max-width: 850px) {
  body {
    font-size: 14px;
  }

  .nav-list {
    display: flex;
  }

  .header .title {
    font-size: 20px;
    /* padding-bottom: 20px; */
  }

  .title::before {
    position: absolute;
    bottom: 0;
    /* left: -100%;  */
    /* 50% */
    width: 0%;
    height: 3px;
    content: "";
    transition: .3s;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    background-color: rgba(50,50,50,.8);
  }
  .title a:hover:before {
    width: 100%;
  }


  .section {
    padding: 60px 0;
  }

  .nav-item a {
    font-size: 12px;
    margin: 0 10px;
    /* flex-direction: column; */

  }

  .top .title {
    font-size: 24px;
  }

  .works-items {
    display: block;
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .works-img img,
  .sdgs-img img {
    width: 320px;
    height: 240px;
  }
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }
  .works-item:hover .tooltips {
    margin-left: 50%;
  }
  
  .profile {
    display: block;
    justify-content: center
  }
  .profile-img img{
    width: 150px;
    justify-content: center;
    margin: 0 50px 50px 50px;
    /* margin-bottom: 50px; */
  }
  .profile-body {
    text-align: center;
  }
  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
    text-align:justify;
    margin: 0 20px;
  }

  /* --Sdgs h3-- */
  .resp-p {
    display:block;
  }

  .footer {
    padding: 20px;
  }
}
  /*media Queries 415 --phone
----------------------------------------------------*/
@media screen and (max-width: 495px) {
  
  /* --Header-- */
  .header {
    display: block;
    position: fixed;
  
  }
  .section#top  {
    padding-top: 100px;
    margin-top: 0;
    padding-bottom: 0;
  }
  .container.top {
    padding: 0 15px;
  }

  a.header-logo {
    height: 0;
  }
  .header .title {
    font-size: 20px;
    margin-bottom: 7px;
  }

  /* Nav-List--show-switcing*/
  .nav-list {
    visibility: hidden;
    display: block;
    position: absolute;
    width: 100px;
    margin-top: 5px;
    margin-left: -75px;
    background-color: rgba(202, 202, 202, 1);
    border-radius: 2px;
  
  }
  .nav-item {
    width: 100px; 
    padding: 2px;
    margin-bottom: 2px;
    font-size:22px;  
    text-align: right;
  }
  .nav-item:nth-of-type(3) {
    margin-bottom: 10px;
  }
 
  /* Humberger Menu */
  .hamburger {
    position: absolute;
    display: block;
    right: 8px;
    top : 58px; 
    width:30px;
    height:30px;
    border:1.2px solid #c1994d;
    border-radius:1.5px;
    margin-left: 0%;
    padding: 4.5px 4.4px 10px;
    z-index: 100;
    cursor: pointer;
  }

  .hamburger > span{
    position: relative;
    display: block;
    width:20px;
    height: 2px;
    border-radius:2px;
    background-color: rgba(202, 202, 202, 1); 
    margin:3.5px auto;
    pointer-events: auto;
  }

  /* Menu display switching  */
  .hamburger:hover {
    border-color:#df0808;
  }
  .hamburger:hover > span {
    background-color: #df0808;
  }

  .hamburger:hover > .nav .nav-list {
    visibility: visible; 
  }
  .hamburger:hover .section#top:not(:hover) {
    margin-top: 200px;
  }

  .sdgs h2.title {
    font-size: 48px;
  }
  .sdgs-items {
    grid-template-columns: 1fr;   
  }

}