/*
Theme Name: My Minimal Theme
Author: Your Name
Version: 1.2.0
Description: Ultimate Notion and note inspired minimalist theme. Fixed alignment and spacing.
*/

/*--------------------------------------------------------------
# 1. Reset & Base (土台)
--------------------------------------------------------------*/
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: #ffffff;
    color: #37352f;
    /* 欧文フォントに 'Inter' を最優先し、日本語を少し小さく見せる設定 */
    font-family: 'Inter', 'Segoe UI', "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-size: 16.5px; /* 参考サイトに近い、少し引き締まったサイズ */
    line-height: 1.8;
    letter-spacing: -0.011em; /* わずかに文字間を詰めるのがモダンなコツ */
}

/* リンク */
a {
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

a:hover {
    background-color: rgba(55, 53, 47, 0.08);
}

/*--------------------------------------------------------------
# 2. Layout (中央配置の定義)
--------------------------------------------------------------*/
/* サイト全体を中央に寄せ、左右に余白を作る核心部分 */
#page {
    max-width: 680px; /* 720pxからさらに少し絞る */
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヘッダー・フッターも同じ幅で中央寄せ */
#masthead, #colophon {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

#masthead {
    padding: 6rem 0 3rem;
}

/*--------------------------------------------------------------
# 3. Typography & Content (箇条書きと本文)
--------------------------------------------------------------*/

.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 3rem;
    letter-spacing: -0.03em;
}

/* 箇条書きの修正：本文の左端とドットを揃える */
.entry-content ul, 
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

/* 見出し */
.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 4.5rem 0 1.5rem !important;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
}

/* 段落間の余白を一定にする */
.entry-content p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 引用: Notionの横棒 */
blockquote {
    border-left: 4px solid #37352f !important;
    padding: 0.5rem 0 0.5rem 1.5rem !important;
    margin: 3rem 0 !important;
    font-size: 1.15rem;
}

/* 画像 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #efefef;
    margin: 2.5rem auto;
    display: block;
}

/*--------------------------------------------------------------
# 4. Post List (トップページ)
--------------------------------------------------------------*/
.post-item {
    display: flex;
    align-items: baseline;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.post-date {
    font-size: 0.85rem;
    color: #a1a1a1;
    width: 120px;
    flex-shrink: 0;
}

.post-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/*--------------------------------------------------------------
# 5. Others
--------------------------------------------------------------*/
.site-footer {
    padding: 6rem 0 4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #a1a1a1;
}

.screen-reader-text {
    display: none;
}

pre {
    background: #f7f6f3 !important; /* Notionのコード背景色 */
    padding: 1.5rem !important;
    border-radius: 8px !important;
    overflow-x: auto;
    border: none !important;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}
code {
    background: #f1f1ef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #eb5757; /* Notion特有のインラインコード色 */
}