/* staff.css */
/* 画面内スクロールをスムーズに（固定ヘッダー対策でアンカー位置を少し余裕に） */
html { scroll-behavior: smooth; }
.staff-group, #director, #staff-menu { scroll-margin-top: 120px; }

/* ベース */
.staff-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  box-sizing: border-box;
}

/* staff-mainのmax-widthがfooterに影響しないようbody > .default-page > #footer-includeの幅を100%に */
body.default-page > #footer-include {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* ヒーロー */
.staff-hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}
.staff-hero .en {
  color: #ef7a00;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 0 .25rem;
}
.staff-hero h1 {
  margin: 0 0 .75rem;
  font-size: 1.9rem;
  font-weight: 700;
}
.staff-hero .lead {
  line-height: 1.9;
}

/* 見出し（各セクション） */
.staff-group h2 {
  text-align: center;
  margin: 3rem 0 1.25rem;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: .4rem;
}
.staff-group h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 3px;
  background: #ff9900;
}
.staff-group h2 .en {
  display: block;
  color: #ef7a00;
  font-size: .9rem;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

/* 院長カード */
.director-section {
  margin-top: 1rem;
}
.director-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem 2rem;
  background: #fffdf8;
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
.director-card .director-photo {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.director-card .director-info {
  flex: 1 1 0%;
  text-align: left;
  font-size: 1.18rem;
}
.director-card .title {
  display: inline-block;
  font-weight: 700;
  color: #d87000;
  margin-right: .5rem;
}
.director-card h3 {
  margin: .25rem 0 0;
  font-size: 1.6rem;
  text-align: left;
}
.director-card .en-name {
  color: #777;
  font-size: .9rem;
  margin-left: .4rem;
}
.director-card .meta {
  margin-top: .5rem;
  color: #555;
  line-height: 1.8;
}
.director-card .message {
  margin-top: .75rem;
  line-height: 1.9;
}

/* ジャンプメニュー */
.staff-jump {
  text-align: center;
  margin: 2rem 0 0.5rem;
}
.staff-jump .note { margin-bottom: .75rem; }
.jump-buttons {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.jump-buttons .btn {
  display: inline-block;
  padding: .55rem 1.4rem;
  border-radius: 0;
  color: #fff; text-decoration: none; font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
  border: none;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  box-shadow: none;
}
.jump-buttons .btn:hover { transform: translateY(-2px); opacity: .9; }

/* カテゴリ色（元サイトを意識したオレンジ系＋視認性補色） */
.cat-doctor    { background: #ef7a00; } /* オレンジ */
.cat-nurse     { background: #2a9d8f; } /* 緑青 */
.cat-technician{ background: #3f51b5; } /* 藍 */
.cat-assistant { background: #e76f51; } /* 朱 */
.cat-clerk     { background: #6d6875; } /* グレイッシュ紫 */

/* カードの一覧（グリッド） */
.staff-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 980px) {
  .staff-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .staff-list { grid-template-columns: 1fr; }
}

/* スタッフカード */
.staff-card {
  border: 1px solid #eee;
  border-left: 4px solid #ef7a00;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  text-align: left;
}
.staff-card .role {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: #ef7a00; /* デフォ：医師色。JSでカテゴリ毎に上書き */
  margin-bottom: .35rem;
}
.staff-card h3 {
  margin: .35rem 0 .2rem;
  font-size: 1.05rem;
}
.staff-card .en-name {
  color: #777; font-size: .85rem; margin-left: .4rem;
}
.staff-card .kv {
  margin: .4rem 0; color: #444; line-height: 1.7;
}
.staff-card .message {
  margin-top: .35rem; color: #333; line-height: 1.8;
}

/* 「メニューに戻る」 */
.back-menu {
  text-align: right;
  margin: .75rem 0 2.5rem;
}
.back-menu a { color: #555; text-decoration: none; }
.back-menu a:hover { text-decoration: underline; }

/* アクセシビリティ：視覚的に隠すがスクリーンリーダーには読ませる */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
