/* ============================================
 * Voice Archive Page
 * ============================================ */
body#body:not(.home).post-type-archive-voice #main_content,
body#body:not(.home).tax-voice_category #main_content {
  background-color: #f3f3f3 !important;
}
body#body:not(.home) #archive_voice {
  width: 772px;
}

@media only screen and (max-width: 850px) {
  body#body:not(.home).single-voice #article {
    width: auto;
  }
  body#body:not(.home) #archive_voice {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.p-archive-member__inner {
  max-width: 772px;
}

/* Category Navigation
 * ---------------------------------------- */
.p-archive-category__list {
  display: flex;
  list-style: none;
  border: 1px solid #d5d5d5;
  background-color: white;
  flex-wrap: wrap;
}

@media screen and (max-width: 600px) {
  .p-archive-category__list {
    background-color: #d5d5d5;
    gap: 1px;
  }
}

.p-archive-category__item {
  flex: 1;
  border-right: 1px solid #d5d5d5;
}

@media screen and (max-width: 600px) {
  .p-archive-category__item {
    flex: 1 0 30%;
    border-right: none;
    background-color: white;
  }
}

.p-archive-category__item:last-child {
  border-right: none;
}

.p-archive-category__link {
  display: block;
  text-align: center;
  padding: 24px 10px;
  font-size: 16px;
  color: black;
  text-decoration: none;
}
@media screen and (max-width: 600px) {
  .p-archive-category__link {
    padding: 16px 10px;
  }
}

.p-archive-category__link.-active {
  background: black;
  color: white;
}

/* Card Grid
 * ---------------------------------------- */
.p-archive-body__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 50px;
  column-gap: 30px;
  row-gap: 40px;
}

@media screen and (max-width: 600px) {
  .p-archive-body__list {
    column-gap: 15px;
    row-gap: 20px;
  }
}

/* Voice Card
 * ---------------------------------------- */
.p-voice-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.p-voice-card__thumbnail {
  position: relative;
  aspect-ratio: 170/180;
  border: 1px solid #d5d5d5;
  overflow: hidden;
}

.p-voice-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.2s;
}
.p-voice-card:hover .p-voice-card__img {
  scale: 1.05;
}
.p-voice-card__category {
  position: absolute;
  top: 8px;
  left: 8px;
  background: black;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 0 8px;
  line-height: calc(24 / 12);
}

.p-voice-card__position {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.p-voice-card__name {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
}

.p-voice-card__organization {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
}

/* Archive Pagination
 * ---------------------------------------- */
.p-archive-member__pagination {
  text-align: center;
  padding: 70px 10px;
}

.p-archive-member__pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  font-size: 16px;
  text-decoration: none;
  color: black;
}

.p-archive-member__pagination .page-numbers.current {
  font-weight: bold;
}

/* ============================================
 * Member Detail Page
 * ============================================ */

body#body:not(.home).single-voice #main_content {
  background-color: #f3f3f3 !important;
}
body#body:not(.home).single-voice #article {
  width: 772px;
}

@media only screen and (max-width: 850px) {
  body#body:not(.home).single-voice #article {
    width: auto;
  }
}

/* Layout
 * ---------------------------------------- */
.p-member-layout__inner {
  max-width: 772px;
  margin: 0 auto;
  background-color: white;
}

.p-member-layout__box {
  padding: 70px 100px 85px;
}
@media (max-width: 850px) {
  .p-member-layout__box {
    padding: 70px 30px 85px;
  }
}
@media (max-width: 600px) {
  .p-member-layout__box {
    padding: 35px 20px 42px;
  }
}

/* Head
 * ---------------------------------------- */
.p-member-head__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.p-member-head__category {
  display: inline-block;
  background: black;
  color: white;
  font-size: 20px;
  line-height: calc(41 / 20);
  font-weight: bold;
  min-width: 100px;
  border-radius: 4px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .p-member-head__category {
    min-width: 80px;
    font-size: 18px;
  }
}

.p-member-head__organization {
  font-weight: bold;
  margin-top: 24px;
  font-size: 24px;
  line-height: calc(41 / 24);
}

.p-member-head__position {
  margin-top: 12px;
  line-height: calc(41 / 20);
}

@media screen and (max-width: 640px) {
  .p-member-head__position {
    margin-top: 5px;
  }
}

.p-member-head__name {
  font-weight: bold;
  font-size: 46px;
  line-height: calc(69 / 46);
}

.p-member-head__roman {
  color: #d5d5d5;
  font-weight: 600;
  font-size: 16px;
}

.p-member-head__thumbnail .-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .p-member-head__layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .p-member-head__head {
    order: -1;
  }

  .p-member-head__organization {
    margin-top: 12px;
    font-size: 18px;
  }

  .p-member-head__name {
    font-size: 28px;
  }
  .p-member-head__thumbnail .-img {
    max-height: 700px;
  }
}

/* Summary
 * ---------------------------------------- */
.p-member-summary {
  padding-top: 50px;
}

.p-member-summary__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense;
  margin: 0;
  column-gap: 35px;
}

.p-member-summary__head:nth-of-type(odd),
.p-member-summary__body:nth-of-type(odd) {
  grid-column: 1;
}

.p-member-summary__head:nth-of-type(even),
.p-member-summary__body:nth-of-type(even) {
  grid-column: 2;
}

.p-member-summary__body {
  border-bottom: 1px solid #d5d5d5;
  padding-bottom: 15px;
}

.p-member-summary__head {
  padding-top: 20px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  padding-left: 5px;
  padding-right: 5px;
}

.p-member-summary__head::before {
  content: "■";
  margin-right: 4px;
  font-size: 0.75em;
  vertical-align: 1px;
}

.p-member-summary__body {
  margin-top: 5px;
  line-height: 1.5;
  font-size: 15px;
  padding-left: 5px;
  padding-right: 5px;
}

.p-member-summary__body a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 600px) {
  .p-member-summary {
    padding-top: 25px;
  }

  .p-member-summary__list {
    grid-template-columns: 1fr;
  }

  .p-member-summary__head:nth-of-type(odd),
  .p-member-summary__body:nth-of-type(odd),
  .p-member-summary__head:nth-of-type(even),
  .p-member-summary__body:nth-of-type(even) {
    grid-column: 1;
  }

  .p-member-summary__head {
    padding-top: 10px;
  }
}

/* Questionnaire
 * ---------------------------------------- */
.p-member-questionnaire {
  padding-top: 50px;
}

.p-member-questionnaire__head {
  background: #333333;
  border: 1px solid black;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 0.75em 2em;
  border-top-left-radius: 4px;
  line-height: calc(24 / 13);
  border-top-right-radius: 4px;
}

.p-member-questionnaire__body {
  border: 1px solid black;
  font-size: 15px;
  padding: 0.75em 2em;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  line-height: calc(24 / 15);
}

.p-member-questionnaire__body + .p-member-questionnaire__head {
  margin-top: 25px;
}

@media (max-width: 600px) {
  .p-member-questionnaire {
    padding-top: 25px;
  }

  .p-member-questionnaire__head {
    padding: 0.75em 1em;
  }

  .p-member-questionnaire__body {
    padding: 0.75em 1em;
  }

  .p-member-questionnaire__body + .p-member-questionnaire__head {
    margin-top: 12px;
  }
}

/* SNS
 * ---------------------------------------- */
.p-member-sns {
  padding-top: 25px;
  text-align: center;
}

.p-member-sns__heading {
  font-size: 12px;
  font-weight: bold;
}

.p-member-sns__list {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.p-member-sns__icon {
  display: block;
}

@media (max-width: 600px) {
  .p-member-sns {
    padding-top: 20px;
  }
}

/* Lead
 * ---------------------------------------- */
.p-member-layout__lead {
  background: black;
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  padding: 40px 20px;
  display: block;
}

.p-member-layout__lead:hover {
  color: white;
}

@media (max-width: 600px) {
  .p-member-layout__lead {
    font-size: 20px;
    padding: 20px 10px;
  }
}

/* Back
 * ---------------------------------------- */
.p-member-layout__back {
  text-align: center;
  padding: 50px 20px;
}

.p-member-layout__back .-link {
  font-size: 16px;
  line-height: calc(27 / 16);
}

@media (max-width: 600px) {
  .p-member-layout__back {
    padding: 25px 10px;
  }
}
