@charset "utf-8";
/* CSS Document */

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

img{
max-width: 100%;
height: auto;
vertical-align: bottom;
}

body{
min-width: 1280px;
color: #333;
font-family: sans-serif;
background-color: #f5f5f1;
}

@media(max-width: 767px){
body{
min-width: auto;
overflow-x: hidden;
}
}

ul{
list-style-type: none;
}

a{
text-decoration: none;
color: #333;
}

span{
color: #c80044;
}

.container{
width: 980px;
margin: 0 auto;
}

@media(max-width: 767px){
.container{
width: 90%;
}
}


/*ホバーアニメーション--------------------------------------------*/
.underline {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  border-bottom:　2px;
}

.underline:hover{
  color: #333;
}

#main-nav a {
  position: relative;
}

#main-nav a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #c80044;
  bottom: -10px;
  transform: scale(0, 1);
  transition: transform 0.5s;
  transform-origin: center top;
}

#main-nav a:hover::after {
  transform: scale(1, 1)
}

@media(max-width: 767px){
#main-nav a::after{
display: none
}
}


/*main--------------------------------------------*/
.nav-img{
width: 90px;
height: 110px;
border-radius: 50%;
overflow: hidden;
position: absolute;
top: 30px;
left: 50px;
}

h1{
text-align: center;
font-size: 30px;
padding-top: 130px;
letter-spacing: .2em;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

#main-nav{
padding-top: 40px;
width: 800px;
margin: 0 auto;
}

@media(max-width: 767px){
#main-nav{
width: 80%;
}
}

#main-nav ul{
display: flex;
justify-content: space-around;
}

@media(max-width: 767px){
#main-nav ul{
display: block;
}
}

#main-nav a{
display: block;
letter-spacing: .2em;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

@media(max-width: 767px){
#main-nav a{
font-size: 18px;
text-align: left;
padding: 10px 0;
}
}

h2{
font-size: 30px;
margin-top: 140px;
margin-bottom: 80px;
padding-left: 50px;
letter-spacing: .2em;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.portfolio{
width: 1180px;
margin: 0 auto;
}

@media(max-width: 767px){
.portfolio{
width: 90%;
}
}

.thumnail{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

@media(max-width: 767px){
.thumnail{
display: block;
flex-wrap: nowrap;
}
}

.thumnail li{
width: calc(92%/2);
margin-bottom: 100px;
box-shadow: 5px 5px 5px 0 rgba(33, 33, 33, 50%);
}

@media(max-width: 767px){
.thumnail li{
width: 90%;
margin: 0 auto 120px;
}
}

.view-more{
text-align: center;
letter-spacing: .1em;
padding-top: 60px;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.view-more a{
text-decoration: none;
color: #333;
}


/*footer--------------------------------------------*/
footer{
margin: 150px 50px 30px 50px; 
}

.footer-flex{
display: flex;
justify-content: space-between;
align-items: flex-end;
letter-spacing: .1em;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.top{
display: block;
text-align: center;
}

.top img{
width: 15px;
margin-bottom: 5px;
}

@media(max-width: 767px){
footer p{
font-size: 14px;
}
footer{
margin: 150px 5% 30px 5%;
}
}