/* common.css のスタイルをベースに、このページ特有のスタイルを追加 */

/* メインコンテンツエリアのパディングは common.css の body padding に依存 */
/* main { padding: 0 20px; } は削除または調整 */

.content-block {
    background-color: rgba(10, 3, 26, 0.85);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.55), 0 0 8px rgba(0, 255, 255, 0.75) inset;
    border: 1.5px solid rgba(0, 255, 255, 0.75);
    padding: 20px 25px; /* スマホ向けに少し調整 */
    margin-bottom: 30px; /* スマホ向けに少し調整 */
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    color: #e0e0e0;
}
@media (min-width: 768px) { /* タブレット以上 */
    .content-block {
        padding: 25px 30px;
        margin-bottom: 40px;
    }
}


.content-block h2.block-title {
    color: #00ffff;
    text-shadow: 0 0 7px #00ffff, 0 0 12px #00ffff;
    font-weight: 700;
    font-size: 1.5em; /* common.css の h2 と同等か少し大きく */
    margin-top: 0;
    margin-bottom: 0.8em;
    text-align: center;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.4);
    padding-bottom: 0.6em;
}
@media (min-width: 768px) {
     .content-block h2.block-title {
        font-size: 1.6em;
        margin-bottom: 1em;
     }
}


.search-form label {
    display: block;
    margin-bottom: 6px; /* 少し詰める */
    color: #00ffff;
    text-shadow: 0 0 4px #00ffff;
    font-weight: 700;
    font-size: 0.9em;
}
 @media (min-width: 768px) {
    .search-form label {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
}

.search-form input[type="date"],
.search-form input[type="text"] {
    width: 100%;
    padding: 8px 10px; /* 少し小さく */
    margin-bottom: 15px; /* 少し詰める */
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    color: #e0e0e0;
    border-radius: 5px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.95em;
    box-shadow: 0 0 3px rgba(0, 255, 255, 0.3) inset;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* paddingを含めた幅計算 */
}
@media (min-width: 768px) {
    .search-form input[type="date"],
    .search-form input[type="text"] {
        padding: 10px 12px;
        margin-bottom: 18px;
        font-size: 1em;
    }
}


.search-form input[type="date"]:focus,
.search-form input[type="text"]:focus {
    outline: none;
    border-color: #ff00ff; /* common.css の a:hover に合わせる */
    box-shadow: 0 0 10px #ff00ff, 0 0 5px rgba(255, 0, 255, 0.5) inset;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px; /* 少し詰める */
    margin-bottom: 15px;
}
@media (min-width: 768px) { /* タブレット以上で2カラム */
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }
}

.form-actions {
    display: flex;
    flex-direction: column; /* スマホでは縦積み */
    gap: 10px;
    margin-top: 15px; /* 少し詰める */
}
@media (min-width: 600px) { /* ボタンが横並びになるブレークポイントを少し早める */
    .form-actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 20px;
    }
}

.form-actions button {
    padding: 9px 18px; /* 少し小さく */
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%; /* スマホでは幅いっぱい */
}
 @media (min-width: 600px) {
    .form-actions button {
        width: auto; /* PCでは幅自動 */
        padding: 10px 20px;
        font-size: 1em;
    }
}


.form-actions button.search-button {
    background-color: rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
    color: #00ffff;
    text-shadow: 0 0 6px #00ffff;
}
.form-actions button.search-button:hover {
    background-color: rgba(0, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px #00ffff, 0 0 6px #00ffff inset;
    transform: scale(1.03);
}

.form-actions button.clear-button {
    background-color: rgba(255, 0, 255, 0.15);
    border: 1px solid #ff00ff;
    color: #ff00ff;
    text-shadow: 0 0 6px #ff00ff;
}
.form-actions button.clear-button:hover {
    background-color: rgba(255, 0, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 12px #ff00ff, 0 0 6px #ff00ff inset;
    transform: scale(1.03);
}


/* 記事アイテムのスタイル */
.blog-post-item {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 少し詰める */
    background-color: rgba(10, 3, 26, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    padding: 15px; /* 少し小さく */
    margin-bottom: 20px; /* 少し詰める */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
}
@media (min-width: 640px) { /* common.css のスマホ用ブレークポイントに合わせる */
    .blog-post-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        margin-bottom: 25px;
    }
}
.blog-post-item:hover {
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
    transform: translateY(-3px);
}


.blog-post-item .post-image-container {
    flex-shrink: 0;
    width: 100%;
    max-width: 120px; /* スマホでの最大幅を少し小さく */
    margin: 0 auto 10px auto; /* スマホで中央寄せ、下マージン少し詰める */
}
@media (min-width: 640px) {
    .blog-post-item .post-image-container {
        width: 100px; /* PCでの固定幅を少し小さく */
        max-width: none;
        margin: 0;
    }
}
 @media (min-width: 768px) { /* タブレットでは少し大きく */
    .blog-post-item .post-image-container {
        width: 120px;
    }
}


.blog-post-item .post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.blog-post-item .post-content {
    flex-grow: 1;
    width: 100%; /* スマホでテキストが画像の下に来た時に幅を確保 */
}
 @media (min-width: 640px) {
    .blog-post-item .post-content {
        width: auto; /* PCでは自動幅 */
    }
}


.blog-post-item .post-title {
    margin-top: 0;
    margin-bottom: 6px;
}
.blog-post-item .post-title a {
    font-size: 1.25em; /* 少し小さく */
    font-weight: 700;
}
 @media (min-width: 768px) {
    .blog-post-item .post-title a {
        font-size: 1.4em;
    }
}

.blog-post-item .post-meta {
    font-size: 0.8em;
    color: #a0a0a0;
    margin-bottom: 8px;
}
 @media (min-width: 768px) {
    .blog-post-item .post-meta {
        font-size: 0.85em;
        margin-bottom: 10px;
    }
}

.blog-post-item .post-excerpt {
    font-size: 0.9em;
    color: #c0c0c0;
    line-height: 1.6; /* 少し詰める */
    margin-bottom: 10px;
}
 @media (min-width: 768px) {
    .blog-post-item .post-excerpt {
        font-size: 0.95em;
        line-height: 1.7;
        margin-bottom: 12px;
    }
}


.blog-post-item .post-tags .tag-label {
    display: inline-block;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 3px 8px; /* 少し小さく */
    border-radius: 15px;
    font-size: 0.7em; /* 少し小さく */
    margin-right: 6px;
    margin-bottom: 6px;
    text-shadow: 0 0 2px rgba(0,255,255,0.5);
}
 @media (min-width: 768px) {
    .blog-post-item .post-tags .tag-label {
        padding: 4px 10px;
        font-size: 0.75em;
        margin-right: 8px;
        margin-bottom: 8px;
    }
}

/* ページネーションのスタイル */
#pagination-controls {
    margin-top: 25px; /* 少し詰める */
    text-align: center;
}
.pagination-button {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    text-shadow: 0 0 3px #00ffff;
    padding: 7px 12px; /* 少し小さく */
    margin: 0 4px; /* 少し詰める */
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em; /* 少し小さく */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
 @media (min-width: 768px) {
    .pagination-button {
        padding: 8px 15px;
        margin: 0 5px;
        font-size: 0.9em;
    }
}

.pagination-button:hover:not(:disabled),
.pagination-button:focus:not(:disabled) {
    background-color: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 10px #00ffff;
    transform: scale(1.05);
}
.pagination-button.active {
    background-color: #00ffff;
    color: #1a1a2e;
    text-shadow: none;
    box-shadow: 0 0 10px #00ffff, 0 0 5px #00ffff inset;
    cursor: default;
}
.pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.5);
    text-shadow: none;
}

#no-results-message p {
    color: #00ffff;
    font-size: 1.1em; /* 少し小さく */
    text-shadow: 0 0 5px #00ffff;
    padding: 15px; /* 少し小さく */
}
 @media (min-width: 768px) {
    #no-results-message p {
        font-size: 1.25em;
        padding: 20px;
    }
}

/* common.css の .sr-only 相当（もしなければ） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}