/* ============================================================
   Globox Inc. | AI Weekly — パーチメントテーマ
   ガウディ名刺 / 古羊皮紙 / 手書き墨インク
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #ffffff;
    --bg-surface:  #f8f9fa;
    --bg-elevated: #eef2f7;
    --ink:         #333333;
    --ink-2:       rgba(51, 51, 51, 0.70);
    --ink-muted:   rgba(51, 51, 51, 0.45);
    --sepia:       #0066cc;
    --sepia-light: #1a7de0;
    --sepia-dim:   rgba(0, 102, 204, 0.08);
    --border:      rgba(0, 0, 0, 0.08);
    --border-dark: rgba(0, 0, 0, 0.15);
    --divider:     rgba(0, 0, 0, 0.05);
    --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-serif:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    --r:           4px;
    --max:         960px;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sepia); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.72; text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── ヘッダー ── */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.site-title span { color: var(--sepia); }

.header-badge {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--sepia);
    background: var(--sepia-dim);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ── ヒーロー ── */
.hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--divider);
    background: linear-gradient(160deg, #eef5ff 0%, #ffffff 70%);
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--sepia);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--sepia);
    opacity: 0.50;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--ink-2);
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
}
.hero-meta .dot {
    width: 3px; height: 3px;
    background: var(--ink-muted);
    border-radius: 50%;
}

/* ── AIバナー ── */
.ai-notice {
    background: var(--sepia-dim);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.ai-notice .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.65;
}
.ai-notice-icon { font-size: 0.88rem; flex-shrink: 0; opacity: 0.7; }

/* ── メインコンテンツ ── */
.main-content { padding: 48px 0; }
.section { margin-bottom: 48px; }

.section-title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--sepia);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── 週次総括カード ── */
.weekly-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 40px;
    color: var(--ink);
    position: relative;
    overflow: hidden;
}
.weekly-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--sepia);
    opacity: 0.55;
}
.weekly-summary-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.weekly-summary-title::before {
    content: '';
    width: 18px; height: 1px;
    background: var(--sepia);
    flex-shrink: 0;
    opacity: 0.6;
}
.weekly-summary-body {
    font-size: 0.90rem;
    line-height: 2;
    color: var(--ink-2);
    white-space: pre-wrap;
}

/* ── ハイライトグリッド ── */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-card:hover {
    border-color: var(--border-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.card-source-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--ink-muted);
    border: 1px solid var(--divider);
    border-radius: 1px;
    padding: 2px 8px;
    letter-spacing: 0.10em;
    align-self: flex-start;
    text-transform: uppercase;
}
.highlight-card .card-title {
    font-size: 0.90rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink);
    flex: 1;
}
.highlight-card .card-title a { color: inherit; }
.highlight-card .card-title a:hover { color: var(--sepia); text-decoration: none; opacity: 1; }
.highlight-card .card-link-row {
    display: flex;
    justify-content: flex-end;
}
.source-link-sm {
    font-size: 0.70rem;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.04em;
}
.source-link-sm:hover { color: var(--sepia); text-decoration: none; opacity: 1; }

/* ── ソース見出し ── */
.source-heading {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 1px solid var(--sepia);
    letter-spacing: 0.06em;
}
.source-heading:first-of-type { margin-top: 0; }

/* ── 記事カード ── */
.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--r);
    padding: 18px 22px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--border); }

.article-card .card-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--ink);
}
.card-summary {
    font-size: 0.82rem;
    color: var(--ink-2);
    line-height: 1.78;
    margin-bottom: 10px;
}
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.card-source {
    font-size: 0.66rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.card-link {
    font-size: 0.74rem;
    color: var(--sepia);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.72; text-decoration: none; }
.card-link::after { content: '→'; font-style: normal; }

/* ── アーカイブリスト ── */
.archive-section { padding: 32px 0 8px; }
.archive-list { list-style: none; }
.archive-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}
.archive-item:last-child { border-bottom: none; }
.archive-date {
    font-family: var(--font-display);
    font-size: 0.76rem;
    color: var(--ink-muted);
    letter-spacing: 0.09em;
    white-space: nowrap;
    min-width: 90px;
}
.archive-item a {
    color: var(--ink-2);
    font-size: 0.90rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.archive-item a:hover { color: var(--sepia); text-decoration: none; opacity: 1; }

/* ── フッター ── */
.site-footer {
    background: #1a2b4a;
    border-top: none;
    padding: 32px 0;
    margin-top: 40px;
}
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.55);
    opacity: 1;
    letter-spacing: 0.04em;
}
.footer-copy a { color: rgba(255,255,255,0.55); }
.footer-copy a:hover { color: #ffffff; opacity: 1; }
.footer-note {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    opacity: 1;
    letter-spacing: 0.04em;
}

/* ── レスポンシブ ── */
@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .hero { padding: 36px 0 28px; }
    .highlight-grid { grid-template-columns: 1fr; }
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .weekly-summary-card { padding: 24px 20px; }
}
