/* === oolool.com 全体スタイル === */

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a26;
    --border: #2a2a3a;
    --text: #e0e0e8;
    --text-muted: #8888a0;
    --accent: #6c8cff;
    --accent-dim: #4a6adf;
    --green: #4ade80;
    --red: #f87171;
    --font-sans: 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #8ca4ff; }

/* === Navigation === */
.top-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 15, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 1rem; height: 56px;
}
.nav-logo {
    font-weight: 700; font-size: 1.2rem;
    color: var(--text) !important;
    letter-spacing: -.02em;
}
.nav-links { margin-left: auto; display: flex; gap: 1.5rem; }
.nav-links a {
    font-size: .9rem; font-weight: 500;
    color: var(--text-muted) !important;
}
.nav-links a:hover { color: var(--text) !important; }

/* === Main === */
.main-content { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }

/* === Hero === */
.hero {
    text-align: center; padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: -.03em;
}
.hero-sub {
    display: block;
    font-size: .85rem; font-weight: 400;
    color: var(--text-muted); margin-top: .3rem;
}
.hero-desc { color: var(--text-muted); margin-top: .8rem; font-size: .95rem; }

/* === Sections === */
.section { margin-bottom: 2.5rem; }
.section-title {
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 1rem; padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}
.section-title a { color: var(--text) !important; }
.section-title a:hover { color: var(--accent) !important; }
.section-more { text-align: right; font-size: .9rem; margin-top: .5rem; }

/* === Article list === */
.article-list { display: flex; flex-direction: column; gap: .7rem; }
.article-card {
    background: var(--bg-card); border-radius: 8px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}
.article-card:hover {
    border-color: var(--accent-dim);
    background: var(--bg-hover);
}
.article-card h3 {
    font-size: 1rem; font-weight: 600;
    margin: .2rem 0 .3rem;
}
.article-card h3 a { color: var(--text) !important; }
.article-card h3 a:hover { color: var(--accent) !important; }
.article-date {
    font-size: .8rem; color: var(--text-muted);
    font-family: var(--font-mono);
}
.article-excerpt {
    font-size: .88rem; color: var(--text-muted);
    line-height: 1.5; display: -webkit-box;
    -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* === Full Article === */
.article-full { max-width: 720px; margin: 0 auto; }
.article-header { margin-bottom: 1.5rem; }
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.article-header h1 {
    font-size: 1.6rem; font-weight: 700;
    line-height: 1.3; letter-spacing: -.02em;
}
.article-meta {
    display: flex; gap: 1rem; align-items: center;
    margin-top: .5rem; font-size: .85rem; color: var(--text-muted);
}
.article-category {
    background: var(--bg-card); padding: .1rem .6rem;
    border-radius: 4px; border: 1px solid var(--border);
}
.article-body { font-size: .95rem; line-height: 1.8; }
.article-body h2 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.article-body h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.article-body p { margin-bottom: .8rem; }
.article-body ul, .article-body ol { margin: .5rem 0 .8rem 1.5rem; }
.article-body li { margin-bottom: .3rem; }
.article-body code {
    background: var(--bg-card); padding: .1rem .4rem;
    border-radius: 3px; font-family: var(--font-mono); font-size: .88rem;
}
.article-body pre {
    background: var(--bg-card); padding: 1rem; border-radius: 8px;
    overflow-x: auto; border: 1px solid var(--border);
    margin: 1rem 0; font-family: var(--font-mono); font-size: .85rem;
}
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem; margin: 1rem 0;
    color: var(--text-muted); font-style: italic;
}
.article-body table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
    font-size: .9rem;
}
.article-body th, .article-body td {
    border: 1px solid var(--border);
    padding: .5rem .8rem; text-align: left;
}
.article-body th { background: var(--bg-card); font-weight: 600; }
.article-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* === Related articles === */
.related-articles { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-articles h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem; padding: 1.5rem 1rem;
}
.footer-inner {
    max-width: 960px; margin: 0 auto;
    text-align: center; color: var(--text-muted); font-size: .85rem;
}
.footer-links { margin-top: .4rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* === Loading === */
.loading-text { color: var(--text-muted); text-align: center; padding: 2rem 0; }

/* === Category page === */
.category-header { margin-bottom: 1.5rem; }
.category-header h1 { font-size: 1.5rem; font-weight: 700; }
.category-header p { color: var(--text-muted); font-size: .9rem; margin-top: .3rem; }

/* === Responsive === */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.6rem; }
    .nav-links { gap: .8rem; }
    .nav-links a { font-size: .8rem; }
    .article-header h1 { font-size: 1.3rem; }
}

/* === Images in articles === */
.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}
.markdown-body img[src$=".svg"] {
    max-width: 100%;
    height: auto;
    background: #0f172a;
    border-radius: 10px;
}

/* === Dashboard embed === */
.dashboard-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 2rem;
}
.market-snapshot { margin-top: .5rem; }
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.snapshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.snapshot-label { font-size: .8rem; color: var(--text-muted); }
.snapshot-value { font-size: 1.3rem; font-weight: 700; font-family: var(--font-mono); }
.snapshot-value.up { color: var(--green); }
.snapshot-value.down { color: var(--red); }
.snapshot-change { font-size: .8rem; }
.snapshot-change.up { color: var(--green); }
.snapshot-change.down { color: var(--red); }
.snapshot-sub { font-size: .9rem; color: var(--text-muted); font-weight: 400; }
@media (max-width: 640px) {
    .snapshot-grid { grid-template-columns: repeat(2, 1fr); }
    .snapshot-value { font-size: 1.1rem; }
}
