/* 会社案内ページ */
.company-page > .section--staff {
  padding-top: 2.5rem;
}
.company-page .section--services .section-heading {
  margin-bottom: 1.875rem;
}
.company-page .consult-list,
.company-page .staff-list {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--text-content-max-width);
  margin-inline: auto;
  gap: 22px;
}
.company-page .consult-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.company-page .consult-card::before {
  content: "";
  order: 2;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 1px solid var(--consult-icon-border);
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
}
.company-page .consult-card--detached-house::before {
  background-image: url("../images/icons/detached-house.svg");
}
.company-page .consult-card--apartment-building::before {
  background-image: url("../images/icons/apartment-building.svg");
}
.company-page .consult-card--contract-document::before {
  background-image: url("../images/icons/contract-document.svg");
}
.company-page .consult-card--consultation::before {
  background-image: url("../images/icons/consultation.svg");
}
.company-page .consult-card__title {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  order: 1;
  margin: 0;
  color: var(--primary-dark);
  font-size: var(--font-size-lg);
  line-height: 1.5;
  text-align: center;
}
.company-page .consult-card__title > .text-nowrap {
  flex-basis: 100%;
}
.company-page .consult-card__description {
  order: 3;
  margin: 0;
  color: var(--ink);
  font-size: var(--font-size-base);
  line-height: 1.8;
}
.company-page .consult-caption {
  max-width: 45rem;
  margin: 1.875rem auto 0;
  text-align: center;
}
.company-page .consult-caption__text {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-size-base);
}
.company-page .consult-caption__action {
  margin-top: 1rem;
}
.company-page .consult-caption__note {
  margin-top: 0.5rem;
}
.company-page .staff-panel {
  overflow: hidden;
  max-width: var(--text-content-max-width);
  margin-inline: auto;
  padding: 24px 20px 28px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.company-page .staff-panel__profile {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 18px;
}
.company-page .staff-panel__photo {
  position: relative;
  width: 140px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--primary-dark);
}
.company-page .staff-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-page .staff-panel__photo--brand {
  display: grid;
  place-items: center;
  background-color: var(--brand-placeholder-bg);
  background-image: url("../images/staff-brand-wood-background.webp");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(20, 90, 69, 0.12);
}
.company-page .staff-panel__photo--brand .staff-panel__image {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(25, 45, 37, 0.22));
}
.company-page .staff-panel__identity {
  min-width: 0;
  text-align: center;
}
.company-page .staff-panel__name-reading {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.company-page .staff-panel__name {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-display-sm);
  font-weight: 500;
  letter-spacing: 0.09em;
}
.company-page .staff-panel__role {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 800;
  line-height: 1.7;
}
.company-page .staff-panel__content {
  min-width: 0;
  margin-top: 24px;
}
.company-page .staff-panel__content-title {
  margin: 0 0 1.125rem;
  padding: 0.875rem 0;
  color: var(--primary-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.65;
}
.company-page .staff-panel__description {
  color: var(--ink);
  font-size: var(--font-size-base);
  line-height: 1.9;
}
.company-page .staff-panel__description-group p {
  margin: 0;
}
.company-page .staff-panel__description-group p + p {
  margin-top: 0.5rem;
}
.company-page
  .staff-panel__description-group
  + .staff-panel__description-group {
  margin-top: 1.5rem;
}
.company-page .staff-list {
  margin-top: 24px;
  gap: 24px;
}
.company-page .staff-list .staff-panel {
  /* .staff-panel の margin-inline: auto はグリッドアイテムでは stretch を無効化し
     コンテンツ幅に縮んでしまうため、grid内ではwidthを明示してセル幅いっぱいに揃える
     （netlify-preview/style.cssの.staff-list .staff-panelに合わせた実装） */
  width: 100%;
}
.company-page .section--staff .prototype-note {
  text-align: center;
}
.company-page .company-info,
.company-page .access-info {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--text-content-max-width);
  margin-inline: auto;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.company-page .company-info__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--media-placeholder);
}
.company-page .company-info__photo-note {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  padding: 5px 9px;
  color: color-mix(in srgb, var(--on-color) 90%, transparent);
  background: color-mix(in srgb, var(--primary-dark) 56%, transparent);
  border-radius: 2px;
  font-size: var(--font-size-caption);
  letter-spacing: 0.08em;
}
.company-page .company-info__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-page .company-info__details,
.company-page .access-info__details {
  margin: 0;
}
.company-page .company-info__details,
.company-page .access-info__location {
  padding: 20px 18px;
}
.company-page .access-info__location {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.company-page .access-info--without-map {
  grid-template-columns: 1fr;
}
.company-page .company-info__row,
.company-page .access-info__row {
  display: grid;
  grid-template-columns: 4.625rem minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, var(--surface));
}
.company-page .company-info__row:first-child,
.company-page .access-info__row:first-child {
  padding-top: 0;
}
.company-page .company-info__row:last-child,
.company-page .access-info__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.company-page .company-info__term,
.company-page .access-info__term {
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 800;
}
.company-page .company-info__value,
.company-page .access-info__value {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.7;
}
.company-page .access-info__value address {
  font-style: normal;
}
.company-page .access-info__address-reading {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-size-caption);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .company-page .consult-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .company-page .consult-card {
    padding: 30px 24px;
  }
  .company-page .consult-card::before {
    width: 52px;
    height: 52px;
    background-size: 32px 32px;
  }
  .company-page .staff-panel {
    padding: 42px 54px 48px;
  }
  .company-page .staff-panel__profile {
    grid-template-columns: 180px minmax(0, 1fr);
    justify-items: stretch;
    gap: 32px;
  }
  .company-page .staff-panel__photo {
    width: 100%;
  }
  .company-page .staff-panel__identity {
    text-align: left;
  }
  .company-page .staff-panel__content {
    margin-top: 32px;
  }
  .company-page .staff-list {
    margin-top: 32px;
  }
  .company-page .company-info {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .company-page .company-info__photo {
    aspect-ratio: auto;
  }
  .company-page .company-info__details,
  .company-page .access-info__location {
    padding: 28px 30px;
  }
  .company-page .access-info {
    grid-template-areas: "map details";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-page .access-info.access-info--without-map {
    grid-template-areas: "details";
    grid-template-columns: 1fr;
  }
  .company-page .access-info__location {
    grid-area: details;
  }
  .company-page .access-info .map-embed {
    grid-area: map;
    aspect-ratio: auto;
  }
  .company-page .company-info__row,
  .company-page .access-info__row {
    grid-template-columns: 5.125rem minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .company-page .staff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
