@charset "UTF-8";

#page ol {
  margin-bottom: 80px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
#page li {
  display: flex;
  align-items: center;
  gap: 70px;
}
#page li:nth-child(even) {
  flex-direction: row-reverse;
}
#page li picture {
  width: 580px;
  position: relative;
  flex-shrink: 0;
}
#page li img {
  border-radius: 10px 150px 10px 10px;
}
#page li div {
  width: 100%;
}
#page li strong {
  margin-bottom: 20px;
  font-size: 2.8rem;
  display: block;
}
#page li ul {
  border-top: solid 1px #a7a3a3;
}
#page li li {
  border-bottom: solid 1px #a7a3a3;
}
#page li li:nth-child(even) {
  flex-direction: row;
}
#page li li a {
  padding: 15px 10px;
  width: 100%;
  color: #000;
  font-size: 1.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#page li li a span {
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page li li a:hover {
  text-decoration: none;
}
#page li li a:hover span img {
  transform: translateX(2px);
}
#page .service-detail {
  margin: 0 auto;
  padding: 80px;
  max-width: 1000px;
  max-height: 90vh;
  background: #fff;
  border: solid 1px var(--primary-color);
  font-size: 2rem;
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 101;
  transform: translateY(-50%);
  overflow: auto;
}
#page .service-detail p {
  margin-bottom: 20px;
}
#page .service-detail strong {
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
}
#page .service-detail ul {
  margin: 0 0 30px 24px;
  border-top: none;
  list-style: disc;
}
#page .service-detail li {
  border-bottom: none;
  display: list-item;
}
#page .service-detail .gallery {
  display: flex;
  gap: 10px;
}
#page .service-detail picture {
  width: auto;
  text-align: center;
  flex-shrink: 1;
}
#page .service-detail picture img {
  margin-bottom: 5px;
  border-radius: 4px;
}
#page .service-detail .close {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  font-size: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}
#page .detail-button {
  display: flex;
  justify-content: center;
}
#page .detail-button a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 24px;
}
#page .detail-button a span {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#page .detail-button a:hover span img {
  transform: translateX(4px);
}
#overlay {
  width: 100vw;
  height: 0;
  background: rgba(255,255,255,.9);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all .3s;
}
body.service #overlay {
  height: 100vh;
}

@media screen and (max-width: 768px) {
  #page ol {
    gap: 40px;
  }
  #page li, #page li:nth-child(even) {
    flex-direction: column;
    gap: 20px;
  }
  #page li picture {
    width: 100%;
  }
  #page li img {
    border-radius: 10px 30% 10px 10px;
  }
  #page li strong {
    margin-bottom: 10px;
    font-size: 2.4rem;
  }
  #page li li, #page li li:nth-child(even) {
    flex-direction: row;
  }
  #page .service-detail {
    padding: 40px; 
    max-width: 95%;
    font-size: 1.8rem;
  }
  #page .service-detail .gallery {
    gap: 5px;
  }
  #page .service-detail .close {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  #page .detail-button a span {
    width: 60px;
    height: 60px;
  }
  #page .detail-button a span img {
    width: 50%;
    height: auto;
  }
}
