:root {
  --bg: #f7fbff;
  --ink: #0f172a;
  --muted: #5b6470;
  --brand: #4da3ff;
  --brand-weak: #e8f4ff;
  --card: #ffffff;
  --ring: #a7d6ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), #fff 30%, #fff);
  line-height: 1.6;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 48px 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand), #7bc8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 22px;
}
.toolbar input[type="search"] {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d9e7f6;
  padding: 0 12px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.staff-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.staff-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid #eef3f8;
  transition: 0.25s ease;
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.avatar {
  flex: 0 0 auto;
}
.avatar img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid var(--brand-weak);
}
.content {
  min-width: 0;
}
.name {
  margin: 0.1rem 0 0;
  font-size: 20px;
}
.role {
  margin: 0.15rem 0 0.5rem;
  color: var(--muted);
  font-size: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 12px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-weak);
  color: #2563eb;
  border: 1px solid #dbeafe;
}
.bio {
  margin: 0.2rem 0 0.6rem;
  font-size: 14px;
  color: #334155;
}
.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 0 0 0.8rem;
}
.meta dt {
  color: var(--muted);
  font-size: 12px;
}
.meta dd {
  margin: 0;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn.primary:focus-visible,
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn.ghost {
  background: #fff;
  color: #1e40af;
  border-color: #cfe6ff;
}
.btn.ghost:hover {
  background: var(--brand-weak);
}
.staff-card:focus-within {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .staff-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .avatar img {
    width: 120px;
    height: 120px;
  }
  .actions {
    width: 100%;
  }
  .btn {
    flex: 1;
  }
}
.footer-links {
  text-align: center;
}
/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 44px;
  height: 32px;
  color: #333;
  cursor: pointer;
  z-index: 1600; /* ナビより上（クリック可能に） */
  -webkit-tap-highlight-color: transparent;
}
.hamburger * {
  pointer-events: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background-color 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: calc(50% - 1.5px);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.6);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .hamburger span {
    transition: none;
  }
}

/* オフキャンバスNav：transformで完全に隠す */
#nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 80px 20px 24px;
  transform: translateX(100%); /* ←初期状態は完全に画面外 */
  transition: transform 0.3s ease-in-out;
  z-index: 1500; /* ロゴより上、ハンバーガーより下 */
  pointer-events: none; /* 閉じてる間はクリック不可 */
}
#nav.active {
  transform: translateX(0);
  pointer-events: auto;
}
#nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  background: transparent;
  transition: color 0.6s ease, background 0.6s ease;
}
#nav a:hover,
#nav a:focus-visible {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  outline: none;
}
#nav a:active {
  background: rgba(14, 165, 233, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  #nav,
  #nav a {
    transition: none;
  }
}

/* 背景用オーバーレイ：ナビ展開時だけ表示（クリックで閉じられる） */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400; /* ナビの下、ページの上 */
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ここから追加 */

/* ===== Staff Card を大きくする上書き ===== */
.wrap {
  max-width: 1200px; /* 余白にゆとり */
}

.staff-grid {
  gap: 24px;
  /* 幅を拡大：列数を減らして1枚をワイドに */
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.staff-card {
  gap: 20px;
  padding: 24px; /* 余白アップ */
}

.avatar img {
  width: 140px;
  height: 140px; /* サムネ拡大 */
  border-width: 4px;
}

.name {
  font-size: 22px;
}
.role {
  font-size: 15px;
}
.tags li {
  font-size: 13px;
  padding: 0.35rem 0.7rem;
}
.bio {
  font-size: 15px;
}
.meta dt {
  font-size: 13px;
}
.meta dd {
  font-size: 15px;
}

/* ボタンも少し大きく */
.btn {
  --h: 44px;
  font-size: 15px;
  padding: 0 16px;
}

/* さらに大きくしたい場合（任意でON） */
@media (min-width: 1200px) {
  .staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
  .avatar img {
    width: 156px;
    height: 156px;
  }
  .name {
    font-size: 24px;
  }
}

/* モバイルでも“やや大きめ”に */
@media (max-width: 767px) {
  .staff-card {
    padding: 22px;
  }
  .avatar img {
    width: 136px;
    height: 136px;
  }
}
/* ===== Staff Card を3枚横並びに固定 ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 常に3列 */
  gap: 24px; /* カードの隙間 */
  width: 100%;
}

.staff-card {
  padding: 24px;
}

.avatar img {
  width: 140px;
  height: 140px;
}
.name {
  font-size: 22px;
}
.role {
  font-size: 15px;
}
.bio {
  font-size: 15px;
}
@media (max-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットは2列 */
  }
}

@media (max-width: 600px) {
  .staff-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
}
/* ===== Staff Card の画像を大きく ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 常に3列 */
  gap: 28px;
  width: 100%;
}

.staff-card {
  padding: 28px;
  gap: 20px;
}

/* 写真サイズを拡大 */
.avatar img {
  width: 180px; /* ← ここを好きな大きさに調整 */
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--brand-weak);
}

/* テキストも少し調整 */
.name {
  font-size: 24px;
}
.role {
  font-size: 16px;
}
.bio {
  font-size: 15px;
}
/* ===== スタイリスト写真を縦長にする ===== */
.avatar img {
  width: 100%; /* カード幅いっぱい */
  max-width: 260px; /* 写真の最大幅（必要に応じて調整） */
  height: 340px; /* 縦長に見せる */
  object-fit: cover; /* 切り抜きでバランス調整 */
  border-radius: 12px; /* ← 丸をやめて角丸だけ（四角なら 0 に） */
  border: 3px solid var(--brand-weak);
  display: block;
  margin: 0 auto; /* 中央寄せ */
}

/* カード内のレイアウトを縦配置に */
.staff-card {
  flex-direction: column; /* 写真→テキストの縦並び */
  align-items: center;
  text-align: center;
}
