/* ===================================================================
   Part Introduction Page (recruit/part/index.html) - Scoped Styles
   ===================================================================
   Only used on the パート紹介 page. Kept separate from styles.css
   because these entries get rewritten often and the styling needs
   (chat bubbles, joke-part decoration, etc.) are specific to this
   page's content, not shared site-wide.
   =================================================================== */

/* LINE-style chat bubble for "ひとこと" style personal messages */
.chat-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.chat-bubble-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.chat-bubble {
  position: relative;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid #E5E7EB;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #ffffff;
}

/* Mock official-decree box (for the flute part's playful bureaucratic copy) */
.decree-box {
  background: #FBF8EF;
  border-top: 3px double var(--color-primary-dark);
  border-bottom: 3px double var(--color-primary-dark);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif), var(--font-sans);
  line-height: 2;
  color: var(--color-text-primary);
  position: relative;
}

.decree-box::after {
  content: "印";
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid #B91C1C;
  border-radius: 4px;
  color: #B91C1C;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  opacity: 0.65;
}

.decree-box strong {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

/* Trombone placeholder divider: the entry's usual 1px gray border-bottom
   stays as a faint baseline; a colored bar anchored to the right edge
   stretches/shrinks leftward and shifts color on top of it, evoking a
   slide extending, instead of trying to draw the instrument itself */
.tbn-divider {
  position: relative;
  height: 1px;
  margin-top: 2rem;
  background: #E5E7EB;
}

.tbn-divider::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #b8860b;
  animation: tbn-divider-move 2.2s ease-in-out infinite;
}

@keyframes tbn-divider-move {
  0%, 100% { width: 20%; background: #b8860b; }
  50% { width: 90%; background: #e8b923; }
}

@media (prefers-reduced-motion: reduce) {
  .tbn-divider::after { animation: none; width: 55%; background: #b8860b; }
}

/* Chuunibyou / fantasy scroll box (for the clarinet part's playful RPG-style copy) */
.fantasy-box {
  background: linear-gradient(160deg, #1a1330 0%, #2b1b4d 60%, #1a1330 100%);
  border: 1px solid #8B5CF6;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: #E9D8FD;
  line-height: 1.9;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35), inset 0 0 24px rgba(139, 92, 246, 0.12);
}
