/* ========================================
   INTERVIEW FLOATING BUTTONS
   既存の assets/css/styles.css は変更せず、
   この floating.css をその後に読み込んでください。
======================================== */

.floating-interviews {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 50;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;

  margin: 0;
  padding: 0;

  pointer-events: none;
}

.floating-interviews .floating-interview {
  position: static;
  inset: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 132px;
  height: 132px;
  min-width: 132px;
  min-height: 132px;
  margin: 0;
  padding: 12px;

  color: #ffffff;
  background: #00539f;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;

  box-shadow:
    0 7px 18px rgba(0, 83, 159, 0.22),
    0 14px 30px rgba(19, 35, 52, 0.15);

  text-align: center;
  text-decoration: none;

  animation: none;
  transform: none;

  pointer-events: auto;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.floating-interviews .floating-interview:hover,
.floating-interviews .floating-interview:focus-visible {
  color: #ffffff;
  background: #e8380d;
  transform: translateY(-3px) scale(1.03);

  box-shadow:
    0 10px 24px rgba(232, 56, 13, 0.24),
    0 18px 34px rgba(19, 35, 52, 0.17);
}

.floating-interviews .floating-interview:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.96);
  outline-offset: 2px;
}

.floating-interviews .floating-interview-role {
  display: block;
  margin: 0 0 4px;
  padding: 0;

  color: #ffffff;
  background: transparent;

  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.floating-interviews .floating-interview-name {
  display: block;
  margin: 0;
  padding: 0;

  color: #ffffff;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.floating-interviews .floating-interview-title {
  display: block;
  margin: 4px 0 0;
  padding: 0;

  color: #ffffff;
  background: transparent;

  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
  .floating-interviews {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .floating-interviews .floating-interview {
    width: 108px;
    height: 108px;
    min-width: 108px;
    min-height: 108px;
    padding: 9px;
    border-width: 2px;
  }

  .floating-interviews .floating-interview-role {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .floating-interviews .floating-interview-name {
    font-size: 14px;
  }

  .floating-interviews .floating-interview-title {
    margin-top: 2px;
    font-size: 8px;
  }
}

/* ========================================
   SMARTPHONE
   本文をなるべく隠さないよう、右下に小さな丸を縦3つ
======================================== */

@media (max-width: 640px) {
  .floating-interviews {
    right: 7px;
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 5px;
  }

  .floating-interviews .floating-interview {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    padding: 6px;

    border-width: 1.5px;

    box-shadow:
      0 4px 12px rgba(0, 83, 159, 0.18),
      0 8px 18px rgba(19, 35, 52, 0.12);
  }

  .floating-interviews .floating-interview:hover,
  .floating-interviews .floating-interview:focus-visible {
    transform: none;
  }

  .floating-interviews .floating-interview-role {
    margin-bottom: 1px;
    font-size: 6.5px;
    line-height: 1.15;
  }

  .floating-interviews .floating-interview-name {
    font-size: 11px;
    line-height: 1.2;
  }

  .floating-interviews .floating-interview-title {
    margin-top: 1px;
    font-size: 6.5px;
    line-height: 1.15;
  }
}

/* ========================================
   VERY SMALL SMARTPHONE
======================================== */

@media (max-width: 360px) {
  .floating-interviews {
    right: 5px;
    gap: 4px;
  }

  .floating-interviews .floating-interview {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    padding: 5px;
  }

  .floating-interviews .floating-interview-role,
  .floating-interviews .floating-interview-title {
    font-size: 6px;
  }

  .floating-interviews .floating-interview-name {
    font-size: 10px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  .floating-interviews .floating-interview {
    transition: none;
  }
}
