/* CSS Document */
@charset "UTF-8";

#agencylist .honsya {
  padding: 20px 30px;
  border: 1px solid #C5D1E3;
  background-color: #F2F4F7;
}
#agencylist .agency {
  padding: 20px 30px;
  border: 1px solid #C5D1E3;
}
#agencylist .honsya h2, 
#agencylist .agency h2 {
  color: #002660;
  font-weight: 700;
  font-size: 15px;
  line-height: 160%;
}
#agencylist table {
  margin-bottom: 0 !important;
}
#agencylist table tr {
  display: grid;
  align-items: center;
  gap: 0;
  grid-template-columns: 26% 37% 10% 19% 8%;
  font-size: 15px;
  padding: 1rem 0;
  border-bottom: 1px solid #C5D1E3;
}
#agencylist table tr:last-child {
  border-bottom: none !important;
}
#agencylist table tr td {
  padding: 5px 0;
}
#agencylist table tr td a {
  display: inline-block;
}
#agencylist table tr td:first-child {
  position: relative;
  font-weight: bold;
  color: var(--color_navy);
  display: flex;
  justify-content: start;
  align-items: center;
}
#agencylist table tr td:first-child strong {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 30px;
  font-size: 20px;
  font-family: var(--font_eng);
  font-weight: 900;
  color: var(--color_yellow);
  margin-right: 5px;
  background-color: var(--color_navy);
}
#agencylist table tr td:nth-child(3) {
  border-right: 1px solid #C5D1E3;
}
#agencylist table tr td:nth-child(3), 
#agencylist table tr td:nth-child(4), 
#agencylist table tr td:nth-child(5) {
  padding: 5px 10px;
}
#agencylist table tr td:nth-child(3), 
#agencylist table tr td:nth-child(5) {
  text-align: center;
  border-left: 1px solid #C5D1E3;
}
#agencylist table tr td:nth-child(3), 
#agencylist table tr td:nth-child(5) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
#agencylist table tr td:nth-child(3)::before, 
#agencylist table tr td:nth-child(3)::after, 
#agencylist table tr td:nth-child(5)::after {
  content:'';
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  position: relative;
}
#agencylist table tr td:nth-child(3)::before {
  background-image: url(/wp-content/themes/diesel-meister/assets/images/icon-pin.svg);
  background-size: cover;
  background-repeat: no-repeat;
}
#agencylist table tr td:nth-child(3)::after, 
#agencylist table tr td:nth-child(5)::after {
  background-image: url(/wp-content/themes/diesel-meister/assets/images/icon-link.svg);
  background-size: cover;
  background-repeat: no-repeat;
}
#agencylist table tr td:nth-child(4) strong {
  display: block;
  font-weight: normal;
  text-align: center;
}

@media screen and (max-width:1000px) {
  #agencylist table tr {
    grid-template-columns: 50% 90px calc(50% - 170px) 80px;
    grid-template-areas: "name name name name" 
      "add map tel link";
    padding: 1rem 0;
  }
  #agencylist table tr td:nth-child(1) {
    grid-area: name;
  }
  #agencylist table tr td:nth-child(2) {
    grid-area: add;
  }
  #agencylist table tr td:nth-child(3) {
    grid-area: map;
  }
  #agencylist table tr td:nth-child(4) {
    grid-area: tel;
  }
  #agencylist table tr td:nth-child(5) {
    grid-area: link;
  }
}
@media screen and (max-width:768px) {
  #agencylist table tr {
    grid-template-columns: auto 90px 80px;
    grid-template-areas: "name name name" 
      "add add add" 
      "tel map link"
  }
  #agencylist table tr td {
    padding: 0;
  }
  #agencylist table tr td:nth-child(1), 
  #agencylist table tr td:nth-child(4) {
    margin-bottom: 5px;
  }
  #agencylist table tr td:nth-child(3), 
  #agencylist table tr td:nth-child(4) {
    padding: 0 5px;
  }
  #agencylist table tr td:nth-child(4) strong {
    text-align: left;
  }
  #agencylist table tr td:nth-child(5) {
    padding: 0 5px 0 10px;
    border-left: 0;
  }
}
@media screen and (max-width:468px) {
  #agencylist table tr {
    grid-template-columns: 90px 80px auto;
    grid-template-areas: "name name name" 
      "add add add" 
      "tel tel tel"
      "map link unset";
  }
}

#agencylist table tr td:nth-child(5) {
  display: none !important;
}