/* === Variables === */
:root {
    /* Colors */
    --color-primary: #0781a8;
    --color-primary-light: #45b1cc;
    --color-accent: #fccf64;
    --color-text: #001c24;
    --color-text-light: #5a6063;
    --color-white: #ffffff;
    --color-border: #e5eded;
    --color-bg: linear-gradient(90deg, #f5f9fa, #edf5f7);
    --color-bg-light: #f5f9fa;
    --color-bg-light2: #edf5f7;

    /* Fonts */
    --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-heading: var(--font-base);
    --font-en: "Lato", sans-serif;
    --font-number: "Roboto", sans-serif;

    /* Spacing */
    --ls-heading: 0.06em;
    --ls-body: 0.03em;
    --inner-max-width: 1200px;
    --radius: 8px;
    --radius-pill: 99px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: var(--ls-body);
    color: #333;
    background: linear-gradient(90deg, var(--color-bg-light), var(--color-bg-light2));
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Page Header === */
.page-header,
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.page-title,
.archive-title {
    font-size: 2.8rem;
    font-weight: 600;
}

/* === Card Grid === */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 24px 0;
}

.card {
    flex: 0 1 calc(33.333% - 22px);
    min-width: 280px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card-title a {
    color: #333;
}

.card-excerpt {
    font-size: 1.4rem;
    color: #666;
}

/* === Entry === */
.entry-header {
    margin-bottom: 32px;
}

.entry-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.entry-date {
    font-size: 1.4rem;
    color: #999;
}

.entry-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    margin-left: 8px;
}

.entry-thumbnail {
    margin-bottom: 32px;
}

.entry-content {
    font-size: 1.6rem;
    line-height: 2;
}

.entry-content h2 {
    font-size: 2.2rem;
    margin: 40px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
    border-bottom: none;
    color: var(--color-primary);
}

.entry-content h3 {
    font-size: 1.8rem;
    margin: 32px 0 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}

.entry-content li {
    margin-bottom: 4px;
}

/* === News List === */
.news-list .news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-item time {
    font-size: 1.4rem;
    color: #999;
    white-space: nowrap;
}

/* === Post Navigation === */
.post-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* === Pagination === */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

/* === Utility === */
.u-pt-0 {
    padding-top: 0 !important;
}

.u-pb-0 {
    padding-bottom: 0 !important;
}

.u-pt-sm {
    padding-top: 40px !important;
}

.u-pb-sm {
    padding-bottom: 40px !important;
}
