/* ========================================
   Parallax Profile Image Styles
   ======================================== */

/* メインコンテナ */
#profile-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(45deg, #000000 0%, #e42b137b 60%, #b13e00ac 100%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* パララックスラッパー */
.parallax-wrapper {
  position: relative;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease-out;
}

/* アーティスト画像 */
.artist-portrait {
  position: absolute;
  width: auto;
  height: 100%;
  max-width: none;
  left: 20em;
  object-fit: contain;
  object-position: center;
  transition: transform 0.15s ease-out;
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}


/* グラデーションアニメーション */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #profile-image-container {
    width: 100%;
    height: 100%;
    margin: var(--spacing-md), 0, 0, 0;
  }

  .parallax-wrapper {
    width: 100%;
    height: 100%;
  }

  .artist-portrait {
    position: relative;
    left: 12em;
    width: 105%;
    height: 105%;
    object-fit: cover;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  #profile-image-container {
    height: 350px; /* より小さい画面用に調整 */
  }

  .artist-portrait {
    object-position: center 25%; /* 小さい画面では調整 */
  }
}

/* パフォーマンス最適化 */
@media (prefers-reduced-motion: reduce) {
  .parallax-wrapper,
  .artist-portrait,
  #profile-image-container::before,
  #profile-image-container::after {
    transition: none !important;
    animation: none !important;
  }
}
