@charset "utf-8";

/*--medical--------------------*/
#obstetrics .topics .headline {
  .icon {
    margin-right: 5px;
    position: relative;
    &::before {
      content: "\f164";
      font-size: 2.4rem;
      font-weight: 400;
      font-family: "Font Awesome 5 Free";
      color: var(--primary);
    }
  }
  .text_st01 {
    font-size: 2rem;
  }
}
#gynecology .ol01 > li {
  display: block grid;
  gap: 5px;
  grid-template-columns: max-content 25% 1fr;
  margin-block-start: 0;
  .rightBox h4 {
    margin-block-start: 2px;
  }
  &.fw5 {
    grid-template-columns: max-content 1fr;
  }
}

/*--access--------------------*/
.access {
  .details details summary {
    grid-template: "count . icon" / max-content 1fr max-content;
    .count {
      grid-area: count;
      font-weight: 700;
      color: var(--primary);
      margin-right: 10px;
    }
  }
}
#map iframe {
  height: 400px;
}
#car {
  .flex {
    gap: 40px;
  } 
  .leftBox, img {
    width: 50%;
    height: 100%;
  }
  .leftBox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 15px;
    .table01 {
      width: 100%;
      max-width: 400px;
      font-size: 1.6rem;
      th {
        text-align: left;
      }
    }
  }
  details .d_inner ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-flow: wrap;
    line-height: 2;
    li + li {
      position: relative;
      margin-left: 40px;
      &::before {
        content: "";
        mask: url(../img/common/ic_arrow.svg) no-repeat left/100%;
        background-color: var(--primary);
        width: 12px;
        aspect-ratio: 1;
        margin: auto;
        position: absolute;
        top: 2px;
        left: -27px;
        bottom: 0;
      }
    }
  }
}
#bus .ul01 li span {
  min-width: fit-content;
  margin-right: 20px;
}

/*--info--------------------*/
#pill .price {
  width: 70%;
  tbody td {
    width: 30%;
    min-width: 240px;
  }
  span {
    font-size: 1.4rem;
  }
}
#other dl {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  align-items: center;
  dt {
    width: fit-content;
    height: 100%;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--ff1);
    text-align: center;
    color: #fff;
    background-color: var(--primary);
    border-radius: 5px;
    padding: 3px 10px;
  }
  dd {
    font-size: 3.0rem;
    font-weight: 600;
    font-family: var(--ff2);
    line-height: 1;
    color: var(--primary);
  }
}
#other .btn02 {
  grid-template: "mail . icon" / max-content 1fr max-content;
  img {
    grid-area: mail;
    width: auto;
    margin-block-start: 1px;
  }
}
#past .news_list {
  border-bottom: 1px solid var(--border1);
  li {
    border-top: 1px solid var(--border1);
    padding-block: 25px 30px;
    .title {
      display: grid;
      grid-template-columns: 140px 5fr;
      font-size: 2.0rem;
      font-weight: 500;
      margin-bottom: 10px;
      .date {
        font-family: var(--ff2);
        line-height: 2;
        color: var(--text2);
      }
    }
  }
}

@media screen and (max-width: 768px) {
  /*--medical--------------------*/
  #obstetrics .topics .headline .text_st01 {
    font-size: 1.8rem;
  }
  #gynecology .ol01 > li:not(.fw5) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    .rightBox {
      width: 100%;
      margin-block-start: 10px;
    }
  }

  /*--access--------------------*/
  #car {
    .leftBox, img {
      width: 100%;
    }
    .leftBox .table01 {
      font-size: 1.4rem;
      th {
        width: 75%;
      }
    }
    details .d_inner ul li + li {
      margin-left: 20px;
      &::before {
        width: 10px;
        left: -15px;
      }
    }
  }

  /*--info--------------------*/
  #pill .price {
    width: 100%;
    tbody td {
      min-width: 140px;
    }
    tbody td span {
      font-size: 1.2rem;
    }
  }
  #other dl {
    dt {
      width: 105px;
      font-size: 1.3rem;
      line-height: 1.5;
    }
    dd {
      font-size: 2.8rem;
    }
  }
  #past .news_list li {
    padding-block: 20px 25px;
    .title {
      display: block;
      font-size: 1.6rem;
      line-height: 1.5;
      .date {
        display: block;
      }
    }
  }
}