/**
 * AI ASP - Press / News ページ用CSS
 * プレスリリース・ニュースページ専用スタイル
 * base.css変数を活用
 */

/* ============================================================
   News Page
   ============================================================ */

.news-page {
    padding: calc(var(--header-h) + 40px) 0 80px;
}
.news-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 32px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.news-item:first-child {
    padding-top: 0;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.news-meta time {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1;
}
.news-cat {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.cat-release {
    background: var(--accent-blue-light);
    color: var(--link-color);
}
.cat-program {
    background: var(--accent-green-light);
    color: var(--accent-green);
}
.cat-maintenance {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}
.cat-info {
    background: var(--bg-surface);
    color: var(--text-secondary);
}
.news-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.5;
}
.news-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   Press Release Pages
   ========================================================================== */

/* Page wrapper */
.press-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}
.press-page > .container { max-width: 780px; }

/* Detail layout (guide-layout reuse) */
.press-detail-layout {
    padding-bottom: 80px;
}
.press-detail-layout .guide-toc {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.press-detail-layout .press-detail {
    min-width: 0;
}
.press-detail-layout .press-logo-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Category badge */
.press-category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--accent-light);
    color: var(--accent-blue);
    white-space: nowrap;
}

/* ── List: Card grid ─────────────────────────── */
.press-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.press-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-light);
}
.press-card-thumb {
    flex: 0 0 200px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    overflow: hidden;
}
.press-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.press-card-body { flex: 1; padding: 24px; }
.press-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.press-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.press-card-meta time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.press-card-meta time .lucide-icon {
    width: 13px;
    height: 13px;
}

.press-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.press-card:hover .press-card-title {
    color: var(--accent-blue);
}

.press-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* ── Detail page ─────────────────────────────── */
.press-detail {
    max-width: 780px;
    margin: 0 auto;
}

.press-detail-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.press-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.press-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}
.press-detail-date .lucide-icon {
    width: 14px;
    height: 14px;
}
.press-detail-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
}

/* ── Body content ────────────────────────────── */
.press-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-primary);
    overflow-x: hidden;
    word-break: break-word;
}
.press-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-blue);
    color: var(--text-primary);
}
.press-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-primary);
}
.press-body p {
    margin-bottom: 20px;
}
.press-body ul {
    margin: 0 0 20px 24px;
    list-style: disc;
}
.press-body ol {
    margin: 0 0 20px 24px;
    list-style: decimal;
}
.press-body li {
    margin-bottom: 8px;
}
.press-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.press-body a:hover {
    color: var(--accent-blue-dark);
}
.press-body code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
}

.press-lead {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    word-break: break-word;
}

/* Press table */
.press-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 14px;
}
.press-table th,
.press-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.press-table thead th {
    background: var(--bg-surface);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.press-table tbody td:first-child {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-secondary);
}
.press-check-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}
.press-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4ade80;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.press-table--simple {
    max-width: 560px;
}
.press-table--simple td:first-child {
    width: 140px;
    background: var(--bg-secondary);
}

.press-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── Company info & Contact ──────────────────── */
.press-company,
.press-contact {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.press-company h2,
.press-contact h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
}
.press-contact p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.press-contact a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Back link */
.press-back {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Logo download kit */
.press-kit {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.press-kit-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.press-kit-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.press-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.press-logo-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
}
.press-logo-badges { position: absolute; top: 10px; left: 12px; display: flex; gap: 4px; z-index: 1; }
.press-logo-badge {
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
    background: var(--bg-surface); color: var(--text-primary);
}
.press-logo-badge--light { background: rgba(255,255,255,0.2); color: #fff; }
.press-logo-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 160px;
}
.press-logo-preview img,
.press-logo-preview svg {
    max-width: 200px;
    height: auto;
}
.press-logo-preview--dark {
    background: var(--bg-dark, #0f172a);
}
.press-logo-card-body {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.press-logo-card-body span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.press-logo-with-text {
    display: flex;
    align-items: center;
    gap: 0;
}
.press-logo-with-text img,
.press-logo-with-text svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-right: -2px;
}
.press-logo-text-dark,
.press-logo-text-light {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02rem;
    line-height: 1;
}
.press-logo-text-dark {
    color: var(--bg-dark, #0f172a);
}
.press-logo-text-light {
    color: #ffffff;
}
.press-logo-card--dark {
    background: var(--bg-dark, #0f172a);
    border-color: #1e293b;
}
.press-logo-card--dark .press-logo-card-body {
    border-top-color: #1e293b;
}
.press-logo-card--dark .press-logo-card-body span {
    color: #cbd5e1;
}
.press-logo-card--dark .btn-ghost {
    color: #e2e8f0;
    border-color: #334155;
}
.press-logo-card--dark .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .press-page {
        padding: calc(var(--header-h) + 20px) 0 60px;
    }
    .press-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .press-card {
        flex-direction: column;
    }
    .press-card-thumb {
        flex: none;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .press-card-body {
        padding: 20px;
    }
    .press-card-title {
        font-size: 14px;
    }
    .press-detail-title {
        font-size: 20px;
    }
    .press-body h2 {
        font-size: 18px;
        margin-top: 36px;
    }
    .press-body h3 {
        font-size: 15px;
    }
    .press-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .press-table th,
    .press-table td {
        padding: 8px 10px;
    }
    .press-table thead th {
        font-size: 11px;
        white-space: normal;
    }
    .press-table tbody td:first-child {
        white-space: normal;
    }
    .press-detail {
        overflow-x: hidden;
    }
    .press-lead {
        padding: 16px;
    }
    .press-table--simple {
        display: table;
    }
    .press-logo-grid {
        grid-template-columns: 1fr;
    }
    .press-detail-layout .press-logo-grid {
        grid-template-columns: 1fr;
    }
}
