.domestic.tab.active {
  background: #519EB1;
}

#domestic h2 {
  background: #519EB1;
}
#domestic .branch_detail {
  border-color: #519EB1;
}
#domestic .branch_detail dt span::before {
  background: #519EB1;
}

.overseas.tab.active {
  background: #9884C6;
}

#overseas h2 {
  background: #9884C6;
}
#overseas .branch_detail {
  border-color: #9884C6;
}
#overseas .branch_detail dt span::before {
  background: #9884C6;
}

#branch {
  margin-top: 51px;
}
@media screen and (max-width: 767px) {
  #branch {
    margin-top: 34px;
  }
}

.tab_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
  margin-top: 83px;
}
.tab_list .tab {
  border-radius: 10px 10px 0 0;
  background: #DEDEDE;
  padding: 20px 0;
  color: #7E7E7E;
  font-size: 35px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
}
.tab_list .tab.active {
  color: #fff;
}
@media screen and (max-width: 767px) {
  .tab_list {
    gap: 0 10px;
    margin: 35px -24px 0;
  }
  .tab_list .tab {
    border-radius: 0 10px 0 0;
    padding: 3px 0;
    font-size: 18px;
    letter-spacing: 0.1em;
  }
  .tab_list .tab:nth-child(2) {
    border-radius: 10px 0 0 0;
  }
}

.tab_article_list {
  margin-bottom: 160px;
}
.tab_article_list .tab_article {
  padding: 100px 0 130px;
  display: none;
}
.tab_article_list .tab_article.active {
  display: block;
}
.tab_article_list h2 {
  border-radius: 10px;
  padding: 12px 30px;
  color: #fff;
  font-size: 35px;
  letter-spacing: 0.1em;
}
@media screen and (max-width: 767px) {
  .tab_article_list {
    margin: 0 -24px;
  }
  .tab_article_list .tab_article {
    padding: 40px 0 60px;
  }
  .tab_article_list h2 {
    border-radius: 6px;
    padding: 2px 20px;
    font-size: 18px;
    text-align: center;
  }
}

.sub-title {
  margin-top: 50px;
}
@media screen and (max-width: 767px) {
  .sub-title {
    margin-top: 25px;
  }
}

.branch_detail {
  display: grid;
  gap: 0 24px;
  width: 100%;
  border-bottom: 1px solid;
  padding: 47px 0 50px;
  letter-spacing: 0.05em;
}
.branch_detail:last-of-type {
  border: none;
  padding-bottom: 0;
}
.branch_detail dt {
  font-size: 30px;
  font-weight: bold;
}
.branch_detail dt span {
  display: block;
  padding-left: 35px;
  position: relative;
  letter-spacing: 0.05em;
}
.branch_detail dt span::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  position: absolute;
  top: 19px;
  left: 0;
}
.branch_detail dd {
  font-size: 18px;
  line-height: 2;
}
.branch_detail a {
  text-decoration: underline;
  color: inherit;
}
.branch_detail a:hover {
  opacity: 1;
  text-decoration: none;
}
.branch_detail a.link_arrow::before {
  content: "";
  display: inline-block;
  background: url(../img/branch/link_arrow.svg) no-repeat center/contain;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  vertical-align: text-bottom;
}
@media screen and (max-width: 767px) {
  .branch_detail {
    padding: 24px 0 22px;
  }
  .branch_detail dt {
    order: 1;
    width: 100%;
    font-size: 15px;
  }
  .branch_detail dt span {
    padding-left: 12px;
    line-height: 1.4;
  }
  .branch_detail dt span::before {
    width: 8px;
    height: 8px;
    top: 9px;
  }
  .branch_detail dd {
    font-size: 14px;
  }
  .branch_detail dd:nth-of-type(1) {
    order: 3;
    width: 100%;
    margin: 13px 0 0;
    line-height: 1.8;
  }
  .branch_detail dd:nth-of-type(2) {
    order: 2;
    width: 100%;
    margin: 20px 0 0;
  }
}
.branch_detail a.link_arrow::before {
  width: 21px;
  height: 21px;
}

#domestic {
  background: #F2F9FA;
}
#domestic .branch_detail {
  grid-template-columns: 390px 1fr 27.4%;
}
@media (max-width: 1024px) and (min-width: 768px) {
  #domestic .branch_detail {
    grid-template-columns: 1fr 27.4%;
  }
  #domestic .branch_detail dt {
    margin-bottom: 20px;
  }
  #domestic .branch_detail dd:nth-of-type(1) {
    grid-column: 1/2;
    padding-left: 35px;
  }
  #domestic .branch_detail dd:nth-of-type(2) {
    grid-column: 2/3;
    grid-row: 1/4;
    margin: 0;
  }
}
@media screen and (max-width: 767px) {
  #domestic .branch_detail {
    grid-template-columns: 1fr;
  }
}

#overseas {
  background: #F5F4FC;
}
#overseas .branch_detail {
  grid-template-columns: 1fr 27.4%;
}
#overseas .overseas_container:not(:last-of-type) {
  margin-bottom: 100px;
}
@media screen and (min-width: 768px) {
  #overseas .branch_detail dt {
    margin-bottom: 12px;
  }
  #overseas .branch_detail dd:nth-of-type(1) {
    grid-column: 1/2;
    padding-left: 35px;
  }
  #overseas .branch_detail dd:nth-of-type(2) {
    grid-column: 2/3;
    grid-row: 1/4;
    margin: 0;
  }
}
@media screen and (max-width: 767px) {
  #overseas .branch_detail {
    grid-template-columns: 1fr;
  }
  #overseas .overseas_container:not(:last-of-type) {
    margin-bottom: 35px;
  }
}

.link_arrow {
  margin-top: 11px;
}
@media screen and (max-width: 767px) {
  .link_arrow {
    margin-top: 5px;
  }
}