html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  font-family: "IM Fell Great Primer", serif;
}

img {
  max-width: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  display: inline-block;
}

#main-nav {
  display: flex;
  justify-content: right;
}

#main-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  list-style: none;
  margin-right: 30px;
}

#main-nav ul li a {
  color: #000;
  position: relative;
}

#main-nav a:hover {
  text-decoration-line: none;
}

#main-nav a:before {
  content: "";
  position: absolute;
  display: flex;
  background-color: #191919;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  -webkit-transition: .4s ease 0s;
  transition: .4s ease 0s;
}

#main-nav a:hover:before {
  width: 100%;
}
.index-header a {
  color: #fff;
  border: none;
}

.side {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  margin-top: 5%;
}

.side h1 {
  position: absolute;
  font-size: 400%;
  bottom: 0;
  left: 10%;
}

.slide-items {
  list-style: none;
  position: relative;
  width: 100%;
  height: 70dvh;
  margin-left: 30%;
  margin-right: 10%;
  overflow: hidden;
}

.slide-items img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transition: 4s linear transform .4s;
  object-fit: contain;
}

.slide-items .zoom {
  transform: scale(1.05);
}

.main h2 {
  text-align: center;
  margin-top: 10%;
}

.grid {
  display: grid;
  gap: 50px 3%;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 5% 5% 6% 5%;
}

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

.grid {
  text-align: center;
}

.up {
  text-align: right;
  margin-right: 30px;
}

.up img {
  width: 70px;
  height: 70px;
}

footer {
  background-color: #D9D9D9;

}

footer h3 {
  font-size: 3rem;
  padding-left: 50px;
  padding-top: 100px;
  padding-bottom: 50px;

}

footer .name span {
  color: #969696;
}

footer p {
  text-align: center;
}
.item p{
  margin-top: 20px;
}
.item a {
  color: #333;
  position: relative;
  display: inline-block;
}

.item a:before {
  content: "";
  position: absolute;
  display: block;
  background-color: #191919;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  -webkit-transition: .4s ease 0s;
  transition: .4s ease 0s;
}

.item a:hover:before {
  width: 100%;
}

#profile {
  display: flex;
  justify-content: center;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 5%;
}

.my-photo img {
  width: 60%;
  margin: 0 auto;
}

.profile p {
  margin-top: 10%;
  margin-left: 50px;
}

.profile-bottom {
  width: 80%;
  margin: 0 auto;
  margin-top: 10%;
}

.profile-name {
  font-size: 20px;
  border-bottom: darkgray solid;
}

.skill {
  width: 80%;
  margin: auto;
}

.skill h2 {
  text-align: center;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px 10%;
  margin-top: 10%;
}

.grid2 p {
  text-align: center;
  margin-top: 10px;
  font-size: 1.25rem;
}

.study h3 {
  margin-top: 10%;
  text-align: center;
}

.strong-point h3 {
  text-align: center;
  font-size: 2rem;
  margin-top: 10%;
}

.study ul {
  display: flex;
  list-style: none;
  justify-content: space-between;
  width:60%;
  margin: auto;
  margin-top: 10%;
}

.study ul li {
  font-size: 1.2rem;
  text-align: center;
}

.strong-point p {
  margin-top: 10%;
}

/* ぽーとふぉりお */
.header {
  display: flex;
  justify-content: space-between;
  background: #D9D9D9;
}

.header h1 {
  margin: 5% 25% 5%15%;
  font-size: 3rem;
}

.main2 h2 {
  font-size: 2rem;
  font-weight: lighter;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 5%;
  border-bottom: #000 solid;
}

/* 作品 */

.detail{
  width: 80%;
  margin: 0 auto;
}
.main4 h3 {
  text-align: center;
  margin-top: 10%;
  margin-bottom: 10%;
  font-size: 2rem;

}

.main4 a {
  color: #000;
  position: relative;
  display: inline-block;
  text-align: center;
}

table {
  border: #000 solid 1px;
}

.main4 h2 {
  text-align: center;
  margin-top: 10%;
  font-size: 2rem;
}

.detail {
  margin-top: 5%;
}

.main4 a:before {
  content: "";
  position: absolute;
  display: block;
  background-color: #191919;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  -webkit-transition: .4s ease 0s;
  transition: .4s ease 0s;
}

.main4 a:hover:before {
  width: 100%;
}

.main4 h3 {
  text-align: center;
  margin-top: 10%;
  margin-bottom: 10%;
  font-size: 1.5rem;
}

.detail-mid {
  width: 60%;
  margin: 0 auto;
}

.detail-mid p {
  margin-top: 10px;
}

.concept,
.target,
.soft,
.design ,
.rink,
.persona{
  margin-top: 5%;
}
.rink{
  font-weight: bold;
  margin-left: 10%;
}


/* れすぽんしぶ */
@media (max-width:820px) {
  .openbtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }

  .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    width: 45%;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
  }

  .openbtn span:nth-of-type(1) {
    top: 15px;
  }

  .openbtn span:nth-of-type(2) {
    top: 23px;
  }

  .openbtn span:nth-of-type(3) {
    top: 31px;
  }

  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }

  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }

  nav ul {
    text-align: center;
    width: 100%;
  }

  nav ul li a {
    padding: 15px;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 18px;
  }


  #main-nav ul {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
  }

  #main-nav {
    position: fixed;
    z-index: 999;
    top: -1100px;
    right: -120%;
    width: 25%;
    height: 300vh;
    background-color: #fff;
    opacity: .7;
    transition: all 0.6s;
    text-align-last: left;
  }

  /* クラスが付与された後のレイアウト */
  #main-nav.list_active #nav-han {
    width: 30%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .side{
    position: static;
  }

  .slide-items {
    position: static;
    width: 100%;
    object-fit: contain;
  }
  .side h1{
    position: static;
    margin-top: 600px;
    margin-left: 10%;
    z-index: 999;
  }

  #main-nav.list_active {
    right: 0;
  }

  .side {
    position: static;
  }

  .side h1 {
    bottom: 300px;
  }

  .main {
    font-size: 1.75rem;
    margin-top: 25%;
  }

  .grid {
    display: block;
  }

  .item {
    margin: 0 auto;
    margin-top: 8%;
    width: 80%;
  }

  .item p {
    font-size: 1.5rem;
    margin-top: 5%;
  }

  #profile {
    display: block;
  }

  .my-photo {
    text-align: center;
    margin-top: 5% auto;
  }

  .profile p {
    font-size: 1.5rem;
    margin-left: 10%;
    margin-top: 5%;
    width: 80%;
  }

  p.profile-name {
    font-size: 1.75rem;
  }
  .skill{
    margin-top: 30%;
  }

  .grid2 {
    grid-template-columns: 1fr 1fr ;
  }

  .item2 p {
    font-size: 1.5rem;
  }
  .study{
    margin-top: 30%;
  }

  .study ul {
    gap: 30px;
    display: block;
    text-align-last: left;
    margin-left: 30%;
  }

  .study ul li {
    font-size: 1.5rem;
    width: 90%;
    margin-top: 20px;
  }

  .detail-mid {
    width: 70%;
    margin-left: 15%;
    margin-top: 10%;
  }
}

/* すまほよう */
@media (max-width:714px) {
  #main-nav {
    width: 50%;
  }

  #main-nav.list_active #nav-han {
    width: 50%;
  }

  .profile-top {
    margin-top: 30%;
  }

  #profile {
    margin-top: 10%;
  }

  .side h1 {
    font-size: 3rem;
  }

  .main h2 {
    font-size: 2rem;
  }

  .item p {
    font-size: 1rem;
  }

  .profile p {
    font-size: .75rem;
  }

  p.profile-name {
    font-size: 1rem;
  }

  .skill {
    margin-top: 50%;
  }

  .item2 {
    width: 60%;
    margin: 0 auto;
    margin-top: 50%;
  }

  .study {
    margin-top: 50%;
  }

  .study ul {
    display: block;
    text-align-last: left;
    margin-left: 20%;
    margin-bottom: 20%;
  }

  .study ul li {
    margin-top: 10%;
    font-size: 1.25rem;
  }
}