/* common */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

h1, h2, h3 {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  vertical-align: bottom;
}

.container {
  width: calc(100% - 48px);
  margin: 0 auto;
  max-width: 800px;
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .3s, transform .3s;
}

.animate.delay {
  transition-delay: 0.3s;
}

.animate.more_delay  {
  transition-delay: 0.6s;
}

.animate.appear {
  opacity: 1;
  transform: none;
}


#to_top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  opacity: 0;
  transition: opacity .3s;
}

#to_top.scrolled {
  opacity: 1;
}

#to_top i {
  font-size: 32px;
  color: #323435;
}


/* header */

header {
  position: fixed;
  padding: 16px 0;
  top: 0;
  width: 100%;
  z-index: 1;
  transition: background-color 0s, box-shadow .3s;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1, a {
  font-family: 'Alegreya Sans SC', sans-serif;
}

header ul {
  display: flex;
}

header li a {
  font-size: 25px;
}

header li + li {
  padding-left: 2.5vw;
}

header.scrolled {
  background-color: rgba(255, 255, 255, .95);
  box-shadow: 0 0 4px rgba(0, 0, 0, .3);
}

/* hero */

.hero {
  height: 600px;
  padding-top: 69px;
}

.hero img {
  width: 100%;
  height: 600px;
  position: absolute;
  object-fit: cover;
  opacity: 0.9;
  border-radius: 0.5%;
}


/* main */

main .container {
  margin: 0 auto;
}

main section {
  margin-bottom: 80px;
}

main h1 {
  font-family: 'Alegreya Sans SC', sans-serif;
  font-size: 60px;
  font-weight: lighter;
  text-align: center;
  padding: 32px;
  padding-top: 92px;
}

main h2 {
  font-family: 'Alegreya Sans SC', sans-serif;
  font-weight: normal;
  font-size: 28px;
}

main .job {
  font-weight: bold;
}

.about {
  display: grid;
  place-items: center;
}

.about h2,.job {
  /* text-align: center; */
}

.icon {
  width: 240px;
  height: 240px;
  padding: 10px;
  display: block;
  margin: auto;
  object-fit: cover;
  border-radius: 50%;
}

.skills .skill_top ul {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 16px;
}

.skills .skill_top li {
  width: calc((100% - 32px) / 3);
  align-items: center;
}

.skills .skill_top li img {
  width: 100%;
}

.skills .skill_top li i {
  width: 100%;
  font-size: 100px;
  text-align: center;
}

.skills .skill_top li h3 {
  padding-top: 6px;
  text-align: center;
}

.skills .skill_top li p {
  padding: 18px;
}

.skills .skill_others ul li {
  color: black;
  border-left: solid 8px rgb(174, 191, 213);/*左側の線*/
  background: rgb(252, 252, 252);/*背景色*/
  margin-bottom: 8px;/*下のバーとの余白*/
  line-height: 1.5;
  border-radius: 0 15px 15px 0;/*右側の角だけ丸く*/
  padding: 0.5em;
  margin-left: 30px;
  margin-right: 30px;
  list-style-type: none!important;
}

.skills .skill_others li {
  display: flex;
  text-align: center;
  align-items: center;
}

.skills .skill_others h2 {
  font-size: 40px;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 20px;
}

.skills .skill_others i {
  height: 30px;
  width: 50px;
  font-size: 30px;
}

.skills .skill_others p {
  margin: 0;
  padding: 0 10px;
  font-size: 18px;
}

.portfolio section + section {
  margin-top: 60px;
}

.portfolio .pic {
  padding: 20px 10px;
}

.portfolio img {
  height: 240px;
  width: 320px;
  display: block;
  margin: auto;
  object-fit: cover;
  border-radius: 5%;
}

.smartphone_img {
  object-fit: contain!important;
}

.smartphone_img:hover {
  opacity: .5;
  transition: opacity .5s;
}

.desc {
  padding: 18px 48px;
}

/* CAREER */
.career div + div {
  margin-top: 40px;
}

.career .career_content {
  border-left: 5px solid rgb(88, 88, 88);
  padding: 6px 16px;
}

.career h2 {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 20px;
  /* outline: red 2px solid; */
}

.career p {
  /* margin: 0; */
  /* padding: 0; */
}

.career .period {
  font-size: 14px;
  margin: 0;
  padding-left: 8px;
  color: rgb(104, 104, 104);
  /* outline: red 2px solid; */
}

/* copyright */

footer {
  height: 300px;
  margin-top: 200px;
  background: #323435;
  text-align: center;
  color: #eee;
}

footer .footer_content {
  font-size: 18px;
  padding-top: 120px;
}

.copyright {
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* large screen */
@media (min-width: 600px) {
  main section.about {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about div + div {
    margin-left: 80px;
  }

  .portfolio section {
    display: flex;
  }
  
  .portfolio section:nth-child(odd) {
    flex-direction: row-reverse;
  }

  .desc {
    padding: 30px;
    margin: auto;
  }

  .animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .3s, transform .9s;
  }

  .animate.from_left {
    transform: translateX(-80px);
  }
  
  .animate.from_right {
    transform: translateX(80px);
  }

  .animate.appear {
    opacity: 1;
    transform: none;
  }
}