@charset "UTF-8";
/* 
Theme Name:あべファミリークリニック
*/
/*
font-family: 'Zen Kaku Gothic New', sans-serif;
font-family: 'Atkinson Hyperlegible', sans-serif;
font-family: 'Barlow', sans-serif;
*/
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}
main section {
  margin-bottom: 8rem;
}

#vi {
  z-index: 2;
}

/* #gallery
------------------------------------------------------*/
.gallery {
  columns: 3;
  gap: 3%;
}
.gallery li {
  margin-bottom: 30px;
}
.gallery li p {
  text-align: center;
}
.gallery .flipLeft {
  animation-name: flipLeft;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  perspective-origin: left center;
  opacity: 0;
}
@media screen and (max-width: 768px) {
  .gallery {
    columns: 2;
    gap: 3%;
  }
}

@keyframes flipLeft {
  from {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
    opacity: 0;
  }
  to {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
    opacity: 1;
  }
}
.secTitle01 {
  background: #2370A8;
  position: relative;
  text-align: center;
  margin-bottom: 5rem;
}
.secTitle01 h2 {
  color: #FFF;
  position: relative;
  padding: 40px 0;
  font-size: clamp(1.8rem, 2.3vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  gap: 10px;
}
.secTitle01 h2:before {
  z-index: 3;
  content: "";
  width: 100vw;
  height: 14px;
  background: #FFF;
  background: url("/lib/img/clinic/line_01.png") repeat-x top center/auto 14px;
  display: block;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}
.secTitle01 h2:after {
  z-index: 3;
  content: "";
  width: 100vw;
  height: 14px;
  background: #FFF;
  background: url("/lib/img/clinic/line_01.png") repeat-x top center/auto 14px;
  display: block;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
}
.secTitle01 h2 .icon {
  width: auto;
  height: clamp(40px, 4vw, 80px);
}
.secTitle01:before {
  z-index: -1;
  content: "";
  width: 100vw;
  height: 100%;
  background: #2370A8;
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* #sec04
------------------------------------------------------*/
#sec01 .photobox01 {
  aspect-ratio: 4/3;
  position: relative;
  margin-bottom: 5rem;
}
#sec01 .photobox01 li {
  position: absolute;
  width: 48%;
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
}
#sec01 .photobox01 li img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
#sec01 .photobox01 li:nth-child(1) {
  right: 0;
  top: 0;
  aspect-ratio: 3/1.5;
}
#sec01 .photobox01 li:nth-child(2) {
  right: 0;
  bottom: 0;
  aspect-ratio: 3/3;
}
#sec01 .photobox01 li:nth-child(3) {
  left: 0;
  top: 0;
  aspect-ratio: 29/21;
}
#sec01 .photobox01 li:nth-child(4) {
  left: 0;
  bottom: 0;
  aspect-ratio: 29/21;
}
@media screen and (max-width: 768px) {
  #sec01 .photobox01 {
    aspect-ratio: auto;
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #sec01 .photobox01 li {
    aspect-ratio: auto;
    position: relative;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  #sec01 .photobox01 li img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  #sec01 .photobox01 li:nth-child(n) {
    aspect-ratio: auto;
  }
  #sec01 .photobox01 li:nth-child(n+3) {
    width: 48%;
  }
}

#sec02 .photobox01 {
  aspect-ratio: 4/3;
  position: relative;
  margin-bottom: 5rem;
}
#sec02 .photobox01 li {
  position: absolute;
  width: 48%;
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
}
#sec02 .photobox01 li img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
#sec02 .photobox01 li:nth-child(1) {
  left: 0;
  top: 0;
  aspect-ratio: 3/1.5;
}
#sec02 .photobox01 li:nth-child(2) {
  left: 0;
  bottom: 0;
  aspect-ratio: 3/3;
}
#sec02 .photobox01 li:nth-child(3) {
  right: 0;
  top: 0;
  aspect-ratio: 29/21;
}
#sec02 .photobox01 li:nth-child(4) {
  right: 0;
  bottom: 0;
  aspect-ratio: 29/21;
}
@media screen and (max-width: 768px) {
  #sec02 .photobox01 {
    aspect-ratio: auto;
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #sec02 .photobox01 li {
    aspect-ratio: auto;
    position: relative;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  #sec02 .photobox01 li img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  #sec02 .photobox01 li:nth-child(n) {
    aspect-ratio: auto;
  }
  #sec02 .photobox01 li:nth-child(n+3) {
    width: 48%;
  }
}

#sec03 p {
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
}
#sec03 .photobox01 {
  display: flex;
  justify-content: space-between;
}
#sec03 .photobox01 li {
  width: 48%;
}
@media screen and (max-width: 768px) {
  #sec03 p {
    font-size: 1.8rem;
  }
}

#sec04 > section {
  border: 1px solid #2370A8;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}
#sec04 > section .photo {
  width: 50%;
}
#sec04 > section .text {
  width: 47%;
}
#sec04 > section .text h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}
#sec04 .photobox01 {
  aspect-ratio: 4/3;
  position: relative;
  margin-bottom: 5rem;
}
#sec04 .photobox01 li {
  position: absolute;
  width: 48%;
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
}
#sec04 .photobox01 li img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
#sec04 .photobox01 li:nth-child(1) {
  right: 0;
  top: 0;
  aspect-ratio: 3/1.5;
}
#sec04 .photobox01 li:nth-child(2) {
  right: 0;
  bottom: 0;
  aspect-ratio: 3/3;
}
#sec04 .photobox01 li:nth-child(3) {
  left: 0;
  top: 0;
  aspect-ratio: 29/21;
}
#sec04 .photobox01 li:nth-child(4) {
  left: 0;
  bottom: 0;
  aspect-ratio: 29/21;
}
@media screen and (max-width: 768px) {
  #sec04 > section {
    display: block;
    padding: 10px;
  }
  #sec04 > section .photo {
    width: 100%;
    margin-bottom: 1rem;
  }
  #sec04 > section .text {
    width: 100%;
  }
  #sec04 .photobox01 {
    aspect-ratio: auto;
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #sec04 .photobox01 li {
    aspect-ratio: auto;
    position: relative;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  #sec04 .photobox01 li img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  #sec04 .photobox01 li:nth-child(n) {
    aspect-ratio: auto;
  }
  #sec04 .photobox01 li:nth-child(n+3) {
    width: 48%;
  }
}