/* ============================================================
   JYuno NFC限定コンテンツページ — style.css v2
   Design: Monochrome Editorial Dark
           公式サイト（jyuno.jp）のトンマナに準拠
           - 完全無彩色（白・グレー・黒のみ）
           - オールドスタイルセリフ見出し
           - 黒背景 × グレーグラデーション切り替えセクション
   Target: Mobile-first / スマートフォン専用
   ============================================================ */

/* ============================================================
   CSS カスタムプロパティ
   ============================================================ */
:root {
  /* 公式サイトに合わせた完全無彩色パレット */
  --c-black:       #000000;
  --c-gray-dark:   #111111;
  --c-gray-mid:    #767676;
  --c-gray-light:  #c8c8c8;
  --c-white:       #ffffff;

  /* セクション背景（公式サイトのグレーセクションに対応） */
  --bg-dark:    #000000;
  --bg-mid:     #888888;   /* Newsセクション相当のグレー */
  --bg-section: #717171;   /* やや明るいグレーセクション */

  /* テキスト */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted:     rgba(255, 255, 255, 0.38);
  --text-on-gray:   rgba(0, 0, 0, 0.82);

  /* ボーダー */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-mid:    rgba(255, 255, 255, 0.22);

  /* フォント */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-jp:    'Noto Serif JP', 'Hiragino Mincho ProN', '游明朝', YuMincho, serif;
  --font-sans:  'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  /* スペーシング */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  28px;
  --sp-lg:  48px;
  --sp-xl:  72px;

  /* トランジション */
  --tr: 200ms ease;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ============================================================
   フェードインアニメーション
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-header  { animation: fadeIn 0.6s ease both; }
.hero         { animation: fadeIn 0.6s 0.08s ease both; }
.video-section{ animation: fadeIn 0.6s 0.16s ease both; }
.message-section { animation: fadeIn 0.6s 0.24s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HEADER
   公式サイト: 黒背景に白のロゴ、左寄せ
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 var(--sp-sm);
  max-width: 480px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
}

/* テキストロゴ: 公式の筆記体ロゴに近いセリフ体で代替 */
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--c-white);
  /* 画像ロゴ差し替え後はこの要素を削除 */
}

.logo-img {
  height: 34px;
  width: auto;
}

.badge {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 3px 10px;
  text-transform: uppercase;
}

/* ============================================================
   HERO
   公式サイト: 黒背景にタイトルテキスト、余白大きめ
   ============================================================ */
.hero {
  padding: var(--sp-lg) var(--sp-sm) var(--sp-md);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: var(--sp-sm);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--c-white);
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  /* 無彩色を徹底: カラーは使わず白のままイタリックで差異を表現 */
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--border-mid);
  margin: var(--sp-md) 0;
}

.hero-desc {
  font-size: 0.76rem;
  line-height: 2;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

/* ============================================================
   VIDEO SECTION
   公式サイト: 画像・コンテンツは画面幅いっぱいに展開
   ============================================================ */
.video-section {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* 上下にかすかなグラデーションを重ねてシネマティックな印象に */
.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 15%,
    transparent 85%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-playsinline: true;
}

/* WebKit ネイティブコントロール */
.video-player::-webkit-media-controls-panel {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.video-caption {
  padding: 10px var(--sp-sm);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   MESSAGE SECTION
   公式サイト参照: NewsセクションのようなグレーセクションBG
   グラデーション: 上が黒から始まりグレーへ（公式と同じ切り替え）
   ============================================================ */
.message-section {
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--bg-dark) 0%,
    var(--bg-mid) 30%,
    var(--bg-section) 100%
  );
  padding: var(--sp-xl) var(--sp-sm);
}

.message-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* 公式サイトのセクション見出し（News / Gallery / Illustrator）に準拠 */
.message-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--c-white);
}

.message-body {
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-jp);
  font-weight: 200;
  border-left: 1px solid var(--border-mid);
  padding-left: var(--sp-sm);
}

/* アーティストのキャッチフレーズ */
.message-phrase {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding-top: var(--sp-sm);
}

/* ============================================================
   FOOTER
   公式サイト: 黒背景にSNSアイコン＋著作権表示
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-md) var(--sp-sm);
  padding-bottom: calc(var(--sp-md) + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-back {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 8px 20px;
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}

.footer-back:hover,
.footer-back:focus-visible {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.footer-copy {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   レスポンシブ: 480px以上（タブレット等）
   ============================================================ */
@media (min-width: 480px) {
  .hero,
  .message-inner,
  .footer-inner,
  .header-inner {
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
  }

  /* ページ全体を中央寄せ（デスクトップでも崩れないように） */
  body {
    align-items: center;
  }

  .site-header,
  .video-section,
  .message-section,
  .site-footer {
    width: 100%;
    max-width: 480px;
  }

  .site-header {
    /* sticky のため幅指定は不要。ヘッダー内部の max-width で制御 */
    max-width: none;
  }
}
