/* ============================================================
   depts.css — 部署・職種紹介ページ専用スタイル
   ============================================================ */

/* ── Hero ── */
.dp-hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px) clamp(52px, 7vw, 96px);
  overflow: hidden;
}
.dp-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface-2) 60%, var(--bg) 100%);
  z-index: 0;
}
.dp-hero-inner {
  position: relative; z-index: 1;
}
.dp-hero-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.dp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
.dp-hero-lead {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 32px;
}
.dp-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.dp-chip {
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.dp-chip:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Dept section layout ── */
.dp-dept {
  padding-block: var(--pad-section);
  border-bottom: 1px solid var(--line);
}
.dp-dept:nth-child(even) {
  background: var(--surface-2);
}
.dp-dept-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.dp-dept-flip .dp-dept-inner {
  direction: rtl;
}
.dp-dept-flip .dp-dept-inner > * {
  direction: ltr;
}

/* ── Photo side ── */
.dp-media {
  position: relative;
}
.dp-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-3);
}
.dp-photo image-slot {
  width: 100%; height: 100%;
  display: block;
}
.dp-count-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 90px;
}
.dp-count-num {
  display: block;
  font-size: 18px; font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.dp-count-label {
  display: block;
  font-size: 13px; font-weight: 500;
  opacity: 0.88;
}

/* ── Body side ── */
.dp-body {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 8px;
}
.dp-titlebar { display: flex; flex-direction: column; gap: 6px; }
.dp-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.dp-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.dp-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}

/* ── Instagram link ── */
.dp-insta-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px; font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  width: fit-content;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.dp-insta-link:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: #fff0f5;
}
.dp-insta-icon {
  width: 22px; height: 22px; flex-shrink: 0;
}

/* ── Manager comment card ── */
.dp-comment {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
}
.dp-comment-avatar {
  width: 88px; height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-3);
  border: 2px solid var(--primary-soft);
}
.dp-comment-avatar image-slot {
  width: 100%; height: 100%;
  display: block;
}
.dp-comment-body {
  display: flex; flex-direction: column; gap: 8px;
}
.dp-comment-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
  font-style: normal;
}
.dp-comment-role {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-style: normal;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .dp-dept-inner {
    grid-template-columns: 1fr;
  }
  .dp-dept-flip .dp-dept-inner {
    direction: ltr;
  }
  .dp-count-badge {
    bottom: 12px; right: 12px;
  }
  .dp-comment {
    flex-direction: column; align-items: center; text-align: center;
  }
}
