/* =========================================================
   PLAIN POP — Kinetic Hero (案B)
   index.html 専用。スコープを kh- プレフィックスに統一。
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --pp-ink:    #111111;
  --pp-paper:  #f3f1ec;
  --pp-red:    #EF4444;
  --pp-rule:   rgba(17, 17, 17, 0.14);
  --pp-white:  #ffffff;
  --pp-font-jp:     'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
  --pp-font-num:    'Arial Black', 'Helvetica Neue', Helvetica, sans-serif;
  --pp-font-italic: 'Playfair Display', Georgia, serif;
  --pp-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Page-level: hide existing global header on this page ----------
   index.html では Kinetic Hero がページ最上段になる。
   他ページは既存 .header を使い続ける。 */
body:has(.kh-hero) .header,
body:has(.kh-hero) #mobile-menu { display: none !important; }
body:has(.kh-hero) { background: var(--pp-paper); color: var(--pp-ink); }

/* =========================================================
   TOP BAR
   ========================================================= */
.kh-topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 32px;
  background: var(--pp-paper);
  border-bottom: 1px solid var(--pp-rule);
}

.kh-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--pp-font-num);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--pp-ink);
}
.kh-logo__main { color: var(--pp-ink); }
.kh-logo__accent { color: var(--pp-red); }

.kh-nav {
  justify-self: center;
}
.kh-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kh-nav a {
  font-family: var(--pp-font-num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--pp-ink);
  text-decoration: none;
  transition: color 0.25s var(--pp-ease);
}
.kh-nav a:hover { color: var(--pp-red); }

.kh-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kh-now__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pp-red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
  animation: kh-pulse 1.6s ease-in-out infinite;
}
@keyframes kh-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}
.kh-now__text {
  font-family: var(--pp-font-italic);
  font-size: 13px;
  font-style: italic;
  color: #444;
}
.kh-now__text b {
  font-family: var(--pp-font-num);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pp-ink);
  margin-right: 2px;
}
.kh-now__text em { font-style: italic; }

.kh-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.kh-burger span {
  display: block;
  height: 2px;
  background: var(--pp-ink);
  transition: transform 0.3s var(--pp-ease), opacity 0.3s;
}
.kh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.kh-mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--pp-paper);
  z-index: 25;
  padding: 48px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--pp-ease);
}
.kh-mobile-menu.is-open { transform: translateX(0); }
.kh-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.kh-mobile-menu a {
  font-family: var(--pp-font-num);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--pp-ink);
  text-decoration: none;
}

/* =========================================================
   HERO BODY (2 columns)
   ========================================================= */
.kh-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  height: calc(100vh - 64px);
  min-height: 640px;
  background: var(--pp-paper);
  color: var(--pp-ink);
  overflow: hidden;
}

/* ---------- Left column (lede) ---------- */
.kh-lede {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 56px 64px 100px;
}

.kh-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--pp-font-num);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--pp-ink);
  text-transform: uppercase;
}
.kh-tag__rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--pp-ink);
}
.kh-tag em {
  font-style: normal;
  color: var(--pp-red);
}

.kh-h1 {
  margin: 0;
  font-family: var(--pp-font-jp);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--pp-ink);
}
.kh-h1__line {
  display: block;
  white-space: nowrap; /* どの幅でも 1 行ずつ折り返さない → 全体で必ず 2 行 */
}
.kh-h1__mark {
  text-decoration: underline;
  text-decoration-color: var(--pp-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.kh-h1__em {
  font-family: var(--pp-font-italic);
  font-style: italic;
  font-weight: 700;
  color: var(--pp-red);
  margin-left: 0.1em;
}

.kh-sub {
  margin: 0;
  font-family: var(--pp-font-italic);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: #444;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .kh-sub {
    white-space: normal;
    font-size: 14px;
    line-height: 1.7;
  }
}

/* CTA */
.kh-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.kh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--pp-font-jp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s var(--pp-ease), color 0.3s var(--pp-ease), transform 0.3s var(--pp-ease);
}
.kh-btn--primary {
  background: var(--pp-red);
  color: var(--pp-white);
}
.kh-btn--primary:hover {
  background: var(--pp-ink);
  transform: translateY(-2px);
}
.kh-btn--primary span { font-family: var(--pp-font-num); }
.kh-btn--ghost {
  background: transparent;
  color: var(--pp-ink);
  border: 1px solid var(--pp-ink);
}
.kh-btn--ghost:hover {
  background: var(--pp-ink);
  color: var(--pp-white);
}

/* Stats */
.kh-stats {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--pp-rule);
}
.kh-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kh-stats__num {
  font-family: var(--pp-font-num);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--pp-red);
}
.kh-stats__num em {
  font-family: var(--pp-font-jp);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-red);
  margin-left: 4px;
}
.kh-stats__label {
  font-family: var(--pp-font-italic);
  font-style: italic;
  font-size: 12px;
  color: #666;
}

/* ---------- Right column (featured) ---------- */
.kh-featured {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2520 0%, #4a3f38 50%, #1a1814 100%);
}
/* スライドショーラッパー（複数画像をクロスフェード） */
.kh-featured__slides {
  position: absolute;
  inset: 0;
}
.kh-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 人物写真の顔位置に合わせて上寄りクロップ。横顔・全身向けに上25%〜35%が目安 */
  object-position: center 28%;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease-out;
  pointer-events: none;
}
.kh-featured__img.is-active {
  opacity: 1;
  transform: scale(1);   /* じわっとズームインで動きを演出（Ken Burns 風） */
}
.kh-featured__img:not([src]),
.kh-featured__img[src=""] {
  display: none;
}

/* スライドのインジケータドット（中央揃え） */
.kh-featured__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
  justify-content: center;
}
.kh-featured__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.kh-featured__dot.is-active {
  background: var(--pp-red);
  transform: scale(1.4);
}
.kh-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.kh-featured__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Side vertical label */
.kh-featured__side {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--pp-font-num);
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--pp-white);
  opacity: 0.85;
  white-space: nowrap;
  pointer-events: none;
}
.kh-featured__side em {
  font-style: normal;
  color: var(--pp-red);
}

/* NOW PLAYING pill */
.kh-featured__pill {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}
.kh-featured__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pp-red);
}
.kh-featured__pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.kh-featured__pill-text b {
  font-family: var(--pp-font-num);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--pp-ink);
}
.kh-featured__pill-text em {
  font-family: var(--pp-font-italic);
  font-style: italic;
  font-size: 13px;
  color: #777;
}

/* Meta card (bottom-left of featured) */
.kh-featured__meta {
  position: absolute;
  bottom: 56px;          /* ドット行の上に確保（ドット bottom 32px → 余白 24px） */
  left: 24px;
  right: 24px;           /* 横幅をフルに使ってドット衝突を回避 */
  color: var(--pp-white);
  margin: 0;
  pointer-events: none;
}
.kh-featured__no {
  margin: 0 0 4px;
  font-family: var(--pp-font-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--pp-red);
}
.kh-featured__name {
  margin: 0 0 2px;
  font-family: var(--pp-font-jp);
  font-weight: 700;
  font-size: 26px;       /* 30 → 26 で詰め解消 */
  line-height: 1.2;
  /* 長すぎるアーティスト名でも崩れないよう */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kh-featured__desc {
  margin: 0;
  font-family: var(--pp-font-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--pp-white);
  opacity: 0.85;
}


/* =========================================================
   MARQUEE (bottom)
   ========================================================= */
.kh-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background: #111;
  color: var(--pp-white);
  overflow: hidden;
  z-index: 5;
}
.kh-marquee__label {
  position: relative;
  flex: 0 0 160px;
  padding-left: 32px;
  font-family: var(--pp-font-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--pp-red);
  z-index: 2;
  background: #111;
}
.kh-marquee__label::after {
  content: '';
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
  background: linear-gradient(to right, var(--pp-red), transparent);
  opacity: 0.6;
}
.kh-marquee__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.kh-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: kh-marquee 38s linear infinite;
  will-change: transform;
}
@keyframes kh-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.kh-roster .ja {
  font-family: var(--pp-font-jp);
  font-weight: 500;
  font-size: 22px;
  color: var(--pp-white);
}
.kh-roster .en {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--pp-white);
}
.kh-sep {
  font-size: 14px;
  color: var(--pp-red);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* ========== 中間域: 1280px 以下（テキスト密度過多を防止） ========== */
@media (max-width: 1280px) {
  .kh-hero { grid-template-columns: 1fr 1fr; }
  .kh-lede { padding: 48px 48px 100px; }
  .kh-h1 { font-size: clamp(36px, 4.5vw, 60px); }
  .kh-sub { font-size: 15px; }
  /* 縦書きラベルが顔に被ることが多いので透明度を下げる */
  .kh-featured__side { opacity: 0.55; font-size: 11px; letter-spacing: 0.32em; }
  .kh-featured__pill { top: 16px; right: 16px; padding: 6px 12px 6px 6px; }
  .kh-featured__pill-text b { font-size: 9px; }
  .kh-featured__pill-text em { font-size: 11px; }
}

/* ========== タブレット: 1023px 以下 ========== */
@media (max-width: 1023px) {
  .kh-lede { padding: 40px 32px 100px; gap: 24px; }
  .kh-h1 { font-size: clamp(32px, 5vw, 48px); }
  .kh-sub { font-size: 14px; }
  .kh-stats { gap: 20px; flex-wrap: wrap; }
  .kh-stats__num { font-size: 18px; }
  .kh-featured__name { font-size: 22px; }
  /* 顔と被りがちな縦書きラベルは非表示にする（狭い幅では装飾過多） */
  .kh-featured__side { display: none; }
  .kh-featured__pill { top: 14px; right: 14px; }
  .kh-featured__meta { left: 18px; right: 18px; bottom: 50px; }
  .kh-featured__name { font-size: 22px; }
  .kh-featured__dots { bottom: 18px; left: 50%; right: auto; transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .kh-topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
  }
  .kh-nav,
  .kh-now { display: none; }
  .kh-burger {
    display: inline-flex;
    grid-column: 3;          /* 必ず右端の列に配置 */
    justify-self: end;       /* 自身も右寄せ */
  }

  .kh-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  /* スマホでは画像を最上段に */
  .kh-featured { order: 1; }
  .kh-lede { order: 2; }
  .kh-marquee { order: 3; }

  .kh-lede {
    padding: 40px 24px;
    gap: 24px;
  }
  .kh-h1 { font-size: clamp(32px, 8vw, 44px); }
  .kh-sub { font-size: 15px; padding-left: 0; }
  .kh-sub::before { display: none; }
  .kh-cta { flex-direction: column; align-items: stretch; }
  .kh-btn { justify-content: center; }
  .kh-stats {
    flex-wrap: wrap;
    gap: 16px 24px;
    padding-top: 20px;
  }

  .kh-featured {
    aspect-ratio: 4 / 5;
    min-height: 480px;
    max-height: 70vh; /* 高すぎると下要素が画面外に出るので制約 */
  }
  .kh-featured__side { display: none; }
  /* スマホでは波形が顔に被ることがあるため低めに */
  .kh-featured__meta { left: 16px; right: 16px; bottom: 50px; max-width: none; }
  .kh-featured__name { font-size: 20px; }
  .kh-featured__dots { bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); }
  .kh-featured__desc { font-size: 13px; }
  /* スマホは画像をやや顔上寄りで */
  .kh-featured__img { object-position: center 22%; }
  /* NOW PLAYING ピルをコンパクトに、テキスト溢れ防止 */
  .kh-featured__pill { top: 12px; right: 12px; }
  .kh-featured__pill-text { max-width: 140px; overflow: hidden; }
  .kh-featured__pill-text em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  .kh-marquee {
    position: static;
    height: 64px;
  }
  .kh-marquee__label {
    flex: 0 0 120px;
    padding-left: 20px;
    font-size: 10px;
  }
  .kh-roster .ja { font-size: 18px; }
  .kh-roster .en { font-size: 20px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .kh-now__dot { animation: none; }
  .kh-marquee__track { animation: none; }
}

/* ==========================================
   Kinetic Hero - スマホ最適化 追加
   ========================================== */
@media (max-width: 767px) {
  .kh-btn { min-height: 48px; }
  /* スライドドットを大きく押しやすく（操作領域を確保） */
  .kh-featured__dot {
    width: 10px;
    height: 10px;
    /* タップ領域は ::before でクリック圏を広げる */
    position: relative;
  }
  .kh-featured__dot::before {
    content: '';
    position: absolute;
    inset: -10px;
  }
  .kh-featured__dots { gap: 10px; }

  /* ハンバーガーをより押しやすく */
  .kh-burger {
    width: 44px;
    height: 44px;
  }
  /* モバイルメニュー内リンクの間隔を広く・押しやすく */
  .kh-mobile-menu ul { gap: 6px; }
  .kh-mobile-menu li a {
    display: block;
    padding: 16px 8px;
    min-height: 48px;
  }

  /* マーキー高さの調整＆視認性 */
  .kh-marquee { height: 56px; }
  .kh-marquee__label { font-size: 9px; flex: 0 0 100px; padding-left: 16px; }
  .kh-roster .ja { font-size: 16px; }
  .kh-roster .en { font-size: 18px; }
}
