/* =========================================
   Staff Page - Renewal Complete Version
========================================= */

/* ===== スタッフ紹介セクション ===== */
.staff-section {
  position: relative;
  padding-top: 88px;
  padding-bottom: 96px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.78),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

/* ===== サマリー ===== */
.staff-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto 56px;
  padding: 0 8px 34px;
}

.staff-summary::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(920px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(98, 185, 176, 0) 0%,
    rgba(98, 185, 176, 0.22) 20%,
    rgba(98, 185, 176, 0.22) 80%,
    rgba(98, 185, 176, 0) 100%
  );
}

.staff-summary-card {
  padding: 28px 24px 24px;
  border: 1px solid #dceceb;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
  box-shadow: 0 14px 30px rgba(44, 122, 123, 0.08);
  text-align: center;
}

.staff-summary-num {
  margin: 0 0 10px;
  color: #1f6667;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.staff-summary-num span {
  margin-left: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.staff-summary-label {
  margin: 0 0 10px;
  color: #2d4d4e;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.staff-summary-note {
  margin: 0;
  color: #647674;
  font-size: 0.84rem;
  line-height: 1.9;
}

/* ===== 導入文 ===== */
.staff-intro-text {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
  line-height: 2.15;
  color: #415452;
  font-size: 1rem;
}

/* ===== ノートボックス ===== */
.staff-note-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 34px;
  padding: 28px 30px;
  border: 1px solid #dceceb;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 12px 28px rgba(44, 122, 123, 0.07);
}

.staff-note-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, #7bc8c0 0%, #9ad8d1 100%);
}

.staff-note-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-left: 4px;
  border-radius: 15px;
  background: linear-gradient(135deg, #62b9b0 0%, #89d0c8 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.staff-note-content {
  flex: 1;
}

.staff-note-title {
  margin: 0 0 8px;
  color: #245d5e;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

.staff-note-text {
  margin: 0;
  color: #50625f;
  line-height: 1.9;
}

/* ===== 代表導線 ===== */
.staff-leader-link-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1040px;
  margin: 72px auto 72px;
  padding: 34px 32px;
  border: 1px solid #d7e8e6;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0) 48%
    ),
    linear-gradient(135deg, #eef8f6 0%, #e6f2f0 100%);
  box-shadow: 0 16px 32px rgba(44, 122, 123, 0.08);
}

.staff-leader-link-box::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: -28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(98, 185, 176, 0) 0%,
    rgba(98, 185, 176, 0.2) 20%,
    rgba(98, 185, 176, 0.2) 80%,
    rgba(98, 185, 176, 0) 100%
  );
}

.staff-leader-link-content {
  flex: 1;
}

.staff-leader-link-label {
  margin: 0 0 8px;
  color: #688280;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.staff-leader-link-title {
  margin: 0 0 12px;
  color: #214847;
  font-size: 1.2rem;
  line-height: 1.7;
}

.staff-leader-link-text {
  margin: 0;
  color: #526462;
  line-height: 1.95;
  font-size: 0.95rem;
}

.staff-leader-link-action {
  flex-shrink: 0;
}

.staff-leader-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4aa9a2 0%, #69bdb5 100%);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(74, 169, 162, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.staff-leader-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(74, 169, 162, 0.28);
  opacity: 0.96;
}

/* ===== スタッフレイアウト ===== */
.staff-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 34px;
}

.staff-layout::before {
  content: "";
  display: block;
  width: min(980px, 92%);
  height: 1px;
  margin: 0 auto 6px;
  background: linear-gradient(
    90deg,
    rgba(98, 185, 176, 0) 0%,
    rgba(98, 185, 176, 0.25) 20%,
    rgba(98, 185, 176, 0.25) 80%,
    rgba(98, 185, 176, 0) 100%
  );
}

.staff-row {
  display: grid;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
}

/* 赤枠イメージに近づける */
.staff-row-2 {
  grid-template-columns: repeat(2, 330px);
}

.staff-row-3 {
  grid-template-columns: repeat(3, 330px);
}

/* ===== スタッフカード ===== */
.staff-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 20px;
  border: 1px solid #dceceb;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: 0 16px 36px rgba(44, 122, 123, 0.08);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(44, 122, 123, 0.13);
  border-color: #cfe4e2;
}

.staff-photo {
  position: relative;
  margin-bottom: 14px;
}

.staff-photo img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 24px;
  background: #f5efe6;
  box-shadow: 0 12px 24px rgba(34, 94, 95, 0.12);
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo img {
  transform: scale(1.03);
}

.staff-license-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #cfe3cf;
  border-radius: 999px;
  background: linear-gradient(135deg, #edf8ec 0%, #e4f2e2 100%);
  color: #3d7a43;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 18px rgba(61, 122, 67, 0.12);
}

.staff-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.staff-role-badge {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f6f4 0%, #dff2ef 100%);
  color: #2c7a7b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.staff-name {
  margin: 0 0 14px;
  color: #203a39;
  line-height: 1.2;
  font-size: 1.22rem;
  font-weight: 700;
}

.staff-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef5f3 0%, #e5efed 100%);
  color: #3b5856;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 8px 18px rgba(44, 122, 123, 0.08);
}

.staff-toggle::before {
  content: "＋";
  font-size: 1rem;
  line-height: 1;
}

.staff-toggle[aria-expanded="true"]::before {
  content: "−";
}

.staff-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44, 122, 123, 0.12);
}

/* ここを締める */
.staff-comment-slot {
  margin-top: 12px;
  min-height: 118px;
  display: flex;
  align-items: flex-start;
}

.staff-comment-wrap {
  width: 100%;
  padding: 14px 14px 13px;
  border: 1px solid #e5efed;
  border-radius: 18px;
  background: #f9fcfb;
  text-align: left;
  animation: fadeUp 0.24s ease;
}

.staff-comment {
  margin: 0;
  color: #40514f;
  line-height: 1.85;
  font-size: 0.93rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== スタッフの雰囲気 ===== */
.staff-team-section {
  position: relative;
  padding-top: 92px;
  padding-bottom: 96px;
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 255, 255, 0.4),
      transparent 24%
    ),
    linear-gradient(180deg, #eef6f5 0%, #e8f1ef 100%);
  text-align: center;
}

.staff-team-section::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 1040px;
  height: 1px;
  margin: 0 auto 52px;
  background: linear-gradient(
    90deg,
    rgba(98, 185, 176, 0) 0%,
    rgba(98, 185, 176, 0.28) 20%,
    rgba(98, 185, 176, 0.28) 80%,
    rgba(98, 185, 176, 0) 100%
  );
}

.staff-team-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #5d6f6d;
  font-size: 0.88rem;
  font-weight: 500;
}

.staff-team-text {
  max-width: 760px;
  margin: 0 auto 34px;
  line-height: 2.05;
}

.staff-team-photo-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.staff-team-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(44, 122, 123, 0.08);
}

.staff-team-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.staff-team-meta li {
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d8e4e2;
  color: #465856;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(44, 122, 123, 0.05);
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 1160px) {
  .staff-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-row-3 {
    grid-template-columns: repeat(3, minmax(290px, 330px));
  }

  .staff-row-2 {
    grid-template-columns: repeat(2, minmax(290px, 330px));
  }
}

@media screen and (max-width: 1050px) {
  .staff-row-3 {
    grid-template-columns: repeat(2, minmax(290px, 330px));
  }
}

@media screen and (max-width: 767px) {
  .staff-section {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .staff-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
    padding-bottom: 28px;
  }

  .staff-intro-text {
    margin-bottom: 30px;
    text-align: left;
    line-height: 2;
  }

  .staff-note-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .staff-note-box::before {
    width: 100%;
    height: 4px;
    inset: 0 0 auto 0;
    border-radius: 18px 18px 0 0;
  }

  .staff-note-icon {
    margin-left: 0;
  }

  .staff-leader-link-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 18px;
    margin-bottom: 34px;
    border-radius: 20px;
  }

  .staff-leader-link-box::before {
    left: 18px;
    right: 18px;
    top: -16px;
  }

  .staff-leader-link-title {
    font-size: 1.08rem;
  }

  .staff-leader-link-text {
    line-height: 1.9;
  }

  .staff-leader-link-btn {
    min-width: 100%;
  }

  .staff-layout {
    gap: 22px;
    padding-top: 28px;
  }

  .staff-row-3,
  .staff-row-2 {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 100%;
  }

  .staff-card {
    padding: 22px 18px 22px;
    border-radius: 24px;
  }

  .staff-photo img {
    width: 220px;
    height: 220px;
    border-radius: 22px;
  }

  .staff-license-badge {
    right: 2px;
  }

  .staff-comment-slot {
    min-height: 0;
  }

  .staff-team-section {
    padding-top: 76px;
    padding-bottom: 78px;
  }

  .staff-team-section::before {
    margin-bottom: 40px;
  }

  .staff-team-text {
    margin-bottom: 24px;
    text-align: left;
    line-height: 2;
  }

  .staff-team-photo {
    border-radius: 18px;
  }

  .staff-team-meta {
    flex-direction: column;
    align-items: center;
  }

  .staff-team-meta li {
    width: 100%;
    max-width: 320px;
  }
}
