/* p-office
---------------------------------------------------------------------------- */
.p-office {
  padding-block: 7.8rem 12rem;
}

.p-office-link-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 1rem 2.5rem;
  padding-block: 4.1rem 4.05rem;
  padding-inline: 5rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1019607843);
  margin-bottom: 6.8rem;
}

.p-office-link {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  font-size: 1.6rem;
  line-height: 1.8125;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #1A1A1A;
  padding-bottom: 1rem;
}

.p-office-content:not(:last-of-type) {
  margin-bottom: 5rem;
}

.p-office-content-table {
  width: 100%;
  font-size: 1.6rem;
  line-height: 1.8125;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.p-office-content-table-header {
  font-size: 2.4rem;
  line-height: 1.125;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  text-align: left;
  min-height: 8rem;
  padding-block: 1.5rem 1.4rem;
  padding-inline: 2rem;
  background-color: #073190;
}

.p-office-content-table-overseas {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  justify-items: start;
  column-gap: 1rem;
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #073190;
  margin-block: 3.8rem 2rem;
}
.p-office-content-table-overseas::before {
  content: "";
  width: 0.8rem;
  aspect-ratio: 1;
  background-color: currentColor;
  border-radius: 50%;
}

.p-office-content-table-row {
  border: 1px solid #BEBEBE;
  border-top: none;
}
.p-office-content-table-row:not(:has(.p-office-content-table-ttl)) {
  background-color: #F8F8F8;
}
.p-office-content-table-row._overseas {
  border-top: 1px solid #BEBEBE;
}

.p-office-content-table-ttl {
  font-size: 1.8rem;
  line-height: 1.6111111111;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #073190;
  text-align: left;
  width: 25rem;
  padding-block: 2.4rem 2.5rem;
  padding-inline: 3rem;
  background-color: #E9F6FF;
  border-right: 1px solid #BEBEBE;
}

.p-office-content-table-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 1.6rem;
  line-height: 1.6875;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #fff;
  padding-block: 1.05rem;
  padding-inline: 2rem 1.5rem;
  background-color: #073190;
  border-radius: 0.5rem;
  margin-top: 1rem;
}
.p-office-content-table-btn::after {
  content: "";
  width: 0.8rem;
  aspect-ratio: 8/11;
  background-image: url(./../../../images/common/icn_arrow_right_white.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.p-office-content-table-address {
  width: 65rem;
  padding-block: 2.4rem 2.5rem;
  padding-inline: 3rem;
  align-content: center;
}
.p-office-content-table-address span {
  display: inline-block;
  font-size: 1.8rem;
  line-height: 1.6111111111;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #073190;
  margin-bottom: 1.4rem;
}

.p-office-content-table-address-map {
  font-weight: 700;
  color: #073190;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid;
  width: fit-content;
}
.p-office-content-table-address-map::after {
  content: "";
  width: 1.5rem;
  aspect-ratio: 15/16;
  mask-image: url(./../../../images/common/icn_pin.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: currentColor;
}
@media (any-hover: hover) {
  .p-office-content-table-address-map:hover {
    border-bottom: 1px solid #fff;
  }
}

.p-office-content-table-tel-wrap {
  width: 30rem;
  padding-block: 2.4rem 2.5rem;
  padding-inline: 3rem;
  border-left: 1px solid #BEBEBE;
  position: relative;
}
.p-office-content-table-tel-wrap._border-left-none {
  border-left: none;
}

.p-office-content-table-tel {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 1rem;
  width: max-content;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
.p-office-content-table-tel::before {
  content: "";
  width: 1.7rem;
  aspect-ratio: 1;
  background-image: url(./../../../images/common/icn_tel.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

@media screen and (max-width: 767px) {
  .p-office {
    padding-block: 13.3333333333vw;
  }
  .p-office-link-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8vw 5.6vw;
    padding-block: 7.2vw;
    padding-inline: 5.3333333333vw;
    box-shadow: 0 0 2.6666666667vw rgba(0, 0, 0, 0.1019607843);
    margin-bottom: 14.1333333333vw;
  }
  .p-office-link {
    font-size: 3.7333333333vw;
    line-height: 1.6;
    padding-bottom: 2.6666666667vw;
  }
  .js-accordion-content {
    display: block;
  }
  .p-office-content:not(:last-of-type) {
    margin-bottom: 5.3333333333vw;
  }
  .p-office-content-table {
    font-size: 4.2666666667vw;
  }
  .p-office-content-table-header {
    font-size: 5.3333333333vw;
    line-height: 1.35;
    min-height: 15.7333333333vw;
    padding-block: 4vw;
    padding-inline: 5.3333333333vw;
    cursor: pointer;
    position: relative;
  }
  .p-office-content-table-header ._sp-icn {
    content: "";
    width: 6.9333333333vw;
    aspect-ratio: 1;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 4.8vw;
    translate: 0 -50%;
  }
  .p-office-content-table-header ._sp-icn::before, .p-office-content-table-header ._sp-icn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 3.2vw;
    height: 0.2rem;
    background-color: #073190;
    transition: rotate 0.3s ease 0s;
  }
  .p-office-content-table-header ._sp-icn::after {
    rotate: 90deg;
  }
  .js-accordion-title.open .p-office-content-table-header ._sp-icn::after {
    rotate: 0deg;
  }
  .p-office-content-table-overseas {
    column-gap: 2.6666666667vw;
    font-size: 4.8vw;
    margin-block: 8vw 4vw;
  }
  .p-office-content-table-overseas::before {
    width: 2.1333333333vw;
  }
  .p-office-content-table-body {
    margin-bottom: 8vw;
  }
  .p-office-content-table-row {
    display: flex;
    flex-direction: column;
  }
  .p-office-content-table-ttl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.6666666667vw 0;
    font-size: 4.8vw;
    line-height: 1.5;
    width: 100%;
    padding-block: 3.7333333333vw;
    padding-inline: 5.3333333333vw;
    border-right: none;
    border-bottom: 1px solid #BEBEBE;
  }
  .p-office-content-table-btn {
    font-size: 3.7333333333vw;
    line-height: 1.9285714286;
    padding-block: 2.4vw;
    padding-inline: 3.28vw;
    border-radius: 1.3333333333vw;
    margin-top: 0;
    width: 37.8666666667vw;
  }
  .p-office-content-table-btn::after {
    width: 2.1333333333vw;
  }
  .p-office-content-table-address {
    width: 100%;
    padding-block: 5.3333333333vw 5.4666666667vw;
    padding-inline: 5.3333333333vw;
  }
  .p-office-content-table-address span {
    font-size: 4.8vw;
    margin-bottom: 3.7333333333vw;
  }
  .p-office-content-table-address-map {
    column-gap: 2.6666666667vw;
    padding-bottom: 1.6vw;
  }
  .p-office-content-table-address-map::after {
    width: 4vw;
  }
  .p-office-content-table-tel-wrap {
    width: 100%;
    padding-block: 0 4vw;
    padding-inline: 5.3333333333vw;
    border-left: none;
  }
  .p-office-content-table-tel {
    column-gap: 2.6666666667vw;
    position: static;
    translate: 0;
  }
  .p-office-content-table-tel::before {
    width: 4.5333333333vw;
  }
}
