// PC Codex visual assets — LPノウハウ準拠の asset-* 素材群

const AssetProblemScenesPC = () => {
  const scenes = [
    { icon: '☾', title: '恋愛で迷う夜', body: '送る言葉を考えすぎて、気持ちだけがぐるぐるする。', chip: '相性・タロット' },
    { icon: '☁', title: '夢を忘れそうな朝', body: '印象に残った夢の意味を、忘れる前にそっと見ておきたい。', chip: '夢占い' },
    { icon: '☼', title: '出かける前の1分', body: '今日の流れを知って、少し落ち着いて一日を始めたい。', chip: '今日の運勢' },
  ];
  return (
    <section className="container" style={{ paddingTop: 36, paddingBottom: 48 }}>
      <div style={{ textAlign: 'center', marginBottom: 34 }}>
        <div className="eyebrow">— Scene Cards —</div>
        <h2 className="section-title">こんな時に、<em>ひらきたくなる。</em></h2>
      </div>
      <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 22 }}>
        {scenes.map((s, i) => (
          <article key={s.title} className="card" style={{
            position: 'relative', overflow: 'hidden', minHeight: 270, padding: '32px 28px',
            background: i === 0
              ? 'linear-gradient(135deg, rgba(255,250,248,0.9), rgba(232,214,245,0.72))'
              : i === 1
                ? 'linear-gradient(135deg, rgba(255,255,255,0.9), rgba(247,217,234,0.72))'
                : 'linear-gradient(135deg, rgba(255,250,240,0.9), rgba(253,230,230,0.78))',
          }}>
            <div style={{ position: 'absolute', right: -26, top: -42, width: 170, height: 170, borderRadius: '50%', background: 'radial-gradient(circle, rgba(255,255,255,0.74), rgba(203,168,104,0.10) 62%, transparent 68%)' }}/>
            <div style={{
              width: 70, height: 70, borderRadius: 24, display: 'grid', placeItems: 'center', fontSize: 32,
              color: '#fff', background: 'linear-gradient(160deg, var(--accent), var(--accent-deep))',
              boxShadow: '0 18px 36px -20px rgba(194,90,130,0.7)', marginBottom: 22,
            }}>{s.icon}</div>
            <div style={{ display: 'inline-flex', borderRadius: 999, padding: '5px 12px', background: 'rgba(255,255,255,0.72)', border: '1px solid rgba(203,168,104,0.24)', color: 'var(--accent-deep)', fontSize: 12, fontFamily: 'var(--title-font)', letterSpacing: '0.1em', marginBottom: 12 }}>{s.chip}</div>
            <h3 style={{ fontSize: 22, lineHeight: 1.55, marginBottom: 10 }}>{s.title}</h3>
            <p style={{ margin: 0, color: 'var(--ink-soft)', fontSize: 14, lineHeight: 2 }}>{s.body}</p>
          </article>
        ))}
      </div>
    </section>
  );
};

const AssetSolutionFlowPC = () => {
  const nodes = [
    ['Input', '迷いを選ぶ', '恋愛 / 夢 / 今日'],
    ['Reading', '占いを見る', 'やさしい言葉で整理'],
    ['Next', '保存・相談', '必要な時だけ進む'],
  ];
  return (
    <section className="container" style={{ paddingTop: 42, paddingBottom: 52 }}>
      <div className="card" style={{ padding: '38px 42px', overflow: 'hidden', background: 'linear-gradient(160deg, rgba(255,255,255,0.9), rgba(251,238,243,0.82))' }}>
        <div style={{ display: 'grid', gridTemplateColumns: '320px 1fr', gap: 36, alignItems: 'center' }}>
          <div>
            <div className="eyebrow">— Input to Output —</div>
            <h2 style={{ fontSize: 34, lineHeight: 1.55, marginTop: 10 }}>使い方を、<br/>ひと目で。</h2>
            <p style={{ color: 'var(--ink-soft)', fontSize: 14, lineHeight: 2, marginTop: 12 }}>3ステップ図で、登録後の体験を抽象コピーではなく操作イメージに変換します。</p>
          </div>
          <div style={{ display: 'grid', gridTemplateColumns: '1fr 34px 1fr 34px 1fr', gap: 10, alignItems: 'center' }}>
            {nodes.map(([latin, title, body], i) => (
              <React.Fragment key={latin}>
                <div style={{ padding: '24px 18px', borderRadius: 24, background: 'rgba(255,255,255,0.72)', border: '1px solid rgba(203,168,104,0.22)', textAlign: 'center', minHeight: 190 }}>
                  <div style={{ width: 72, height: 72, borderRadius: 24, margin: '0 auto 16px', background: i === 1 ? 'linear-gradient(180deg, var(--accent), var(--accent-deep))' : 'linear-gradient(180deg, var(--gold-soft), var(--accent))', color: '#fff', display: 'grid', placeItems: 'center', fontFamily: 'var(--latin)', fontStyle: 'italic', fontSize: 15, boxShadow: '0 16px 34px -20px rgba(150,100,130,0.66)' }}>{latin}</div>
                  <h3 style={{ fontSize: 18, marginBottom: 8 }}>{title}</h3>
                  <p style={{ margin: 0, color: 'var(--ink-soft)', fontSize: 12.8, lineHeight: 1.8 }}>{body}</p>
                </div>
                {i < nodes.length - 1 && <div style={{ color: 'var(--gold)', textAlign: 'center', fontSize: 28 }}>→</div>}
              </React.Fragment>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
};

const AssetTrustRowPC = () => {
  const badges = ['無料登録', 'メールだけ', '停止OK', '怖がらせない', 'iOS/Android予定'];
  return (
    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 10, marginTop: 18 }}>
      {badges.map((b) => (
        <span key={b} style={{ display: 'inline-flex', alignItems: 'center', gap: 7, padding: '9px 14px', borderRadius: 999, background: 'rgba(255,255,255,0.76)', border: '1px solid rgba(203,168,104,0.28)', color: 'var(--ink)', fontFamily: 'var(--title-font)', fontSize: 12, letterSpacing: '0.1em', boxShadow: '0 10px 22px -18px rgba(150,100,130,0.4)' }}><span style={{ color: 'var(--gold)' }}>✦</span>{b}</span>
      ))}
    </div>
  );
};

const AssetMiniReviewsPC = () => {
  const reviews = [
    ['怖い結果じゃなく、前向きに読めそう', '20代 女性'],
    ['夢占いを朝すぐ見られるのが楽しみ', '30代 女性'],
    ['恋愛と今日の運勢を一つで見たい', '先行登録希望'],
  ];
  return (
    <section className="container" style={{ paddingTop: 42, paddingBottom: 20 }}>
      <div className="card" style={{ padding: '34px 38px', background: 'linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,246,243,0.8))' }}>
        <div style={{ display: 'grid', gridTemplateColumns: '300px 1fr', gap: 28, alignItems: 'center' }}>
          <div>
            <div className="eyebrow">— Voice Image —</div>
            <h2 style={{ fontSize: 30, lineHeight: 1.55, marginTop: 10 }}>登録前の期待が、<br/>見えるカード。</h2>
          </div>
          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 14 }}>
            {reviews.map(([body, who], i) => (
              <div key={body} style={{ padding: '18px 16px', borderRadius: 20, background: 'rgba(255,255,255,0.74)', border: '1px solid rgba(203,168,104,0.22)', transform: `rotate(${i === 1 ? 0.8 : i === 2 ? -0.8 : 0}deg)`, boxShadow: '0 14px 32px -24px rgba(150,100,130,0.36)' }}>
                <div style={{ color: 'var(--gold)', letterSpacing: '0.08em', fontSize: 13, marginBottom: 8 }}>★★★★★</div>
                <p style={{ margin: 0, color: 'var(--ink)', fontSize: 14, lineHeight: 1.85 }}>“{body}”</p>
                <p style={{ margin: '10px 0 0', color: 'var(--ink-mute)', fontSize: 11.5, textAlign: 'right' }}>{who}</p>
              </div>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
};

window.AssetProblemScenesPC = AssetProblemScenesPC;
window.AssetSolutionFlowPC = AssetSolutionFlowPC;
window.AssetTrustRowPC = AssetTrustRowPC;
window.AssetMiniReviewsPC = AssetMiniReviewsPC;

const GeneratedPhoneImagePC = ({ src, alt = '生成されたミライズアプリ画面', scale = 0.9 }) => (
  <div style={{
    width: 320 * scale,
    height: 680 * scale,
    borderRadius: 42 * scale,
    padding: 10 * scale,
    background: 'linear-gradient(180deg, #fff, #f7eaf2)',
    border: '1px solid rgba(203,168,104,0.34)',
    boxShadow: '0 28px 62px -28px rgba(93,58,100,0.46)',
    overflow: 'hidden',
  }}>
    <div style={{ width: '100%', height: '100%', borderRadius: 32 * scale, overflow: 'hidden', background: '#fff' }}>
      <img src={src} alt={alt} style={{ width: '100%', height: '100%', objectFit: 'cover', display: 'block' }}/>
    </div>
  </div>
);

const AssetGeneratedUIScreenGalleryPC = () => {
  const screens = [
    ['Home', 'ホーム', 'assets/mirise-ui-home-generated.png'],
    ['Tarot', 'タロット', 'assets/mirise-ui-tarot-generated.png'],
    ['Dream', '夢占い', 'assets/mirise-ui-dream-generated.png'],
    ['Love', '相性占い', 'assets/mirise-ui-compat-generated.png'],
  ];
  return (
    <section className="container" style={{ paddingTop: 44, paddingBottom: 60 }}>
      <div style={{ textAlign: 'center', marginBottom: 40 }}>
        <div className="eyebrow">— Generated App Screens —</div>
        <h2 className="section-title">画像生成したUIで、<em>体験を見せる。</em></h2>
        <p style={{ margin: '16px auto 0', maxWidth: 720, fontSize: 15, color: 'var(--ink-soft)', lineHeight: 2 }}>
          SVGや仮UIではなく、生成したアプリ画面素材をスマホモックに当て込み、登録後の画面イメージを明確にします。
        </p>
      </div>
      <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 22, alignItems: 'start' }}>
        {screens.map(([latin, label, src]) => (
          <div key={src} className="card" style={{ padding: '22px 14px 20px', textAlign: 'center', overflow: 'hidden' }}>
            <div style={{ display: 'flex', justifyContent: 'center' }}>
              <GeneratedPhoneImagePC src={src} alt={`ミライズ ${label} 生成UI画面`} scale={0.58}/>
            </div>
            <div className="latin" style={{ fontSize: 11, color: 'var(--gold)', letterSpacing: '0.3em', marginTop: 16 }}>{latin}</div>
            <div style={{ fontFamily: 'var(--title-font)', color: 'var(--ink)', fontSize: 16, letterSpacing: '0.12em', marginTop: 5 }}>{label}</div>
          </div>
        ))}
      </div>
    </section>
  );
};

window.GeneratedPhoneImagePC = GeneratedPhoneImagePC;
window.AssetGeneratedUIScreenGalleryPC = AssetGeneratedUIScreenGalleryPC;
