
/* =========================================
   ベースリセット
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

/* サイト全体のレイアウト（スマホ時は1列縦並び） */
.site-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    opacity: 0.5;
}

ul {
    list-style: none;
}

/* =========================================
   左側：サイドバー（スマホ時）
========================================= */
.sidebar-fixed {
    padding: 60px 40px;
    border-bottom: 1px solid #eeeeee;
    background-color: #ffffff;
}

.site-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.concept-text {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 30px;
    text-align: justify;
    letter-spacing: 0.02em;
}

.about-text {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* 5つの分類 */
.category-list li {
    margin-bottom: 18px;
}

.cat-en {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.cat-ja {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    margin-top: 1px;
}

/* =========================================
   右側：メインコンテンツ（スマホ時）
========================================= */
.main-content {
    padding: 40px;
}

/* =========================================
   【完全修正】PC・タブレット表示（画面幅800px以上）
   不具合の原因だったoverflowやheightの制限をすべて排除しました
========================================= */
@media (min-width: 800px) {
    /* 正しく2カラムのGrid（左340px、右残り）を設定 */
    .site-layout {
        grid-template-columns: 340px 1fr;
    }

    /* 左側サイドバーを「画面の左側」に完全に固定（浮かす） */
    .sidebar-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 340px;
        height: 100vh;
        border-bottom: none;
        border-right: 1px solid #eeeeee;
        overflow-y: auto; /* メニューが画面からはみ出た場合のみ単体スクロール */
        padding: 80px 45px;
    }

    /* 右側メインを、固定した左側（340px）の分だけ右にずらして横並びにする */
    .main-content {
        grid-column: 2; /* 確実にGridの2列目に配置 */
        margin-left: 0; /* 不要な余白トラブルを防ぐ */
        padding: 80px 60px;
    }
}

/* =========================================
   記事グリッド（2行3列など）
========================================= */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 24px;
    margin-bottom: 60px;
}

@media (min-width: 650px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-item {
    margin-bottom: 0;
}

.post-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-title {
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 4px;
}

.post-date {
    font-size: 0.75rem;
    color: #666666;
    letter-spacing: 0.02em;
}

/* =========================================
   ページネーション
========================================= */
.pagination {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 5px 10px;
}
.pagination .current {
    text-decoration: underline;
    text-underline-offset: 4px;
}