/* ===== Entrepreneur Profile Dashboard CSS ===== */
/* Dark theme + Gold accent (#d4a84a) */

:root {
    --ep-bg: #0a0a0f;
    --ep-surface: rgba(255, 255, 255, 0.03);
    --ep-surface-hover: rgba(255, 255, 255, 0.06);
    --ep-border: rgba(255, 255, 255, 0.08);
    --ep-border-hover: rgba(212, 168, 74, 0.3);
    --ep-gold: #d4a84a;
    --ep-gold-dim: rgba(212, 168, 74, 0.15);
    --ep-gold-glow: rgba(212, 168, 74, 0.25);
    --ep-text: #e8e6e3;
    --ep-text-dim: #8a8a8a;
    --ep-text-muted: #6a6a6a;
    --ep-card-bg: rgba(255, 255, 255, 0.04);
    --ep-card-border: rgba(255, 255, 255, 0.06);
    --ep-radius: 16px;
    --ep-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ep-body {
    background: var(--ep-bg);
    color: var(--ep-text);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Header ===== */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ep-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-header-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ep-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.ep-header-badge {
    background: var(--ep-gold-dim);
    color: var(--ep-gold);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.ep-header-back {
    color: var(--ep-text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.ep-header-back:hover {
    color: var(--ep-gold);
}

/* ===== Container ===== */
.ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 16px 40px;
}

/* ===== First View Section ===== */
.ep-fv {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    animation: epFadeUp 0.6s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.ep-fv-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    align-items: start;
}

/* Hero Block: 写真 | 社名+名前 | タグ+URLコピー 横並び */
.ep-fv-hero-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.ep-fv-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ep-fv-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.ep-fv-hero-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ep-fv-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ep-border);
    flex-shrink: 0;
    margin-top: 2px;
}

.ep-fv-hero-text {
    flex: 1;
    min-width: 0;
}

.ep-fv-company-name {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ep-gold);
    margin-bottom: 2px;
}

.ep-fv-founder-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.ep-fv-share-row {
    margin-bottom: 6px;
}

.ep-sidebar-meeting-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-sidebar-meeting-row .ep-sidebar-btn {
    flex: 1;
}

.ep-sidebar-edit-link {
    font-size: 12px;
    color: var(--ep-gold);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.ep-sidebar-edit-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.ep-sidebar-preview-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #aaa;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-sidebar-preview-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8ec;
}

.ep-sidebar-preview-btn.ep-preview-active {
    background: var(--ep-gold);
    color: #000;
    border-color: var(--ep-gold);
}

.ep-fv-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ep-gold);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.ep-fv-doc-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.ep-fv-doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #aaa;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-fv-doc-upload-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8ec;
    border-color: rgba(255, 255, 255, 0.3);
}

/* プロダクト名行（名前+資料を横に並べる） */
.ep-product-name-row {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.ep-product-name-row .ep-product-feature {
    flex: 1;
}

.ep-product-doc-card {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ep-product-doc-link-inline {
    font-size: 13px;
    color: var(--ep-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.ep-product-doc-link-inline:hover {
    opacity: 0.8;
}

.ep-product-doc-upload-inline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-product-doc-upload-inline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8ec;
}

/* カテゴリグリッド */
.ep-detail-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ep-detail-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: default;
    transition: all 0.2s;
}

.ep-detail-cat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* オーナー用: 明るく表示＋クリック可能 */
.ep-detail-owner .ep-detail-cat-btn {
    color: #e8e8ec;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.ep-detail-owner .ep-detail-cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ep-detail-cat-btn.ep-cat-filled {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
    background: rgba(212, 175, 55, 0.08);
}

.ep-detail-cat-btn.ep-cat-empty {
    color: rgba(255, 255, 255, 0.35);
}

.ep-detail-owner .ep-detail-cat-btn.ep-cat-empty {
    color: rgba(255, 255, 255, 0.6);
}

.ep-cat-icon {
    font-size: 16px;
}

.ep-cat-status {
    font-size: 11px;
    font-weight: 700;
}

.ep-detail-placeholder {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* ゲスト向け詳細カード */
.ep-detail-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ep-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.ep-detail-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-gold);
    margin-bottom: 8px;
}

.ep-detail-card-text {
    font-size: 13px;
    color: var(--ep-text-dim);
    line-height: 1.6;
}

.ep-detail-card-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ep-detail-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.ep-detail-card-value {
    font-size: 12px;
    color: var(--ep-text);
    font-weight: 500;
}

/* モーダル */
.ep-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.ep-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-modal-header h3 {
    font-size: 16px;
    color: #e8e8ec;
    margin: 0;
}

.ep-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
}

.ep-modal-body {
    padding: 16px 20px;
}

.ep-modal-field {
    margin-bottom: 14px;
}

.ep-modal-field label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.ep-modal-field input,
.ep-modal-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #e8e8ec;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

.ep-modal-field input:focus,
.ep-modal-field textarea:focus {
    border-color: var(--ep-gold);
}

.ep-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
}

.ep-modal-save-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: var(--ep-gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ep-modal-save-btn:hover {
    opacity: 0.85;
}

.ep-fv-founder-name {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ep-text);
    margin-bottom: 0;
}

.ep-fv-founder-title {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
}

.ep-fv-company-sub {
    font-size: 11px;
    color: var(--ep-text-muted);
}

.ep-fv-oneliner {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 最大3行に制限 */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-fv-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.ep-fv-info-full {
    grid-column: 1 / -1;
}

.ep-fv-info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.ep-fv-info-label {
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.ep-fv-info-value {
    font-size: 13px;
    color: var(--ep-text);
    font-weight: 600;
}

/* Compact Row: 支援 + 資料リンク 1行 */
.ep-fv-compact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ep-fv-compact-label {
    font-size: 13px;
}

.ep-fv-compact-value {
    font-size: 12px;
    color: var(--ep-text-dim);
    font-weight: 600;
}

.ep-fv-compact-sep {
    color: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}

.ep-fv-compact-row {
    margin-left: 80px;
}

/* Metrics + UPDATE Row */
.ep-fv-metrics-updates-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    margin-left: 80px;
    align-items: flex-start;
    /* 追加: どちらかが縦長になっても相手を引き延ばさない */
}

/* Metrics Grid (2行: 上3+下2) */
.ep-fv-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    flex: 0 0 260px;
    /* auto → 260px に明示固定 */
    min-width: 0;
}

.ep-fv-mg-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    /* 内容がはみ出ないよう */
}

.ep-fv-mg-val {
    font-size: 12px;
    /* 14px→小さくして表示が安定 */
    font-weight: 800;
    color: var(--ep-text);
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    /* 改行させない */
    overflow: hidden;
    text-overflow: ellipsis;
    /* はみ出たら「...」に */
    max-width: 100%;
    display: block;
}

.ep-fv-mg-lab {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Resource links in FV */
.ep-fv-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.ep-fv-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--ep-border);
    border-radius: 6px;
    color: var(--ep-text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.ep-fv-resource-link:hover {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
    background: var(--ep-gold-dim);
}

/* UPDATE Section */
.ep-fv-updates-section {
    flex: 1;
    min-width: 0;
    /* flex子要素のオーバーフロー防止 */
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.ep-fv-updates-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.ep-fv-updates-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 130px;
    /* 追加: 縦方向の膨張を防ぐ */
    overflow-y: auto;
    /* 追加: 溢れたらスクロール */
}

.ep-fv-update-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    overflow: hidden;
    /* テキスト溢れ防止 */
}

/* UPDATE投稿テキスト本体（日付spanの後のテキスト部分） */
.ep-fv-update-item>.ep-fv-update-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 最大2行 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ep-fv-update-item.ep-fv-update-new {
    color: var(--ep-text);
    font-weight: 600;
}

.ep-fv-update-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 28px;
}

.ep-activity-compact .ep-activity-item {
    padding-bottom: 10px;
}

.ep-activity-compact .ep-activity-title {
    font-size: 12px;
}

.ep-activity-compact .ep-activity-desc {
    font-size: 11px;
}

/* CTA Sidebar */
.ep-fv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--ep-border);
}

.ep-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: left;
}

.ep-sidebar-btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ep-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ep-sidebar-btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.ep-sidebar-btn-outline {
    background: transparent;
    border: 1px solid var(--ep-border);
    color: var(--ep-text-dim);
}

.ep-sidebar-btn-outline:hover {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
    background: var(--ep-gold-dim);
}

.ep-sidebar-btn-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.ep-sidebar-btn-text {
    white-space: nowrap;
}

/* Sidebar Social Links */
/* Social Icons 横一列 */
.ep-sidebar-social-grid {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-sidebar-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-sidebar-social-icon:hover {
    color: var(--ep-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===== Activity Timeline ===== */
.ep-activity {
    background: var(--ep-surface);
    border: 1px solid var(--ep-card-border);
    border-radius: var(--ep-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ep-activity-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ep-text);
}

.ep-activity-timeline {
    position: relative;
    padding-left: 20px;
}

.ep-activity-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.ep-activity-item {
    position: relative;
    padding-bottom: 16px;
}

.ep-activity-item:last-child {
    padding-bottom: 0;
}

.ep-activity-dot {
    position: absolute;
    left: -18px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ep-activity-highlight .ep-activity-dot {
    background: var(--ep-gold);
    border-color: var(--ep-gold);
    box-shadow: 0 0 6px var(--ep-gold-glow);
}

.ep-activity-content {
    padding-left: 4px;
}

.ep-activity-date {
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.ep-activity-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 2px;
}

.ep-activity-desc {
    font-size: 12px;
    color: var(--ep-text-dim);
    line-height: 1.5;
    margin: 0;
}

/* ===== Floating CTA ===== */
.ep-floating-cta {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    z-index: 200;
    transition: bottom 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.ep-floating-cta-show {
    bottom: 20px;
}

.ep-floating-cta-label {
    font-size: 13px;
    color: var(--ep-text-dim);
    white-space: nowrap;
}

.ep-floating-cta-btns {
    display: flex;
    gap: 6px;
}

.ep-floating-btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.ep-floating-btn-primary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ep-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.ep-floating-btn-primary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.ep-floating-btn-secondary {
    background: transparent;
    color: var(--ep-text-dim);
    border-color: rgba(255, 255, 255, 0.1);
}

.ep-floating-btn-secondary:hover {
    color: var(--ep-text);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Product Section (Enhanced) ===== */
.ep-product {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    animation: epFadeUp 0.7s ease-out;
}

.ep-product-heading {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--ep-text);
}

.ep-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.ep-product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
}

.ep-product-feature {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.08), rgba(212, 168, 74, 0.02));
    border-color: rgba(212, 168, 74, 0.2);
}

.ep-product-desc {
    grid-column: 1 / -1;
}

.ep-product-card-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-bottom: 3px;
}

.ep-product-card-value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.ep-product-card-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
}

.ep-product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ep-product-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--ep-gold-dim);
    color: var(--ep-gold);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.ep-product-vision {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--ep-gold);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px;
}

.ep-product-vision-label {
    font-size: 11px;
    color: var(--ep-gold);
    font-weight: 700;
    margin-bottom: 3px;
}

.ep-product-vision-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
}

/* Utility classes */
.ep-mt-8 {
    margin-top: 8px;
}

.ep-mt-12 {
    margin-top: 12px;
}

.ep-sub-heading {
    font-size: 13px;
    color: var(--ep-text-dim);
    font-weight: 600;
}

@media (max-width: 768px) {
    .ep-fv-layout {
        grid-template-columns: 1fr;
    }

    .ep-fv-sidebar {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--ep-border);
        padding-left: 0;
        padding-top: 12px;
    }

    .ep-fv-info-grid {
        grid-template-columns: 1fr;
    }

    .ep-product-grid {
        grid-template-columns: 1fr;
    }

    .ep-fv-hero-row {
        flex-direction: column;
    }
}

/* ===== Hero Tags (社名の横の色付きタグ) ===== */
.ep-fv-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ep-fv-ai-btn {
    display: none;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
    cursor: pointer;
    padding: 3px 12px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    transition: all 0.2s;
    text-align: center;
}

.ep-fv-ai-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}




.ep-fv-company-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-fv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.ep-fv-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.ep-fv-tag-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.ep-fv-tag-green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.ep-fv-tag-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.ep-fv-tag-gold {
    background: rgba(212, 168, 74, 0.15);
    color: #d4a84a;
    border: 1px solid rgba(212, 168, 74, 0.3);
}

.ep-fv-tag-gray {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* UPDATE Row */
.ep-fv-updates-row {
    margin-bottom: 8px;
}

/* ===== Product Document Link ===== */
.ep-product-resource {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-product-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-gold);
    background: rgba(212, 168, 74, 0.08);
    border: 1px solid rgba(212, 168, 74, 0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.ep-product-doc-link:hover {
    background: rgba(212, 168, 74, 0.18);
    border-color: rgba(212, 168, 74, 0.4);
    transform: translateY(-1px);
}

/* ===== Section Edit Button ===== */
.ep-section-edit-btn {
    font-size: 11px;
    color: var(--ep-gold);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(212, 168, 74, 0.08);
    border: 1px solid rgba(212, 168, 74, 0.2);
    transition: all 0.2s;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    display: none;
}

.ep-section-edit-btn:hover {
    background: rgba(212, 168, 74, 0.18);
    border-color: rgba(212, 168, 74, 0.4);
    color: #dbb756;
}

/* ===== Scheduling URL Set Link ===== */
.ep-scheduling-url-set {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-gold);
    text-decoration: none;
    cursor: pointer;
    border: 1px dashed rgba(212, 168, 74, 0.3);
    background: rgba(212, 168, 74, 0.05);
    transition: all 0.2s;
}

.ep-scheduling-url-set:hover {
    background: rgba(212, 168, 74, 0.12);
    border-color: rgba(212, 168, 74, 0.5);
}

/* Disabled buttons */
.ep-sidebar-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

.ep-floating-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ===== AI Summary Section ===== */
.ep-summary {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.06), rgba(212, 168, 74, 0.02));
    border: 1px solid var(--ep-gold-dim);
    border-left: 3px solid var(--ep-gold);
    border-radius: var(--ep-radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.ep-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ep-summary-badge {
    background: var(--ep-gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.ep-summary-note {
    font-size: 11px;
    color: var(--ep-text-muted);
}

.ep-summary-text {
    font-size: 13px;
    color: var(--ep-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.ep-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ep-summary-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
}

.ep-summary-label {
    font-size: 10px;
    color: var(--ep-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.ep-summary-value {
    font-size: 12px;
    color: var(--ep-text);
    font-weight: 600;
}

/* ===== Detail Divider ===== */
.ep-detail-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.ep-detail-label {
    font-size: 12px;
    color: var(--ep-text-muted);
    white-space: nowrap;
    font-weight: 600;
}

.ep-detail-line {
    flex: 1;
    height: 1px;
    background: var(--ep-border);
}

@media (max-width: 768px) {
    .ep-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Stat Cards ===== */
.ep-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    animation: epFadeUp 0.7s ease-out;
}

.ep-stat-card {
    background: var(--ep-card-bg);
    border: 1px solid var(--ep-card-border);
    border-radius: var(--ep-radius-sm);
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s;
}

.ep-stat-card:hover {
    border-color: var(--ep-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ep-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.ep-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--ep-gold);
}

.ep-stat-label {
    font-size: 11px;
    color: var(--ep-text-dim);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ===== Section ===== */
.ep-section {
    background: var(--ep-card-bg);
    border: 1px solid var(--ep-card-border);
    border-radius: var(--ep-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.ep-section:hover {
    border-color: var(--ep-border-hover);
}

.ep-section-title {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ep-text);
}

.ep-section-title .ep-icon {
    font-size: 18px;
}

/* ===== Two Column Layout ===== */
.ep-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== Info Grid ===== */
.ep-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.ep-info-item {
    /* アイテムれいあう */
}

.ep-info-label {
    font-size: 11px;
    color: var(--ep-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ep-info-value {
    font-size: 14px;
    color: var(--ep-text);
    font-weight: 500;
}

/* ===== KPI Bar ===== */
.ep-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.ep-kpi-item {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    padding: 10px;
    text-align: center;
}

.ep-kpi-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--ep-gold);
}

.ep-kpi-lab {
    font-size: 11px;
    color: var(--ep-text-dim);
    margin-top: 2px;
}

/* ===== Timeline ===== */
.ep-timeline {
    position: relative;
    padding-left: 24px;
}

.ep-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--ep-border);
}

.ep-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 12px;
}

.ep-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ep-gold);
    border: 2px solid var(--ep-bg);
}

.ep-timeline-date {
    font-size: 11px;
    color: var(--ep-text-muted);
    font-family: 'Space Grotesk', sans-serif;
}

.ep-timeline-content {
    font-size: 14px;
    color: var(--ep-text);
    font-weight: 500;
}

.ep-timeline-desc {
    font-size: 12px;
    color: var(--ep-text-dim);
    margin-top: 2px;
}

/* ===== Tag List ===== */
.ep-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-tag {
    background: var(--ep-gold-dim);
    color: var(--ep-gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ep-tag-outline {
    background: transparent;
    border: 1px solid var(--ep-border);
    color: var(--ep-text-dim);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
}

/* ===== Team Grid ===== */
.ep-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ep-team-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ep-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-gold);
    flex-shrink: 0;
}

.ep-team-name {
    font-size: 14px;
    font-weight: 600;
}

.ep-team-role {
    font-size: 11px;
    color: var(--ep-text-dim);
}

/* ===== Competitor Table ===== */
.ep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ep-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--ep-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--ep-border);
}

.ep-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--ep-text);
}

.ep-table tr:hover td {
    background: var(--ep-surface);
}

.ep-table .ep-check {
    color: var(--ep-gold);
}

.ep-table .ep-cross {
    color: var(--ep-text-muted);
}

/* ===== Media Grid ===== */
.ep-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.ep-media-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    overflow: hidden;
    transition: all 0.3s;
}

.ep-media-card:hover {
    border-color: var(--ep-border-hover);
    transform: translateY(-2px);
}

.ep-media-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--ep-surface);
}

.ep-media-info {
    padding: 12px 16px;
}

.ep-media-title {
    font-size: 13px;
    font-weight: 600;
}

.ep-media-desc {
    font-size: 11px;
    color: var(--ep-text-dim);
    margin-top: 4px;
}

/* ===== CTA Section ===== */
.ep-cta-section {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.08), rgba(212, 168, 74, 0.02));
    border: 1px solid var(--ep-gold-dim);
    border-radius: var(--ep-radius-sm);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.ep-cta-title {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ep-cta-desc {
    font-size: 14px;
    color: var(--ep-text-dim);
    margin-bottom: 20px;
}

.ep-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ep-btn-primary {
    background: var(--ep-gold);
    color: #000;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ep-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--ep-gold-glow);
}

.ep-btn-outline {
    background: transparent;
    color: var(--ep-gold);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ep-gold);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ep-btn-outline:hover {
    background: var(--ep-gold-dim);
}

/* ===== Footer ===== */
.ep-footer {
    text-align: center;
    padding: 20px 16px;
    border-top: 1px solid var(--ep-border);
    margin-top: 24px;
}

.ep-footer-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ep-text-muted);
    margin-bottom: 12px;
}

.ep-footer-trust {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.ep-footer-copy {
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-top: 12px;
}

/* ===== Paragraph text ===== */
.ep-text {
    font-size: 13px;
    color: var(--ep-text);
    line-height: 1.6;
}

.ep-text-sm {
    font-size: 12px;
    color: var(--ep-text-dim);
    line-height: 1.6;
}

/* ===== Progress Bar ===== */
.ep-progress-wrap {
    margin-bottom: 12px;
}

.ep-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.ep-progress-label {
    color: var(--ep-text);
}

.ep-progress-pct {
    color: var(--ep-gold);
    font-weight: 700;
}

.ep-progress-bar {
    height: 6px;
    background: var(--ep-surface);
    border-radius: 3px;
    overflow: hidden;
}

.ep-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ep-gold), #f0d78c);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ===== Animations ===== */
@keyframes epFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ep-anim {
    animation: epFadeUp 0.6s ease-out both;
}

.ep-anim-d1 {
    animation-delay: 0.1s;
}

.ep-anim-d2 {
    animation-delay: 0.2s;
}

.ep-anim-d3 {
    animation-delay: 0.3s;
}

.ep-anim-d4 {
    animation-delay: 0.4s;
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {

    /* --- Header --- */
    .ep-header {
        padding: 10px 12px;
    }

    .ep-header-logo {
        font-size: 12px;
    }

    .ep-header-badge {
        display: none;
    }

    /* --- Container --- */
    .ep-container {
        padding: 72px 8px 32px;
    }

    /* --- FV Section --- */
    .ep-fv {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .ep-fv-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Hero Row: 縦積み */
    .ep-fv-hero-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .ep-fv-photo {
        width: 72px;
        height: 72px;
    }

    .ep-fv-hero-text {
        text-align: center;
    }

    .ep-fv-company-name {
        font-size: 16px;
    }

    .ep-fv-founder-line {
        justify-content: center;
    }

    .ep-fv-oneliner {
        font-size: 12px;
        text-align: left;
    }

    /* Metrics + UPDATE: 縦積み、左マージンなし */
    .ep-fv-metrics-updates-row {
        flex-direction: column;
        margin-left: 0;
        gap: 8px;
    }

    .ep-fv-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .ep-fv-mg-item {
        padding: 3px 6px;
    }

    .ep-fv-mg-val {
        font-size: 12px;
    }

    .ep-fv-mg-lab {
        font-size: 10px;
    }

    .ep-fv-updates-section {
        padding: 8px 10px;
    }

    .ep-fv-update-item {
        font-size: 11px;
    }

    /* Compact Row: 左マージンなし + wrap */
    .ep-fv-compact-row {
        margin-left: 0;
        flex-wrap: wrap;
        gap: 4px;
    }

    .ep-fv-compact-label {
        font-size: 12px;
    }

    .ep-fv-compact-value {
        font-size: 11px;
    }

    /* Info Grid */
    .ep-fv-info-grid {
        grid-template-columns: 1fr;
    }

    /* Resources */
    .ep-fv-resources {
        gap: 4px;
    }

    .ep-fv-resource-link {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Sidebar: 横並び → 縦積み */
    .ep-fv-sidebar {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid var(--ep-border);
        padding-left: 0;
        padding-top: 12px;
        gap: 10px;
    }

    .ep-sidebar-social-grid {
        gap: 4px;
    }

    .ep-sidebar-social-icon {
        padding: 6px;
    }

    /* --- Hero (legacy) --- */
    .ep-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .ep-hero-photo {
        width: 80px;
        height: 80px;
    }

    .ep-hero-company-row {
        justify-content: center;
    }

    .ep-hero-meta {
        justify-content: center;
    }

    .ep-hero-links {
        justify-content: center;
    }

    .ep-hero-oneliner {
        text-align: left;
    }

    .ep-hero-name {
        font-size: 18px;
    }

    /* --- Two Column → Single --- */
    .ep-two-col {
        grid-template-columns: 1fr;
    }

    /* --- AI Summary --- */
    .ep-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Stats --- */
    .ep-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ep-stat-value {
        font-size: 16px;
    }

    /* --- Info Grid --- */
    .ep-info-grid {
        grid-template-columns: 1fr;
    }

    /* --- Product Grid --- */
    .ep-product-grid {
        grid-template-columns: 1fr;
    }

    /* --- CTA --- */
    .ep-cta-buttons {
        flex-direction: column;
    }

    /* --- Pitch Cards --- */
    .ep-pitch-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* --- Recruit Cards --- */
    .ep-recruit-card {
        padding: 12px;
    }

    /* --- Section Cards --- */
    .ep-section {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .ep-section-title {
        font-size: 14px;
    }

    /* --- Activity Timeline --- */
    .ep-activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* --- Footer --- */
    .ep-footer {
        padding: 16px 12px;
    }

    .ep-footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* --- Floating CTA: スマホ対応 --- */
    .ep-floating-cta {
        left: 8px;
        right: 8px;
        transform: none;
        padding: 8px 12px;
        gap: 8px;
        border-radius: 10px;
    }

    .ep-floating-cta-label {
        display: none;
    }

    .ep-floating-cta-btns {
        flex: 1;
        gap: 6px;
    }

    .ep-floating-btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ===== Pitch History Card ===== */
.ep-pitch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    margin-bottom: 10px;
    transition: all 0.2s;
}

.ep-pitch-card:hover {
    border-color: var(--ep-border-hover);
}

.ep-pitch-vol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-gold);
    background: var(--ep-gold-dim);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.ep-pitch-info {
    flex: 1;
}

.ep-pitch-title {
    font-size: 13px;
    font-weight: 600;
}

.ep-pitch-date {
    font-size: 11px;
    color: var(--ep-text-dim);
}

/* ===== Link List ===== */
.ep-link-list {
    list-style: none;
}

.ep-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ep-link-item:last-child {
    border-bottom: none;
}

.ep-link-item a {
    color: var(--ep-gold);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.ep-link-item a:hover {
    opacity: 0.8;
}

.ep-link-icon {
    font-size: 16px;
}

/* ===== Accordion for sections ===== */
.ep-acc-header {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.ep-acc-toggle {
    float: right;
    font-size: 18px;
    color: var(--ep-text-dim);
    transition: transform 0.3s;
}

.ep-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.ep-acc-content.ep-open {
    max-height: 5000px;
}

/* ===== Recruiting ===== */
.ep-recruit-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    padding: 16px;
    margin-bottom: 10px;
}

.ep-recruit-pos {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ep-recruit-desc {
    font-size: 12px;
    color: var(--ep-text-dim);
}

/* ===== Grayout: 未実装・データなしボタン ===== */
.ep-sidebar-btn-disabled,
.ep-sidebar-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.6);
}

.ep-floating-btn-disabled,
.ep-floating-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.6);
}

.ep-fv-resource-disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
    pointer-events: none;
    text-decoration: none !important;
    color: var(--ep-text-muted) !important;
}

/* ===== Message Modal ===== */
.ep-msg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.ep-msg-overlay.show {
    display: flex;
}

.ep-msg-modal {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 24px;
    animation: epMsgModalIn 0.2s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

@keyframes epMsgModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ep-msg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ep-msg-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ep-text);
}

.ep-msg-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.ep-msg-modal-close:hover {
    color: var(--ep-text);
}

.ep-msg-to {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    font-weight: 600;
}

.ep-msg-recipient {
    font-size: 14px;
    font-weight: 700;
    color: var(--ep-text);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 12px;
}

.ep-msg-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--ep-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    min-height: 120px;
    outline: none;
    transition: border-color 0.2s;
    overflow-y: hidden;
}

.ep-msg-textarea:focus {
    border-color: var(--ep-gold);
}

.ep-msg-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ep-msg-char-count {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    margin-bottom: 14px;
}

.ep-msg-char-count.over {
    color: #ef4444;
}

.ep-msg-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ep-msg-btn-cancel {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-msg-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ep-text);
}

.ep-msg-btn-send {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: var(--ep-gold);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-msg-btn-send:hover {
    background: #e0b550;
    transform: translateY(-1px);
}

.ep-msg-btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.ep-msg-status {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;
}

.ep-msg-status.success {
    color: #22c55e;
}

.ep-msg-status.error {
    color: #ef4444;
}

/* ===== Login Prompt (モーダル内) ===== */
.ep-msg-login-prompt {
    text-align: center;
    padding: 12px 0 4px;
}

.ep-msg-login-prompt p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.ep-msg-login-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--ep-gold);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.ep-msg-login-btn:hover {
    background: #e0b550;
}

/* ===== 事業状況発信モーダル ===== */
.ep-biz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    animation: epBizFadeIn 0.4s ease;
}

@keyframes epBizFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ep-biz-modal {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 45, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.1);
    animation: epBizSlideUp 0.4s ease;
}

@keyframes epBizSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ep-biz-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ep-biz-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.ep-biz-modal-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0 0 24px;
}

.ep-biz-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ep-biz-modal-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-biz-modal-btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.ep-biz-modal-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-biz-modal-btn-secondary:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== インプレイス編集 ===== */
.ep-inline-input,
.ep-inline-textarea {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ep-inline-input:focus,
.ep-inline-textarea:focus {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.ep-inline-textarea {
    resize: vertical;
    min-height: 60px;
}

.ep-editing {
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.03) !important;
}

.ep-edit-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
}

.ep-edit-save-btn {
    padding: 4px 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-edit-save-btn:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.ep-edit-cancel-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-edit-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ===== 空セクション励ましメッセージ ===== */
.ep-empty-hint {
    text-align: center;
    padding: 24px 16px;
    margin: 16px 0;
    background: rgba(139, 92, 246, 0.04);
    border: 1px dashed rgba(139, 92, 246, 0.2);
    border-radius: 12px;
}

.ep-empty-hint-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
    line-height: 1.6;
}

.ep-empty-hint-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-empty-hint-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    transform: translateY(-1px);
}

/* ===== 保存通知 ===== */
.ep-save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.ep-save-notification.ep-save-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.ep-save-notification.ep-save-show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 項目別インライン編集リンク ===== */
.ep-field-edit-link {
    font-size: 11px;
    color: var(--ep-gold, #c9a84c);
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
    opacity: 0.6;
    transition: all 0.2s;
    cursor: pointer;
}

.ep-field-edit-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.ep-field-edit-actions {
    margin-left: 8px;
    display: inline-flex;
    gap: 8px;
}

.ep-field-save-link {
    font-size: 11px;
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-field-save-link:hover {
    text-decoration: underline;
    color: #22c55e;
}

.ep-field-cancel-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-field-cancel-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.ep-field-saving {
    font-size: 11px;
    color: var(--ep-gold, #c9a84c);
    font-weight: 500;
    animation: epFieldPulse 1s infinite;
}

@keyframes epFieldPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* URLコピー（Japan横） */
.ep-fv-copy-url {
    display: none;
    font-size: 11px;
    color: #c9a84c;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.ep-fv-copy-url:hover {
    opacity: 1;
}

/* ===== プロダクトタブUI ===== */
.ep-product-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ep-product-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #888;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.ep-product-tab:hover {
    background: rgba(255, 255, 255, .06);
    color: #bbb;
}

.ep-product-tab.active {
    background: linear-gradient(135deg, rgba(212, 168, 74, .15), rgba(212, 168, 74, .08));
    border-color: rgba(212, 168, 74, .4);
    color: #d4a84c;
}

.ep-product-tab-add {
    border-style: dashed;
    color: #d4a84c;
    font-size: 16px;
    padding: 8px 14px;
}

.ep-product-tab-add:hover {
    background: rgba(212, 168, 74, .1);
    border-color: rgba(212, 168, 74, .4);
}

.ep-product-panel {
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ep-product-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 6px 14px;
    font-size: 12px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, .06);
    border: 1px solid rgba(255, 107, 107, .2);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.ep-product-remove-btn:hover {
    background: rgba(255, 107, 107, .12);
    border-color: rgba(255, 107, 107, .4);
}

/* ===== SNSリンク グレーアウト ===== */
.ep-social-disabled {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(1);
}

/* ===== 応援済みボタン ===== */
.ep-sidebar-btn-cheered {
    background: linear-gradient(135deg, rgba(212, 168, 74, .15), rgba(212, 168, 74, .08)) !important;
    border-color: rgba(212, 168, 74, .4) !important;
    color: #d4a84c !important;
}

/* ===== SNS編集ボタン ===== */
.ep-sidebar-sns-edit-btn {
    display: none;
    width: 100%;
    padding: 8px;
    font-size: 12px;
    color: #888;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    margin-top: 8px;
}

.ep-sidebar-sns-edit-btn:hover {
    color: #d4a84c;
    border-color: rgba(212, 168, 74, .3);
    background: rgba(212, 168, 74, .05);
}

/* ===== スマホ最適化 ===== */
@media (max-width: 768px) {
    .ep-container {
        padding: 72px 8px 24px;
    }

    .ep-fv {
        padding: 14px 12px;
    }

    .ep-fv-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ep-fv-sidebar {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ep-fv-hero-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ep-fv-hero-info {
        align-items: center;
        gap: 0;
    }

    .ep-fv-founder-name {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .ep-fv-founder-line {
        margin-top: 0;
        margin-bottom: 2px;
    }

    .ep-fv-hero-meta {
        align-items: center;
        width: 100%;
    }

    .ep-fv-photo {
        width: 80px;
        height: 80px;
    }

    .ep-fv-company-name {
        font-size: 16px;
    }

    .ep-fv-founder-line {
        justify-content: center;
        font-size: 12px;
    }

    .ep-fv-tags {
        justify-content: center;
    }

    .ep-fv-oneliner {
        text-align: left;
        font-size: 12px;
    }

    .ep-fv-updates-section {
        padding: 12px;
    }

    .ep-section {
        padding: 14px 12px;
    }

    .ep-section-title {
        font-size: 14px;
    }

    .ep-product-card {
        padding: 10px;
    }

    /* サイドバーCTAをヒーロー下にインラインで */
    .ep-sidebar-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .ep-sidebar-social-grid {
        justify-content: center;
    }

    /* プロダクトタブ */
    .ep-product-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .ep-product-tab {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* フッター */
    .ep-footer {
        padding: 16px 12px;
        font-size: 11px;
    }

    /* フローティングCTA */
    .ep-floating-ctas {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }

    .ep-floating-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ===== AI Extraction Progress Bar ===== */
.ep-ai-progress {
    text-align: center;
    padding: 32px 24px;
}

.ep-ai-progress-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.ep-ai-step {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.ep-ai-step.active {
    opacity: 1;
}

.ep-ai-step.active .ep-ai-step-icon {
    animation: epAiPulse 1.5s infinite;
}

.ep-ai-step.done {
    opacity: 0.6;
}

.ep-ai-step.done .ep-ai-step-text::after {
    content: ' ✓';
    color: #4ade80;
}

.ep-ai-step-icon {
    font-size: 20px;
}

.ep-ai-step-text {
    font-size: 13px;
    color: var(--ep-text-dim, #aaa);
    font-weight: 600;
}

.ep-ai-step.active .ep-ai-step-text {
    color: var(--ep-text, #e8e6e3);
}

.ep-ai-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.ep-ai-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ep-gold, #d4a84a), #e8c95a, var(--ep-gold, #d4a84a));
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
    animation: epAiShimmer 2s infinite linear;
}

.ep-ai-progress-eta {
    font-size: 12px;
    color: var(--ep-text-muted, #6a6a6a);
    margin: 0;
}

@keyframes epAiPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes epAiShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== Webサイト反映ボタン ===== */
.ep-website-enrich-btn {
    display: block;
    margin: 12px auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(59, 130, 246, .08));
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 10px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.ep-website-enrich-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(59, 130, 246, .15));
    border-color: rgba(59, 130, 246, .5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .2);
}

.ep-website-enrich-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ===== 国名バッジ（名前の横） ===== */
.ep-fv-country {
    font-size: 13px;
    color: var(--ep-text-dim);
    font-weight: 400;
}

/* ===== 詳細カード：編集リンク ===== */
.ep-detail-edit-link {
    font-size: 12px;
    color: var(--ep-gold);
    text-decoration: none;
    margin-left: 8px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.ep-detail-edit-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===== スマホ向け詳細カード改善 ===== */
@media (max-width: 768px) {
    .ep-detail-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ep-detail-card {
        padding: 16px;
    }

    .ep-detail-card-text {
        font-size: 14px;
        line-height: 1.7;
        white-space: pre-wrap;
    }

    .ep-detail-card-row {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0;
    }

    .ep-detail-card-label {
        font-size: 11px;
    }

    .ep-detail-card-value {
        font-size: 13px;
    }

    .ep-detail-card-title {
        font-size: 14px;
    }
}

/* ===== 会社基本情報バー（ヘッダーカード内） ===== */
.ep-fv-company-bar {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}

.ep-fv-cb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ep-fv-cb-item {
    padding: 4px 10px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.ep-fv-cb-item:last-child {
    border-right: none;
}

.ep-fv-cb-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    display: block;
    margin-bottom: 1px;
}

.ep-fv-cb-value {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    display: block;
}

.ep-fv-cb-biz {
    margin-top: 6px;
    padding: 4px 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ep-fv-cb-biz .ep-fv-cb-value {
    margin-top: 1px;
}

/* ===== 2カラムペア行 ===== */
.ep-detail-pair-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.ep-detail-pair-col {
    min-width: 0;
}

@media (max-width: 600px) {
    .ep-fv-cb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .ep-fv-cb-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding: 3px 6px;
    }
    .ep-detail-pair-row {
        grid-template-columns: 1fr;
    }
}

/* ===== プロダクトセクション統合 detail_data カード ===== */
.ep-product-detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    margin: 12px 0 10px;
}

.ep-product-detail-block {
    margin-bottom: 10px;
}

.ep-product-detail-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ep-product-detail-text {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    white-space: pre-wrap;
}

/* KPI 3列グリッド */
.ep-product-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.ep-product-kpi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
}

.ep-product-kpi-label {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2px;
}

.ep-product-kpi-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-gold, #c9a84c);
}

/* 複数項目 2列グリッド */
.ep-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.ep-product-detail-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px 10px;
}

.ep-product-detail-label {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2px;
}

.ep-product-detail-value {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* レスポンシブ: モバイル */
@media (max-width: 600px) {
    .ep-product-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-product-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Extracted from inline styles --- */

            .ep-fv-oneliner {
                display: none;
            }

            .ep-fv-update-item[data-empty="true"] {
                color: rgba(255, 255, 255, .35);
            }

            /* Other existing styles will remain below */
        

            .ai-chat-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, .75);
                z-index: 10000;
                display: none;
                justify-content: center;
                align-items: center;
                -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
            }

            .ai-chat-overlay.show {
                display: flex;
            }

            .ai-chat-modal {
                width: min(520px, 95vw);
                height: min(680px, 90vh);
                background: #0e0e1a;
                border: 1px solid rgba(201, 168, 76, .25);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                overflow: hidden;
                box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
            }

            .ai-chat-header {
                padding: 16px 20px;
                border-bottom: 1px solid rgba(255, 255, 255, .06);
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .ai-chat-header-title {
                font-size: 16px;
                font-weight: 700;
                color: #c9a84c;
                font-family: 'Space Grotesk', sans-serif;
            }

            .ai-chat-close {
                background: none;
                border: none;
                color: rgba(255, 255, 255, .4);
                font-size: 20px;
                cursor: pointer;
                padding: 4px 8px;
            }

            .ai-chat-close:hover {
                color: #fff;
            }

            .ai-chat-messages {
                flex: 1;
                overflow-y: auto;
                padding: 16px 20px;
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .ai-chat-msg {
                max-width: 88%;
                padding: 12px 16px;
                border-radius: 14px;
                font-size: 14px;
                line-height: 1.6;
                font-family: 'Inter', 'Noto Sans JP', sans-serif;
                white-space: pre-wrap;
                word-break: break-word;
            }

            .ai-chat-msg.ai {
                align-self: flex-start;
                background: rgba(255, 255, 255, .06);
                color: rgba(255, 255, 255, .85);
                border-bottom-left-radius: 4px;
            }

            .ai-chat-msg.user {
                align-self: flex-end;
                background: rgba(201, 168, 76, .15);
                color: #fff;
                border-bottom-right-radius: 4px;
            }

            .ai-chat-msg.system {
                align-self: center;
                background: rgba(76, 175, 80, .1);
                color: #4caf50;
                font-size: 13px;
                text-align: center;
                border-radius: 8px;
                max-width: 95%;
            }

            .ai-chat-typing {
                align-self: flex-start;
                color: rgba(255, 255, 255, .3);
                font-size: 13px;
                padding: 8px 0;
            }

            .ai-chat-typing span {
                animation: blink 1.2s infinite;
            }

            .ai-chat-typing span:nth-child(2) {
                animation-delay: .2s;
            }

            .ai-chat-typing span:nth-child(3) {
                animation-delay: .4s;
            }

            @keyframes blink {

                0%,
                80%,
                100% {
                    opacity: .2;
                }

                40% {
                    opacity: 1;
                }
            }

            #aiChatView {
                display: flex;
                flex-direction: column;
                flex: 1;
                min-height: 0;
                overflow: hidden;
            }

            .ai-chat-input-area {
                padding: 12px 16px;
                border-top: 1px solid rgba(255, 255, 255, .06);
                display: flex;
                gap: 8px;
                align-items: flex-end;
                flex-shrink: 0;
            }

            .ai-voice-btn {
                background: linear-gradient(135deg, rgba(201, 168, 76, .18), rgba(201, 168, 76, .08));
                border: 1.5px solid rgba(201, 168, 76, .35);
                border-radius: 12px;
                padding: 12px 18px;
                color: #c9a84c;
                font-size: 18px;
                cursor: pointer;
                flex-shrink: 0;
                line-height: 1;
                transition: all 0.2s;
                display: flex;
                align-items: center;
                gap: 6px;
            }

            .ai-voice-btn:hover {
                background: linear-gradient(135deg, rgba(201, 168, 76, .28), rgba(201, 168, 76, .15));
                border-color: rgba(201, 168, 76, .5);
                color: #dbb756;
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(201, 168, 76, .2);
            }

            .ai-voice-btn.recording {
                background: rgba(239, 68, 68, .15);
                border-color: rgba(239, 68, 68, .4);
                color: #ef4444;
                animation: pulse-mic 1s ease-in-out infinite;
            }

            @keyframes pulse-mic {

                0%,
                100% {
                    transform: scale(1);
                }

                50% {
                    transform: scale(1.1);
                }
            }

            .ai-chat-input {
                flex: 1;
                background: rgba(255, 255, 255, .04);
                border: 1px solid rgba(255, 255, 255, .1);
                border-radius: 10px;
                padding: 10px 14px;
                font-size: 14px;
                color: #fff;
                font-family: 'Inter', 'Noto Sans JP', sans-serif;
                outline: none;
                resize: none;
                min-height: 40px;
                max-height: 120px;
                overflow-y: auto;
            }

            .ai-chat-input:focus {
                border-color: #c9a84c;
            }

            .ai-chat-input::placeholder {
                color: rgba(255, 255, 255, .2);
            }

            .ai-chat-send {
                background: linear-gradient(135deg, #c9a84c, #b8941f);
                border: none;
                border-radius: 10px;
                padding: 10px 16px;
                color: #0a0a14;
                font-weight: 600;
                cursor: pointer;
                font-size: 14px;
                white-space: nowrap;
            }

            .ai-chat-send:disabled {
                opacity: .4;
                cursor: not-allowed;
            }

            .ai-chat-send:hover:not(:disabled) {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(201, 168, 76, .3);
            }

            /* プレビュー */
            .ai-preview {
                padding: 16px 20px;
                overflow-y: auto;
                flex: 1;
            }

            .ai-preview-title {
                font-size: 15px;
                font-weight: 700;
                color: #c9a84c;
                margin-bottom: 16px;
            }

            .ai-preview-item {
                margin-bottom: 12px;
                padding: 10px 14px;
                background: rgba(255, 255, 255, .03);
                border: 1px solid rgba(255, 255, 255, .06);
                border-radius: 8px;
            }

            .ai-preview-label {
                font-size: 11px;
                color: rgba(255, 255, 255, .4);
                margin-bottom: 4px;
            }

            .ai-preview-old {
                font-size: 13px;
                color: rgba(255, 255, 255, .3);
                text-decoration: line-through;
            }

            .ai-preview-new {
                font-size: 13px;
                color: #4caf50;
                margin-top: 2px;
            }

            .ai-preview-actions {
                display: flex;
                gap: 12px;
                justify-content: center;
                padding: 16px 20px;
                border-top: 1px solid rgba(255, 255, 255, .06);
            }

            .ai-preview-btn {
                padding: 10px 28px;
                border-radius: 8px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                border: none;
                font-family: 'Inter', 'Noto Sans JP', sans-serif;
            }

            .ai-preview-btn-save {
                background: linear-gradient(135deg, #4caf50, #388e3c);
                color: #fff;
            }

            .ai-preview-btn-save:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(76, 175, 80, .3);
            }

            .ai-preview-btn-back {
                background: rgba(255, 255, 255, .06);
                color: rgba(255, 255, 255, .6);
                border: 1px solid rgba(255, 255, 255, .1);
            }

            .ai-finish-btn {
                display: inline-block;
                margin-top: 8px;
                padding: 6px 14px;
                font-size: 11px;
                color: rgba(255, 255, 255, .55);
                background: rgba(255, 255, 255, .06);
                border: 1px solid rgba(255, 255, 255, .12);
                border-radius: 16px;
                cursor: pointer;
                transition: all .2s;
                font-family: 'Inter', 'Noto Sans JP', sans-serif;
            }

            .ai-finish-btn:hover {
                background: rgba(76, 175, 80, .15);
                color: rgba(255, 255, 255, .85);
                border-color: rgba(76, 175, 80, .4);
            }

/* Antigravity Custom Fix: Canvas background overlap prevention */
.ep-fv {
    position: relative;
    z-index: 1;
}
