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

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
	background:rgb(231,36,39);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10% 1rem 10%;
	background:rgb(133,203,191);
}

h2 {
  text-align: center;
  margin-bottom: 20px; /* 余白の大きさは好みに応じて調整してください */
}



.logo {
  width: 80px; /* ここでロゴのサイズを指定します。適切なサイズに変更してください。 */
  height: auto;
}

.social-icon {
  width: 25px;
  height: auto;
}

.nav-menu a {
    margin-left: 1rem;
	text-decoration: none;
	color:#000;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
	
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: rgba(231,36,39);
}

.overlay-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
	z-index: 1000; /* 追加 */
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overlay-nav a {
    color: #fff;
}

.close-button {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
	color: #fff
}


.hero {
    width: 100%;
    height: 80vh;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about,
#works {
    padding: 2rem 10%;
}

#about header,
#works header {
  position: relative;
  width: 100%;
  height: 0;
	
}




#about h2,
#works h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
	
}

#works header {
  margin-bottom:20px;
}


#about{
	background:rgb(255,203,191);
}

#works{
	
	background:rgb(235,203,67);
	
}



.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content p{
	background:#fff;
	padding:5%;
	
}

#works {
  display: flex;
  justify-content: space-between;
	align-items: flex-start; 
	/*align-items: center;*/
  padding: 2rem 10%;
  flex-wrap: wrap;
}



.work-card {
  width: calc(25% - 1rem);
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  text-align: center;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
position: relative;
  overflow: hidden;
}

.work-card img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}




.work-card p {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.work-card a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
}

.work-card a:hover {
  color: #555;
  border-color: #555;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: rgb(231,36,39);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

#back-to-top:hover {
  background-color: #555;
}

#p5-canvas canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
	background:rgb(228,96,6);
}

/* スマートフォン用スタイル */
@media screen and (max-width: 768px) {
	.logo {
    width: 50px; /* スマートフォン用のロゴサイズを指定します。適切なサイズに変更してください。 */
  }
	
	
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .overlay-menu {
        display: flex;
		transform: translateX(100%);
    }
	
	/*#about {
		flex-direction: column;
	}*/
	
	.about-content {
    flex-direction: column;
    align-items: center;
}
	.about-image {
        width: 250px;
        height: 250px;
    }
	
	.work-card {
   width: 100%;
        margin-bottom: 1rem;
}
}

/* 画面の広いデバイス用スタイル */
@media screen and (min-width: 769px) {
    .hamburger-menu,
    .overlay-menu {
        display: none;
    }

    .nav-menu {
        display: flex;
    }
	
	/*#about {
		flex-direction: row;
		justify-content: center;
	}*/
	
	.about-image {
        width: 400px;
        height: 400px;
    }
	.work-card {
        width: calc(25% - 1rem);
        margin-bottom: 2rem;
    }
}