/*
 * ===============================================
 *  Theme for Haruka Uchibori (vFINAL - クール・ブルー / PCレイアウト完全対応)
 * ===============================================
 */

:root {
  /* ★★★ アクセントカラー ★★★ */
  --pink-accent: #00BFFF;
  /* DeepSkyBlue */
  --pink-accent-h: 195;
  --pink-accent-s: 100%;
  --pink-accent-l: 50%;

  /* ★★★ 背景と線の色 ★★★ */
  --bg-base: #101820;
  /* Dark Navy */
  --bg-surface-primary: rgba(23, 37, 51, 0.75);
  /* PCメニューの通常ボタン色にも使用 */
  --bg-surface-secondary: rgba(36, 54, 71, 0.7);
  --border-primary: 1px solid rgba(0, 191, 255, 0.3);
  --border-secondary: 1px solid rgba(255, 255, 255, 0.2);

  /* ★★★ ステージごとの背景フィルターの色 ★★★ */
  --overlay-section2: rgba(19, 41, 61, 0.75);
  --overlay-section4: rgba(0, 75, 100, 0.75);
  --overlay-section5: rgba(46, 28, 79, 0.75);
  --overlay-section6: rgba(20, 20, 20, 0.75);
  --overlay-section7: rgba(0, 191, 255, 0.799);
  --gradient-section3: linear-gradient(45deg, #020024, #090979, #00d4ff);
}

/* 
* ===============================================
*  【PC専用】各種デザインのテーマカラー上書き
* ===============================================
*/
@media (min-width: 1024px) {

  /* --- ① 左側メニューをテーマカラー（ブルー）に変更 --- */
  body[data-player-name="uchibori-haruka"] #pc-nav nav li a {
    background-color: var(--bg-surface-primary);
    transition: all 0.4s ease;
  }

  body[data-player-name="uchibori-haruka"] #pc-nav nav li a.active,
  body[data-player-name="uchibori-haruka"] #pc-nav nav li a:hover {
    background: var(--pink-accent);
    transform: translateX(8px) scale(1.03);
    box-shadow: 0 5px 20px hsla(var(--pink-accent-h), var(--pink-accent-s), var(--pink-accent-l), 0.4);
  }

  /* --- ②-1 右上メニュー【全体】を置く場所 --- */
  body[data-player-name="uchibori-haruka"] .site-menu-container {
    position: fixed;
    top: 25px;
    right: 40px;
    z-index: 1001;
  }

  /* --- ②-2 右上メニュー【ボタン】のデザイン --- */
  body[data-player-name="uchibori-haruka"] .menu-toggle-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-surface-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  body[data-player-name="uchibori-haruka"] .menu-toggle-btn:hover {
    transform: scale(1.1);
  }

  body[data-player-name="uchibori-haruka"] .menu-toggle-btn span {
    display: block;
    position: absolute;
    left: 14px;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  body[data-player-name="uchibori-haruka"] .menu-toggle-btn span:nth-of-type(1) {
    top: 16px;
  }

  body[data-player-name="uchibori-haruka"] .menu-toggle-btn span:nth-of-type(2) {
    top: 24px;
  }

  body[data-player-name="uchibori-haruka"] .menu-toggle-btn span:nth-of-type(3) {
    top: 32px;
  }

  /* --- ②-3 右上メニュー【ボタンが×になる時】のデザイン --- */
  body[data-player-name="uchibori-haruka"] .site-menu-container.active .menu-toggle-btn {
    background: var(--pink-accent);
    box-shadow: 0 0 15px var(--pink-accent);
  }

  body[data-player-name="uchibori-haruka"] .site-menu-container.active .menu-toggle-btn span:nth-of-type(1) {
    top: 24px;
    transform: rotate(45deg);
  }

  body[data-player-name="uchibori-haruka"] .site-menu-container.active .menu-toggle-btn span:nth-of-type(2) {
    opacity: 0;
  }

  body[data-player-name="uchibori-haruka"] .site-menu-container.active .menu-toggle-btn span:nth-of-type(3) {
    top: 24px;
    transform: rotate(-45deg);
  }

  /* --- ②-4 右上メニュー【開いた箱】のデザイン --- */
  body[data-player-name="uchibori-haruka"] .site-menu-nav {
    position: absolute;
    top: 65px;
    right: 0;
    width: 220px;
    background: rgba(23, 37, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  body[data-player-name="uchibori-haruka"] .site-menu-container.active .site-menu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body[data-player-name="uchibori-haruka"] .site-menu-nav a {
    display: block;
    padding: 12px 20px;
    color: #E0E0E0;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  body[data-player-name="uchibori-haruka"] .site-menu-nav a:hover {
    background-color: var(--pink-accent);
    color: #fff;
    transform: translateX(5px);
  }

  /* --- ③ 左上のプレイヤー名をテーマカラーで光らせる --- */
  body[data-player-name="uchibori-haruka"] #pc-nav .brand-logo a {
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow:
      0 3px 8px rgba(0, 0, 0, 0.9),
      0 0 15px var(--pink-accent),
      0 0 30px var(--pink-accent);
  }

  /* --- ④ PC用キャッチコピーの位置とデザインを調整 --- */
  body[data-player-name="uchibori-haruka"] .hero-catchphrase {
    position: fixed;
    top: 84%;
    left: 30px;
    transform: translateY(-50%);
    width: auto;
    max-width: 800px;
    text-align: left;
  }

  body[data-player-name="uchibori-haruka"] .hero-catchphrase .main-line {
    font-size: 2.8rem;
    text-shadow: 0 0 10px var(--pink-accent), 0 0 20px var(--pink-accent);
  }

  body[data-player-name="uchibori-haruka"] .hero-catchphrase .sub-line {
    font-size: 1.3rem;
  }
}

/*
* ===============================================
*  【PC専用】中央コンテンツの背景画像構図調整【最終奥義版】
* ===============================================
*/
@media (min-width: 1024px) {
  /*
   * ここで、各セクションの背景写真の「横の位置」をパーセンテージで調整できるよ！
   * 0%   -> 写真の一番左を基準に表示
   * 50%  -> 写真の真ん中を基準に表示（これが基本のセンター）
   * 100% -> 写真の一番右を基準に表示
   *
   * 「詳細度」を最大に高めてあるから、!importantはもういらない！
   */

  /* トップビジュアル (img_1.jpg) の構図 */
  body[data-player-name="uchibori-haruka"] #wrapper #section1.full-screen {
    background-position-x: 50%;
    /* 横の位置を%で指定 */
  }

  /* プロフィール (img_2.jpg) の構図 */
  body[data-player-name="uchibori-haruka"] #wrapper #section2.full-screen {
    background-position-x: 50%;
  }

  /* 詳細情報 (img_3.jpg) の構図 */
  body[data-player-name="uchibori-haruka"] #wrapper #section4.full-screen {
    background-position-x: 30%;
    /* 例：写真のちょっと右の方を見せたい場合 */
  }

  /* スポンサー (img_4.jpg) の構図 */
  body[data-player-name="uchibori-haruka"] #wrapper #section5.full-screen {
    background-position-x: 10%;
    /* 例：写真のちょっと左の方を見せたい場合 */
  }

  /* お問い合わせ (img_5.jpg) の構図 */
  body[data-player-name="uchibori-haruka"] #wrapper #section6.full-screen {
    background-position-x: 0%;
  }
}

/* 
* ===============================================
*  価格表示の強調スタイル
* ===============================================
*/
.price-accent {
  color: #eee;
  font-weight: bold;
  font-size: 1.2em;
  /* 文字を少し大きく */
  display: inline-block;
  /* 余白調整のため */
  margin-top: 5px;
}

.price-supplement {
  display: block;
  /* 価格の下に改行して表示 */
  font-size: 0.8em;
  color: #eee;
  margin-top: 3px;
}

/* 
 * ==============================================
 *  Player 3D Gallery Styles (Final Adjusted)
 * ==============================================
 */

.player-gallery-wrapper {
  width: 100%;
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-container {
  width: 100%;
  max-width: 1000px;
  height: 550px;
  /* 縦長画像が回るスペース */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
  /* 奥行き感 */
}

.pg-track-area {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pg-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* --- カードデザイン (明るく、写真を主役に) --- */
.pg-card {
  position: absolute;
  width: 280px;
  /* 9:16に近い比率 */
  height: 500px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  /* 幅の半分 */
  margin-top: -250px;
  /* 高さの半分 */

  border-radius: 16px;
  background-color: #000;
  /* 画像ロード前用 */

  /* 明るいボーダーと影 */
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);

  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

/* --- 3D配置ロジック (PC版) --- */

/* 中央 (Active) */
.pg-card.center {
  z-index: 10;
  transform: translateZ(0) scale(1.0);
  border-color: #fff;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.5);
}

.pg-card.center img {
  filter: brightness(1.1);
  /* 少し明るく */
}

/* 右側 (Next) - PC用: 奥へ引っ込めて小さく */
.pg-card.right-1 {
  z-index: 5;
  transform: translateX(220px) translateZ(-250px) rotateY(-25deg) scale(0.85);
  opacity: 0.7;
  filter: brightness(0.5);
}

.pg-card.right-2 {
  z-index: 1;
  transform: translateX(400px) translateZ(-300px) rotateY(-45deg);
  opacity: 0;
}

/* 左側 (Prev) - PC用: 奥へ引っ込めて小さく */
.pg-card.left-1 {
  z-index: 5;
  transform: translateX(-220px) translateZ(-250px) rotateY(25deg) scale(0.85);
  opacity: 0.7;
  filter: brightness(0.5);
}

.pg-card.left-2 {
  z-index: 1;
  transform: translateX(-400px) translateZ(-300px) rotateY(45deg);
  opacity: 0;
}

/* それ以外 */
.pg-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-500px);
}

/* --- ナビゲーションボタン --- */
.pg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pg-nav-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.pg-prev {
  left: 20px;
}

.pg-next {
  right: 20px;
}

/* --- キャプションエリア --- */
.pg-info {
  text-align: center;
  margin-top: 20px;
  color: #fff;
}

#pg-count {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#pg-caption {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .pg-container {
    height: 420px;
  }

  .pg-card {
    width: 220px;
    height: 390px;
    margin-left: -110px;
    /* widthの半分 */
    margin-top: -195px;
    /* heightの半分 */
  }

  /* スマホ用: 奥へ引っ込めて小さく */
  .pg-card.right-1 {
    z-index: 5;
    transform: translateX(120px) translateZ(-200px) rotateY(-25deg) scale(0.85);
    opacity: 0.7;
  }

  .pg-card.left-1 {
    z-index: 5;
    transform: translateX(-120px) translateZ(-200px) rotateY(25deg) scale(0.85);
    opacity: 0.7;
  }

  .pg-nav-btn {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: -60px;
    transform: none;
  }

  .pg-prev {
    left: 30%;
  }

  .pg-next {
    right: 30%;
  }

  .pg-info {
    margin-top: 70px;
  }
}


@media (min-width: 1024px) {
  body[data-player-name="uchibori-haruka"] #pc-background-layer {
    background-image: url('/images/japan_back.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    /* Override potential JS set opacity */
  }

  /* 中央のコンテンツエリアに不透明な背景を設定（透けないように） */
  body[data-player-name="uchibori-haruka"] #wrapper {
    background-color: rgba(16, 24, 32, 0.98);
    /* ほぼ不透明なダークネイビー */
  }

  /* セクションごとの背景も不透明に */
  body[data-player-name="uchibori-haruka"] .player-section .section-body {
    background: linear-gradient(to bottom,
        rgba(0, 80, 120, 0.4) 0%,
        rgba(16, 24, 32, 1) 30%);
  }
}

/* =========================================================
 *  Section: Player UGC (クール・ブルーVersion)
 * =========================================================
 */

/* コンテナ全体のレイアウト */
.ugc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 各アイテムの配置 */
.ugc-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  opacity: 0;
  animation: popIn 0.6s ease forwards;
}

.ugc-item.reverse {
  flex-direction: row-reverse;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 遅延設定 */
.ugc-item:nth-child(1) {
  animation-delay: 0.1s;
}

.ugc-item:nth-child(2) {
  animation-delay: 0.3s;
}

.ugc-item:nth-child(3) {
  animation-delay: 0.5s;
}

.ugc-item:nth-child(4) {
  animation-delay: 0.7s;
}

.ugc-item:nth-child(5) {
  animation-delay: 0.9s;
}

/* アイコン画像 */
.ugc-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--pink-accent);
  background-color: var(--bg-base);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

/* --- 吹き出しの共通スタイル (クール・ブルーBubble) --- */
.ugc-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--pink-accent);
  padding: 15px 20px;
  border-radius: 15px;
  max-width: 80%;
  color: #333;
  font-weight: bold;
  line-height: 1.6;
  z-index: 1;
  transition: transform 0.2s ease;
}

.ugc-bubble:hover {
  transform: translate(-2px, -2px);
}

/* しっぽの作成 */
.ugc-bubble::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  z-index: 2;
}

/* 左配置のしっぽ */
.ugc-item:not(.reverse) .ugc-bubble::before {
  left: -22px;
  border-right-color: var(--pink-accent);
}

.ugc-item:not(.reverse) .ugc-bubble::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -16px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: #fff;
  z-index: 3;
}

/* 右配置（reverse）のしっぽ */
.ugc-item.reverse .ugc-bubble::before {
  right: -22px;
  border-left-color: var(--pink-accent);
}

.ugc-item.reverse .ugc-bubble::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -16px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: #fff;
  z-index: 3;
}

/* --- 版ズレ（影）のデザインバリエーション --- */

/* Type 1: ブルーアクセント */
.pop-type-1 {
  box-shadow: 5px 5px 0 var(--pink-accent);
}

/* Type 2: ダークネイビー */
.pop-type-2 {
  box-shadow: 5px 5px 0 rgba(16, 24, 32, 0.7);
  border-radius: 2px 20px 2px 20px;
}

/* Type 3: ライトブルー */
.pop-type-3 {
  box-shadow: 5px 5px 0 rgba(0, 191, 255, 0.5);
  border-radius: 20px;
}

/* テキストスタイル */
.ugc-text {
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  white-space: pre-line;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .ugc-container {
    padding: 10px;
    gap: 25px;
  }

  .ugc-icon img {
    width: 45px;
    height: 45px;
  }

  .ugc-bubble {
    font-size: 0.85rem;
    padding: 12px;
  }
}