@charset "utf-8";

:root{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  line-height: 1.8;
  color: #333333;
  background: #efefef;
}

header h1{
  text-align: center;
  background: url(../img/header4.webp);
  font-size: 48px;
  margin: 0;
  padding: 32px 0;
}

h1, p{
  margin: 0;
}

header ul{
  text-align: center;
  padding: 0;
  list-style-type: none;
  font-size: 24px;
}

header a{
  margin: 4px auto;
  display: block;
  text-decoration: none;
  width: 200px;
  line-height: 1.3em;
  background: #ffc6ff;
  border-radius: 8px;
  color: black;
}

.totop{
  width: 120px;
  height: 64px;
  position: fixed;
  right: 32px;
  bottom: 32px;  
  background: #ff99ff
  ;

  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  /* border: #333333 solid; */
}

.totop img{
  width: 32px;
}

.totop p{
  text-decoration: none;
  color: white;
}

.pic img{
  height: 20px;
  vertical-align: baseline;
  margin: 0 8px;
}

main h1{
  text-align: center;
  padding: 32px;
  font-size: 32px;
}

main h1 > img{
  width: 32px;
  vertical-align: -4px;
  margin: 0 16px;
}

main section{
  padding-bottom: 64px;
}

#profile{
  /* background: powderblue; */
  margin: 0 32px;
}

#topicon{
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 32px;
}

#skill{
  /* background: greenyellow; */
  margin: 0 32px;
}

#skill dt{
  font-size: 16px;
}

#skill dt::before{
  content: '【';
}

#skill dt::after{
  content: '】';
}

#skill dd{
  margin: 0;
  margin-bottom: 32px;
}

#works{
  /* background: indianred; */
  margin: 0 32px;
}

.works{
  display: flex;

  flex-wrap: wrap;
  justify-content: space-between;
}

.works div{
  background: #fff;
  padding: 16px;
  display: flex;
  width: 44%;
  margin-bottom: 16px;

  flex-direction: column;
  align-items: center;
}

.works img{
  width: 100%;
}

#contact{
  /* background: khaki; */
  margin: 0 32px;
}

footer{
  background: #ffd6ff;
  color: #8f8f8f;
  line-height: 150px;
  text-align: center;
}


@media (min-width:900px){

  header ul{
    display: flex;

    justify-content: center;
}

header a{
  width: 200px;
  margin: 0 8px;
}

main{
  width: 800px;
  margin: 0 auto;
}

#profile > div{
  display: flex;

  justify-content: space-between;
}

#profile div img{
  margin: 0;
}

#profile .text{
  width: calc(100% - 248px);
}

}