/* NoPhoto wideカード対応 */
.staff-card--wide:not(:has(.photo)) {
  grid-template-columns: 1fr;
}
.staff-card--wide:not(:has(.photo)) .content {
  width: 100%;
}
/* staffcard.css — JSON動的生成カード専用スタイル（staff.html用） */

/* ========================================
   A. 横長プロフィールカード（wide）
   院長・常勤医師・事務長等
   ======================================== */
.staff-card--wide {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 2rem;
  padding: 32px 40px 28px 40px;
  background: #F5E0C4;
  box-sizing: border-box;
}

.staff-card--wide .photo {
  width: 200px;
  height: 250px;
  object-fit: cover;
  background: #F0F0F0;
  align-self: start;
}

.staff-card--wide .content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.staff-card--wide .header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.staff-card--wide .badge {
  border: 1px solid #F2A13A;
  padding: 10px 18px;
  font-size: 18px;
  line-height: 1;
  color: #222;
  white-space: nowrap;
  background: transparent;
  flex-shrink: 0;
}

.staff-card--wide .name-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.staff-card--wide .name-ja {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}

.staff-card--wide .name-en {
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
  color: #5E5E5E;
}

.staff-card--wide .meta-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 12px;
}

.staff-card--wide .message-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 12px;
}

.staff-card--wide .label {
  min-width: 100px;
  width: 100px;
  font-size: 16px;
  line-height: 1.8;
  color: #F2A13A;
  white-space: nowrap;
  flex-shrink: 0;
}

.staff-card--wide .text {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  text-align: left;
}

/* ========================================
   B. シンプルカード（simple）
   非常勤医師・看護師・技術者・アシスタント・事務
   ======================================== */
.staff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

.staff-card--simple {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.staff-card--simple .name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.staff-card--simple .name-ja {
  text-align: left;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}

.staff-card--simple .name-en {
  text-align: left;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  color: #666666;
}

.staff-card--simple .title-line {
  text-align: left;
  font-size: 14px;
  color: #F2A13A;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.staff-card--simple .divider {
  width: 100%;
  height: 1px;
  background: #F2A13A;
  margin-bottom: 10px;
}

.staff-card--simple .row {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-align: left;
  margin-top: 8px;
}

.staff-card--simple .label {
  display: inline;
  min-width: 100px;
  width: 100px;
  color: #F2A13A;
  font-size: 15px;
  line-height: 1.7;
  white-space: nowrap;
  flex-shrink: 0;
}

.staff-card--simple .text {
  display: block;
  color: #222222;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

/* 常勤医師用 wide カードは1列表示 */
.staff-list--wide {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 980px) {
  /* wide カード: 1カラム化 */
  .staff-card--wide {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 12px;
  }
  .staff-card--wide .photo {
    width: 140px;
    height: 175px;
    margin: 0 auto;
  }
  .staff-card--wide .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
  .staff-card--wide .name-line {
    gap: 8px;
  }
  .staff-card--wide .name-ja {
    font-size: 1.6rem;
  }
  .staff-card--wide .name-en {
    font-size: 1.1rem;
  }
  .staff-card--wide .badge {
    font-size: 14px;
    padding: 6px 12px;
  }
  .staff-card--wide .meta-row,
  .staff-card--wide .message-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2px;
    margin-top: 8px;
  }
  .staff-card--wide .label {
    font-size: 14px;
  }
  .staff-card--wide .text {
    font-size: 14px;
  }

  /* simple カード: 1列化 */
  .staff-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .staff-card--simple {
    max-width: 100%;
  }
}
