/*
 * 1ページでわかるE-Smile / 働くスタッフの生の声 専用CSS
 * Upload target candidate:
 * /wp-content/themes/esrecruit2024/onepage-staff-voices.css
 */

#staff-voices,
#staff-voices * {
  box-sizing: border-box;
}

#staff-voices {
  --sv-primary: #00afd6;
  --sv-text: #0f263d;
  --sv-text-sub: #4c6176;
  --sv-line: #bacede;
  --sv-bg-base: #f5f8fa;
  --sv-bg-gray: #dde7ef;
  --sv-bg-blue: #aee3f5;
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: var(--sv-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

#staff-voices :where(h2, p, button) {
  margin: 0;
}

#staff-voices button {
  appearance: none;
  font: inherit;
}

#staff-voices .sv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#staff-voices .sv-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

#staff-voices .sv-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

#staff-voices .sv-title {
  color: var(--sv-text);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
}

#staff-voices .sv-title-accent {
  color: var(--sv-primary);
}

#staff-voices .sv-tablist {
  display: flex;
  align-items: flex-start;
  width: 560px;
  max-width: 100%;
  border-bottom: 1px solid var(--sv-line);
}

#staff-voices .sv-tab {
  position: relative;
  flex: 1 1 25%;
  width: 140px;
  min-width: 0;
  padding: 12px 24px;
  border: 0;
  background: transparent;
  color: var(--sv-primary);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

#staff-voices .sv-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: transparent;
  content: "";
}

#staff-voices .sv-tab[aria-selected="true"] {
  color: var(--sv-text);
}

#staff-voices .sv-tab[aria-selected="true"]::after {
  background: var(--sv-primary);
}

#staff-voices .sv-tab:hover:not([aria-selected="true"]) {
  color: var(--sv-text-sub);
}

#staff-voices .sv-tab:focus-visible,
#staff-voices .sv-page-dot:focus-visible {
  outline: 3px solid var(--sv-primary);
  outline-offset: 3px;
}

#staff-voices .sv-panels,
#staff-voices .sv-panel {
  width: 100%;
}

#staff-voices .sv-panel[hidden] {
  display: none !important;
}

#staff-voices .sv-panel {
  animation: sv-panel-in 200ms ease;
}

#staff-voices .sv-lead {
  color: var(--sv-text-sub);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
}

#staff-voices .sv-voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin-top: 60px;
}

#staff-voices .sv-stage {
  position: relative;
  width: min(100%, 775px);
  height: 312px;
  overflow: visible;
  cursor: pointer;
}

#staff-voices .sv-stage:focus-visible {
  outline: 3px solid var(--sv-primary);
  outline-offset: 8px;
}

#staff-voices .sv-bubble {
  --sv-bubble-bg: var(--sv-bg-base);
  --sv-pad-y: 20px;
  --sv-pad-x: 24px;
  --sv-render-size: 18px;
  --sv-tail-bottom: -11px;
  --sv-tail-width: 16px;
  --sv-tail-height: 12px;
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sv-pad-y) var(--sv-pad-x);
  border: 0;
  border-radius: 100px;
  background: var(--sv-bubble-bg);
  filter: drop-shadow(0 2px 5px rgba(15, 38, 61, 0.2));
  color: var(--sv-text-sub);
  font-size: var(--sv-render-size);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 320ms ease, transform 360ms ease;
  will-change: opacity, transform;
}

#staff-voices .sv-bubble[data-anchor="center"] {
  transform: translate(-50%, 10px) scale(0.92);
}

#staff-voices .sv-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#staff-voices .sv-bubble[data-anchor="center"].is-visible {
  transform: translate(-50%, 0) scale(1);
}

#staff-voices .sv-bubble.is-exiting {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.96) !important;
  transition: opacity 180ms ease, transform 180ms ease !important;
}

#staff-voices .sv-bubble[data-anchor="center"].is-exiting {
  transform: translate(-50%, -8px) scale(0.96) !important;
}

#staff-voices .sv-bubble:hover {
  filter: drop-shadow(0 5px 7px rgba(15, 38, 61, 0.2));
}

#staff-voices .sv-bubble::after {
  position: absolute;
  bottom: var(--sv-tail-bottom);
  left: 50%;
  width: var(--sv-tail-width);
  height: var(--sv-tail-height);
  background: var(--sv-bubble-bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}

@supports (-webkit-touch-callout: none) {
  #staff-voices .sv-bubble {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 10px, 0) scale(0.92);
    transform: translate3d(0, 10px, 0) scale(0.92);
  }

  #staff-voices .sv-bubble[data-anchor="center"] {
    -webkit-transform: translate3d(-50%, 10px, 0) scale(0.92);
    transform: translate3d(-50%, 10px, 0) scale(0.92);
  }

  #staff-voices .sv-bubble.is-visible {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
  }

  #staff-voices .sv-bubble[data-anchor="center"].is-visible {
    -webkit-transform: translate3d(-50%, 0, 0) scale(1);
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  #staff-voices .sv-bubble.is-exiting {
    -webkit-transform: translate3d(0, -8px, 0) scale(0.96) !important;
    transform: translate3d(0, -8px, 0) scale(0.96) !important;
  }

  #staff-voices .sv-bubble[data-anchor="center"].is-exiting {
    -webkit-transform: translate3d(-50%, -8px, 0) scale(0.96) !important;
    transform: translate3d(-50%, -8px, 0) scale(0.96) !important;
  }
}

#staff-voices .sv-bubble[data-tone="gray"] {
  --sv-bubble-bg: var(--sv-bg-gray);
}

#staff-voices .sv-bubble[data-tone="blue"] {
  --sv-bubble-bg: var(--sv-bg-blue);
}

#staff-voices .sv-page-nav {
  position: relative;
  width: 50px;
  height: 16px;
}

#staff-voices .sv-page-dot {
  position: absolute;
  top: 50%;
  width: 25px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

#staff-voices .sv-page-dot:first-child {
  left: 0;
}

#staff-voices .sv-page-dot:last-child {
  left: 25px;
}

#staff-voices .sv-page-dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sv-bg-gray);
  content: "";
  transform: translate(-50%, -50%);
  transition: width 200ms ease, height 200ms ease, background 200ms ease;
}

#staff-voices .sv-page-dot.is-active::before {
  width: 16px;
  height: 16px;
  background: var(--sv-primary);
}

#staff-voices .sv-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

#staff-voices .sv-tagline-label {
  color: var(--sv-text-sub);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

#staff-voices .sv-tagline-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--sv-primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

#staff-voices .sv-tagline-copy::before,
#staff-voices .sv-tagline-copy::after {
  position: absolute;
  width: 16px;
  height: 32px;
  content: "";
}

#staff-voices .sv-tagline-copy::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--sv-primary);
  border-left: 1px solid var(--sv-primary);
}

#staff-voices .sv-tagline-copy::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid var(--sv-primary);
  border-bottom: 1px solid var(--sv-primary);
}

#staff-voices .sv-times {
  font-weight: 400;
}

#staff-voices .sv-sp-copy {
  display: none;
}

@keyframes sv-panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  #staff-voices .sv-layout,
  #staff-voices .sv-header {
    gap: 40px;
  }

  #staff-voices .sv-title {
    font-size: 24px;
  }

  #staff-voices .sv-tablist {
    display: grid;
    grid-template-columns: 71fr 114fr 71fr 71fr;
    width: 100%;
  }

  #staff-voices .sv-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: auto;
    padding: 12px;
  }

  #staff-voices .sv-lead {
    width: 100%;
    text-align: left;
  }

  #staff-voices .sv-voice-area {
    gap: 8px;
    margin-top: 40px;
  }

  #staff-voices .sv-page-nav {
    margin-top: -40px;
  }

  #staff-voices .sv-stage {
    width: 100%;
    height: 500px;
  }

  #staff-voices .sv-pc-copy {
    display: none;
  }

  #staff-voices .sv-sp-copy {
    display: inline;
  }

  #staff-voices .sv-tagline-copy {
    gap: 8.643px;
    padding: 0 12px;
    font-size: clamp(24px, 7.387vw, 28.809px);
  }

  #staff-voices .sv-tagline-copy::before,
  #staff-voices .sv-tagline-copy::after {
    width: 11.523px;
    height: 23.047px;
  }
}

@media (max-width: 359px) {
  #staff-voices .sv-tab {
    font-size: 16px;
    padding-right: 8px;
    padding-left: 8px;
  }

  #staff-voices .sv-lead,
  #staff-voices .sv-tagline-label {
    font-size: 16px;
  }
}
