/* ============================================
   コピッペ LP - メインスタイルシート
   ============================================ */

/* --- Base & Variables --- */
:root {
    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-400: #60a5fa;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --shadow-brand: 0 10px 40px -10px rgba(59, 130, 246, 0.35);
    --shadow-brand-lg: 0 20px 60px -10px rgba(59, 130, 246, 0.45);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-900);
    overflow-x: hidden;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   背景アニメーション
   ============================================ */
.bg-animated-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%);
    overflow: hidden;
    /* ヒーロー背景画像の下に隠れるため、スクロール後のセクションで表示される */
}

.glow-shape {
    position: absolute;
    filter: blur(130px);
    border-radius: 50%;
    opacity: 0.55;
    will-change: transform;
}

.wave-container {
    position: absolute;
    top: 8%;
    left: 0;
    width: 200%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   アニメーション定義
   ============================================ */
@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes wave {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 150%; }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-blob  { animation: blob 15s infinite alternate; }
.animate-wave  { animation: wave 12s linear infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ============================================
   Glassmorphism コンポーネント
   ============================================ */
.glass-nav {
    background: rgb(255 255 255);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 32px -8px rgba(59, 130, 246, 0.12),
                0 2px 8px -2px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s var(--transition-smooth),
                box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px -10px rgba(59, 130, 246, 0.22),
                0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

/* ============================================
   フェードインアップ アニメーション
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--transition-smooth),
                transform 0.9s var(--transition-smooth);
    will-change: opacity, transform;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ボタン スタイル
   ============================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:active {
    transform: scale(0.97);
}

/* グラデーションボタン */
.btn-gradient {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600), #06b6d4);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 12px 40px -8px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   ヘッダー
   ============================================ */
.header-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo-icon:hover {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 6px 20px -2px rgba(59, 130, 246, 0.55);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-500);
    border-radius: 2px;
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgb(255 255 255 / 76%);
    backdrop-filter: blur(8px);
    color: #293da8;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.15);
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-500);
    position: relative;
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-500);
    animation: pulse-ring 1.5s ease-out infinite;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--brand-500) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catch01{
    line-height: 1.2;
    font-size: 110%;
}

/* UIモックアップ ウィンドウ */
.mockup-window {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl);
    box-shadow: 0 32px 80px -16px rgba(59, 130, 246, 0.2),
                0 8px 24px -8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.5s var(--transition-smooth),
                box-shadow 0.5s ease;
}

.mockup-window:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 48px 100px -20px rgba(59, 130, 246, 0.28),
                0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid var(--slate-200);
}

.mockup-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

/* ============================================
   タブUI (Aboutセクション)
   ============================================ */
.tab-bubble::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 9px 8px 0;
    border-style: solid;
    border-color: var(--brand-500) transparent transparent transparent;
}

.feature-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-tab.active {
    background: var(--brand-500);
    color: white;
    box-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.5);
}

.feature-tab:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    color: var(--slate-600);
    border-color: var(--slate-200);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
}

.feature-tab:not(.active):hover {
    transform: translateY(-3px);
    border-color: var(--brand-300, #93c5fd);
    color: var(--brand-600);
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.2);
}

/* タブコンテンツ切り替え */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s var(--transition-smooth) both;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Bento Grid (Featuresセクション)
   ============================================ */
.bento-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-3xl);
    box-shadow: 0 6px 24px -6px rgba(59, 130, 246, 0.1),
                0 2px 8px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--transition-smooth),
                box-shadow 0.4s ease;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px -10px rgba(59, 130, 246, 0.2),
                0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bento-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon-blue   { background: var(--brand-50);  color: var(--brand-500);  border-color: var(--brand-100); }
.feature-icon-purple { background: #faf5ff; color: #a855f7; border-color: #f3e8ff; }
.feature-icon-green  { background: #f0fdf4; color: #22c55e; border-color: #dcfce7; }
.feature-icon-orange { background: #fff7ed; color: #f97316; border-color: #ffedd5; }

/* 画像ホバーエフェクト */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 0.75rem;
}

.img-hover-zoom img {
    transition: transform 0.7s var(--transition-smooth);
    display: block;
    width: 100%;
}

.img-hover-zoom:hover img {
    transform: scale(1.06);
}

/* ============================================
   料金プランセクション
   ============================================ */
.pricing-table-wrap {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-3xl);
    box-shadow: 0 16px 60px -16px rgba(59, 130, 246, 0.15),
                0 4px 16px -4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-500), #06b6d4);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ============================================
   FAQセクション
   ============================================ */
.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.08),
                0 1px 4px -1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.15);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--slate-800);
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(239, 246, 255, 0.5);
}

.faq-q-label {
    color: var(--brand-500);
    font-size: 1.1em;
    flex-shrink: 0;
}

.faq-toggle {
    margin-left: auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-500);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--brand-500);
    color: white;
    border-color: var(--brand-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-smooth),
                padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer-inner {
    padding-bottom: 1.25rem;
    color: var(--slate-600);
    font-size: 0.9375rem;
    line-height: 1.75;
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ============================================
   CTAセクション
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 50%, #0e7490 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   フッター
   ============================================ */
.footer-link {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--brand-500);
    transform: translateX(2px);
}

/* ============================================
   スクロールトップボタン
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--brand-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.5);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 100;
    border: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--brand-600);
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

/* ============================================
   モバイルメニュー
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--brand-500);
}

/* ============================================
   ユーティリティ
   ============================================ */
.section-label {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-500);
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-500), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--slate-200), transparent);
}

/* ============================================
   About セクション - タブUIモックアップ
   ============================================ */

.about-mockup-wrap {
    background: rgba(248, 250, 252, 0.7) !important;
}

/* 左：アプリ / 右：説明文 の横並びレイアウト */
.about-mockup-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.about-mockup-app {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* Aboutセクション内のウィンドウは高さを少し縮める */
.about-mockup-app .copipe-window {
    height: 400px;
    width: 300px;
    font-size: 12px;
}

.about-mockup-desc {
    flex: 1;
    text-align: left;
}

.about-mockup-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.about-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-700);
}

.about-feature-list i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* スマホ：縦積みに */
@media (max-width: 767px) {
    .about-mockup-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-mockup-app .copipe-window {
        width: 280px;
        height: 360px;
    }
    .about-mockup-desc {
        text-align: center;
    }
    .about-feature-list {
        align-items: center;
    }
}

/* ============================================
   Bento Grid 内ユーティリティ
   ============================================ */

/* 機能ピル */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid;
    line-height: 1;
}

.feature-pill-blue   { background: var(--brand-50);  color: var(--brand-600); border-color: var(--brand-200); }
.feature-pill-purple { background: #faf5ff; color: #7e22ce; border-color: #d8b4fe; }
.feature-pill-green  { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.feature-pill-orange { background: #fff7ed; color: #c2410c; border-color: #fdba74; }

/* 向いている方セクション カード */
.target-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.target-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* テンプレートタグ */
.prompt-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
    white-space: nowrap;
}

/* 詳細アイテム (bento-detail-item) */
.bento-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 1rem;
    background: rgb(227 241 250);
    border: 1px solid #d7e5f2;
    border-radius: 0.75rem;
}

.bento-detail-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 連続モード キュービジュアル */
.bento-queue-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
    color: var(--slate-700);
    font-weight: 500;
    line-height: 1.3;
    gap: 4px;
}

.bento-queue-item.bento-queue-next {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--slate-800);
    font-weight: 700;
}

/* ============================================
   AI活用ワークフロー セクション
   ============================================ */

/* ============================================
   AI Workflow — 新ステップレイアウト
   ============================================ */

/* 左右交互ステップ */
.ai-step-wide {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 0rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.1),
                0 1px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s var(--transition-smooth),
                box-shadow 0.35s ease;
}

.ai-step-wide:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -8px rgba(59, 130, 246, 0.18);
}

/* 偶数は左右逆 */
.ai-step-wide-reverse {
    direction: rtl;
}
.ai-step-wide-reverse > * {
    direction: ltr;
}

.ai-step-wide-text {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.ai-step-num {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    align-items: end;
}

.ai-step-num-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-bottom: 1px solid;
}

.ai-step-num-value {
    font-size: 3.0rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-block;
}

/* ステップごとの色 */
.step-color-1 {color: #5512c9;}

.step-color-2 {color: #0091db;}

.step-color-3 {color: #06b8a6;}

.step-color-4 {color: #df6526;}

.ai-step-icon-sm {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-step-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--slate-800);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.ai-step-desc {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* コネクター矢印 */
.ai-step-connector {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
}

/* ===== ステップ画面ビジュアル ===== */
.step-screen-wrap {
    border: 1.5px solid;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.12);
    width: 100%;
}

.step-screen-bar {
    display: flex;
    align-items: center;
    padding: 6px 10px;
}

.step-screen-dots {
    display: flex;
    gap: 4px;
}
.step-screen-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    display: block;
}

.step-screen-body {
    padding: 12px;
    min-height: 110px;
}

/* チャットバブル */
.step-chat-bubble {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.5;
    max-width: 85%;
    margin-bottom: 6px;
}
.step-chat-ai {
    background: #ede9fe;
    color: #4c1d95;
    border-radius: 4px 10px 10px 10px;
}
.step-chat-user {
    background: #7c3aed;
    color: white;
    border-radius: 10px 4px 10px 10px;
    font-size: 10px;
    padding: 6px 10px;
}

.step-typing-indicator {
    display: flex;
    gap: 3px;
    padding: 4px 8px;
    margin-top: 2px;
}
.step-typing-indicator span {
    width: 5px;
    height: 5px;
    background: #c4b5fd;
    border-radius: 50%;
    display: block;
    animation: typingDot 1.2s ease-in-out infinite;
}
.step-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.step-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

.step-copy-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 6px;
    padding: 4px 8px;
}

/* AI出力選択済みライン */
.step-ai-output {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.step-ai-line {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #334155;
    line-height: 1.4;
}
.step-ai-line-selected {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ===== 活用シナリオカード (写真入り) ===== */
.ai-scenario-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.1),
                0 1px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s var(--transition-smooth),
                box-shadow 0.35s ease;
    padding: 0;
}

.ai-scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -10px rgba(59, 130, 246, 0.22);
}

/* 写真エリア */
.ai-scenario-photo-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ai-scenario-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

.ai-scenario-card:hover .ai-scenario-photo {
    transform: scale(1.08);
}

.ai-scenario-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.ai-scenario-icon-on-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* スマホ対応 */
@media (max-width: 767px) {
    .ai-step-wide {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .ai-step-wide-reverse {
        direction: ltr;
    }
    .ai-scenario-photo-wrap {
        height: 160px;
    }
}

/* 旧スタイル互換 (念のため残す) */
.ai-step-arrow {
    padding: 0.25rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ============================================
   コピッペ アプリ UIモックアップ
   ============================================ */

/* ウィンドウ外枠 */
.copipe-window {
    width: 340px;
    background: #f0f0f2;
    border-radius: 20px;
    box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.35),
                0 2px 12px -2px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    user-select: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
}

/* ヘッダー */
.copipe-header {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 5px 10px 0 12px;
    position: relative;
    flex-shrink: 0;
}

.copipe-drag-area {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 46px);
    height: 24px;
}

.copipe-logo {
    display: flex;
    align-items: center;
    padding: 5px;
}

.copipe-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-30%);
}

.copipe-icon-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: #888;
    line-height: 1;
    display: flex;
    align-items: center;
}

.copipe-icon-btn:hover {
    opacity: 1;
}

/* タブバー */
.copipe-tabs {
    display: flex;
    justify-content: space-around;
    padding: 0 8px 6px;
    gap: 4px;
    flex-shrink: 0;
}

.copipe-tab {
    text-align: center;
    padding: 4px 0;
    flex: 1;
    cursor: pointer;
    font-size: 11.5px;
    border-radius: 20px;
    background: #b3b3b3;
    color: white;
    transition: background 0.2s ease;
    font-weight: 500;
}

.copipe-tab:hover {
    background: #bee4ff;
    color: #1e3a5f;
}

.copipe-tab.active {
    background: #31a8ff;
    color: white;
    font-weight: 700;
}

/* コンテンツエリア */
.copipe-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* リスト */
.copipe-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* スクロールバー (実アプリと同じスタイル) */
.copipe-list::-webkit-scrollbar {
    width: 10px;
}
.copipe-list::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
    border: 3px solid #f0f0f2;
}
.copipe-list::-webkit-scrollbar-track {
    background: #eee;
}

/* リストアイテム */
.copipe-item {
    display: flex;
    align-items: center;
    padding: 7px 28px 7px 14px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
    min-height: 34px;
    flex-shrink: 0;
}

.copipe-item:hover,
.copipe-item.active {
    background: #bee4ff;
}

.copipe-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #1e293b;
    font-size: 12.5px;
    line-height: 1.3;
}

/* ＋ボタン（ホバー時のみ表示） */
.copipe-add-btn {
    position: absolute;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #b3b3b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: bold;
}

.copipe-item:hover .copipe-add-btn {
    opacity: 1;
}

.buylogo {
    max-width: 350px;
    margin-bottom: -9px!important;
}

h3.text-base{
    font-size: 1.1rem!important;
    color: #0d2130;
    font-weight: bold;
}

/* タブ切り替えアニメーション */
.copipe-list {
    animation: copipeFadeIn 0.25s ease both;
}

@keyframes copipeFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    .copipe-window {
        width: 300px;
        height: 420px;
    }
}

/* ============================================
   履歴アイテム ポップインアニメーション
   ============================================ */
@keyframes itemPopIn {
    0%   { opacity: 0; transform: translateY(-14px) scale(0.88); }
    55%  { transform: translateY(3px) scale(1.03); }
    80%  { transform: translateY(-1px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.copipe-item-popin {
    animation: itemPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================
   ロゴ「ペ」文字 ポヨンアニメーション
   ============================================ */
#logo-pe {
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes logoPePoyon {
    0%   { transform: translateY(0)     scaleX(1)    scaleY(1); }
    18%  { transform: translateY(-12px) scaleX(0.87) scaleY(1.18); }
    36%  { transform: translateY(4px)   scaleX(1.13) scaleY(0.86); }
    52%  { transform: translateY(-6px)  scaleX(0.93) scaleY(1.09); }
    66%  { transform: translateY(2px)   scaleX(1.05) scaleY(0.95); }
    78%  { transform: translateY(-2px)  scaleX(0.98) scaleY(1.03); }
    88%  { transform: translateY(1px)   scaleX(1.01) scaleY(0.99); }
    100% { transform: translateY(0)     scaleX(1)    scaleY(1); }
}

#logo-pe.poyon {
    animation: logoPePoyon 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
