/* =========================
      Home (override only)
========================= */

/* body：色・フォントは base に任せる */
body {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* =========================
      Tabs
========================= */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}

.tab-button {
    cursor: pointer;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    background: var(--quote-bg);
    color: var(--text);
    border-radius: .5rem;
}

.tab-button.active {
    background: var(--border);
    font-weight: 700;
}

/* =========================
      Category sections
========================= */
.category-section {
    display: none;
}

.category-section.active {
    display: block;
}

/* =========================
      Article list
========================= */
ul.article-list {
    list-style: none;
    padding: 0;
}

ul.article-list li {
    margin-bottom: .75rem;
}

/* =========================
      OG Card
========================= */
.og-card {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    max-width: 800px;
    background: var(--bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.og-card-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.og-card-img {
    display: block;
    width: 160px;
    height: calc(160px / 1.91);
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.og-card-content {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.og-card-title {
    font-size: 1.05em;
    font-weight: 700;
}

.og-card-desc {
    font-size: .92em;
    line-height: 1.5;
    color: var(--quote-text);
}

/* =========================
   モバイル対応
========================= */
@media (max-width: 600px) {
    .og-card-link {
        flex-direction: column;
    }

    .og-card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.91 / 1;
        /* OGP比率を維持 */
    }
}