@charset "utf-8";

/* ==========================================================================
   Base & Reset (モバイルファースト・横揺れ完全防止)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* タップ時のデフォルトの青枠を消去 */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* iOS（Safari）での固定要素による横揺れバグを防止 */
  background: #000000;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a; /* 漆黒からカードを引き立たせるディープブラックへ変更 */
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  display: inline-block; /* タップ領域を正確に確保するため */
}

/* 共通インナー幅 */
.content-width {
  width: 100%;
  max-width: 480px; /* PC閲覧時もスマホの美しい縦長UI（App風）を維持するためのセーフティ幅 */
  margin: 0 auto;
  padding: 0 24px;
}

/* 共通セクション設定 */
section {
  padding: 80px 0; /* 元の余白を完全キープ */
  /* スマホの有機ELの黒に溶け込む、極限まで淡いピンクの区切り線 */
  border-bottom: 1px solid rgba(255, 214, 226, 0.04);
}

/* 最後のセクション（Social）の下線だけは不要なので消去 */
section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #EA5893;
  text-shadow: 0 0 12px rgba(234, 88, 147, 0.4); /* タイトルをほんのり発光 */
}

/* ==========================================================================
   Background Effects (深夜の空気感・ネオンブラー)
   ========================================================================== */
/* 画面全体のノイズテクスチャ */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("image/noise.png");
  opacity: 0.04; /* 液晶のザラつき感をほんの少しだけアップ */
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   Blur (深夜のスマホの光漏れ - モバイル最適化版)
   ========================================================================== */
.blur {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -10; /* カードの背後に確実に沈めるために修正 */
  /* 負荷の高い filter: blur() を削除し、ハードウェア加速を有効化 */
  transform: translate3d(0, 0, 0); 
}

.blur1 {
  width: 320px;
  height: 320px;
  /* 中心から外側に向かって完全に透明（transparent）へ溶けるグラデーション */
  background: radial-gradient(
    circle, 
    rgba(234, 88, 147, 0.25) 0%, 
    rgba(223, 151, 176, 0.08) 50%, 
    transparent 70%
  );
  top: -100px;
  right: -100px;
}

.blur2 {
  width: 300px;
  height: 300px;
  /* ブルーとピンクが自然に混ざりながら消えていくグラデーション */
  background: radial-gradient(
    circle, 
    rgba(0, 240, 255, 0.18) 0%, 
    rgba(234, 88, 147, 0.05) 50%, 
    transparent 70%
  );
  bottom: 10%;
  left: -100px;
}

/* スクロール誘導の矢印 */
.floating-scroll {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 90;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  animation: floatScroll 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; /* より自然な緩急のインアウトアニメーションに */
}

@keyframes floatScroll {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(8px); opacity: 0.7; } /* 動いた時に少し明るくなるエモ演出 */
}

/* ==========================================================================
   Header (ステータスバー風UI)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 中央固定 */
  width: 100%;
  max-width: 480px;
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  backdrop-filter: blur(4px); /* ヘッダー裏の要素が擦り切れるエフェクト */
}

.time {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #f3d6e2;
  text-shadow: 0 0 12px rgba(234, 88, 147, 0.5); /* ネオン感強化 */
}

/* 修正後：デフォルト（スマホ）とPCでサイズを最適化 */
.logo {
  /* スマホでのサイズ感：少し存在感を出すために 24px → 32px に微増（要調整） */
  height: 32px; 
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(234, 88, 147, 0.3));
  transition: height 0.2s ease; /* 画面サイズ切り替え時の動きを滑らかに */
}

/* 480px以上のPC（またはタブレット）閲覧時のみロゴを大きくする設定 */
@media (min-width: 480px) {
  .logo {
    /* PCでのサイズ感：コンテンツ幅（max-width: 480px）に合わせて、しっかり主張するサイズに */
    height: 45px; 
  }
}

/* ==========================================================================
   Hero (ストーリーUI & メインコピー)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center; /* 画面中央に綺麗に収める */
  padding: 100px 0 60px;
}

.story-bar {
  width: 100%;
  height: 3px; /* 少しシャープにしてスタイリッシュに */
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.story-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #EA5893, #ff8cb9); /* バーをグラデーションにしてクオリティアップ */
  box-shadow: 0 0 8px #EA5893;
}

.hero-card {
  border-radius: 28px;
  padding: 36px 28px;
  background: rgba(255, 214, 226, 0.08); /* 0.08 に調整してガラス面を認識しやすく */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2; /* 背景の光の霧に潰されないレイヤー階層 */
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1); 
}

.mini-label {
  margin-bottom: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.main-copy {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.2rem; /* スマホ画面で美しく収まるサイズ */
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sub-copy {
  margin-top: 24px;
  line-height: 1.8;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.sound-btn {
  margin-top: 32px;
  border: none;
  background: #EA5893;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(234, 88, 147, 0.3);
  transition: transform 0.1s ease, background 0.2s ease;
}

.sound-btn:active {
  transform: scale(0.95);
  background: #d4437c;
}

/* ==========================================================================
   Emotion (チャット通知風タイムライン)
   ========================================================================== */
.emotion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emotion-card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 214, 226, 0.08); /* 構文エラーを修正し0.08に最適化 */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

/* スマホ特化の打鍵感 */
.emotion-card:active {
  transform: scale(0.97);
  background: rgba(255, 214, 226, 0.12);
  border-color: rgba(234, 88, 147, 0.3);
}

.emotion-label {
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #EA5893; /* ラベルをテーマカラーにして視認性UP */
  opacity: 0.85;
}

.emotion-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Character (キャラクター)
   ========================================================================== */
.character-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 214, 226, 0.08); /* 閉じ括弧エラーを完全修正 */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.character-card img {
  border-bottom: 1px solid rgba(255, 214, 226, 0.06);
}

.character-text {
  padding: 28px 24px;
}

.character-text h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.character-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Music (プレイヤーUI)
   ========================================================================== */
.music-card {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  gap: 20px;
  border-radius: 28px;
  padding: 28px 24px;
  background: rgba(255, 214, 226, 0.08); /* エラー修正 */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.music-mini {
  margin-bottom: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #EA5893;
}

.music-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
}

.music-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.play-btn {
  flex-shrink: 0;
  width: 60px; /* タップしやすく威圧感のないサイズに微調整 */
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #EA5893;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 88, 147, 0.4);
  transition: transform 0.1s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px; /* 三角アイコンのセンター調整用 */
}

.play-btn:active {
  transform: scale(0.92);
  background: #d4437c;
}

/* ==========================================================================
   Stamp (LINEスタンプ公式バナー風)
   ========================================================================== */
.stamp-card {
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 214, 226, 0.08); /* エラー修正 */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.stamp-card img {
  border-radius: 16px;
  max-width: 200px;
  margin: 0 auto;
}

.stamp-btn {
  display: block;
  margin: 24px auto 0;
  width: 100%;
  max-width: 260px;
  padding: 14px 0;
  border-radius: 999px;
  background: #EA5893; /* あえてLINE緑ではなくブランドカラー統一して世界観をキープ */
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 20px rgba(234, 88, 147, 0.3);
  transition: transform 0.1s ease, background 0.2s ease;
}

.stamp-btn:active {
  transform: scale(0.96);
  background: #d4437c;
}

/* ==========================================================================
   Social (SNS)
   ========================================================================== */
.social-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-card a {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  border-radius: 20px;
  background: rgba(255, 214, 226, 0.08); /* 重複記述を綺麗に統合し0.08に変更 */
  border: 1px solid rgba(255, 214, 226, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.1s ease, background 0.2s ease;
}

.social-card a:active {
  transform: scale(0.98);
  background: rgba(255, 214, 226, 0.12);
  border-color: rgba(234, 88, 147, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 60px 24px 80px;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}