/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --text-muted: #7d8590;
    --accent-color: #58a6ff;
    --border-color: #21262d;
    --hover-bg: #161b22;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    font-weight: 400;
}

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.main-nav {
    display: none; /* Hide navigation for minimal design */
}

.mobile-menu-toggle {
    display: none;
}

/* Hero/Intro Section */
.intro-section {
    padding: 4rem 0;
}

.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.avatar-container {
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.avatar:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.intro-text {
    flex: 1;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.intro-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-color);
    text-decoration: none;
}

.social-link i {
    font-size: 1.5rem;
}

.simple-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.simple-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.simple-btn:hover {
    background: var(--hover-bg);
    border-color: var(--text-muted);
    text-decoration: none;
}

/* Blog Posts */
.year-header {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    color: var(--text-color);
}

.posts-list {
    list-style: none;
    margin-bottom: 4rem;
}

.post-item {
    display: flex;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.post-item:hover {
    background: var(--hover-bg);
    margin: 0 -1rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border-bottom: 1px solid transparent;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 80px;
    margin-right: 2rem;
}

.post-title-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    transition: var(--transition);
}

.post-title-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.post-tag {
    background: var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Individual Post Styles */
.post-header {
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.post-meta {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-content {
    padding: 3rem 0;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content code {
    background: var(--border-color);
    color: #f8f8f2;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.post-content pre {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
    font-size: inherit;
}

/* Syntax Highlighting */
.highlight {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.highlight pre {
    background: none;
    border: none;
    margin: 0;
    padding: 1.5rem;
}

/* Rouge syntax highlighting for dark theme */
.highlight .c { color: #6a9955; } /* Comment */
.highlight .err { color: #f44747; } /* Error */
.highlight .k { color: #569cd6; } /* Keyword */
.highlight .o { color: #d4d4d4; } /* Operator */
.highlight .cm { color: #6a9955; } /* Comment.Multiline */
.highlight .cp { color: #6a9955; } /* Comment.Preproc */
.highlight .c1 { color: #6a9955; } /* Comment.Single */
.highlight .cs { color: #6a9955; } /* Comment.Special */
.highlight .gd { color: #f44747; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gh { color: #569cd6; font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: #4ec9b0; } /* Generic.Inserted */
.highlight .gp { color: #6a9955; } /* Generic.Prompt */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #569cd6; } /* Generic.Subheading */
.highlight .kc { color: #569cd6; } /* Keyword.Constant */
.highlight .kd { color: #569cd6; } /* Keyword.Declaration */
.highlight .kn { color: #c586c0; } /* Keyword.Namespace */
.highlight .kp { color: #569cd6; } /* Keyword.Pseudo */
.highlight .kr { color: #569cd6; } /* Keyword.Reserved */
.highlight .kt { color: #4ec9b0; } /* Keyword.Type */
.highlight .m { color: #b5cea8; } /* Literal.Number */
.highlight .s { color: #ce9178; } /* Literal.String */
.highlight .na { color: #9cdcfe; } /* Name.Attribute */
.highlight .nb { color: #dcdcaa; } /* Name.Builtin */
.highlight .nc { color: #4ec9b0; } /* Name.Class */
.highlight .no { color: #4ec9b0; } /* Name.Constant */
.highlight .nd { color: #569cd6; } /* Name.Decorator */
.highlight .ni { color: #d4d4d4; } /* Name.Entity */
.highlight .ne { color: #f44747; } /* Name.Exception */
.highlight .nf { color: #dcdcaa; } /* Name.Function */
.highlight .nl { color: #d4d4d4; } /* Name.Label */
.highlight .nn { color: #4ec9b0; } /* Name.Namespace */
.highlight .nt { color: #569cd6; } /* Name.Tag */
.highlight .nv { color: #9cdcfe; } /* Name.Variable */
.highlight .ow { color: #569cd6; } /* Operator.Word */
.highlight .w { color: #d4d4d4; } /* Text.Whitespace */
.highlight .mf { color: #b5cea8; } /* Literal.Number.Float */
.highlight .mh { color: #b5cea8; } /* Literal.Number.Hex */
.highlight .mi { color: #b5cea8; } /* Literal.Number.Integer */
.highlight .mo { color: #b5cea8; } /* Literal.Number.Oct */
.highlight .sb { color: #ce9178; } /* Literal.String.Backtick */
.highlight .sc { color: #ce9178; } /* Literal.String.Char */
.highlight .sd { color: #6a9955; } /* Literal.String.Doc */
.highlight .s2 { color: #ce9178; } /* Literal.String.Double */
.highlight .se { color: #ce9178; } /* Literal.String.Escape */
.highlight .sh { color: #ce9178; } /* Literal.String.Heredoc */
.highlight .si { color: #ce9178; } /* Literal.String.Interpol */
.highlight .sx { color: #ce9178; } /* Literal.String.Other */
.highlight .sr { color: #ce9178; } /* Literal.String.Regex */
.highlight .s1 { color: #ce9178; } /* Literal.String.Single */
.highlight .ss { color: #ce9178; } /* Literal.String.Symbol */
.highlight .bp { color: #569cd6; } /* Name.Builtin.Pseudo */
.highlight .vc { color: #9cdcfe; } /* Name.Variable.Class */
.highlight .vg { color: #9cdcfe; } /* Name.Variable.Global */
.highlight .vi { color: #9cdcfe; } /* Name.Variable.Instance */
.highlight .il { color: #b5cea8; } /* Literal.Number.Integer.Long */

.post-content blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.post-nav-link:hover {
    color: var(--text-color);
    text-decoration: none;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.post-nav-title {
    font-weight: 500;
    color: var(--text-color);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Styles */
.page-content {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .avatar-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-description {
        font-size: 1.1rem;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .post-date {
        min-width: auto;
        margin-right: 0;
    }
    
    .post-tags {
        margin-left: 0;
    }
    
    .simple-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .post-nav-next {
        text-align: left;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 