@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;
}

/* #leadbox
------------------------------------------------------*/
#leadbox {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8rem;
}
#leadbox .text {
  width: 40%;
}
#leadbox .photo {
  width: 55%;
}
@media screen and (max-width: 768px) {
  #leadbox {
    display: block;
  }
  #leadbox .text {
    width: 100%;
    margin-bottom: 4rem;
  }
  #leadbox .photo {
    width: 100%;
  }
}

/* #pagelink
------------------------------------------------------*/
#pagelink {
  display: flex;
  justify-content: center;
  margin-bottom: 8rem;
  gap: 10%;
}
#pagelink li {
  width: 20%;
}
#pagelink li p {
  text-align: center;
}
@media screen and (max-width: 768px) {
  #pagelink {
    justify-content: space-between;
    gap: 0;
  }
  #pagelink li {
    width: 30%;
  }
  #pagelink li p {
    line-height: 1.2;
    font-size: 1.4rem;
  }
}

.workTitle {
  display: flex;
  justify-content: space-between;
}
.workTitle span {
  padding: 30px 10px;
  border: 1px solid #2370A8;
  text-align: center;
  font-size: 3rem;
}
.workTitle span:first-child {
  color: #2370A8;
  width: 35%;
}
.workTitle span:last-child {
  background: #2370A8;
  color: #FFF;
  width: 65%;
}
@media screen and (max-width: 768px) {
  .workTitle {
    display: block;
  }
  .workTitle span {
    padding: 10px 10px;
    font-size: 2.4rem;
    display: block;
  }
  .workTitle span:first-child {
    width: 100%;
  }
  .workTitle span:last-child {
    width: 100%;
  }
}

.workTable {
  width: 100%;
}
.workTable th, .workTable td {
  border-bottom: 1px solid #DFDFE2;
}
.workTable th {
  width: 35%;
  padding: 30px 2vw;
  background: #ECECF2;
  position: relative;
  text-align: center;
}
.workTable th:before {
  content: "";
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  background: #FFF;
}
.workTable th:after {
  content: "";
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 10px;
  background: #FFF;
}
.workTable td {
  width: 65%;
  padding: 30px 2vw;
}
.workTable td dt {
  font-weight: bold;
}
.workTable td dd:not(:last-child) {
  margin-bottom: 2rem;
}
@media screen and (max-width: 768px) {
  .workTable {
    display: table;
  }
  .workTable th, .workTable td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .workTable th:before {
    height: 5px;
  }
  .workTable th:after {
    height: 5px;
  }
}