/*
Theme Name: SEO Beast Custom
Author: Your Name & Gemini
Description: 三菱地所レジデンス風の洗練されたSEO特化テーマ。
Version: 1.5 (Tokyo Mincho Edition)
*/

/* --- 1. Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #1a1a1a;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* --- 2. Header & Navigation (透明ヘッダー対応) --- */
#page { padding-top: 0 !important; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 10000;
}

/* トップページ専用：透明ヘッダー */
.home-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent !important;
    border: none !important;
}

/* ロゴのテキストスタイル */
.main-logo-link { text-decoration: none !important; }

.logo-text {
    color: #ffffff !important;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 10px 0;
}

/* メニューのリンク設定 */
.home-header .menu-container ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-left: 20px;
}

/* --- 3. Hero Section (動画・画像) --- */
.custom-header {
    width: 100%;
    height: 100%; 
    line-height: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.wp-custom-header {
    width: 100%;
    height: 100%; 
    position: relative;
    z-index: 1;
}

.wp-custom-header img, 
.wp-custom-header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 4. 4大カテゴリー：全幅ジグザグレイアウト (Tokyo Mincho Custom) --- */
.top-category-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    z-index: 10;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    min-height: 60vh;
    background: #000;
    border-bottom: 1px solid #222;
}

.category-row:nth-child(even) { flex-direction: row-reverse; }

.category-image, .category-info {
    flex: 0 0 50%;
    width: 50%;
    position: relative;
    overflow: hidden;
}

.category-image img, .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.placeholder-img {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.5);
}

.category-row:hover .category-image img,
.category-row:hover .placeholder-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.8);
}

/* ★★★ ここから：Tokyo Mincho & Gold スタイル ★★★ */
.category-info {
    display: flex;
    flex-direction: column; /* 縦積みに */
    align-items: center;    /* 中央揃え */
    justify-content: center;
    background: #0a0a0a;
    color: #fff;
    text-decoration: none;
    padding: 60px;
    position: relative;
    z-index: 2; /* 画像より手前に */
}

/* メインタイトル（漢字：動、静、など） - 巨大明朝体 */
.cat-main-title {
    display: block;
    /* ゴシックではなく「明朝体」で鋭さを出す */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGSMinchoE", serif;
    font-size: clamp(5rem, 12vw, 9rem); /* 画面に合わせて超巨大化 */
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: -20px; /* 下の文字と少し重ねる（オーバーラップ） */
    position: relative;
    z-index: 1;
    /* 文字のフチを少しぼかして「発光」させる */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* サブタイトル（英語：WORK...） - ゴールド */
.cat-sub-title {
    display: block;
    font-family: "Helvetica Neue", sans-serif; /* 英語はスタイリッシュなサンセリフ */
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.4em; /* 文字間隔を広げる */
    color: #d4af37;        /* ゴールド */
    background: linear-gradient(90deg, #d4af37, #fced21, #d4af37); /* 金色のグラデーション */
    -webkit-background-clip: text; /* 文字だけ光らせる */
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    position: relative;
    z-index: 2; /* 漢字の上に重ねる */
    text-transform: uppercase;
}

/* 説明文 */
.cat-description {
    font-size: 0.95rem;
    line-height: 2.2; /* 行間を広げて読みやすく */
    color: #aaa;
    margin-bottom: 40px;
    max-width: 500px;
    text-align: center;
    font-feature-settings: "palt";
}

/* ボタン（VIEW POSTS） */
.status-btn {
    display: inline-block;
    border: 1px solid #444;
    padding: 15px 40px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #fff;
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* ボタンホバー時の「金色の塗りつぶし」演出 */
.status-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #d4af37;
    transition: width 0.4s ease;
    z-index: -1;
}

.category-row:hover .status-btn {
    border-color: #d4af37;
    color: #000; /* 文字色は黒に反転 */
}

.category-row:hover .status-btn::before {
    width: 100%; /* 金色が満ちる */
}

/* --- 全体ホバー時のダイナミックな動き --- */
.category-row:hover .cat-main-title {
    transform: scale(1.05) translateY(-10px); /* ふわりと浮く */
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.4); /* 発光を強く */
}

.category-row:hover .cat-sub-title {
    letter-spacing: 0.6em; /* 英語の間隔がグワッと広がる */
    transition: 0.6s ease;
}
/* ★★★ ここまで：Tokyo Mincho & Gold スタイル ★★★ */

/* 画像エリア（準備中）のラベルを中央に固定 */
.category-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: visible !important;
}
.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.4);
}

.img-label {
    position: relative;
    z-index: 10;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ホバー時に枠を突き抜けて拡大 */
.category-row:hover .img-label {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
    letter-spacing: 0.5em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- 動画と文字を重ねるための絶対ルール --- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    background: #000;
    line-height: 0;
    overflow: hidden;
}

/* 動画の上に被せる黒い膜 */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 5;
    color: #ffffff;
    text-align: center;
}

.hero-main-title {
    font-size: clamp(1.4rem, 4vw, 3rem) !important;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.4;
}

.hero-sub-description {
    font-size: clamp(0.8rem, 2vw, 1.1rem) !important;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    padding: 0 20px;
}

/* --- 5. Responsive (スマホ対応・共通) --- */
.sp-only { display: none; }

@media (max-width: 768px) {
    .header-container { padding: 15px 20px; }
    .logo-text { font-size: 0.9rem; }
    
    .category-image, .category-info {
        flex: 0 0 100%;
        width: 100%;
        min-height: 350px;
    }
    .category-row:nth-child(even) { flex-direction: row; }
    /* スマホでの明朝体のサイズ調整 */
    .cat-main-title { font-size: 4rem; }
    
    .sp-only { display: block; }

    /* ヒーローテキスト重なり解消 */
    .hero-video-container {
        height: 60vh !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content-overlay {
        position: absolute !important;
        top: 0; left: 0;
        width: 100%; height: 100%;
        display: flex !important;
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .hero-main-title {
        font-size: 1.4rem !important; 
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .hero-sub-description {
        font-size: 0.85rem !important;
        line-height: 1.7 !important;
        margin: 0 auto;
        max-width: 90%;
    }
}

/* --- ロゴ周りの青い帯を消滅させる --- */
.site-branding, .main-logo-link, .logo-text {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- 5枚目【醒】の特別ルール --- */
.category-row.is-recovery-special {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 450px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.is-recovery-special .category-image {
    position: absolute !important;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    z-index: 1;
}

.is-recovery-special .category-image img,
.is-recovery-special .placeholder-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.4);
}

/* 5枚目：テキストエリア */
.is-recovery-special .category-info {
    position: absolute !important;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    z-index: 2;
    background: transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.is-recovery-special .cat-main-title {
    font-size: clamp(3rem, 8vw, 5rem) !important;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.is-recovery-special:hover .category-image img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

/* --- 記事ページ・共通パーツ --- */
.single-post { background-color: #050505 !important; color: #ccc; }
.single-post main { background-color: #111; max-width: 850px; margin: 40px auto; padding: 60px 50px; border: 1px solid #222; position: relative; z-index: 10; }
.single-post a { color: #d4af37; text-decoration: none; border-bottom: 1px solid rgba(212, 175, 55, 0.3); transition: 0.3s; }
.single-post a:hover { color: #fff; border-bottom: 1px solid #fff; }
.single-post header, .single-post footer { background-color: #000 !important; border-bottom: 1px solid #222; }

/* 記事コンテンツ */
.single-post .entry-content { line-height: 2.2; font-size: 1.1rem; letter-spacing: 0.05em; }
.single-post .entry-title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: #fff; text-align: center; margin: 100px 0 60px; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; margin-top: 80px; margin-bottom: 30px; font-weight: 700; }
.entry-content h4 { background: #111; padding: 15px 20px; border-left: 2px solid #d4af37; }

/* H2装飾 */
.entry-content h2 { position: relative; padding: 20px 25px; background: linear-gradient(90deg, #1a1a1a 0%, #111 100%); border-left: 4px solid #d4af37; font-size: 1.5rem; margin: 80px -20px 40px -20px; }
.entry-content { counter-reset: chapter; }
.entry-content h2::before { counter-increment: chapter; content: "CHAPTER " counter(chapter); position: absolute; top: -25px; left: 0; font-size: 0.7rem; color: #d4af37; letter-spacing: 0.3em; }

/* アイキャッチ画像 */
.single-post .post-thumbnail { text-align: center; margin: -60px -50px 60px -50px !important; position: relative; overflow: hidden; }
.single-post .post-thumbnail img { width: 100%; height: auto; border: 1px solid #333; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); filter: brightness(0.9); mask-image: linear-gradient(to bottom, black 80%, transparent 100%); }

/* この記事を書いた人 */
.author-info { max-width: 750px; margin: 100px auto; background: #0a0a0a; border: 1px solid #222; padding: 40px; display: flex; align-items: center; gap: 40px; position: relative; }
.author-info::before { content: "ABOUT AUTHOR"; position: absolute; left: -40px; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: 0.7rem; letter-spacing: 0.5em; color: #444; }
.author-avatar img { border-radius: 50%; filter: grayscale(1); border: 2px solid #333; padding: 5px; width: 100px; height: 100px; }
.author-description h5 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.author-description p { font-size: 0.9rem; color: #888; }
@media (max-width: 768px) { .author-info { flex-direction: column; text-align: center; margin: 60px 20px; } .author-info::before { display: none; } }

/* パンくずリスト */
.custom-breadcrumb { text-align: center; margin-bottom: 20px; font-size: 0.75rem; letter-spacing: 0.2em; color: #666; }
.custom-breadcrumb a { color: #888 !important; border: none !important; }
.custom-breadcrumb a:hover { color: #fff !important; }

/* 背景画像（固定） */
.article-background-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
.bg-side { position: absolute; top: 0; width: 35%; height: 100%; background-size: cover; background-position: center; opacity: 0.12; transition: 0.5s; }
.bg-left { left: 0; filter: grayscale(100%); mask-image: linear-gradient(to right, black 50%, transparent 100%); }
.bg-right { right: 0; mask-image: linear-gradient(to left, black 50%, transparent 100%); }

/* スライダー */
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; background: #000; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; z-index: 1; }
.hero-content-overlay { z-index: 10 !important; }

/* --- PCナビゲーション：洗練された横並び (バックアップ) --- */
@media (min-width: 769px) {
    .main-navigation ul { display: flex; list-style: none; }
    .main-navigation li { margin-left: 30px; position: relative; }
}

/* =========================================
   ユニカビジョン風：モバイルメニュー (768px以下) - 完全修正版
   ========================================= */
@media (max-width: 768px) {
    /* ★★★ ここが復活ポイント！ ★★★ */
    .sp-only { display: block !important; }

    /* ハンバーガーボタン本体 */
    .menu-toggle {
        display: block;
        width: 30px; 
        height: 24px;
        position: fixed;
        right: 20px;
        top: 25px;
        z-index: 10001;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%; 
        height: 1px;
        background: #fff;
        position: absolute;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 20px; }
    
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* 全画面メニュー本体 */
    .menu-container {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #000;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 80px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .menu-container.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* スマホメニュー内のロゴ設定 */
    .mobile-menu-header {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid #333;
    }
    
    /* ロゴのリンク設定 */
    .mobile-logo-link {
        text-decoration: none !important;
        display: inline-block !important; 
        padding: 0 !important;            
        width: auto !important;           
    }

    /* ★ロゴの横に勝手に出る「矢印（→）」を消す */
    .mobile-logo-link::after {
        display: none !important;
        content: none !important;
    }

    /* ★修正点：ロゴの前に勝手に出る「番号（01）」も消す */
    .mobile-logo-link::before {
        display: none !important;
        content: none !important;
        counter-increment: none !important; /* カウントアップもさせない */
    }

    .mobile-logo-text {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 900;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        display: inline-block;
        border: 1px solid #fff;
        padding: 10px 20px;
        transition: 0.3s;
    }

    /* 押した瞬間に少し凹む演出 */
    .mobile-logo-link:active .mobile-logo-text {
        background: #fff;
        color: #000;
        transform: scale(0.95);
    }

    /* リスト設定（カウンター準備） */
    .menu-container ul {
        list-style: none;
        padding: 0 20px 40px; 
        counter-reset: menu-rank; 
    }

    /* ガラスの箱設定 */
    .menu-container li {
        margin-bottom: 12px; 
        background: rgba(255, 255, 255, 0.05); 
        border: 1px solid rgba(255, 255, 255, 0.1); 
        border-radius: 6px; 
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s ease;
    }

    /* メニュー出現時のアニメーション（時間差） */
    .menu-container.is-active li { opacity: 1; transform: translateY(0); }
    .menu-container.is-active li:nth-child(1) { transition-delay: 0.1s; }
    .menu-container.is-active li:nth-child(2) { transition-delay: 0.15s; }
    .menu-container.is-active li:nth-child(3) { transition-delay: 0.2s; }
    .menu-container.is-active li:nth-child(4) { transition-delay: 0.25s; }
    .menu-container.is-active li:nth-child(5) { transition-delay: 0.3s; }
    .menu-container.is-active li:nth-child(6) { transition-delay: 0.35s; }
    .menu-container.is-active li:nth-child(7) { transition-delay: 0.4s; }

    /* リンク全体のレイアウト */
    .menu-container a {
        display: flex;
        align-items: center;
        padding: 20px 15px; 
        color: #fff !important;
        text-decoration: none;
    }

    /* ナンバリング（01.）設定 */
    .menu-container a::before {
        counter-increment: menu-rank;
        content: "0" counter(menu-rank);
        color: #d4af37; /* ゴールド */
        font-family: "Helvetica Neue", sans-serif;
        font-weight: 700;
        font-size: 1.0rem;
        margin-right: 18px;
        opacity: 0.9;
        letter-spacing: 0.05em;
    }

    /* テキストラッパー */
    .menu-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-right: auto; 
    }

    /* メイン英語 */
    .main-text {
        font-size: 1.4rem; 
        font-weight: 800;
        letter-spacing: 0.1em;
        line-height: 1.1;
        text-transform: uppercase;
    }
    .main-text::before { display: none !important; }

    /* サブ日本語 */
    .sub-text {
        font-size: 0.7rem;
        color: #aaa;
        margin-top: 4px;
        letter-spacing: 0.05em;
        font-weight: 400;
    }

    /* 矢印（→） */
    .menu-container a::after {
        content: '';
        width: 6px; height: 6px;
        border-top: 2px solid #555; 
        border-right: 2px solid #555;
        transform: rotate(45deg);
        margin-left: 10px;
    }

    /* タップ時の演出 */
    .menu-container li:active {
        background: rgba(212, 175, 55, 0.2); 
        border-color: #d4af37;
        transform: scale(0.98); 
        transition: 0.1s;
    }
}

/* =========================================
   PC用設定 (769px以上) - Ryden風＋シネマティック＋ガラス背景（文字切れ修正版）
   ========================================= */
@media (min-width: 769px) {
    /* 1. 全体を縦並びの箱にする */
    .menu-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 15px 25px;
        overflow: hidden; /* 通常時は隠しておく */
        border-radius: 4px;
        transition: all 0.4s ease;
    }

    /* ホバー時に「黒いすりガラス」背景を出す */
    .main-navigation a:hover .menu-text-wrapper {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        overflow: visible; /* ホバー時だけはみ出しOK */
    }

    /* 2. メイン（英語） */
    .main-text {
        display: block;
        font-size: 1.2rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: 0.1em;
        line-height: 1;
        margin-bottom: 6px;
        position: relative;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        text-transform: uppercase;
        z-index: 2;
    }

    /* 英語の分身（回転用） */
    .main-text::before {
        content: attr(data-text);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        color: #d4af37;
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* 3. サブ（日本語） */
    .sub-text {
        display: block !important;
        font-size: 0.7rem;
        color: #aaa;
        font-weight: 500;
        letter-spacing: 0.05em;
        line-height: 1.2;
        white-space: nowrap;
        opacity: 0.8;
        transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 2;
    }

    /* --- ホバー時の動き --- */
    
    /* 英語回転 */
    .main-navigation a:hover .main-text { transform: translateY(-100%); }
    .main-navigation a:hover .main-text::before { 
        opacity: 1; 
        top: 0; 
        transform: translateY(0); 
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

    /* 日本語：ワイド・トラッキング */
    .main-navigation a:hover .sub-text { 
        color: #fff; 
        opacity: 1;
        letter-spacing: 0.25em; 
    }

    /* --- シネマティック・フォーカス --- */
    .main-navigation ul:hover li a {
        opacity: 0.4;
        filter: blur(1.5px);
        transition: 0.4s;
    }

    .main-navigation ul li a:hover {
        opacity: 1;
        filter: blur(0);
        transform: scale(1.05);
    }
}

/* =========================================
   SEO要塞フッター (Footer Fortress)
   ========================================= */
.site-footer {
    background-color: #050505; /* 限りなく黒に近いグレー */
    color: #888;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-widgets-area {
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* 左を広く取った3カラム */
    gap: 60px;
}

/* --- カラム1：ブランドエリア --- */
.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-bio {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.footer-sns .sns-link {
    display: inline-block;
    margin-right: 20px;
    color: #d4af37; /* ゴールド */
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid #d4af37;
    padding: 8px 15px;
    transition: 0.3s;
}

.footer-sns .sns-link:hover {
    background: #d4af37;
    color: #000;
}

/* --- カラム2 & 3：リンクリスト --- */
.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    border-left: 3px solid #d4af37; /* 左にゴールドのアクセントバー */
    padding-left: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

/* ホバー時に文字が白くなり、少し右に動く */
.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* --- 最下部：コピーライト --- */
.site-info {
    border-top: 1px solid #111;
    background: #000;
    padding: 20px;
    text-align: center;
}

.copyright {
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.1em;
}

/* =========================================
   スマホフッター：TOKYO SYSTEM GRID (究極版)
   ========================================= */
@media (max-width: 768px) {
    /* 1. ベース：サイバーグリッド背景 */
    .site-footer {
        background-color: #050505;
        /* 方眼紙のようなグリッド線を極薄で敷く */
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 20px 20px; /* 20px間隔のグリッド */
        border-top: 1px solid #d4af37; /* トップにゴールドの境界線 */
        padding-top: 10px; /* 線を目立たせる */
    }

    .footer-widgets-area {
        padding: 40px 15px 60px;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2列 */
        gap: 15px; /* パネル同士の隙間 */
        text-align: left;
    }

    /* --- ブランドエリア（上段全幅） --- */
    .footer-brand {
        grid-column: 1 / 3;
        text-align: center;
        margin-bottom: 20px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.8); /* 背景を濃くして文字を読みやすく */
        border: 1px solid #222;
        backdrop-filter: blur(5px);
    }

    .footer-logo {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .footer-bio {
        font-size: 0.75rem;
        color: #888;
        margin-top: 15px;
        text-align: left; /* 説明文は読みやすく左寄せ */
    }

    /* --- ナビゲーションパネル（左右配置） --- */
    .footer-nav, 
    .footer-legal {
        background: rgba(10, 10, 10, 0.6); /* 半透明パネル */
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 15px;
        border-radius: 2px;
    }

    /* 見出し：システムUIっぽく */
    .footer-heading {
        font-family: "Courier New", Courier, monospace; /* 等幅フォントでコード感 */
        font-size: 0.7rem;
        color: #d4af37;
        margin-bottom: 15px;
        border: none;
        padding: 0;
        letter-spacing: 0.1em;
        opacity: 0.8;
    }
    .footer-heading::before {
        content: "[ "; 
        color: #555;
    }
    .footer-heading::after {
        content: " ]"; 
        color: #555;
    }

    /* リンクリスト */
    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.75rem;
        display: block;
        padding: 6px 0 6px 10px;
        border-left: 2px solid #333; /* 未選択時は暗いバー */
        transition: 0.2s;
        color: #ccc;
    }

    /* タップ時のリアクション */
    .footer-links a:active {
        border-left-color: #d4af37; /* バーが光る */
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent); /* 横に光が走る */
        color: #fff;
        padding-left: 15px; /* 少し右に動く */
    }

    /* --- コピーライト --- */
    .site-info {
        background: #000;
        border-top: 1px solid #222;
        margin-top: 20px;
    }
    .copyright {
        font-family: "Courier New", monospace;
        font-size: 0.6rem;
        color: #555;
    }
}

/* =========================================
   Glass Profile セクション：アバター背景（ダーク・ノワール仕様）
   ========================================= */

/* --- 共通ベース --- */
.home-profile-section {
    position: relative;
    z-index: 10;
    overflow: hidden;
    
    /* 1. アバター画像の設定 */
    background-image: url('https://around50.tokyo/wp-content/uploads/2026/02/%E7%9B%AE%E7%A9%BA%E3%81%8D%E5%8F%A3%E9%96%89%E3%81%98.png'); 
    background-size: cover;
    background-position: center 20%; /* 顔の位置 */
    background-repeat: no-repeat;
    background-attachment: fixed; /* PCはパララックス */

    /* ★魔法のスパイス：背景色と画像を混ぜて「グレー」を消す */
    background-color: #111; /* ベースをほぼ黒に */
    background-blend-mode: multiply; /* 画像を「乗算」して暗くする */
    
    /* ★さらにフィルターで「渋さ」を出す */
    filter: grayscale(100%) contrast(120%) brightness(0.8);
}

/* 2. 暗黒ガラスフィルター & ヴィネット（周辺減光） */
.home-profile-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* 中心は透けていて、外側に向かって真っ黒になるグラデーション */
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, #000 90%);
    
    /* さらに全体を少し暗くする */
    box-shadow: inset 0 0 100px #000;
    z-index: 1;
}

/* --- スマホ版 (768px以下) --- */
@media (max-width: 768px) {
    .home-profile-section {
        padding: 80px 20px;
        background-attachment: scroll;
        background-position: center center;
        /* スマホは少し明るめに調整 */
        filter: grayscale(100%) contrast(110%) brightness(0.9);
    }

    .profile-glass-card {
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.6); /* 文字背景 */
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 40px 25px;
        border-radius: 2px;
        backdrop-filter: blur(5px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    }

    .profile-header {
        text-align: center;
        margin-bottom: 25px;
    }

    .profile-label {
        color: #d4af37;
        font-size: 0.8rem;
        letter-spacing: 0.3em;
        border-bottom: 1px solid #d4af37;
        padding-bottom: 5px;
        font-weight: 700;
        text-shadow: 0 0 10px rgba(0,0,0,1);
    }

    .profile-name {
        font-size: 1.8rem;
        font-weight: 900;
        color: #fff !important;
        margin-bottom: 20px;
        text-align: center;
        text-shadow: 0 0 15px rgba(0,0,0,1);
        line-height: 1.2;
    }

    .profile-bio {
        font-size: 0.95rem;
        color: #ddd !important;
        line-height: 2;
        font-weight: 500;
        margin-bottom: 30px;
        text-align: left;
        text-shadow: 1px 1px 2px #000;
    }

    .profile-link {
        display: block;
        text-align: center;
        color: #000;
        background: #d4af37; /* ゴールドボタン */
        padding: 15px 0;
        font-weight: bold;
        letter-spacing: 0.2em;
        transition: 0.3s;
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    }
}

/* --- PC版 (769px以上) --- */
@media (min-width: 769px) {
    .home-profile-section {
        min-height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-glass-card {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1200px;
        display: flex;
        justify-content: flex-start;
        gap: 80px;
        align-items: flex-start;
        padding: 0 40px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* 左側 */
    .profile-header { flex: 0 0 150px; padding-top: 15px; }

    .profile-label {
        font-size: 1rem;
        color: #d4af37;
        letter-spacing: 0.3em;
        border-bottom: 2px solid #d4af37;
        padding-bottom: 10px;
        text-shadow: 0 0 10px rgba(0,0,0,0.8);
    }

    /* 右側 */
    .profile-content { flex: 1; }

    .profile-name {
        font-size: 4.5rem;
        font-weight: 900;
        color: #fff !important;
        line-height: 1;
        margin-bottom: 40px;
        letter-spacing: 0.05em;
        text-shadow: 5px 5px 0 #000, 0 0 40px rgba(0,0,0,0.8);
    }
	
	/* =========================================
   画像エリアのオーバーレイ装飾 (タイトル＆ラベル)
   ========================================= */

.category-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden !important; /* はみ出し防止 */
}

/* --- 1. 左上の「LATEST POST」ラベル --- */
.img-label-top-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: #d4af37; /* ゴールド背景 */
    color: #000;         /* 黒文字 */
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 15px;
    letter-spacing: 0.1em;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* --- 2. 画像下部の「タイトル」オーバーレイ --- */
.img-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 20px; /* 上に少し余白を持たせてグラデーションを見せる */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    z-index: 5;
    transform: translateY(0); /* 通常時は定位置 */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 記事タイトル文字 */
.overlay-post-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    /* 2行以上は省略する場合 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* READ ARTICLE 矢印 */
.overlay-read-more {
    display: inline-block;
    font-size: 0.7rem;
    color: #d4af37;
    letter-spacing: 0.2em;
    opacity: 0; /* 最初は隠しておく */
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* --- ホバー時のアニメーション --- */
.category-row:hover .category-image img {
    transform: scale(1.05); /* 画像拡大 */
}

/* ホバー時にタイトルが少し上にずれて、矢印が出てくる */
.category-row:hover .img-title-overlay {
    padding-bottom: 30px; /* 下の余白を広げる */
}

.category-row:hover .overlay-read-more {
    opacity: 1;
    transform: translateY(0);
}

/* --- (既存) 準備中のラベル --- */
.img-label-center {
    position: relative;
    z-index: 10;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .overlay-post-title {
        font-size: 1rem; /* スマホでは少し小さく */
    }
    .img-title-overlay {
        padding: 30px 20px 15px;
    }
    /* スマホでは矢印を最初から出しておく */
    .overlay-read-more {
        opacity: 1;
        transform: translateY(0);
    }
}

    .profile-bio {
        color: #f0f0f0 !important;
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 2.2;
        max-width: 600px;
        margin-bottom: 50px;
        text-shadow: 2px 2px 4px #000;
    }

    .profile-link {
        font-size: 1rem;
        padding: 15px 50px;
        border: 1px solid #d4af37;
        color: #d4af37;
        background: rgba(0,0,0,0.6);
        transition: 0.3s;
        letter-spacing: 0.2em;
    }

    .profile-link:hover {
        background: #d4af37;
        color: #000;
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

/* ==============================================
   基本設定 & 変数定義（ここを変えれば全カテゴリー変わります）
   ============================================== */
:root {
    /* カラーパレット */
    --bg-body: #050505;          /* 漆黒の背景 */
    --bg-content: rgba(20, 20, 25, 0.85); /* 記事部分の背景（少し透過） */
    --text-main: #e0e0e0;        /* 読みやすいオフホワイト */
    --text-muted: #888888;       /* 控えめなグレー */
    --accent-color: #00f0ff;     /* 【重要】サイバーなシアン（ここをカテゴリーごとに変えます） */
    --border-color: rgba(255, 255, 255, 0.1);

    /* フォント設定（明朝体で高級感を、等幅でサイバー感を） */
    --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    --font-mono: "Courier New", Consolas, monospace;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* リンクの基本スタイル */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color); /* サイバーな発光演出 */
}

/* ==============================================
   背景演出（左右の固定背景）
   ============================================== */
.article-background-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}
.bg-side {
    width: 20%; /* 画面の左右20%を占める */
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* 暗闇に溶け込ませる */
    filter: grayscale(80%) contrast(120%); /* 渋い映画のようなトーン */
}
/* 画面中央に黒いグラデーションをかけて文字を読みやすくする */
.article-background-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-body) 80%);
}

/* ==============================================
   メインコンテンツエリア
   ============================================== */
.container {
    max-width: 800px; /* 読みやすさを重視した幅 */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==============================================
   記事カード全体（コクピット風リニューアル版）
   ============================================== */
.entry-full-content {
    /* レイアウトのベース */
    margin-top: 60px;
    margin-bottom: 80px;
    padding: 60px 40px;
    
    /* 質感：透明度を上げて「奥」を感じさせる */
    background: rgba(20, 20, 25, 0.6); 
    
    /* 磨りガラス＋彩度アップでリッチな質感に */
    backdrop-filter: blur(20px) saturate(130%);

    /* 【ここがスパイス】微細な電脳グリッドパターン */
    background-image: radial-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px; /* ドットの間隔 */

    /* 境界線を発光させる */
    border: 1px solid rgba(0, 240, 255, 0.2);
    
    /* 深い影と、内側からのほのかな発光（インナーグロー） */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6), 
        inset 0 0 30px rgba(0, 240, 255, 0.05);
    
    /* 上下の光ライン（::before, ::after）の位置基準にするため必須 */
    position: relative;
    overflow: hidden;
}

/* 建築的なエッジライト（上下に走る光のライン）を追加 */
.entry-full-content::before,
.entry-full-content::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 中央揃え */
    width: 90%; /* カードより少し短くして洗練させる */
    height: 1px; /* 極細ライン */
    
    /* 中央が明るく、端が消えるグラデーション */
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.8;
    z-index: 2;
}

.entry-full-content::before {
    top: 0; /* 上のライン */
}

.entry-full-content::after {
    bottom: 0; /* 下のライン */
}

/* スマホ対応（余白調整など） */
@media (max-width: 768px) {
    .entry-full-content {
        padding: 40px 20px;
        margin-top: 20px;
        /* スマホではグリッドを少し薄くする */
        background-size: 20px 20px;
    }
    .bg-side { display: none; }
}

/* ==============================================
   記事ヘッダー（高級感の要）
   ============================================== */
.entry-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

/* 日付・メタ情報 */
.entry-meta-top {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 1em;
}

/* パンくずリスト */
.custom-breadcrumb {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

/* 記事タイトル */
.entry-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 30px;
}

/* アイキャッチ画像 */
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ==============================================
   記事本文のデザイン
   ============================================== */
.entry-content {
    font-size: 1rem;
    color: #ccc;
}

/* 見出しh2：左にアクセントライン */
.entry-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #fff;
    margin: 60px 0 30px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
    line-height: 1.3;
}

/* 見出しh3：下線 */
.entry-content h3 {
    font-size: 1.3rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 段落 */
.entry-content p {
    margin-bottom: 2em;
}

/* 引用 */
.entry-content blockquote {
    margin: 40px 0;
    padding: 20px 30px;
    border-left: 1px solid var(--text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
}

/* ==============================================
   著者情報エリア
   ============================================== */
.author-info {
    margin-top: 80px;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
}
.author-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}
.author-description h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: #fff;
}
.author-sns a {
    font-size: 0.85rem;
    margin-right: 15px;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

/* ==============================================
   ヘッダー被り対策（PCのみ）
   ============================================== */
@media (min-width: 960px) {
    /* サイトのメインコンテンツ全体を下に押し下げる */
    .site-main {
        padding-top: 140px; /* ヘッダーの高さに合わせて調整してください */
    }

    /* もしカテゴリーページだけ構造が違う場合はこちらも */
    body.archive .site-main,
    body.category .site-main {
        padding-top: 140px;
    }
}