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

/* Body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
header {
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 10;
}

#icon {
    float: left;
    margin-left: 20px;
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.8rem;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../background-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#hero h1 {
    font-size: 8rem;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }
}

#icon img {
    width: 50px; /* アイコンの幅を指定 */
    height: 50px; /* アイコンの高さを指定 */
    border-radius: 50%; /* 丸型にする */
    object-fit: cover; /* 画像を枠内に収める */
    border: 2px solid #333; /* アイコンの周囲に枠を付ける（必要に応じて変更） */
    transition: transform 0.3s; /* ホバーアニメーション用 */
}

#icon img:hover {
    transform: scale(1.1); /* ホバー時に少し拡大 */
    cursor: pointer; /* ホバー時にポインタ表示 */
}

/* Blog Section */
#blog {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Blog Post Summary (List View) */
.blog-post-summary {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.blog-post-summary:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-post-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-post-summary h2 a {
    text-decoration: none;
    color: #333;
}

.blog-post-summary h2 a:hover {
    color: #007BFF;
}

.blog-post-summary p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #007BFF;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
}


/* Full Blog Post (Detail View) */
.blog-post-full {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.blog-post-full h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.blog-post-full .post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.blog-post-full p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* --- Rich Content Styles --- */

.blog-post-full .blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post-full a {
    color: #007BFF;
    text-decoration: none;
}

.blog-post-full a:hover {
    text-decoration: underline;
}

.blog-post-full .code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    white-space: pre;
}

.blog-post-full .quote-block {
    border-left: 4px solid #007BFF;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.blog-post-full .quote-block footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
    text-align: right;
    color: #777;
}


/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.post-navigation a {
    text-decoration: none;
    color: #fff;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background-color: #0056b3;
}

.post-navigation .back-to-list {
    background-color: #6c757d;
}

.post-navigation .back-to-list:hover {
    background-color: #5a6268;
}