@charset "utf-8";

/* common */
img {
  max-width: 100%;
  width: 100%;
}

body {
  line-height: 1.5;
}

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

.title {
  font-size: 36px;
  text-align: center;
  font-weight: bold;
  padding: 20px;
}

.container {
  display: flex;
  margin: 40px auto;
}

/* header */
.header-inner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.header-logo {
  width: 150px;
  height: 75px;
  margin-left: 50px;
}

.header-nav {
  display: flex;
}

.header-nav-list {
  margin-right: 20px;
  font-size: 24px;
}

/* top */
.top {
  margin-bottom: 80px;
  background-image: url(../img/top.avif);
  background-size: contain;
  background-repeat: no-repeat;
  padding: 350px;
}

.top-text {
  text-align: center;
  color: rgb(255, 255, 255);
}

.top-text h1 {
  font-size: 5rem;
  font-weight: bold;
}

.top-text p {
  font-size: 3rem;
}

/* about */
.about {
  background-color: rgb(252, 251, 249);
  width: 100%;
  margin: 0 auto;
  margin-bottom: 80px;
}

.about-img {
  width: 30%;
  margin-right: 20px;
  border-radius: 999px;
}

.about-text {
  font-size: 24px;
  display: flex;
  align-items: center;
}

/* skill */
.skill {
  margin-bottom: 80px;
  background-color: #e5e2df;
}

.skill-items {
  display: flex;
  text-align: center;
}

.skill-items img {
  width: 40%;
  border-radius: 999px;
  margin-bottom: 20px;
}

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

/* example */
.example-items {
  text-align: center;
  margin-bottom: 80px;
}

.example-item:hover {
  opacity: 0.7;
}

.example-img {
  width: 45%;
}

.example-text {
  font-size: 24px;
}

/* contact */
.contact {
  text-align: center;
  background-color: #e5e2df;
}

.twitter {
  width: 40px;
  height: 40px;
  margin: 40px auto 80px;
}

.twitter:hover {
  opacity: 0.7;
  cursor: pointer;
}

footer {
  text-align: right;
  padding:30px 50px 0 0;
  background-color: #000;
  color: #fff;
  height: 80px;
}

@media only screen and (max-width: 900px) {
  /* header */
.header-inner {
  display: block;
  text-align: center;
  margin: 30px 0;
  height: 175px;
}

.header-logo {
  width: 150px;
  height: 75px;
  margin:30px 0 ;
  }
  
.header-nav {
  justify-content: center;
  margin-bottom: 20px;
}

.header-nav-list {
  margin-right: 20px;
  font-size: 1.2rem;
}

/* top */
.top {
  padding: 180px;
}

  .top-text h1 {
    font-size: 3rem;
  }
  
  .top-text p {
    font-size: 1rem;
  }

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

.about-img {
  margin-bottom: 30px;
}

.skill-title {
  margin-bottom: 30px;
}

.example-text {
  margin: 20px ;
}

}