/* 記事のタイトルにスタイルを適用 */
.site-title h1 {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    /* margin-top: 20px; */
    text-decoration: none;
}

.articles-list .article h2 {
    font-size: 26px;
    color: #010c14ff;
    font-weight: bold;
    /* margin-top: 20px;
    margin-bottom: 15px; */
    line-height: 1.4;
}

.articles-list .article h2 a {
    color: green;
    text-decoration: none;
}

.articles-list .article h2 a:hover {
    color: #3498db;
}

/* 本文内のh2にスタイルを適用（記事本文内のh2だけターゲット） */
.article .body h2 {
    font-size: 22px;
    color: #2a80b9;
    font-weight: normal;
    margin-top: 15px;
    margin-bottom: 10px;
}

.article h3 {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    color: var(--primary-color-dark);
    margin-bottom: 10px;
}

.article h4 {
    font-size: 18px;
    color: #333;
    font-weight: normal;
    margin-bottom: 10px;
}

.article p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.articles-list {
    display: flex;
    width: 100%;
    max-width: 1400px;
    flex-direction: column;
    /* gap: 20px; */
    margin: 0 auto;
}

.main-container h2,
.main-container p.description {
    display: flex;
    width: 100%;
    max-width: 1400px;
    /* gap: 20px; */
    margin: 0 auto;
}

.main-container p.description {
    font-size: 18px;
    color: #333;
}

/* 検索用記事一覧ページのスタイル */

.search-description {
    font-size: 1.1rem;
    color: var(--text-color);
}

.individual-article-title {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.8rem;
    /* margin-bottom: 1.5rem; */
    border-left: 12px double var(--strong-orange);
    padding-left: 0.75rem;
    color: var(--strong-green);
}

.individual-article-title a {
    color: var(--strong-green); /* 親の色を引き継ぐ */
    text-decoration: none;
    border-left: none;
    align-items: center; /* 垂直方向に中央揃え */
}

.individual-article-title a:hover {
    color: var(--strong-red);
    text-decoration: none;
}

/* 記事の区切り線 */
.article-divider {
    border: none;
    border-top: 2px dashed var(--strong-gold);
    width: 90%;
    margin: 2rem auto;
}

/* 次の記事ボタン */
.next-article-button {
    font-size: 1.2rem;
    margin-left: 1em;
    padding: 0.25em 0.6em;
    background-color: var(--strong-gray);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.next-article-button:hover {
    background-color: var(--strong-navy);
}

/* article_search_extra.css に追加 */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .site-title h1 {
        font-size: 0.9rem;
    }

    .individual-article-title {
        font-family: "Zen Kaku Gothic New", sans-serif;
        font-size: 1.4rem;
        margin-bottom: 1rem;
        border-left: 12px double var(--strong-orange);
        padding-left: 0.75rem;
        color: var(--strong-green);
    }

    .individual-article-title a {
        color: var(--strong-green); /* 親の色を引き継ぐ */
        text-decoration: none;
        border-left: none;
    }

    .individual-article-title a:hover {
        color: var(--strong-red);
        text-decoration: none;
    }
    .next-article-button {
        font-size: 0.8rem;
        margin-left: 1em;
        /* padding: 0.25em 0.6em; */
        background-color: var(--strong-gray);
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        /* padding: 0.3rem 0.7rem; */
        border-radius: 5px;
        text-decoration: none;
        white-space: nowrap;
    }

    .next-article-button:hover {
        background-color: var(--strong-navy);
    }

    .article h2 {
        font-family: "Zen Kaku Gothic New", sans-serif;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        border-left: 5px solid var(--primary-color);
        padding-left: 0.75rem;
        color: var(--primary-color);
    }
    .article h3 {
        font-size: 1.2rem;
        color: #333;
        font-weight: bold;
        color: var(--primary-color-dark);
        margin-bottom: 1rem;
    }

    .article h4 {
        font-size: 1rem;
        color: #333;
        font-weight: normal;
        margin-bottom: 1rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    a:hover {
        color: inherit;
        background-color: transparent;
    }
}

.category_link_for_search {
    color: var(--primary-color-dark);
    text-decoration: none;
    font-weight: bold;
    text-align: right;
}
