/* blog.css */

/* 検索ボックスのスタイル */
#search-date {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: #ffffff;
}

/* ブログリストのスタイル */
#blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ブログ記事のプレビュー */
.blog-post {
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.blog-post:hover {
    background-color: #3b3b3b;
    transform: translateY(-5px);
}

.blog-post h3 {
    margin: 0;
    color: #3b5998;
}

.blog-post p {
    margin: 5px 0 0;
}

.excerpt {
    max-height: 3.6em; /* 2行分の高さ */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post.expanded .excerpt {
    max-height: none;
    white-space: normal;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #3b5998;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* オーバーレイのスタイル */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
}

.overlay.show {
    display: flex;
    opacity: 1;
}

.overlay-content {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 80%;
    max-width: 600px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s;
}

.overlay.show .overlay-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

.article-content {
    margin-top: 20px;
    color: white;
}

/* h3のスタイル */
.blog-title {
    color: #747474;
    font-size: 1.8em;
    margin-bottom: 10px;
    border-bottom: 2px solid #3b5998;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.blog-title:hover {
    color: #3b5998;
    border-color: #333333;
}

/* pのスタイル */
.blog-content {
    color: #a3a3a3;
    line-height: 1.6;
    margin-top: 0;
    font-size: 1em;
    transition: color 0.3s ease;
}

.blog-content:hover {
    color: #3b5998;
}
