/* =======================================
   404 Page Styles
   ======================================= */

:root {
    --main-color: #00B4D8;
    --accent-color: #0077B6;
    --base-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f2f2f2;
}

/* メイン領域全体 */
.error-404.not-found {
    background-color: var(--light-gray);
    padding: 60px 20px;
    text-align: center;
}

/* 見出し */
.error-404.not-found .page-title {
    color: var(--accent-color);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: bold;
    margin-bottom: 20px;
}

/* 説明テキスト */
.error-404.not-found .page-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 検索フォーム */
.error-404.not-found form.search-form {
    max-width: 400px;
    margin: 0 auto 40px;
}

.error-404.not-found .search-field {
    width: 70%;
    padding: 10px;
    border: 1px solid var(--accent-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.error-404.not-found .search-submit {
    width: 30%;
    padding: 10px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.error-404.not-found .search-submit:hover {
    background-color: var(--main-color);
}

/* 最近の投稿 */
.error-404.not-found .recent-posts {
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404.not-found .recent-posts h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-404.not-found .recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-404.not-found .recent-posts li {
    margin-bottom: 8px;
}

.error-404.not-found .recent-posts a {
    color: var(--main-color);
    text-decoration: none;
}

.error-404.not-found .recent-posts a:hover {
    text-decoration: underline;
}

/* 便利なリンク */
.error-404.not-found .site-map-links {
    margin-top: 50px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404.not-found .site-map-links h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-404.not-found .site-map-links ul {
    list-style: none;
    padding: 0;
}

.error-404.not-found .site-map-links li {
    margin-bottom: 8px;
}

.error-404.not-found .site-map-links a {
    color: var(--main-color);
    text-decoration: none;
}

.error-404.not-found .site-map-links a:hover {
    text-decoration: underline;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {

    .error-404.not-found .search-field,
    .error-404.not-found .search-submit {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .error-404.not-found form.search-form {
        display: block;
    }
}