@charset "utf-8";

/**
 * orenoyari/local2026.css
 * 「オレの演り」専用：2026年モダン・ダークデザイン
 * 高視認性・パープルアクセント・完全ダークモード対応
 */

:root {
    --yari-accent: #9933ff;      /* オレの演り ブランドカラー（パープル） */
    --yari-accent-hover: #b366ff;
    --main-bg: #121212;
    --sub-bg: #1e1e1e;          /* 記事エリア用 */
    --main-text: #e0e0e0;
    --sub-text: #aaaaaa;
    --border-color: #333333;
}

/* 1. 全体設定 */
body {
    background-color: var(--main-bg) !important;
    color: var(--main-text);
}

a {
    color: var(--yari-accent) !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}

a:hover {
    color: var(--yari-accent-hover) !important;
    opacity: 0.8;
}

/* --- グローバルヘッダーのアクティブ表示をパープルで強制上書き --- */
.navbar-nav .nav-link.active {
    color: var(--yari-accent) !important;
    font-weight: 900 !important;
    border-bottom: 2px solid var(--yari-accent) !important;
}

/* 2. 記事エリア (article) */
article {
    background-color: var(--sub-bg) !important;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

article h1 {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

article .issue {
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    color: var(--sub-text);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* 3. 本文の読みやすさ */
.honbun {
    font-size: 1.4rem !important;
    line-height: 2.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.honbun p {
    margin-bottom: 1.8em;
}

/* 画像レスポンシブ対応 */
.honbun img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 35px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: none !important;
    padding: 0 !important;
}

/* 見出し (H3) パープルL字装飾 */
.honbun h3 {
    border-left: 10px solid var(--yari-accent);
    border-bottom: 1px solid var(--yari-accent);
    padding: 12px 0 12px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin: 5rem 0 3rem 0;
    background: linear-gradient(to right, rgba(153, 51, 255, 0.1), transparent);
}

/* 4. サイドバー：カラーリングの統一 */
.side_col h3 {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--yari-accent) !important;

    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 1.5rem;
}

/* カード全体のホバーエフェクト */
.side-recent-card {
    transition: all 0.2s ease-in-out;
}

.side-recent-card:hover {
    background-color: #252525 !important;
    border-color: var(--yari-accent) !important;
}

/* 【重要】画像が枠いっぱいに広がり、中央で切り取られる設定 */
.side-recent-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* これで左上寄りにならず中央から写ります */
}

/* タイトルテキストの色（オレの演り専用：パープル） */
.text-yari-accent {
    color: var(--yari-accent) !important;
}

/* ホバー時に文字色を明るく */
.side-recent-card:hover .text-yari-accent {
    color: var(--yari-accent-hover) !important;
}


/* 5. 検索 & 共通パーツ */
.search_found {
    background-color: var(--yari-accent);
    color: #000;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* 検索フォームの青い枠線をパープルに（フォーカス時含む） */
.form-control {
    border-color: var(--border-color) !important;
}

.form-control:focus {
    border-color: var(--yari-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(153, 51, 255, 0.3) !important;
}

/* 検索ボタン */
.btn-primary {
    background-color: var(--yari-accent) !important;
    border: none !important;
    font-weight: bold !important;
    color: #fff !important;
}

/* カテゴリ・アーカイブのリスト */
.list-group-item {
    background-color: var(--sub-bg) !important;
    color: var(--main-text) !important;
    border-color: var(--border-color) !important;
}

.list-group-item.active {
    background-color: var(--yari-accent) !important;
    border-color: var(--yari-accent) !important;
    color: #fff !important;
}

.list-group-item:hover {
    color: var(--yari-accent) !important;
    background-color: #252525 !important;
}

/* バッジ */
.badge {
    background-color: var(--yari-accent) !important;
    color: #fff !important;
    opacity: 0.8;
}

/* -----------------------------------------------------------
   6. 関連リンクカード (relate_anker) 
----------------------------------------------------------- */
.relate_anker {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 140px;
    margin: 40px 0;
    padding: 30px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.relate_anker::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.relate_anker strong {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}

.relate_anker .site {
    position: relative;
    z-index: 2;
    color: var(--yari-accent) !important;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    display: block;
    text-transform: uppercase;
}

/* 7. ナビゲーション・ページ送りボタンのデザイン修正 */
.btn-outline-primary,
#pager a.btn-primary {
    background-color: var(--yari-accent) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
#pager a.btn-primary:hover {
    background-color: var(--yari-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* 8. モバイル対応 */
@media (max-width: 767.98px) {
    article {
        padding: 25px 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    article h1 {
        font-size: 1.7rem !important;
    }

    .honbun {
        font-size: 1.2rem !important;
        line-height: 1.9;
    }

    .relate_anker {
        padding: 20px 15px;
        min-height: 110px;
    }

    .relate_anker strong {
        font-size: 1.1rem;
    }
}

/* 引用 (blockquote) */
blockquote {
    position: relative;
    padding: 30px 20px 20px 60px;
    background: #252525 !important;
    border-radius: 10px;
    margin: 40px 0;
    font-style: italic;
    color: #bbb;
    border: none;
}

blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 28px;
    color: var(--yari-accent);
    opacity: 0.5;
}