/* 所属税理士一覧・詳細
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.tax-member-archive .other_conteiner,
.tax-member-single .other_conteiner {
  position: relative;
}

.tax-member-archive .other_conteiner::before {
  content: '';
  width: calc(100% - 24px);
  height: 520px;
  background-color: rgba(223, 245, 249, .4);
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.tax-member-heading {
  margin-bottom: 48px;
}

.tax-member-heading .sec_title_text {
  max-width: 720px;
  margin-top: 20px;
}

.tax-member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.tax-member-card {
  min-width: 0;
  height: 100%;
}

.tax-member-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: #1D1D1D;
  background: #fff;
  border: 1px solid #D6E4F0;
  box-shadow: 0 10px 30px rgba(42, 102, 175, .09);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.tax-member-card__link:hover {
  color: #1D1D1D;
  border-color: #68B1DA;
  box-shadow: 0 16px 36px rgba(42, 102, 175, .17);
  transform: translateY(-5px);
}

.tax-member-card__link:active {
  box-shadow: 0 8px 20px rgba(42, 102, 175, .12);
  transform: translateY(-1px);
  transition-duration: .12s;
}

.tax-member-card__link:focus-visible,
.tax-member-primary-button:focus-visible,
.tax-member-outline-button:focus-visible,
.tax-member-work:focus-visible,
.tax-member-media-list a:focus-visible {
  outline: 3px solid #FA7902;
  outline-offset: 4px;
}

.tax-member-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, #F5FAFC 0%, #E6F4F8 100%);
}

.tax-member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .55s cubic-bezier(.2, .65, .3, 1);
}

.tax-member-card__link:hover .tax-member-card__photo img {
  transform: scale(1.035);
}

.tax-member-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 20px 20px;
}

.tax-member-card__position {
  min-height: 1.5em;
  margin-bottom: 5px;
  color: #2A66AF;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}

.tax-member-card__name {
  color: #1D1D1D;
  font-family: 'Zen Old Mincho', 游明朝, "Yu Mincho", YuMincho, serif;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
}

.tax-member-card__english {
  margin-top: 4px;
  color: #68B1DA;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
}

.tax-member-card__message {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #DDEAF3;
  color: #2B3948;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.85;
}

.tax-member-card__career {
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid #EDF3F7;
  border-bottom: 1px solid #EDF3F7;
}

.tax-member-card__career > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  font-size: .75rem;
  line-height: 1.55;
}

.tax-member-card__career > div + div {
  margin-top: 7px;
}

.tax-member-card__career dt {
  color: #2A66AF;
  font-weight: 700;
}

.tax-member-card__career dd {
  color: #475768;
  font-weight: 500;
}

.tax-member-card__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: #2A66AF;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tax-member-card__button::after {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #2A66AF;
  background-image: linear-gradient(45deg, transparent 48%, #fff 49%, #fff 55%, transparent 56%), linear-gradient(-45deg, transparent 48%, #fff 49%, #fff 55%, transparent 56%);
  background-position: 12px 9px, 12px 15px;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  transition: background-color .3s ease, transform .3s ease;
}

.tax-member-card__link:hover .tax-member-card__button::after {
  background-color: #68B1DA;
  transform: translateX(3px);
}

.tax-member-page-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 64px auto 0;
}

.tax-member-primary-button,
.tax-member-outline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 48px 14px 24px;
  border: 2px solid #2A66AF;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  position: relative;
  overflow: hidden;
  transition: color .35s ease, background-color .35s ease, box-shadow .35s ease, transform .2s ease;
}

.tax-member-primary-button {
  color: #fff;
  background-color: #2A66AF;
  box-shadow: 0 8px 20px rgba(42, 102, 175, .18);
}

.tax-member-outline-button {
  color: #2A66AF;
  background-color: #fff;
}

.tax-member-primary-button span,
.tax-member-outline-button span {
  position: relative;
  z-index: 1;
}

.tax-member-primary-button::after,
.tax-member-outline-button::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .3s ease;
}

.tax-member-outline-button::after {
  right: auto;
  left: 24px;
  transform: translateY(-50%) rotate(-135deg);
}

.tax-member-primary-button:hover {
  color: #fff;
  background-color: #68B1DA;
  border-color: #68B1DA;
  box-shadow: 0 12px 26px rgba(42, 102, 175, .24);
}

.tax-member-outline-button:hover {
  color: #fff;
  background-color: #2A66AF;
}

.tax-member-primary-button:hover::after {
  transform: translate(4px, -50%) rotate(45deg);
}

.tax-member-outline-button:hover::after {
  transform: translate(-4px, -50%) rotate(-135deg);
}

.tax-member-primary-button:active,
.tax-member-outline-button:active {
  box-shadow: none;
  transform: translateY(2px);
  transition-duration: .1s;
}

.tax-member-empty {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #D6E4F0;
}

/* 代表挨拶ページ内の所属税理士 */
.greeting-member-section {
  padding-top: 80px;
  margin-top: 96px;
  border-top: 1px solid #C9E1EC;
}

.greeting-member-section .tax-member-grid--greeting {
  max-width: 460px;
  margin: 0 auto;
}

.greeting-member-section .tax-member-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.greeting-member-section .tax-member-page-links {
  max-width: 460px;
  margin-top: 40px;
}

.greeting-member-section .tax-member-primary-button {
  color: #2A66AF;
  background-color: #fff;
  box-shadow: none;
}

.greeting-member-section .tax-member-primary-button:hover {
  color: #fff;
  background-color: #2A66AF;
  border-color: #2A66AF;
  box-shadow: none;
}

/* 詳細ページ */
.tax-member-profile__overview {
  display: grid;
  gap: 32px;
}

.tax-member-profile__visual {
  min-width: 0;
  align-self: start;
}

.tax-member-profile__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #EAF6FA;
  border: 1px solid #D6E4F0;
  box-shadow: 0 12px 40px rgba(42, 102, 175, .1);
}

.tax-member-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tax-member-profile__information {
  min-width: 0;
}

.tax-member-profile__identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
  border-top: 4px solid #2A66AF;
  border-bottom: 1px solid #C8DFEA;
  position: relative;
}

.tax-member-profile__identity::before {
  content: '';
  width: 32px;
  height: 4px;
  background: #68B1DA;
  position: absolute;
  top: -4px;
  left: 64px;
}

.tax-member-profile__position {
  color: #2A66AF;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
}

.tax-member-profile__name {
  margin-top: 10px;
  color: #1D1D1D;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .1em;
}

.tax-member-profile__english {
  margin-top: 6px;
  color: #68B1DA;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.tax-member-profile__qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tax-member-profile__qualifications li {
  padding: 7px 12px;
  color: #2A66AF;
  background: #EFF8FB;
  border: 1px solid #B9DCEB;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}

.tax-member-section {
  padding-top: 80px;
}

.tax-member-profile__information .tax-member-section {
  padding-top: 56px;
}

.tax-member-profile__information .tax-member-section__title-wrap {
  margin-bottom: 24px;
}

.tax-member-profile__information .tax-member-section__title {
  font-size: 1.375rem;
}

.tax-member-section__title-wrap {
  margin-bottom: 32px;
}

.tax-member-section__en {
  color: #68B1DA;
  font-size: .875rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tax-member-section__title {
  margin-top: 5px;
  padding-bottom: 12px;
  color: #2A66AF;
  border-bottom: 1px solid #C8DFEA;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  position: relative;
}

.tax-member-section__title::after {
  content: '';
  width: 64px;
  height: 3px;
  background: #2A66AF;
  position: absolute;
  bottom: -1px;
  left: 0;
}

.tax-member-career-list {
  border-top: 1px solid #D8E5ED;
}

.tax-member-career-list__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid #D8E5ED;
  font-size: .9375rem;
  line-height: 1.75;
}

.tax-member-career-list__row dt {
  color: #2A66AF;
  font-weight: 700;
}

.tax-member-career-list__row dd {
  font-weight: 500;
}

.tax-member-works {
  display: grid;
  gap: 16px;
}

.tax-member-work {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 24px 50px 24px 20px;
  color: #1D1D1D;
  background: #fff;
  border: 1px solid #D6E4F0;
  box-shadow: 0 6px 18px rgba(42, 102, 175, .06);
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

a.tax-member-work:hover {
  color: #1D1D1D;
  border-color: #68B1DA;
  box-shadow: 0 10px 24px rgba(42, 102, 175, .13);
  transform: translateY(-2px);
}

a.tax-member-work:active {
  transform: translateY(0);
}

.tax-member-work__label,
.tax-member-media-list a > span {
  width: fit-content;
  padding: 4px 9px;
  color: #fff;
  background: #2A66AF;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.4;
}

.tax-member-work__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

.tax-member-work__description {
  color: #526272;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.65;
}

.tax-member-work__external {
  color: #2A66AF;
  font-size: 1.25rem;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.tax-member-media-list {
  margin-top: 16px;
}

.tax-member-media-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: #1D1D1D;
  background: #EFF8FB;
  border: 1px solid #C8DFEA;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

.tax-member-media-list a:hover {
  color: #2A66AF;
  background: #fff;
  transform: translateY(-2px);
}

.tax-member-media-list strong {
  font-size: .875rem;
  line-height: 1.6;
}

.tax-member-media-list i {
  color: #2A66AF;
  font-size: 1.125rem;
  font-style: normal;
}

.tax-member-message {
  display: grid;
  gap: 32px;
  padding: 48px 24px;
  margin-top: 80px;
  background: rgba(223, 245, 249, .55);
  position: relative;
}

.tax-member-message::before {
  content: '';
  width: 36px;
  height: 36px;
  border-top: 3px solid #68B1DA;
  border-left: 3px solid #68B1DA;
  position: absolute;
  top: 12px;
  left: 12px;
}

.tax-member-message__headline {
  margin-bottom: 28px;
  color: #2A66AF;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .05em;
}

.tax-member-message__content {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 2;
}

.tax-member-message__content p + p {
  margin-top: 1.5em;
}

.tax-member-message__photo {
  align-self: start;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(104, 177, 218, .2);
}

.tax-member-message__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 600px) {
  .tax-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-member-page-links {
    flex-direction: row;
  }

  .tax-member-archive .tax-member-page-links {
    justify-content: center;
  }

  .tax-member-primary-button,
  .tax-member-outline-button {
    width: calc(50% - 8px);
  }

  .greeting-member-section .tax-member-page-links .tax-member-primary-button {
    width: 100%;
  }

  .tax-member-profile__identity {
    padding: 36px 32px;
  }

  .tax-member-profile__name {
    font-size: 2.25rem;
  }

  .tax-member-career-list__row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 28px;
    padding: 20px 16px;
  }

}

@media (min-width: 768px) {
  .tax-member-archive .other_conteiner::before {
    width: calc(100% - ((100% - 1160px) / 2));
  }

  .tax-member-heading {
    margin-bottom: 64px;
  }

  .tax-member-grid {
    gap: 32px 24px;
  }

  .greeting-member-section {
    padding-top: 112px;
    margin-top: 128px;
  }

  .greeting-member-section .tax-member-grid--greeting {
    max-width: 760px;
  }

  .greeting-member-section .tax-member-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 368px;
  }

  .tax-member-section {
    padding-top: 112px;
  }

  .tax-member-section__title-wrap {
    margin-bottom: 40px;
  }

  .tax-member-section__title {
    font-size: 1.75rem;
  }

  .tax-member-profile__overview {
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .tax-member-profile__visual {
    position: sticky;
    top: 150px;
  }

  .tax-member-profile__information .tax-member-section {
    padding-top: 56px;
  }

  .tax-member-profile__information .tax-member-section__title-wrap {
    margin-bottom: 24px;
  }

  .tax-member-profile__information .tax-member-section__title {
    font-size: 1.5rem;
  }

  .tax-member-profile__information .tax-member-career-list__row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 20px;
    padding: 17px 12px;
  }

  .tax-member-profile__information .tax-member-works {
    grid-template-columns: minmax(0, 1fr);
  }

  .tax-member-message {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    padding: 64px 56px;
    margin-top: 112px;
  }

  .tax-member-message:not(:has(.tax-member-message__photo)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .tax-member-message__headline {
    font-size: 1.625rem;
  }
}

@media (min-width: 1100px) {
  .tax-member-archive .tax-member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tax-member-card__body {
    padding: 24px 18px 20px;
  }

  .tax-member-card__name {
    font-size: 1.5rem;
  }
}

@media (min-width: 1160px) {
  .tax-member-archive .other_content {
    padding-right: 100px;
    padding-left: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tax-member-card__link,
  .tax-member-card__photo img,
  .tax-member-card__button::after,
  .tax-member-primary-button,
  .tax-member-outline-button,
  .tax-member-primary-button::after,
  .tax-member-outline-button::after,
  .tax-member-work,
  .tax-member-media-list a {
    transition-duration: .01ms;
  }
}
