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

/* #timetable
------------------------------------------------------*/
#timetable {
  margin-bottom: 8rem;
}

/* #baseData
------------------------------------------------------*/
#baseData {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8rem;
}
#baseData .data {
  width: 40%;
  border: 1px solid #2370A8;
  padding: 30px;
}
#baseData .data h2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 2.8rem;
  color: #2370A8;
  margin-bottom: 3rem;
}
#baseData .data h2 .icon {
  width: auto;
  height: 30px;
}
#baseData .address {
  width: 55%;
}
#baseData .address .map {
  margin-bottom: 2rem;
}
#baseData .address .link {
  margin-bottom: 0;
}
#baseData .address .link a {
  padding: 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  background: #2370A8;
  color: #FFF;
}
#baseData .address .link a .icon {
  width: auto;
  height: 46px;
}
@media screen and (max-width: 768px) {
  #baseData {
    display: block;
  }
  #baseData .data {
    width: 100%;
    margin-bottom: 4rem;
  }
  #baseData .address {
    width: 100%;
  }
}

/* #baseData
------------------------------------------------------*/
#subway {
  margin-bottom: 8rem;
}
#subway h2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 3.8rem;
  color: #2370A8;
  margin-bottom: 3rem;
  align-items: center;
}
#subway h2 .icon {
  width: auto;
  height: 100px;
}
#subway .flow {
  display: flex;
  justify-content: space-between;
}
#subway .flow li {
  width: 24%;
}
#subway .flow li:last-child {
  width: 22.5%;
}
#subway #rootContainer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
#subway #rootContainer #rootChangeMenu {
  width: 36%;
  position: sticky;
  top: 0;
}
#subway #rootContainer #rootChangeMenu ul li {
  margin-bottom: 1rem;
  background: #888;
  color: #FFF;
  padding: 0.5rem 2rem 0.5rem 1rem;
  display: flex;
  position: relative;
}
#subway #rootContainer #rootChangeMenu ul li.active {
  background: #1B527A;
}
#subway #rootContainer #rootChangeMenu ul li:after {
  content: "";
  width: 1rem;
  aspect-ratio: 1/1;
  border-top: 3px solid #FFF;
  border-right: 3px solid #FFF;
  position: absolute;
  right: 1rem;
  top: calc(50% - 0.5rem);
  transform: rotate(45deg);
}
#subway #rootContainer #rootChangeMenu ul li span {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Barlow", sans-serif;
}
#subway #rootContainer .subwayroot {
  display: none;
  width: 60%;
}
#subway #rootContainer .subwayroot.active {
  display: block;
}
#subway #rootContainer .subwayroot h3 {
  background: #1B527A;
  color: #FFF;
  padding: 2rem 2rem;
  margin-bottom: 3rem;
  border-radius: 50vh;
  line-height: 1.5;
}
#subway #rootContainer .subwayroot ul li {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  margin-bottom: 1rem;
}
#subway #rootContainer .subwayroot ul li .photo {
  width: 48%;
}
#subway #rootContainer .subwayroot ul li .detail {
  width: 48%;
  text-align: left;
}
#subway #rootContainer .subwayroot ul li .detail p.number {
  background: #1B527A;
  color: #FFF;
  width: fit-content;
  padding: 0rem 1rem;
  font-weight: bold;
  font-family: "Barlow", sans-serif;
}
@media screen and (max-width: 768px) {
  #subway h2 {
    font-size: 2.4rem;
  }
  #subway h2 .icon {
    width: auto;
    height: 50px;
  }
  #subway #rootContainer {
    flex-wrap: wrap;
  }
  #subway #rootContainer #rootChangeMenu {
    width: 100%;
    background: #FFF;
  }
  #subway #rootContainer #rootChangeMenu ul li {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
  }
  #subway #rootContainer #rootChangeMenu ul li br {
    display: none;
  }
  #subway #rootContainer #rootChangeMenu ul li:after {
    transform: rotate(135deg);
  }
  #subway #rootContainer #rootChangeMenu ul li span {
    font-size: 1.4rem;
  }
  #subway #rootContainer .subwayroot {
    display: none;
    width: 100%;
  }
  #subway #rootContainer .subwayroot h3 {
    font-size: 1.6rem;
    text-align: center;
  }
  #subway #rootContainer .subwayroot ul li {
    display: block;
  }
  #subway #rootContainer .subwayroot ul li .photo {
    width: 100%;
  }
  #subway #rootContainer .subwayroot ul li .detail {
    width: 100%;
  }
  #subway #rootContainer .subwayroot ul li .detail p.number {
    padding: 0rem 2rem;
    border-radius: 50vh;
    margin-bottom: 1rem;
  }
}

/* #baseData
------------------------------------------------------*/
#car {
  margin-bottom: 8rem;
}
#car h2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 3.8rem;
  color: #2370A8;
  margin-bottom: 3rem;
  align-items: center;
}
#car h2 .icon {
  width: auto;
  height: 100px;
}
#car .carroot {
  max-width: 80%;
  margin: 0 auto;
}
#car .carroot h3 {
  background: #1B527A;
  color: #FFF;
  padding: 2rem 2rem;
  margin-bottom: 3rem;
  border-radius: 50vh;
  line-height: 1.5;
}
#car .carroot ul li {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  margin-bottom: 1rem;
}
#car .carroot ul li .photo {
  width: 48%;
}
#car .carroot ul li .detail {
  width: 48%;
  text-align: left;
}
#car .carroot ul li .detail p.number {
  background: #1B527A;
  color: #FFF;
  width: fit-content;
  padding: 0rem 1rem;
  font-weight: bold;
  font-family: "Barlow", sans-serif;
}
#car .carroot ul li.parking {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 5px dotted #1B527A;
}
@media screen and (max-width: 768px) {
  #car h2 {
    font-size: 2.4rem;
  }
  #car h2 .icon {
    width: auto;
    height: 50px;
  }
  #car .carroot {
    max-width: 100%;
  }
  #car .carroot h3 {
    font-size: 1.6rem;
    text-align: center;
  }
  #car .carroot ul li {
    display: block;
  }
  #car .carroot ul li .photo {
    width: 100%;
  }
  #car .carroot ul li .detail {
    width: 100%;
  }
  #car .carroot ul li .detail p.number {
    padding: 0rem 2rem;
    border-radius: 50vh;
    margin-bottom: 1rem;
  }
}