/* ============================================================
   AI Chat LP – Claude Code 版
   カラー: バイオレット / インディゴ（Codex版のティールと差別化）
   ============================================================ */

.artifact-body--ai-chat-lp-claude-code {
    --artifact-header-accent: #6d28d9;
    --artifact-header-muted: #7c6f94;
    --artifact-header-border: rgba(109, 40, 217, 0.12);
    --artifact-header-surface: rgba(255, 255, 255, 0.85);
    margin: 0;
    color: #1e1037;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(167, 139, 250, 0.18), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.10), transparent 40%),
        linear-gradient(175deg, #faf8ff 0%, #f3f0fa 50%, #eee9f7 100%);
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

/* ---- frame / shell ---- */
.cc-chat-frame {
    min-height: 100vh;
}

.cc-chat-shell {
    width: min(1100px, calc(100% - 36px));
    margin: 0 auto;
}

/* ---- 共通タグ / ラベル ---- */
.cc-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6d28d9;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 999px;
}

.cc-tag--light {
    color: #ddd6fe;
    background: rgba(255, 255, 255, 0.1);
}

/* ---- 見出し共通 ---- */
.cc-hero__title,
.cc-section-header h2,
.cc-detail-card h2,
.cc-cta-box h2,
.cc-feature-card h3,
.cc-usecase h3,
.cc-faq-item h3 {
    margin: 0;
    font-family: "Noto Serif JP", Georgia, "Yu Mincho", serif;
    font-weight: 600;
}

.cc-section-header h2,
.cc-detail-card h2,
.cc-cta-box h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.5;
}

/* ---- 段落共通 ---- */
.cc-hero__lead,
.cc-section-header p,
.cc-detail-card p,
.cc-usecase p,
.cc-faq-item p,
.cc-cta-box p,
.cc-chat-footer p {
    margin: 0;
    line-height: 1.85;
    color: #3b2e52;
}

/* ---- セクション ---- */
.cc-section {
    padding: 48px 0;
}

.cc-section--alt {
    background: linear-gradient(180deg, rgba(237, 233, 254, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
}

.cc-section--dark {
    color: #f5f3ff;
    background: linear-gradient(170deg, #2e1065 0%, #1e1037 100%);
}

.cc-section--dark p,
.cc-section--dark .cc-faq-item p {
    color: #ddd6fe;
}

.cc-section--cta {
    padding: 56px 0 64px;
}

/* ---- セクションヘッダー ---- */
.cc-section-header {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.cc-section-header p {
    margin-top: 12px;
}

.cc-section-header--light h2 {
    color: #f5f3ff;
}

/* ============================================================
   ヒーロー
   ============================================================ */
.cc-hero {
    padding: 52px 0 40px;
    text-align: center;
}

.cc-hero__label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 999px;
}

.cc-hero__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.45;
    color: #1e1037;
}

.cc-hero__lead {
    max-width: 640px;
    margin: 16px auto 0;
    font-size: 1rem;
}

.cc-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ============================================================
   ボタン
   ============================================================ */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.cc-btn:hover {
    opacity: 0.85;
}

.cc-btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    color: #faf5ff;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25);
}

.cc-btn--outline {
    border: 1.5px solid rgba(109, 40, 217, 0.25);
    color: #6d28d9;
    background: rgba(255, 255, 255, 0.6);
}

.cc-btn--lg {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
}

.cc-inline-link {
    display: inline-block;
    margin-top: 14px;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   チャットウィンドウ
   ============================================================ */
.cc-chat-window {
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 24px 80px rgba(46, 16, 101, 0.08),
        0 2px 8px rgba(46, 16, 101, 0.04);
    overflow: hidden;
}

.cc-chat-window__header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #f5f3ff, #ede9fe);
    border-bottom: 1px solid rgba(109, 40, 217, 0.08);
}

.cc-chat-window__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
}

.cc-chat-window__dot:first-child {
    background: #f87171;
}

.cc-chat-window__dot:nth-child(2) {
    background: #fbbf24;
}

.cc-chat-window__dot:nth-child(3) {
    background: #34d399;
}

.cc-chat-window__title {
    margin-left: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5b21b6;
}

.cc-chat-window__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
}

/* ---- チャットバブル ---- */
.cc-bubble {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cc-bubble__name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b7ca6;
}

.cc-bubble__body {
    max-width: 88%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.75;
}

.cc-bubble__body p {
    margin: 0;
}

.cc-bubble--user {
    align-items: flex-end;
}

.cc-bubble--user .cc-bubble__body {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #3b0764;
    border-bottom-right-radius: 6px;
}

.cc-bubble--assistant .cc-bubble__body {
    background: #f8f7fc;
    color: #2e1065;
    border: 1px solid rgba(109, 40, 217, 0.07);
    border-bottom-left-radius: 6px;
}

/* ============================================================
   特徴カード
   ============================================================ */
.cc-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cc-feature-card {
    padding: 28px 24px;
    border: 1px solid rgba(109, 40, 217, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(46, 16, 101, 0.05);
}

.cc-feature-card__number {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(124, 58, 237, 0.18);
    font-family: "Noto Serif JP", Georgia, serif;
}

.cc-feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #2e1065;
}

.cc-feature-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: #4c3b6a;
}

/* ============================================================
   活用イメージ
   ============================================================ */
.cc-usecases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cc-usecase {
    padding: 28px 24px;
    border: 1px solid rgba(109, 40, 217, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 32px rgba(46, 16, 101, 0.04);
}

.cc-usecase__icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.cc-usecase h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #2e1065;
}

.cc-usecase p {
    font-size: 0.92rem;
}

/* ============================================================
   補足セクション（2カラム）
   ============================================================ */
.cc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cc-detail-card {
    padding: 30px 28px;
    border: 1px solid rgba(109, 40, 217, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 40px rgba(46, 16, 101, 0.05);
}

.cc-detail-card h2 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.cc-detail-card--accent {
    background:
        radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.18), transparent 60%),
        rgba(255, 255, 255, 0.88);
}

/* ============================================================
   FAQ（アコーディオン）
   ============================================================ */
.cc-faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-faq-item {
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.cc-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-faq-item summary::-webkit-details-marker {
    display: none;
}

.cc-faq-item summary::before {
    content: "+";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    transition: transform 0.2s;
}

.cc-faq-item[open] summary::before {
    content: "−";
    background: rgba(167, 139, 250, 0.12);
}

.cc-faq-item summary h3 {
    font-size: 0.98rem;
    color: #f5f3ff;
}

.cc-faq-item p {
    margin: 14px 0 0 40px;
    font-size: 0.92rem;
    line-height: 1.85;
}

/* ============================================================
   CTA
   ============================================================ */
.cc-cta-box {
    text-align: center;
}

.cc-cta-box__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 44px 36px;
    border: 1px solid rgba(109, 40, 217, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.12), transparent 50%),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(46, 16, 101, 0.07);
}

.cc-cta-box p {
    margin-top: 12px;
}

.cc-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ============================================================
   フッター
   ============================================================ */
.cc-chat-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 28px 0 52px;
    font-size: 0.88rem;
    color: #7c6f94;
}

.cc-chat-footer a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
    .cc-features,
    .cc-usecases {
        grid-template-columns: 1fr;
    }

    .cc-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cc-chat-shell {
        width: min(100% - 20px, 1100px);
    }

    .cc-hero {
        padding: 36px 0 28px;
    }

    .cc-section {
        padding: 36px 0;
    }

    .cc-hero__actions,
    .cc-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cc-btn {
        width: 100%;
        max-width: 320px;
    }

    .cc-chat-window__body {
        padding: 18px 14px;
    }

    .cc-bubble__body {
        max-width: 95%;
        padding: 12px 14px;
    }

    .cc-feature-card,
    .cc-usecase,
    .cc-detail-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .cc-faq-item {
        padding: 16px 18px;
    }

    .cc-faq-item p {
        margin-left: 0;
    }

    .cc-cta-box__inner {
        padding: 32px 20px;
        border-radius: 18px;
    }

    .cc-chat-footer {
        flex-direction: column;
        text-align: center;
    }
}
