/*
Theme Name: ARJ NEWS v1.6 Logo Link Fix
Theme URI: https://www.arj.co.jp/blog/
Author: ARJ.co.,ltd.
Description: ARJ NEWS専用テーマ。既存ARJウェブサイトの外観をベースに、WordPress投稿を表示します。
Version: 1.6
Text Domain: arj-news
*/

/* WordPress NEWS area only. Existing ARJ styles are loaded separately. */
body.blog, body.single, body.archive, body.search {
    min-width: 0;
}

.arj-news-heading {
    margin-bottom: 30px;
}

.arj-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.arj-news-item {
    border-bottom: 1px solid #555;
    padding: 18px 5px;
}

.arj-news-item:first-child {
    border-top: 1px solid #555;
}

.arj-news-date {
    display: inline-block;
    width: 8.5em;
    color: #aaa;
    vertical-align: top;
}

.arj-news-title {
    display: inline-block;
    max-width: calc(100% - 9em);
}

.arj-news-title a {
    color: #fff;
    text-decoration: none;
}

.arj-news-title a:hover {
    color: #e60012;
}

.arj-news-excerpt {
    margin: 8px 0 0 8.8em;
    color: #ccc;
}

.arj-post-meta {
    color: #aaa;
    margin: -8px 0 25px;
}

.arj-post-content {
    font-size: 16px;
    line-height: 2;
}

/* Ver.0.4 width 820: text blocks only are constrained.
   Images remain available at the full article width. */
.arj-post-content p,
.arj-post-content ul,
.arj-post-content ol,
.arj-post-content blockquote {
    max-width: 820px;
}

.arj-post-content img {
    max-width: 100%;
    height: auto;
}

.arj-post-content a {
    text-decoration: underline;
}

.arj-back {
    margin-top: 35px;
}

.arj-back a {
    display: inline-block;
    border: 1px solid #777;
    padding: 8px 15px;
    text-decoration: none;
}

.arj-back a:hover {
    border-color: #e60012;
}

.navigation.pagination {
    margin-top: 30px;
}

.nav-links .page-numbers {
    display: inline-block;
    margin-right: 6px;
    padding: 6px 10px;
    border: 1px solid #555;
    text-decoration: none;
}

.nav-links .current {
    border-color: #e60012;
    color: #fff;
}

@media screen and (max-width:800px) {
    .arj-news-date,
    .arj-news-title {
        display: block;
        width: auto;
        max-width: none;
    }

    .arj-news-excerpt {
        margin-left: 0;
    }
}



/* Ver.0.7: 本文幅820px + PCでは本文ブロックを40px右へ。
   文字自体は左揃えのまま。画像・見出し帯は動かさない。 */
@media (min-width: 801px) {
    .arj-post-content p,
    .arj-post-content ul,
    .arj-post-content ol,
    .arj-post-content blockquote {
        max-width: 820px;
        margin-left: 40px;
        margin-right: 0;
    }
}


/* Ver.1.0: 既存の赤いタイトル帯の中で、タイトルと日付をFlex配置 */
.single-post .arj-post-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.single-post .arj-post-title .arj-title-text {
    min-width: 0;
}

.single-post .arj-post-title .arj-post-date {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #f2f2f2;
    font-size: 0.72em;
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
}

/* スマホではタイトルと日付を2段にする */
@media (max-width: 800px) {
    .single-post .arj-post-title {
        display: block;
    }

    .single-post .arj-post-title .arj-post-date {
        display: block;
        margin-top: 6px;
        font-size: 0.68em;
        white-space: normal;
    }
}


/* Ver.1.1: スマホ用メニューは初期状態で閉じ、ハンバーガー操作時だけ表示 */
@media screen and (max-width:800px) {
    #menubar-s {
        display: none;
    }

    #menubar-s.is-open {
        display: block;
    }

    #menubar_hdr {
        cursor: pointer;
        z-index: 20;
    }
}


/* Ver.1.2: ブログ記事一覧 */
.arj-blog-list {
    margin-top: 16px;
}

.arj-list-item {
    display: flex;
    gap: 24px;
    padding: 22px 4px;
    border-top: 1px solid #333;
}

.arj-list-item:last-child {
    border-bottom: 1px solid #333;
}

.arj-list-thumb {
    flex: 0 0 240px;
    width: 240px;
    height: 150px;
    display: block;
    overflow: hidden;
    background: #171717;
    text-decoration: none;
}

.arj-list-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arj-list-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    letter-spacing: .08em;
}

.arj-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.arj-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
}

.arj-list-cats a {
    color: #ddd;
    text-decoration: none;
}

.arj-list-cats a:hover {
    text-decoration: underline;
}

/* Ver.1.3: 一覧の記事タイトルは赤帯を使わず、白文字の小見出しにする */
.arj-blog-list .arj-list-item .arj-list-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 21px !important;
    font-weight: bold;
    line-height: 1.5;
}

.arj-blog-list .arj-list-item .arj-list-title a {
    display: inline;
    padding: 0;
    background: none !important;
    color: #fff !important;
    text-decoration: none;
}

.arj-list-title a:hover {
    text-decoration: underline;
}

.arj-list-excerpt {
    color: #ddd;
    font-size: 14px;
    line-height: 1.9;
}

/* スマホ：画像→情報の縦並び */
@media screen and (max-width:800px) {
    .arj-list-item {
        display: block;
        padding: 18px 0 22px;
    }

    .arj-list-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 14px;
    }

    .arj-list-meta {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .arj-list-title {
        font-size: 18px;
        margin-bottom: 9px;
    }

    .arj-list-excerpt {
        font-size: 14px;
        line-height: 1.75;
    }
}


/* v1.4: category/tag archive label */
.arj-archive-label {
    margin: 18px 0 8px;
    padding: 0 4px 10px;
    color: #ddd;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #333;
}
@media (max-width: 800px) {
    .arj-archive-label {
        margin-top: 12px;
        font-size: 16px;
    }
}


/* v1.5: スマホ時の一覧サムネイルを全幅表示しない */
@media screen and (max-width:800px) {
    .arj-list-thumb {
        width: 280px;
        max-width: 72%;
        height: 175px;
        aspect-ratio: auto;
        margin: 0 0 14px 0;
    }

    .arj-list-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
