/*-------features--------*/
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 0;
  padding: 60px 20px;
}
.featureItem {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 0;
  padding: 0 25px;
  border-right: 1px solid var(--gray);
  font-feature-settings: "palt";
}
.featureItem:last-child {
  border-right: 0;
}
.featureItem figure{
  display: block;
  margin-top: auto;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
}
.featureItem img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featureItem h2 {
  margin-bottom: 1em;
  font-size: 1.25rem;
  font-family: var(--decotxt);
  font-weight: 500;
  line-height: 1.4;
}
.featureItem p {
  margin-bottom: 40px;
}
@media (max-width: 797px) {
  .features {
    display: block;
    padding: 0 20px;
  }
  .featureItem {
    display: block;
    padding: 60px 0;
    border-right: 0;
    border-bottom: 1px solid var(--gray);
  }
  .featureItem:last-child {
    border-bottom: 0;
  }
  .featureItem figure{
    margin: 0 auto;
  }
}
/*-------facilities--------*/
.facilities{
  padding: 60px 0;
  background-color: var(--gray);
  font-feature-settings: "palt";  
}
.facilitiesItemWrap{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}
.facilities figure > span{
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
}
.facilities figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.facilities figure figcaption span{
  display: inline-block;
}
.facilities .container section{
  margin-top: 60px;
  border-top: 1px solid #FFF;
  padding-top: 60px;
}
.facilities h3{
  color: var(--main);
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2em;
}
@media (max-width: 797px) {
  .facilitiesItemWrap{
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 540px) {
  .facilitiesItemWrap{
    grid-template-columns: repeat(1,1fr);
  }
}
/*-------doctor--------*/
.doctor{
  padding: 60px 0;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #F4AFC5, #F1F3F6, #F4AFC5) 1;
  background-image: url("../images/common/bg_rose_r.png"), url("../images/common/bg_rose_l.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top right, bottom left;
  background-size: 233px 233px;
}
.doctorIntroWrap{
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
.doctorIntroWrap figure{
  flex-shrink: 0;
  width: 210px;
}
.doctorIntroWrap figure img{
  width: 100%;
}
.doctorIntroWrap figcaption{
  margin-top: 1em;
  font-family: var(--decotxt);
  font-feature-settings: "palt";  
}
.doctorIntroWrap figcaption span{
  display: block;
  margin-top: 0.2em;
  font-weight: 600;
  font-size: 1.5rem;
}
.doctorData{
  margin-top: 60px;
}
.doctorData table{
  border-collapse: collapse;
  width: 100%;
}
.doctorData table tr{
  border-bottom: 1px solid var(--soft);
}
.doctorData table tr:has([rowspan]){
  border-bottom: 0;
}
.doctorData table th{
  padding: 20px 0;
  font-weight: 300;
  vertical-align: baseline;
}
.doctorData table td{
  padding-bottom: 20px;
}
.doctorData table tr:has(th) td{
  padding: 20px 0;
}
.doctor .wrap{
  display: flex;
  gap: 40px;
}
.doctor .wrap section{
  width: 50%;
}
.doctorData ul li{
  padding-left: 1em;
  margin-bottom: 0.5em;
  position: relative;
}
.doctorData ul li:before{
  display: block;
  content: "\30FB";
  color: var(--main);
  position: absolute;
  left: 0;
}
.doctor .staff{
  margin-top: 60px;
  width: 100%;
  height: auto;
}
@media (max-width: 797px) {
  .doctorIntroWrap {
    flex-direction: column-reverse;
    align-items: center;
  }
  .doctorIntroWrap figcaption {
    text-align: center;
  }
  .doctor .wrap {
    flex-direction: column;
  }
  .doctor .wrap section {
    width: 100%;
  }
  .doctorData table th,
  .doctorData table td{
    display: block;
  }
  .doctorData table th{
    padding: 20px 0 10px;
  }
  .doctorData table td{
    padding: 0 0 20px 1em;
  }
  .doctorData table tr:has([rowspan]) td{
    padding: 0 0 0 1em;
  }
}
/*-------partner--------*/
.partner{
  padding: 60px 20px;
}
.partnerList{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--gray);
}
.partnerList li{
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--gray);
  padding: 1em;
  height: 60px;
}
.partnerList li a{
  text-decoration: underline;
}
@media (max-width: 797px) {
  .partnerList{
    grid-template-columns: repeat(2, 1fr);
  }  
}
@media (max-width: 540px) {
  .partnerList{
    grid-template-columns: repeat(1, 1fr);
    border-left: 0;
  }
  .partnerList li {
    border-right: 0;
    justify-content: flex-start;
  }
}